Code: Select all
menuentry "debian-installer" {
set isofile='/home/user/downloads/debian-xverison-abc.iso'
loopback loop $isofile
linux (loop)/instal.amd/vmlinuz priority=low toram
initrd (loop)/instal.amd/initrd.gz
}
Code: Select all
menuentry "debian-installer" {
set isofile='/home/user/downloads/debian-xverison-abc.iso'
loopback loop $isofile
linux (loop)/instal.amd/vmlinuz priority=low toram
initrd (loop)/instal.amd/initrd.gz
}
What is the "existing system" ?
sorry for ambiguity, I meant linux based system, to be exact xubuntu.
I feel better now. That's not just non-standard, it's perverse. Paging @pwzhangzz.
Code: Select all
sudo umount -l -r -f /isodevice
It is documented in "Debian bookworm -- Installation Guide" [1]: I followed instructions from [1] and it works:sequencer wrote: ↑2024-03-30 18:07 I don't really get what difference between my config letting it work for them. I also used not live-image. Exact iso is https://cdimage.debian.org/debian-cd/cu ... etinst.iso
Code: Select all
# mkdir /newinstall
# cd /newinstall
# wget http://http.us.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/hd-media/initrd.gz
# wget http://http.us.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/hd-media/vmlinuz
# wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso
# ls -la /newinstall/
total 676232
drwxr-xr-x 2 root root 4096 Mar 31 12:41 .
drwxr-xr-x 21 root root 4096 Mar 31 12:36 ..
-rw-r--r-- 1 root root 659554304 Feb 10 14:46 debian-12.5.0-amd64-netinst.iso
-rw-r--r-- 1 root root 24634188 Feb 5 08:43 initrd.gz
-rw-r--r-- 1 root root 8152768 Feb 1 09:05 vmlinuz
Code: Select all
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "debian-installer" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux /newinstall/vmlinuz
initrd /newinstall/initrd.gz
}
Code: Select all
update-grub
If you intend to use the hard drive only for booting and then download everything over the network, you should download the netboot/debian-installer/amd64/initrd.gz file and its corresponding kernel netboot/debian-installer/amd64/linux. This will allow you to repartition the hard disk from which you boot the installer, although you should do so with care.
Alternatively, if you intend to keep an existing partition on the hard drive unchanged during the install, you can download the hd-media/initrd.gz file and its kernel hd-media/vmlinuz, as well as copy an installation image to the hard drive (make sure the file is named ending in .iso). The installer can then boot from the hard drive and install from the installation image, without needing the network.
I dunno. but anyway I should have downloaded one of hd-media or netboot for this approach