Kubuntu 8.04 Grub Error 22 or no partitions found when booting

Bug #222115 reported by Clem
6
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi All,

I installed Kubuntu 8.04 yesterday, and it installed all the files, as I was able to mount the partition from PCLinux 2008. I have 2 hard drives, 1 IDE for Windows XP, and 1 new Sata2 for Linux. I wanted to try Kubuntu, and see if what changes have been made, and to give it a fair trial I wanted to install it after running it from live cd. The first time I put grub on the partion that I had created, the second install I put it on the first hard drive or MBR. I let Kubuntu follow it's default install options the second time. Both trials failed, at first it would not even boot into Kubuntu's menu.lst, but that changed after I changed the hd1 to hd0. But that is as far as it would go, it would not boot into WindowsXP, or into Kubuntu or PCLinux.

I had to use the LiveCD for PCLinux, and redo my MBR to recover my partitions as it was broken well. The errors I kept encountering in Grub was error 22 after choosing the Kubuntu partition. The WindowsXP disc would say something like can not execute command or something like that, sorry I didn't write it down. I just thought I would give you some feedback, and help out the community. I really liked the Kubuntu forums, and find there is a lot of good will there and encouragement. If you need any more information please don't hesitate to contact me. Thanks for your help!

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description didn't include enough information. We'd be grateful if you would then provide a more complete description of the problem.

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).

In this particular case, it would be appreciated if you could include what you did in a more linear fashion, with a little more detail about which options you chose in the installer.
Thanks!

Changed in grub:
status: New → Incomplete
Revision history for this message
Clem (the-moffatts) wrote :

Hi Patrick and All, I will follow your guide, and give as much information as I can to help Ubuntu be a better Ubuntu in the future. I cut my teeth in Linux with Ubuntu, and have tried many others distro's since then. Also, I had tried an Ubuntu 8.04 beta install, and the same thing happened. It was unable to recognize my hard drives or partitions or boot into them, especially when using the Sata2 drive.

1.Specific Steps. Downloaded Kubuntu 8.04 via p2p with Transmission. Burned disc with K3B, and ran check media disc prior to installing or using LiveCD with your check media option...it passed. I tried to install Kubuntu 8.04 yesterday, April 24, 2008 twice. The first time I created a root partition, and had Kubuntu installed to that partition. I had the bootloader installed to boot from that partition. This was all on a new 250G Sata2 drive. I checked the install, and I was able to mount the partition from PCLinuxOS. My partition was called sdb3, and the hard drive partition I installed grub to was (hd1,2). The Sata drive is hd1, and the IDE drive is hd0. The choices were all default in the installer except for the manual hard drive partitions, and where to put the boot loader. I have a Linux already on this drive, and I wanted to test Kubuntu on another partition. So I created a single 30G root partition. I had a swap already created from before so it just used that during the install.
2.Behavior I expected...I expected it to recognize my partitions and drives, and to be able to boot into it after I had redone my MBR from PCLinuxOS. Grub did recognized Ubuntu, but it I was not able to boot into Kubuntu ever, and could not boot into other Linux partitions or into WindowsXP using the Ubuntu grub menu. PCLinuxOS could load itself, and Windows, but not Kubuntu. Error 22 kept coming up.
3.Behavior I actually encountered... Grub Error 22 or partitions not recognized for all Linuxes, and something like cannot execute command when trying to load WindowsXP.

The second time I just went with the default install, and installed it into the same partition sdb3, but let it overwrite my MBR at (hd0,0) in grub, thinking this was the problem. It didn't work either. The only time I was able to load Kubuntu's Grub menu.lst was when I changed the (hd1,2) to (hd0,2), but it would still give me Error 22's when trying to boot into Linux and not able to execute command messages when trying to boot into Windows

I hope this is detailed enough, as I have since deleted the partition, and the references to Ubuntu in my PCLinuxOS grub menu list, and this is all I can recall. I will attach my present grub menu.lst in hopes it may be helpful in getting Kubuntu working on my Sata drive.

Thanks for your help!

Revision history for this message
Don Malcolm (lpad6) wrote :

I am also having problems with not being able to access devices. I have reported it as bug#222322. In addition to what I wrote there, my initial experience is that I installed Hardy on hdc the master disk on my secondary controller. Hardy kind of interpreted it as sda. But I got 'File not found' message upon reboot after the install. So I swapped IDE cables, to put my install location on the master disk on my primary controller. This got me further. But as I have three disks, I am still unable to access all my data.

Revision history for this message
Clem (the-moffatts) wrote :

Hi Patrick and All, I will follow your guide, and give as much information as I can to help Ubuntu be a better Ubuntu in the future. I cut my teeth in Linux with Ubuntu, and have tried many others distro's since then. Also, I had tried an Ubuntu 8.04 beta install, and the same thing happened. It was unable to recognize my hard drives or partitions or boot into them, especially when using the Sata2 drive.

1.Specific Steps. Downloaded Kubuntu 8.04 via p2p with Transmission. Burned disc with K3B, and ran check media disc prior to installing or using LiveCD with your check media option...it passed. I tried to install Kubuntu 8.04 yesterday, April 24, 2008 twice. The first time I created a root partition, and had Kubuntu installed to that partition. I had the bootloader installed to boot from that partition. This was all on a new 250G Sata2 drive. I checked the install, and I was able to mount the partition from PCLinuxOS. My partition was called sdb3, and the hard drive partition I installed grub to was (hd1,2). The Sata drive is hd1, and the IDE drive is hd0. The choices were all default in the installer except for the manual hard drive partitions, and where to put the boot loader. I have a Linux already on this drive, and I wanted to test Kubuntu on another partition. So I created a single 30G root partition. I had a swap already created from before so it just used that during the install.
2.Behavior I expected...I expected it to recognize my partitions and drives, and to be able to boot into it after I had redone my MBR from PCLinuxOS. Grub did recognized Ubuntu, but it I was not able to boot into Kubuntu ever, and could not boot into other Linux partitions or into WindowsXP using the Ubuntu grub menu. PCLinuxOS could load itself, and Windows, but not Kubuntu. Error 22 kept coming up.
3.Behavior I actually encountered... Grub Error 22 or partitions not recognized for all Linuxes, and something like cannot execute command when trying to load WindowsXP.

