Ubuntu – Cannot mount disk at all. Detailed explanation, Need help

ext4hard drivemount

I can no longer mount an extra internal hard drive on my Ubuntu 11.04 64-bit system. I could up until a few days ago.

I think this has something to do with the problem —- I had added a line at the end of fstab for the drive (/dev/sda) to automount, but I don't think it worked so I then removed the line from fstab. I think that I removed the line while the drive was mounted. The drive will no longer mount via GUI or CLI. At least I think the problem is related to this, it may not be at all.

Trying to mount:

$ sudo mount /dev/sda /media/openSpaceI 

(I realize this is not /dev/sda1 – I don't have an /dev/sda1)

GUI:

enter image description here

That gives this error:

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

GUI:

enter image description here

Here is the print out from dmesg | tail:

$ dmesg | tail
[ 9344.234380] compiz[6098]: segfault at 28 ip 00007f1fa0641335 sp 00007fff0b306700 error 4 in libregex.so[7f1fa063c000+8000]
[ 9987.879043] nautilus[6899]: segfault at 1505b817b60f ip 00007ff6eeefdb8d sp 00007fff09aa6170 error 4 in libgobject-2.0.so.0.2800.6[7ff6eeeca000+4e000]
[10001.231835] compiz[7360]: segfault at 28 ip 00007f38e0cfe335 sp 00007fff3228d380 error 4 in libregex.so[7f38e0cf9000+8000]
[10113.817592] compiz[7429]: segfault at 28 ip 00007f01c11cd335 sp 00007fffac4f4250 error 4 in libregex.so[7f01c11c8000+8000]
[10116.592022] compiz[7651]: segfault at 28 ip 00007f4369548335 sp 00007fffb3b2b030 error 4 in libregex.so[7f4369543000+8000]
[10117.958485] compiz[7666]: segfault at 28 ip 00007f3861d7d335 sp 00007fff268395d0 error 4 in libregex.so[7f3861d78000+8000]
[10366.207793] EXT4-fs (sda): bad geometry: block count 156282966 exceeds size of device (156282701 blocks)
[10855.975855] EXT4-fs (sdb): mounted filesystem with ordered data mode. Opts: (null)
[10863.666747] EXT4-fs (sda): bad geometry: block count 156282966 exceeds size of device (156282701 blocks)
[11125.922998] EXT4-fs (sda): bad geometry: block count 156282966 exceeds size of device (156282701 blocks)

My fstab file now:

enter image description here

I also ran disk utility on the disk. Disk is good and healthy. Here are the screenshots from that:

enter image description here

enter image description here

The drive contains no partitions and is formated to ext4 see – fdisk –
enter image description here
and e2fsck screen
enter image description here
you can see in the e2fsck.png that the filesystem size blocks differ by 265 from the physical size blocks if you do the math.

I'm bummed, I really don't want to have to wipe the data off this disk.

A funny thing I noticed is that the mount point (/media/openSpaceI) still remains. Usually after an unmount the directory disappears.

Any help getting this disk mounted would be extremely appreciated.

#

#

EDIT: Okay, I'm ready to give up. Is there a way I can see a list of anything on the disk before things went off the rails?

#

#

I really appreciate everyone who tried to help me out. I may try to make an image of the disk and work on it later. I move across the country the day after tomorrow.

Best Answer

  • Hmmm. Interesting problem you have, if you're telling us everything then Ubuntu somehow destroyed your filesystem during the course of mounting this disk. I find that hard to believe. It may be that the kernel has failed to discover the disk correctly and determined that the drive has less LBAs than in reality. It's tough to know exactly how much space should be there because you didn't create a partition. TIP in the future, even if you plan to span the entire disk, create a partition. At least then someone can examine the partition table and verify the boundaries.

    EXTFS replicates the superblock several times over, we just need one to reconcile your partition.

    http://www.cgsecurity.org/wiki/Advanced_Find_ext2_ext3_Backup_SuperBlock

    Seems like it should point you in the right direction. I haven't recovered a filesystem in a while so I don't have any quick commands for you to run.

    So your homework is to figure out how to get to your remaining superblocks and use them to reconcile the state of your filesystem. It would really help if you could post ALL of your logs somewhere and tell us the timestamp when things last worked, and when things started to go wrong.

    Good Luck

  • Related Question