VMware Ubuntu boot fails (stuck in initramfs prompt)
17,217
Solution 1
Try
$ fsck -y /dev/sda1
From the LiveCD
Solution 2
The live CD mounts the /dev/sda1 partition automatically. All you have to do is first run:
umount /dev/sda1
Then run:
fsck -y /dev/sda1
That did it for me.
Related videos on Youtube
Author by
SCO
Updated on September 18, 2022Comments
-
SCO over 1 year
I've been playing aroung with a Ubuntu Server 10.04 installed through VMware (the host is Windows XP). For any reason (I suspect a power off of my host machine), the guest OS seems broken.
Every time I boot the virtual machine, I get stuck at an initramfs prompt, after what seems like a kernel panic trace and the following lines:
mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init. No init found. Try passing init= bootarg.
Busybox seems to allow entering commands, then the (initramfs) prompt is shown.
I booted with a Ubuntu Live CD and tried:
- Checking entries in
/dev
: I can see/dev/sda
,/dev/sda1
,/dev/sda2
,/dev/sda5
- Mounting
/dev/sda1
, but the mount command doesn't return (I waited for 10 seconds, I assume that's sufficient?) fsck -c /dev/sda1
- but fsck reports that/dev/sda1
is busy.Checking
dmesg
when using the Live CD:EXT4-fs (sda1): INFO: recovery required in readonly filesystem EXT4-fs (sda1): write access will be enabled during recovery EXT4-fs warning (device sda1): ext4 clear journal err: Filesystem error recorded from previous mount: IO failure EXT4-fs warning (device sda1): ext4_clear_journal_err: Marking fs in need of filesystem check.
What could I try next? The machine contains valuable source code so I'm hoping I can find a solution!
- Checking entries in
-
Simon Sheehan about 13 yearsOkay, Hopefully you get things worked out though!