The second time I just went with the default install, and installed it into the same partition sdb3, but let it overwrite my MBR at (hd0,0) in grub, thinking this was the problem. It didn't work either. The only time I was able to load Kubuntu's Grub menu.lst was when I changed the (hd1,2) to (hd0,2), but it would still give me Error 22's when trying to boot into Linux and not able to execute command messages when trying to boot into Windows

I hope this is detailed enough, as I have since deleted the partition, and the references to Ubuntu in my PCLinuxOS grub menu list, and this is all I can recall. I will attach my present grub menu.lst in hopes it may be helpful in getting Kubuntu working on my Sata drive.

Thanks for your help!

Revision history for this message
Clem (the-moffatts) wrote :

Hi Patrick and All, I will follow your guide, and give as much information as I can to help Ubuntu be a better Ubuntu in the future. I cut my teeth in Linux with Ubuntu, and have tried many others distro's since then. Also, I had tried an Ubuntu 8.04 beta install, and the same thing happened. It was unable to recognize my hard drives or partitions or boot into them, especially when using the Sata2 drive.

1.Specific Steps. Downloaded Kubuntu 8.04 via p2p with Transmission. Burned disc with K3B, and ran check media disc prior to installing or using LiveCD with your check media option...it passed. I tried to install Kubuntu 8.04 yesterday, April 24, 2008 twice. The first time I created a root partition, and had Kubuntu installed to that partition. I had the bootloader installed to boot from that partition. This was all on a new 250G Sata2 drive. I checked the install, and I was able to mount the partition from PCLinuxOS. My partition was called sdb3, and the hard drive partition I installed grub to was (hd1,2). The Sata drive is hd1, and the IDE drive is hd0. The choices were all default in the installer except for the manual hard drive partitions, and where to put the boot loader. I have a Linux already on this drive, and I wanted to test Kubuntu on another partition. So I created a single 30G root partition. I had a swap already created from before so it just used that during the install.
2.Behavior I expected...I expected it to recognize my partitions and drives, and to be able to boot into it after I had redone my MBR from PCLinuxOS. Grub did recognized Ubuntu, but it I was not able to boot into Kubuntu ever, and could not boot into other Linux partitions or into WindowsXP using the Ubuntu grub menu. PCLinuxOS could load itself, and Windows, but not Kubuntu. Error 22 kept coming up.
3.Behavior I actually encountered... Grub Error 22 or partitions not recognized for all Linuxes, and something like cannot execute command when trying to load WindowsXP.

The second time I just went with the default install, and installed it into the same partition sdb3, but let it overwrite my MBR at (hd0,0) in grub, thinking this was the problem. It didn't work either. The only time I was able to load Kubuntu's Grub menu.lst was when I changed the (hd1,2) to (hd0,2), but it would still give me Error 22's when trying to boot into Linux and not able to execute command messages when trying to boot into Windows

I hope this is detailed enough, as I have since deleted the partition, and the references to Ubuntu in my PCLinuxOS grub menu list, and this is all I can recall. I will attach my present grub menu.lst in hopes it may be helpful in getting Kubuntu working on my Sata drive.

Thanks for your help!

Changed in grub:
status: Incomplete → New
Revision history for this message
e_labranche (eric-web-atomic) wrote :

Hi guys!

just wanted to mention that I had the same issues with hardy heron (8.04) on my dual boot system. I had previously installed 7.10 without a hitch on my computer, and I was able to start ubuntu and windows xp without any fuss with grub. When 8.04 came out(final release), I decided to reformat the 7.10 partition and install fresh...then came the issues mentionned above.

1) installed from the live 8.04 cd - for ix86
2) from the partition editor, chose manual install and chose my old 7.10 partition to be reformated and reisntalled as / (root)
3) left the grub re-install on mbr\
4) at reboot, error 22 shows up? can't boot from windows either "cannot execute"

to fix this, I had to manually edit the grub at startup by changing the values (hd0,0) or (hd0,1) or (hd0,2 ) etc to finally be able to find the one that made linux boot up. Once I found it, had to go in the /boot/menu.lst to change it to the right values. I also noticed that in that same list, some mappers were present for the windows xp entry. I removed them and gave it its normal (hd0,0).

after this, all worked fine but wasted a full day at it. Never happened with 7.10, which automatically figured out the right boot option for both windows and ubuntu.

Thought this could help someone.

Revision history for this message
Don Malcolm (lpad6) wrote :

Guys,

I have resolved this issue for my system. It turns out that there has been a rewrite, and that it is less tolerant of bad IDE cabling and bad jumper settings. For details, refer to https://bugzilla.redhat.com/show_bug.cgi?id=444334

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

I'm going to close this bug report because it appears that this is a result of a faulty hardware configuration than a bug with Ubuntu. If following the directions posted above fails to solve this problem, feel free to reopen the bug report. Thank you for helping make Ubuntu better.

Changed in grub:
status: New → Invalid
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.