All Data From Ext4 Partition Missing

Hello,

I am hoping that someone has some insight to my problem.

I have a system running OpenSUSE 11.3 using the bare server configuration.

I had a partition for my /srv directory. All was fine until earlier today. I shutdown my system (to remove an old floppy drive from it). When I rebooted, /srv is emtpy (no files nor directories). This is somewhat vexing, as I had several sites running from there, as well as a fair amount of data.

The appropriate partition (/dev/sda3) appears using fdisk. However, there is no mention of it in /var/log/messages.

Does anyone know how to recover an Ext4 partition?

I thank you kindly.

Hi
Does it exist (/dev/sda3) in /etc/fstab?


cat /etc/fstab

A blank folder such as you suggest tells me it is not mounting for some reason. Are you sure it is still there? You could post the output from these two commands it might help:

cat /etc/fstab
su -
password:
fdisk -l

I did find the following site that talks about the ability to repair EXT4 partitions, but give us a look first:

Performing Ext4 recovery To Fix Data Loss After Delayed Allocation - Linux Data Recovery, Ext3,Ext2,Ext4 File system

Thank You,
](http://allensood.livejournal.com/15300.html)

And use

mount

to see if it is mounted (which seems not to be the case). As long as we do not know why it is not mounted, the dat is most probably still on the partition.

I thank you kindly. Using the mount command (sans arguments), I could see that the partition was not being mounted for some unfathomable reason.

If I manually mount it

mount /dev/sda3 /srv

the data is there. Hazzah!

I am still perplexed as to why it is not mounting automatically at bootup. /dev/sda3 is listed in /etc/fstab in the same manner as /dev/sda2 (mounting to /) is listed. I had thought previously that since the partition is listed in /etc/fstab, that it would be mounted automatically (thus my concern that the data had been lost).

The germane lines from /etc/fstab:

/dev/disk/by-id/ata-ST3250470AS_9RY2D8GN-part2 /                    ext4      acl,user_xattr,usr jquota-atquota.user,grp jquota=aquota.group, jqfmt=vsv0          1 1
/dev/disk/by-id/ata-ST3250470AS_9RY2D8GN-part3 /srv                 ext4      acl,user_xattr,usr jquota-atquota.user,grp jquota=aquota.group, jqfmt=vsv0          1 2

If anyone could enlighten me on this, it would be greatly appreciated.

On 2011-01-02 15:06, juniper willard wrote:
> If anyone could enlighten me on this, it would be greatly appreciated.

Logs.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

As Carlos says: your fstab entry looks OK. Thus when it does not mount at boot there must be something in /var/log /messages.

On 2011-01-02 16:36, hcvv wrote:
>
> As Carlos says: your fstab entry looks OK. Thus when it does not mount
> at boot there must be something in /var/log /messages.

Or /var/log/boot.msg.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)