-   Linux - Newbie (
-   -   GRUB error finding root filesystem partition (

smanandhar 02-16-2009 02:27 AM

GRUB error finding root filesystem partition
Hi all!!

I altered exteneded partions in my harddisk from windows. Unfortunetly, my linux partition was on one of logical drive so linux root file system is now changed from (hd0,7) to (hd0,6). Thus as grub is loaded, it cannot find linux partion which was supposed to be in (hd0,7). What do i have to do to fix this grub problem ?
Can this problem be fixed without reinstalling GRUB? If yes how ?

Best Regards,

bkcreddy17 02-16-2009 02:36 AM

keep linux boot cd or original cd/dvd what ever you are using and reboot.
at boot pronpt type linux rescue. it looks like this.

boot: linux rescue
use this

chroot /mnt/sysimage/
grub-install hda

remove your boot cd/dvd.

james2b 02-16-2009 04:42 AM

Which Linux do you have installed ? The grub boot menu.lst file can be edited as root user, booted to either a Linux live CD, or a USB Linux if done correctly. I believe in a terminal as root, change directory to that grub file location, and then type; gedit /boot/grub/menu.lst (if a gnome type desktop), or use kate in place of gedit,(that is the text editor) If it is Ubuntu you use; sudo first, if other Linux to get as root use; su -

CJS 02-16-2009 11:47 AM

If you want specific help with editing your menu.lst or getting Grub working again, I think it would first help to get a clearer picture of your setup; how about booting your Ubuntu Live CD (the Ubuntu install CD), download the Boot Info Script to the Live CD desktop, open a terminal (Applications > Accessories > Terminal) and do:

sudo bash ~/Desktop/boot_info_script*.sh
That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of the RESULTS.txt file to your next post, highlight the copied text, and click the pound/hash sign "#" graphic button in the forum message box so that the text will get "code" tags put around it. The results of that script will help clarify your setup and hopefully what the best solution to your booting problem might be.

All times are GMT -5. The time now is 01:48 PM.