Disk drive for / not ready on boot after upgrade from 10.04 to 12.04

Asked by Mathieu M-G

Hi,

After upgrading (using the Upgrade button from the update manager) from 10.04.4 to 12.04.1, I cannot boot anymore. Upon booting, I am greeted with the Ubuntu logo and the error "The disk drive for / is not ready yet or not present". I have the option to wait, to skip and to access a basic shell. Waiting overnight did nothing, skipping just gives me the same error for /tmp, /home, then for a UUID and finally it just goes to a black screen with a white "_" in the top left corner. My setup is a dual boot one with XP on a single hard drive, I use separate partitions for / and /home. Back in the day I installed 08.04 directly from the CD while leaving a partition for XP, which I installed after. This setup had never caused any such issues, even when upgrading from 08.04 to 10.04.

I did some research and found out that I was not alone( http://askubuntu.com/questions/196651/ubuntu-upgrade-12-04-the-disk-drive-for-is-not-ready-or-not-present , http://askubuntu.com/questions/182371/12-04-1-error-after-upgrade ), though I did not find any answer. I found similar issues with solutions (like this one https://answers.launchpad.net/ubuntu/+source/linux/+question/196923 ), but there were always different variables and I thought it wouldn't be a good idea to start hacking at it with different commands that might not be appropriate in my situation and that would just make things worse.

Hence, I'm making this post in the hope to get some guidance to find out what the problem really is and how to fix it. I thank you very much in advance for your kind help!

Question information

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

Hi ,
try to use this automate tool :
https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu

and try to repair the boot.

You can run the tool from a Ubuntu Live CD-USB , just boot from there and follow the instructions.

Thanks

Revision history for this message
Mathieu M-G (mathieumg) said :
#2

Hi,

Thanks for your answer. I followed the instructions and Boot repair asked me to run the following command in a terminal:

sudo chroot "/mnt/boot-sav/sda2" apt-get -f install

I ended up with the following error:

E: Could not perform immediate configuration on 'python2.7-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

After some googling, I found this: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740

The solution many people are saying worked seems to be when using from within Lucid, while I'm on a live CD. I tried to run:

sudo chroot "/mnt/boot-sav/sda2" apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

But got lot of dependencies error as output, similar to #34 in the above thread. I will be awaiting further instructions, thank you agian!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Did you install using Wubi, or did you resize your NTFS and install to the new freed space??

Revision history for this message
Mathieu M-G (mathieumg) said :
#4

As mentioned in my original post, I didn't use Wubi or resize my NTFS. I installed 8.04 first and left free space on the HDD for an eventual Windows partition.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Try:

sudo apt-get install --reinstall python-minimal -o APT::Immediate-Configure=false

Revision history for this message
Mathieu M-G (mathieumg) said :
#6

That does reinstall python, on the live CD however. I tried to prepend the command (minus sudo) with:

 sudo chroot "/mnt/boot-sav/sda2"

to no avail.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#7

What LiveCD did you used ? What version of Ubuntu ? You have to use 12.04 Live CD , not 8.04 and run again the boot-repair.

If the problem is in python breakage then I assume that re-install needed to correct all these packages.

You can re-install without to remove you personal files. Pay attention to installer window , it will give you the option for "something else" click this option and then follow these pictures

1) http://i.stack.imgur.com/cxhOR.png

2) http://i.stack.imgur.com/y2r31.png

pay attention to not mark the box for format.

Thanks

Revision history for this message
Mathieu M-G (mathieumg) said :
#8

I used the LiveCD for 12.04 x64 downloaded and burned yesterday. The host system is a 8.04 x64 previously upgraded to 10.04 x64 and that I know tried to upgrade to 12.04 x64 (which made everything break). I have investigated my issue further:

Since running

apt-get -f install

after remounting / in read-write doesn't do it for me (I got dependency errors, see http://paste.ubuntu.com/1338058/), and the solution mentioned above in https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/990740 where most people say the solution that worked is running:

apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

doesn't do it either (see http://paste.ubuntu.com/1338070/), I read that running:

dpkg --configure -a

could help. At first it wouldn't run because it had trouble parsing /var/lib/dpkg/status since there was an extra blank line in a package description (see https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/916799) but I removed it using vim (and then reran the command). It still gives me output that looks like an error, though. Here it is: http://paste.ubuntu.com/1338074/. I also tried re-running the above apt-get commands after that, to no avail.

You're saying the only solution now is to do a fresh install? Perhaps with all the information that I just provided there is a better way, before resorting to reinstall. Also I imagine if I were to proceed with reinstall I would need to select ext3, not ext4, as it's what my partitions (created in 2008) use.

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.