Results 1 to 8 of 8

Thread: All Data From Ext4 Partition Missing

  1. #1

    Default 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.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    28,090
    Blog Entries
    15

    Default Re: All Data From Ext4 Partition Missing

    Hi
    Does it exist (/dev/sda3) in /etc/fstab?
    Code:
    cat /etc/fstab
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: All Data From Ext4 Partition Missing

    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:

    Code:
    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,

    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,925

    Default Re: All Data From Ext4 Partition Missing

    And use
    Code:
    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.
    Henk van Velden

  5. #5

    Default Re: All Data From Ext4 Partition Missing

    Quote Originally Posted by hcvv View Post
    And use
    Code:
    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

    Code:
    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:

    Code:
    /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.

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: All Data From Ext4 Partition Missing

    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)

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,925

    Default Re: All Data From Ext4 Partition Missing

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

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: All Data From Ext4 Partition Missing

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •