2011年5月22日

GRUB2 Problems

Grub2 - error: no argument specified
Grub2 - error: no argument specified
press any key to continue

Edit "/boot/grub/grub.cfg"
Find:

search --no-floppy --fs-uuid --set 857d5af9-23cd-4d9b-908b-cc075e866758

Fix:

search --no-floppy --fs-uuid --set=root 857d5af9-23cd-4d9b-908b-cc075e866758

Ref:http://ubuntuforums.org/showthread.php?t=1662142


Grub2 ls: cannot access /var/lib/os-prober/mount/boot doesn't see Win7
When I type sudo update-grub

Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-19-generic Found initrd image: /boot/initrd.img-2.6.31-19-generic Found linux image: /boot/vmlinuz-2.6.31-17-generic Found initrd image: /boot/initrd.img-2.6.31-17-generic Found memtest86+ image: /boot/memtest86+.bin ls: cannot access /var/lib/os-prober/mount/boot Boot: No such file or directory done

Just rename one file in the windows partition
Step1. mount /dev/sdaX (windows partition)
Step2. rename the file "/boot"
Step3. sudo update-grub
Done

Ref:
http://sourceforge.net/apps/mediawik...ore_On_Windows


Change Booting order
sudo update-grub
sudo vi /etc/default/grub
find this line
GRUB_DEFAULT= 0
change "0" to the partition you liked
save
sudo update-grub