GRUB error 17 after kernel update

From DellLinuxWiki

(Difference between revisions)
Jump to: navigation, search
m
Line 14: Line 14:
# Press ''b''.  The system will boot normally.  
# Press ''b''.  The system will boot normally.  
-
'''Fix:''' Edit /boot/grub/menu.lst once you are booted and change all instances (even the ones that are commented out) of ''(hd0,0)'' to ''(hd0,2)''.
+
'''Fix:''' Edit /boot/grub/menu.lst once you are booted and change all instances (even the ones that are commented out) of ''(hd0,0)'' to ''(hd0,2)''. The following commands will automate this process for you. Open a Terminal (Applications->Accessories->Terminal) and cut and paste in the following code:
 +
  sudo bash
 +
  perl -p -i -e "s|^(root\s+\(hd0,)\d+|\${1}2|g;" /boot/grub/menu.lst
 +
  perl -p -i -e "s|(groot=\(hd0,)\d+|\${1}2|g;" /boot/grub/menu.lst
'''Note:''' This issue will reoccur if you restore the system to factory default settings.
'''Note:''' This issue will reoccur if you restore the system to factory default settings.

Revision as of 03:34, 2 June 2007

Systems Affected: Inspiron E1505n, Dimension E520n, XPS 410n

Description: When booting a system up after a kernel upgrade, the following error message maybe displayed on your screen:

 "GRUB error #17 cannot mount selected partition"

Impact: Unable to boot system after kernel upgrade

Boot-Time Workaround:

  1. Reboot the system.
  2. At the 3 second countdown before the Ubuntu splash screen press ESC. The grub menu will come up.
  3. The first entry will be highlighted. Press e to edit the entry.
  4. The root (hd0,0) line will be highlighted. Press e to edit that line.
  5. The grub edit> prompt will come up, with root (hd0,0) already entered. Change it to read root (hd0,2) and press Enter. This will take you back to the previous screen.
  6. Press b. The system will boot normally.

Fix: Edit /boot/grub/menu.lst once you are booted and change all instances (even the ones that are commented out) of (hd0,0) to (hd0,2). The following commands will automate this process for you. Open a Terminal (Applications->Accessories->Terminal) and cut and paste in the following code:

 sudo bash
 perl -p -i -e "s|^(root\s+\(hd0,)\d+|\${1}2|g;" /boot/grub/menu.lst
 perl -p -i -e "s|(groot=\(hd0,)\d+|\${1}2|g;" /boot/grub/menu.lst

Note: This issue will reoccur if you restore the system to factory default settings.

Personal tools
Distributions