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?
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:
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).
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)