"grub stage1.5 error 17" after restart

Bug #130280 reported by Nimex
12
Affects Status Importance Assigned to Milestone
grub (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I usually put my computer on standby, so it had been a fairly long time since I had restarted and had system changes take effect. What I think has happened is one (or maybe both...) of two things:

-something went wrong with the last update (kernel perhaps), or
-I was trying to install Windows Vista on another partition. I formated some unallocated space inside the Vista setup program. For some reason, the program would not allow me to start the install because it 'didn't recognize any partitions that it could install on' or something like that. Then, after messing around with the install/setup program to no avail, I restarted. This gave me the error.

Here is a timeline to follow all of this: Computer in use: estimating 4 days (standby frequently with updates every now and then) --> shut down --> boot with vista setup cd inside --> rebooted after failing to install --> recieved error 17 --> booted computer with ubuntu live cd --> now I'm here

If anyone has any solutions to how I can correct this problem, please submit it as soon as possible. I have seen many people have error 17's, but they are not like my exact circumstances. I believe all grub error 17 issues should be considered critical, as this is fast becoming a widespread issue from what I have observed.

Revision history for this message
TREXPRETORIAN (trexpretorian) wrote :

Almost the same thing happened to me. I try to restart after a standby, and all of a sudden it gave me Error 17. I tried fixing my BIOS, or changing HDD orders, and still didnt work. Last night, I re-installed Ubuntu 64-bit again, and still is doing the same thing, I formatted the hard drive where Ubuntu was installed, and still didnt work. How do I remove or re-install Ubuntu so I can get back my computer.

PS. I have a triple boot;

1. Ubuntu Boot Manager
2. Vista
3. Xp-pro

PLEASE HELP!!!!!

Revision history for this message
phredduk (eddienewitt) wrote :

I believe I know what causes this problem. It's been bugging me for the past few kernel updates, and i wrongly assumed that it would be a known issue and someone would be on the case.. clearly not.

I'm running Ubuntu 7.04 64bit, on a SATA HDD, with ubuntu installed on the 2nd partition (/dev/sda2)

What seems to happen is that when a kernel update is applied the ubuntu update manager (or some other process) re-writes the grub menu.lst config file to point to the new kernel image. However in my case rather than just updating the name/location of the kernel image, it changes the root partition information aswell!! Why the hell does it assume that your root partition is the first one?? My root partition is the 2nd partition, I'm quite happy with it that way.

Basically it changes the root line from (hd0,1) to (hd0,0):

/boot/grub/menu.lst (excerpt)
..

## ## End Default Options ##

title Ubuntu, kernel 2.6.20-16-generic
<b>root (hd0,1)<b>
kernel /boot/vmlinuz-2.6.20-16-generic root=/dev/sda2 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

..

I'm no expert but i think this bug could be resolved by changing the kernel update process so that it does not molest the /boot/grub/menu.lst quite so much. Leave the 'root' line as it is and just update the 'kernel' line.

It's annoying to have to boot into a live cd and correct my menu.lst file every time.

If you have this problem, then boot a livecd, launch 'Gnome partition editor' (this will mount any partitions it can find), launch a terminal, then open the menu.lst in gedit (sudo gedit /media/disk-X/boot/grub/menu.lst) and correct the root line. (hd0,0) is partition 1, (hd0,1) is partition 2 etc.

I also had to change the root location in the 'kernel' line to root=/dev/sda2 as the update manager had replaced it with some UUID hash. It doesn't seem necessary and stopped me from booting!

Someone please fix this, it's ridiculous! I'm an intermediate user, but I can imagine it has caused a lot of less experienced users to give up on ubuntu and try another 'user-friendly' distro.

Revision history for this message
phredduk (eddienewitt) wrote :

This is the first time I've used launchpad.

It seems a little primitive

- You can't edit a comment/bug description after you've posted
- No HTML tags etc

Surely simple forum-like functionality like this shouldn't be too hard.

But then Launchpad isn't free and open source is it?

Revision history for this message
MariuszS (mariuszs) wrote :

I have grub error 17 after hibernating and turning on (ubuntu 8.04 RC). After booting from live cd I saw problem with linux root partition, I cant mount this partiton (sudo mount /dev/sda5 /mnt/linux -t ext3)
[ 381.104304] VFS: Can't find ext3 filesystem on dev sda5.
cfdisk present this partition like "Linux"

What is wrong?

Revision history for this message
Jott (jubuntu-optusnet) wrote :

I have a dell dimension 9200 in raid mirror with windows vista. After installing ubuntu 8.04 in 2nd partion with ubuntu live disk partitioner my computer want boot.
After pressing on/off switch it starts up and showing the dell sign and the bios and next page is showing the installed hard drives etc. ,then on the bootom of that page it says " GRUB-loading stage 1.5. ". Nothing happens after this, the only choice is the on/off switch.

What is wrong.

I'am new to ubuntu and please could someone help us.

Run ubuntu on my dell inspiron 9100 laptop with no problems.

"Thank You to all Linux people"

Revision history for this message
ersntiersntien (iresntiresnt-deactivatedaccount) wrote :

Now this is really strange. I updated my Debian kernel, then ran an Ubuntu Intrepid Ibex installation. After that, I get error 17. The most interesting thing: I think all of my partitions have moved. /dev/sda5/etc/fstab says to boot /dev/sda6(!!) as /! Wow! I think all of my logical partitions above /dev/sda5 have moved one down after installing to /dev/sda5. This is the irst time I have used that crappy graphical instaler, so I think that's why.

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Nimex - Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

As for the 'root' option being changed during a kernel upgrade - this is because the kernel upgrade calls 'update-grub' 'update-grub' automatically populates your menu.lst based on the options between the lines "## ## Start Default Options ##" and "## ## End Default Options ##". The reason your 'root' option is populated with the wrong option is most likely due to the line beginning with "# groot=" pointing to the wrong device, as this is what defines what the 'root' option is populated with.

Changed in grub:
assignee: nobody → chrisccoulson
status: New → Incomplete
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in grub:
assignee: chrisccoulson → nobody
status: Incomplete → Invalid
Revision history for this message
fiyasahamed (fiyasahamed) wrote :

Hello All Users.

   Day Before Yesterday I downloaded Ubuntu 9.04 from Ubuntu.com. Yesterday, I Installed It. Installation went smooth, After Installation I restarted i saw Grub is loading.. Then it shows me Ubuntu 9.04 Something, Then 3 Ubuntu Choice and after that Windows Vista Loader .... When I selected Vista loader option, Windows XP Loaded and went Smoothly I downloaded Some other softwares using Windows XP. Then, I hibernated my Windows XP and Slept. Today Morning when i switch on my system, it shows Grub 17 Error...

I am new to linux..... I hate this kind of problem. Did i had done any mistake. Is there any problem for the windows users to hibernate the system. Or I shouldn't have to install the Ubuntu and Windows XP on same machine..

From today morning i had spent my 5 hours to search solutions for this problem...

What are you people doing .. You call yourself as Genius ... Geek... you are making me crack head..

I wasted my 700 MB bandwidth for downloading ubuntu... and then yesterday for mp3decoder and other softwares i had wasted 50 MB ..

and one more information

I started to learn how to write boot loader problem.. Soon, there will be great bootloader available... for all the platforms... I hate GRUB and LILO..

very soon, you will see a nice boot loader without giving trouble for novice users like me.....

BYE BYE>>>>>..................................

I am going to format my Ubuntu Partition...

Revision history for this message
fiyasahamed (fiyasahamed) wrote :

And one more thing..

Currently i send this comment using Ubuntu's Live USB Edition..

I tried to reinstall the GRUB using some of the tutorials available on the internet
NOthing works...........!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Bad Ubuntu....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.