PDA

View Full Version : [ubuntu] mounting /dev on /root/dev failed: No such file or directory



amarumayo
August 19th, 2009, 06:18 PM
Hi all,

I put my computer (which was working fine) into suspend and the battery died overnight. Now it will not boot. I get:

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 have no idea what may have happened and would not want to lose what was on my hard drive. Any suggestions? Thanks for any help.

P.s. My computer is an Acer Aspire 4810tz-4696 running ubuntu 9.04

Thanks
Chris

Bodsda
August 19th, 2009, 06:28 PM
Hi all,

I put my computer (which was working fine) into suspend and the battery died overnight. Now it will not boot. I get:

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 have no idea what may have happened and would not want to lose what was on my hard drive. Any suggestions? Thanks for any help.

P.s. My computer is an Acer Aspire 4810tz-4696 running ubuntu 9.04

Thanks
Chris

Not sure what has happened here, but could you please boot a live cd and mount your system with the following

This will provide you with a list of your drives and partitions, you need to pick the one that your root file system is installed to, it will be something like /dev/sda1

sudo fdisk -l

Then run this command, which will mount your system. Remember to replace /dev/sda1 in the following command with your device from the first step

sudo mkdir /mnt/ubuntu && sudo mount /dev/sda1 /mnt/ubuntu

Now could you please paste the contents of your fstab which can be found by running the following command.

gksudo gedit /mnt/ubuntu/etc/fstab

That should give us some more info to work with.

Kind regards,
Bodsda

amarumayo
August 19th, 2009, 06:41 PM
Hi Bodsda. Thanks for the reply

When I run sudo mkdir /mnt/ubuntu && sudo mount /dev/sda1 /mnt/ubuntu
I get:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Thanks
Chris

ibuclaw
August 19th, 2009, 06:44 PM
Grab your Ubuntu LiveCD, boot into it, and mount the filesystem with Ubuntu on.

Then run:

sudo fdisk -l
and

cat /*/*/etc/fstab

And post the output.

Regards
Iain

amarumayo
August 19th, 2009, 06:47 PM
Sorry, but I am a newb. Once I have booted into live CD how do I mount the filesystem with boot?
Thanks
Chris

amarumayo
August 19th, 2009, 07:03 PM
When I try to mount the filesystem from the Live CD I get:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Thanks for any help
Chris

ibuclaw
August 19th, 2009, 07:07 PM
When I try to mount the filesystem from the Live CD I get:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Thanks for any help
Chris

Go into: Applications -> Accessories -> Terminal
in the Gnome Menu, then type in


sudo fdisk -l

amarumayo
August 19th, 2009, 07:10 PM
OK, I get:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7c18dd06

Device Boot Start End Blocks Id System
/dev/sda1 * 1 37810 303708793+ 83 Linux
/dev/sda2 37811 38913 8859847+ 5 Extended
/dev/sda5 37811 38913 8859816 82 Linux swap / Solaris
ubuntu@ubuntu:~$ cat /*/*/etc/fstab
cat: /*/*/etc/fstab: No such file or directory
ubuntu@ubuntu:~$

LewRockwell
August 19th, 2009, 07:14 PM
we suspect that due to your battery failure your system was not properly dismounted

http://manpages.ubuntu.com/manpages/hardy/man8/fsck.8.html

.

ibuclaw
August 19th, 2009, 07:14 PM
In the terminal, type in (or copy and paste in).

sudo e2fsck -fyv /dev/sda1

Then Go into: Places -> Computer
And select the "300GB Media" or so size disk to mount it, post any errors you may get.

Regards
Iain

amarumayo
August 19th, 2009, 07:28 PM
ubuntu@ubuntu:~$ sudo e2fsck -fyv /dev/sda1
e2fsck 1.41.4 (27-Jan-2009)
/dev/sda1: Attempt to read block from filesystem resulted in short read while reading block 37913090

/dev/sda1: Attempt to read block from filesystem resulted in short read reading journal superblock

e2fsck: Attempt to read block from filesystem resulted in short read while checking ext3 journal for /dev/sda1

and when I try to open the 311GB media is says:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Thanks for any help,
Chris

amarumayo
August 19th, 2009, 08:04 PM
So is there anything I can do to fix the problem or recover the data?
Thanks
Chris

michy99
August 19th, 2009, 08:24 PM
Sounds like it's time to try testdisk to recover the partition.

amarumayo
August 19th, 2009, 09:00 PM
I am a newb. If anyone could please tell me how to recover the partition I would be extremely grateful. Thanks a lot.
Chris

scoobeee
September 15th, 2009, 08:19 PM
Just wondering if there was a solution found for this as I am having the same problem with the same initial errors. Did you lose your data?

amarumayo
September 15th, 2009, 08:30 PM
I had to buy a new hard drive however, I was able to recover the data using testdisk.

scoobeee
September 15th, 2009, 08:34 PM
Hmm.. good to know. Thanks.

ssv1986
June 21st, 2010, 09:38 AM
Helo My Dear Friend..
Thank you very much for you valuable help.This is one of the great post i have ever seen

ibuclaw
June 21st, 2010, 09:46 AM
*cough*

Closed. :)