Error on mounting /dev on /root/dev

Today I received the following error when starting up ubuntu:

mount: mounting /dev/disk/by-uuid/c3c4608e-fb99-4989-bfe2-ede4aec72b38 on /root
failed: Invalid argument
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 dirctory
Target filesystem doesn’t have /sbin/init.
No init found. Try passing init= boot arg

BusyBox v1.10.2 (Ubuntu 1:1.10.2.2ubuntu7) built-in shell (ash)

(initramfs)

I followed the suggestion from this forum, which basically says to

Use ubuntu live CD (the installation CD, but in try only mode), open up a terminal and type

sudo fdisk -l

to list the partitions of the available devices. The output in the terminal was

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b7921

Device Boot Start End Blocks Id System
/dev/sda1 * 1 18709 150274048 83 Linux
/dev/sda2 18709 19458 6013953 5 Extended
/dev/sda5 18709 19458 6013952 82 Linux swap / Solaris

As we can see, my ubuntu was mounted on sda1 partition.

Then I typed the following

sudo e2fsck -fyv /dev/sda1

Which solved the problem. Ubuntu 10.04 uses ext4 filesystem, which has journaling, that helps in the recovering of the filesystem in the case of abrupt termination. According to the e2fsck man page, this commands first applies the journal before proceding.

Advertisements

3 thoughts on “Error on mounting /dev on /root/dev”

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s