LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error on startup. Unknown file filesystem grub rescue>. What to do?? (https://www.linuxquestions.org/questions/linux-newbie-8/error-on-startup-unknown-file-filesystem-grub-rescue-what-to-do-867029/)

bensheeler 03-07-2011 01:27 PM

Error on startup. Unknown file filesystem grub rescue>. What to do??
 
Yesterday I installed the latest version of ubuntu to my computer that was already running windows 7. I had everything working fine until in windows I deleted a partition that had nothing in it. After this I restarted but I can't get into either OS. I get an error that says
Error: unknown filesystem
grub rescue>

I think I need to fix something in grub. I have been booting off of a usb stick with linux on it in the mean time. I am very new to this and the things I find on the web don't make any sense to me. Can someone please help me??

corp769 03-07-2011 02:50 PM

You pretty much need to reinstall your bootloader and config. Go get the super grub disk and rescue it, and you should be good.

http://www.supergrubdisk.org/

tuxandpucks 03-07-2011 04:23 PM

You could boot from ubuntu live cd and then do this:

Boot up ubuntu from the livecd,open terminal and run:
sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda



If you miss “grub.cfg” file,use following to recreate:
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit


All times are GMT -5. The time now is 07:17 AM.