Grub

List of live CDs

Creating live image and bootable USB

  • USB Boot Test:
    qemu -boot c -hda /dev/sdb -m 512

Using Grub to create bootable USB

grub4dos

Grub2

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

More configs:

Burg

Brand-new Universal loadeR from GRUB. It's based on GRUB, and add features like new object format and configurable menu system.

Questions answered

How to display all drives and partitions in Grub command line?

Type root (hd in command-line and then press TAB.

Can Grub load kernel from large drives?

Attempt to load Linux explodes with “syntax error”s and “invalid command”s on boot, and manually trying to boot the kernel from the GRUB rescue shell resulted in “error: invalid magic number”.

From this article:

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.

How to enable framebuffer on Grub?

From Setting the framebuffer resolution on GRUB:

Add/uncomment the following lines:

/etc/default/grub

GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=keep

and re-generate grub config:

# grub-mkconfig -o /boot/grub/grub.cfg

How to reinstall Grub on given partition?

Provided that root partition /dev/sdb1 is mounted to /mnt run the followingto install Grub to MBR of /dev/sdb drive:
# grub-install --root-directory=/mnt /dev/sdb

:OPT: 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

software/grub.txt · Last modified: 2015/03/24 11:48 by dmitry
 
 
Recent changes RSS feed Driven by DokuWiki