- Search root disk.grub> search -f /vmlinuz -s root
- Set root disk. grub> root ($root)
- Use these commands to find out root disk's information. grub> ls -l ($root)
- Set linux kernel. There are three ways to do it.
- Change the red number with your root disk number. If your root disk is (hd0, msdos1), then use /dev/sda1.grub> linux /vmlinuz root=/dev/sda1
- Change red text with your disk label, which can get by using ls -l ($root). grub> linux /vmlinuz root=LABEL=LABEL
- Change red text with your disk uuid, which can also get by using ls ($root).grub> linux /vmlinuz root=UUID=UUID
- Change the red number with your root disk number. If your root disk is (hd0, msdos1), then use /dev/sda1.
- Set ramdisk. grub> initrd /initrd.img
- Now, you can boot your system. grub> boot
- When you are logged in, type this command from terminal to fix your grub menu. $ sudo update-grub
Dec 7, 2011
Repair GRUB without using LiveCD
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment