LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unmount drive / e2fsck / re-mount -> are my files gone (https://www.linuxquestions.org/questions/linux-newbie-8/unmount-drive-e2fsck-re-mount-are-my-files-gone-4175594227/)

emraldinho 11-25-2016 11:37 AM

unmount drive / e2fsck / re-mount -> are my files gone
 
The journal on my disk had died, and the drive was mounted only as read-only and I could not re-mount it as read write.

So I have unmounted it ran e2fsck and re-mounted the drive.

The disk is fixed, but the files are gone. I can actually see the space on the disk being taken by my files as:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/drive
1.9T 46G 1.7T 3% /drive
So They are there, I just cannot access it. The following is what I did:

[root@box log]# umount /dev/mapper/drive
[root@box log]# e2fsck /dev/mapper/drive
e2fsck 1.41.12 (17-May-2010)
/dev/mapper/drive: recovering journal
/dev/mapper/drive contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/mapper/drive: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/drive: 1704368/124518400 files (1.1% non-contiguous), 19741609/498065408 blocks

[root@box log]# mount -o remount,rw /drive
How can I recover the files? Did I re-mount it incorrectly? Thanks in advance!

JeremyBoden 11-25-2016 01:48 PM

deleted

jefro 11-25-2016 03:49 PM

Boot to live media, provide a destination drive and try testdisk.

What is the source by the way, I assume a software raid or LVM.

syg00 11-25-2016 03:56 PM

Have a look at lost+found - possibly (all) your files are there.


All times are GMT -5. The time now is 08:09 PM.