PDA

View Full Version : [ubuntu] 9.4 Server fails to boot after upgrade from 8.10 -- "Dropping to a shell!"



heffalump
May 3rd, 2009, 12:04 AM
I had 8.10 server installed. I upgraded to 9.04. The install required a reboot. I reboot. Now, this is as far as I get...


Boot from (hd1,4) ext3 9c0feaa4-1aa6-48e0-bdb7-b6a5b86cdf81
Starting up ...
Loading, please wait...
Checking cryptopts=source= bootarg cat /proc/cmdline
or missing modules, devices: cat /prod/modules ls /dev
-r ALERT /dev/disk/by-uuid/85c97ee2-2de1-4f5f-8ed1-25d75e0301b0 does not exist.
Dropping to a shell!

Any ideas?

heffalump
May 3rd, 2009, 01:22 AM
I get dropped into BusyBox. From here, I try to access /conf/conf.d/cryptroot

I try to do this by typing "vi /conf/conf.d/cryptroot"

"/bin/sh: vi: not found" is returned.

Is there another way to edit a file in BusyBox?

heffalump
May 3rd, 2009, 06:47 AM
FINALLY FIXED IT.

I ended up booting with a LiveCD.
I found that the path to my encrypted partition was /dev/sdb1/ using GParted.
I mounted the partition with initrd on it in a terminal.
I copied the initrd into my documents folder within the LiveCD.
I extracted the initrd. (Found Here) (http://ubuntuforums.org/showthread.php?p=1420839#post1420839)
I edited conf/conf.d/cryptroot to replace the UUID with /dev/sdb1/.
I repackaged the initrd as initrd-new.
I moved initrd-new back to where I'd originally pulled the initrd.
I rebooted.
I edited the GRUB's boot menu to use initrd-new.
I...finally...made it back into Ubuntu.