Unsolved
This post is more than 5 years old
Moderator
•
17.9K Posts
•
69K Points
0
37264
June 1st, 2007 19:00
Error 17 Message Fix
If you get the error 17 message try the steps below for resolution. If you have any issues please post back.
When you get the error 17 at boot:
• Reboot the system.
• At the 3 second countdown before the Ubuntu splash screen press ESC. The grub menu will come up.
• The first entry will be highlighted. Press to edit the entry.
• The root (hd0,0) line will be highlighted. Press to edit that line.
• The grub edit>" prompt will come up, with "root (hd0,0)" already entered. Change it to read "root (hd0,2)" and press . This will take you back to the previous screen.
• Press b. The system will boot normally.
Once the system is booted, we need to fix the file that is causing the problem. To do this:
• Log in to the system.
• At the desktop, open Firefox and navigate to .
• Click Applications - Accessories - Terminal. A terminal will open.
• Type "gedit fix-menu-lst.sh" and press Enter.
Copy and paste the following script from the Firefox window into the gedit window:
A cut down version of this has already been posted on the wiki site at http://linux.dell.com/wiki/index.php/GRUB_%22error#17_cannot_mount_selected_partition.22_error_message_on_boot
Message Edited by DELL-Jesse on 06-02-2007 08:09 AM
When you get the error 17 at boot:
• Reboot the system.
• At the 3 second countdown before the Ubuntu splash screen press ESC. The grub menu will come up.
• The first entry will be highlighted. Press to edit the entry.
• The root (hd0,0) line will be highlighted. Press to edit that line.
• The grub edit>" prompt will come up, with "root (hd0,0)" already entered. Change it to read "root (hd0,2)" and press . This will take you back to the previous screen.
• Press b. The system will boot normally.
Once the system is booted, we need to fix the file that is causing the problem. To do this:
• Log in to the system.
• At the desktop, open Firefox and navigate to .
• Click Applications - Accessories - Terminal. A terminal will open.
• Type "gedit fix-menu-lst.sh" and press Enter.
Copy and paste the following script from the Firefox window into the gedit window:
A cut down version of this has already been posted on the wiki site at http://linux.dell.com/wiki/index.php/GRUB_%22error#17_cannot_mount_selected_partition.22_error_message_on_boot
Message Edited by DELL-Jesse on 06-02-2007 08:09 AM
0 events found
No Events found!


fjgaude
14 Posts
0
June 1st, 2007 20:00
bryceharrington
3 Posts
0
June 2nd, 2007 06:00
bryceharrington
3 Posts
0
June 2nd, 2007 06:00
ashnazg
7 Posts
0
June 6th, 2007 01:00
Booting via a Knoppix disc, I was able to see that all the boot options in GRUB's menu.lst were set to (hd0,0), but the /boot partition is on sda2. Hand-editing the boot line at boot, changing (hd0,0) to (hd0,2) allowed it to boot up, and then I was able to "sudo vi /boot/grub/menu.lst" and correct the four or five (hd0,0) references at the bottom of the file where the boot menu options are actually listed.
hotshotDJ
136 Posts
0
June 11th, 2007 12:00
weibullguy
5 Posts
0
June 11th, 2007 12:00
sed -i 's@(hd0,0)@(hd0,2)@g' /boot/grub/grub.conf
Seems a little more involved than it needs to be.
karl pell
7 Posts
0
June 12th, 2007 11:00
pjarvi
2 Posts
0
June 12th, 2007 21:00
Message Edited by pjarvi on 06-13-2007 12:28 PM
DMN682
12 Posts
0
June 12th, 2007 22:00
If a person such as myself has NOT updated their system, It seems to me that one could just edit the "menu.lst" file before you update anything. Wouldn't this prevent the error? Examining the original unmodified factory-supplied file menu.lst, I see the string hd0,0 in lines 40, 73, and 74 (shown below) but that's all (line numbers added).
39 # title Windows 95/98/NT/2000
40 # root (hd0,0)
72 ## default grub root device
73 ## e.g. groot=(hd0,0)
74 # groot=(hd0,0)
Being new to Linux, maybe there is something I am missing here. Besides this issue, the computer is working great. Very pleased with the Ubuntu so far.
Thanks
ashnazg
7 Posts
0
June 13th, 2007 01:00
I'm pretty sure the kernel update process ADDS new lines to the menu.lst file, and it's those new lines that need their "(hd0,0)" corrected to become "(hd0,2)". So, no, changing the lines before you do the update won't prevent the problem.
What I suggest doing before the update is to change the "default" timeout value ( look for a line that starts with "default" but does NOT start with "#" ) to something like 30 or higher, to give you a good number of seconds to see the boot menu choices before the computer picks the default choice and starts trying to boot. That way, after you do the kernel update, you'll have an easier time of reading the instructions on the boot screen that tell you how to select a choice and "edit" that choice (change hd0,0 to hd0,2), because that's the only way you'll be able to boot the computer up. Once you have it booted, you can update the menu.lst file, which will fix the boot issue for good.
DMN682
12 Posts
0
June 13th, 2007 14:00
1) Do the kernel update
2) Immediately edit the menu.lst file (before rebooting)
3) reboot the computer (system would then use the edited menu.lst made in step 2)
Comment?
Thanks
ashnazg
7 Posts
0
June 13th, 2007 15:00
Your method is actually the ideal plan, and should probably remain in everyone's "toolbox" as something they should plan to do for each and every kernel update going forward.
Thanks for the smack to my forehead, I needed it ;)
Chasoid
4 Posts
0
June 13th, 2007 16:00
pjarvi
2 Posts
0
June 13th, 2007 16:00
fjgaude
14 Posts
0
June 13th, 2007 17:00
frank