GRUB: Difference between revisions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
=== Installation === | === Installation === | ||
{{ | {{Root|mount /boot}} | ||
Install grub after mounting /boot. | Install grub after mounting /boot. | ||
{{ | {{Root|grub-mkconfig -o /boot/grub/grub.cfg}} | ||
Standard installation: | Standard installation: | ||
{{ | {{Root|grub-install --recheck --no-floppy /dev/sda}} | ||
HP Server /dev/cciss installation: | HP Server /dev/cciss installation: | ||
{{ | {{Root|grub-install --recheck --no-floppy /dev/cciss/c0d0}} | ||
/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. | /sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. | ||
| Line 26: | Line 26: | ||
/sbin/grub-setup: error: will not proceed with blocklists. | /sbin/grub-setup: error: will not proceed with blocklists. | ||
{{ | {{Root|grub-install --recheck --no-floppy /dev/cciss/c0d0 --force}} | ||
/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. | /sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. | ||
| Line 32: | Line 32: | ||
Installation finished. No error reported. | Installation finished. No error reported. | ||
{{ | {{Root|umount /boot}} | ||
| Line 120: | Line 120: | ||
=== Updating Grub 2 === | === Updating Grub 2 === | ||
{{ | {{Root|mount /boot}} | ||
{{ | {{Root|grub-install --recheck --no-floppy /dev/sda}} | ||
{{ | {{Root|umount /boot}} | ||
=== Serial Console === | |||
{{File|/etc/default/grub| | |||
GRUB_TERMINAL=serial | |||
GRUB_SERIAL=COMMAND="serial --unit=0 --speed=57600 --word=8 --parity=no --stop=1" | |||
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,57600" | |||
</pre> | |||
}} | |||
{{Warning|Running the following command will overwrite any changes in grub.cfg you manually made}} | |||
Mount /boot and run {{Root|grub-mkconfig -o /boot/grub/grub.cfg}} | |||
Revision as of 17:13, 27 July 2011
GRUB 2
Packages
Exherbo: sys-boot/grub
Gentoo: sys-boot/grub
Installation
Install grub after mounting /boot.
Standard installation:
HP Server /dev/cciss installation:
/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. /sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. /sbin/grub-setup: error: will not proceed with blocklists.
/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.. /sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. Installation finished. No error reported.
Configuration
Standard
### BEGIN /etc/grub.d/10_linux ###
menuentry "Gentoo GNU/Linux" --class gentoo --class gnu-linux --class gnu --class os {
set gfxpayload=keep
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ba16bd87-842c-46c2-a487-2a27d9be90dd
echo Loading Linux ...
linux /vmlinuz root=/dev/sda3 ro
}
menuentry "Gentoo GNU/Linux (recovery mode)" --class gentoo --class gnu-linux --class gnu --class os {
set gfxpayload=keep
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ba16bd87-842c-46c2-a487-2a27d9be90dd
echo Loading Linux ...
linux /vmlinuz root=/dev/sda3 ro single
}
menuentry "Gentoo GNU/Linux, previous kernel" --class gentoo --class gnu-linux --class gnu --class os {
set gfxpayload=keep
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ba16bd87-842c-46c2-a487-2a27d9be90dd
echo Loading Linux ...
linux /vmlinuz root=/dev/sda3 ro
}
menuentry "Gentoo GNU/Linux, previous kernel (recovery mode)" --class gentoo --class gnu-linux --class gnu --class os {
set gfxpayload=keep
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set ba16bd87-842c-46c2-a487-2a27d9be90dd
echo Loading Linux ...
linux /vmlinuz root=/dev/sda3 ro single
}
### END /etc/grub.d/10_linux ###
cciss
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os {
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root b3727853-ae78-4a00-b21c-7b974c233e1c
echo 'Loading Linux ...'
linux /vmlinuzo root=/dev/cciss/c0d0p3 ro
}
menuentry 'Gentoo GNU/Linux (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os {
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root b3727853-ae78-4a00-b21c-7b974c233e1c
echo 'Loading Linux ...'
linux /vmlinuz root=/dev/cciss/c0d0p3 ro single
}
menuentry 'Gentoo GNU/Linux, previous kernel' --class gentoo --class gnu-linux --class gnu --class os {
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root b3727853-ae78-4a00-b21c-7b974c233e1c
echo 'Loading Linux ...'
linux /vmlinuz.old root=/dev/cciss/c0d0p3 ro
}
menuentry 'Gentoo GNU/Linux, previous kernel (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os {
load_video
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root b3727853-ae78-4a00-b21c-7b974c233e1c
echo 'Loading Linux ...'
linux /vmlinuz.old root=/dev/cciss/c0d0p3 ro single
}
### END /etc/grub.d/10_linux ###
Updating Grub 2
Serial Console
Mount /boot and run