Difference between revisions of "Grub"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 9: | Line 9: | ||
grub> initrd /boot/initrd | grub> initrd /boot/initrd | ||
grub> boot | grub> boot | ||
+ | |||
+ | = backup partition table = | ||
+ | To backup your partition table: | ||
+ | sfdisk -d /dev/hda > hda.pt | ||
+ | To restore it: | ||
+ | sfdisk /dev/hda < hda.pt | ||
= See also = | = See also = | ||
* [[booting from USB]] | * [[booting from USB]] |
Revision as of 07:10, 16 November 2010
Contents
reinstall grub
grub-install --recheck --no-floppy --root-directory=/path/to/root /dev/hda
determine entry to be booted next time
grub-reboot entry-number
grub's command line
grub> kernel /boot/vmlinuz grub> initrd /boot/initrd grub> boot
backup partition table
To backup your partition table:
sfdisk -d /dev/hda > hda.pt
To restore it:
sfdisk /dev/hda < hda.pt