qemu -boot c -hda /dev/sdb -m 512
Mount your USB to e.g. /mnt/usb
and install Grub on it using the command (use actual USB device e.g. /dev/sdd
):
grub-install --force --no-floppy --boot-directory=/mnt/[mountpoint]/boot /dev/sdX
menuentry "Bootable ISO Image: install-x86-minimal-20130820" { insmod part_msdos insmod ext2 set root='(hd0,msdos7)' search --no-floppy --fs-uuid --set=root <individual uuid replaced> linux16 /boot/memdisk iso initrd16 /boot/images/install-x86-minimal-20130820.iso }
More configs:
Brand-new Universal loadeR from GRUB. It's based on GRUB, and add features like new object format and configurable menu system.
root (hd
in command-line and then press TAB.
Grub uses legacy addressing scheme known as CHS (cylinder-head-sector). Assuming the number of cylinders is a 16-bit integer (a fairly common limitation), heads is 16 and sector count is 63, we get a limit of 2^16 × 16 × 63 = 66.060.288 addressable sectors, or exactly 31.5GiB.
That means that /boot/
partition should be located in first 32GB.
Add/uncomment the following lines:
GRUB_GFXMODE=1024x768x32 GRUB_GFXPAYLOAD_LINUX=keep
and re-generate grub config:
# grub-mkconfig -o /boot/grub/grub.cfg
/dev/sdb1
is mounted to /mnt
run the followingto install Grub to MBR of /dev/sdb
drive:# grub-install --root-directory=/mnt /dev/sdb
For more correct installation on Debian that includes also updating
/boot/grub/grub.cfg
one need to mount necessary partitions and run update-grub
:
# mount --bind /dev /mnt/dev # mount --bind /sys /mnt/sys # mount --bind /proc /mnt/proc # chroot /mnt # update-grub
"Девица не хочет лезть в Окно" – device not compatible with Windows.