LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub err 17 for linux , grub err 21 for windows (https://www.linuxquestions.org/questions/linux-newbie-8/grub-err-17-for-linux-grub-err-21-for-windows-783430/)

parnal88 01-20-2010 04:50 AM

grub err 17 for linux , grub err 21 for windows
 
I installed ubuntu 9.04 on my external hard disk. When i try to boot from it i am getting an error grob loading.. grub error 17. I am using an ibm thinkpad which has windows installed in it. After installing ubuntu when i tried to use windows (with or without the hard disk attached) i got grub error 21. My last resort is to restore my thinkpad to its factory settings(i will lose data!!) and format my hard disk and try to install ubuntu again. I really want to avoid that. Please help!

yancek 01-20-2010 10:13 AM

When you installed Ubuntu to the external, where did you install Grub? The root partition on the external? master boot record of the external? master boot record of the internal?

Grub Error 17:
Quote:

Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB
Grub Error 21:
Quote:

Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
Can you load the Ubuntu install CD and open a terminal and run the command: sudo fdisk -l (lower case letter L) and post partition info here?

Which version of windows are you using?

parnal88 01-21-2010 01:12 AM

grub err 17 , grub err 21 solved
 
Thank you Yancek for replying. I did the following and it worked.
For grub err 21, i used a Windows xp cd and ran the fixmbr command from the recovery console. This allowed me to boot to windows.
For grub err 17, i installed ubuntu again on the external hard disk. To resolve any conflicts between the two hard disks i physically removed the internal hard disk before installing ubuntu on the external.
This worked and now i have both ubuntu and windows running well.
Thank you again, for your time.


All times are GMT -5. The time now is 08:40 AM.