LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2016, 12:37 PM   #1
emraldinho
LQ Newbie
 
Registered: Nov 2016
Posts: 1

Rep: Reputation: Disabled
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!
 
Old 11-25-2016, 02:48 PM   #2
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
deleted

Last edited by JeremyBoden; 11-25-2016 at 02:56 PM.
 
1 members found this post helpful.
Old 11-25-2016, 04:49 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
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.
 
Old 11-25-2016, 04:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive fails to mount – “Mount denied…..”, also deletes data on unmount ronells2000 Linux - Software 14 11-16-2016 12:03 AM
How Mount/Unmount Local USB drive in LTSP Client? levglonti Linux - Server 0 02-22-2010 03:03 PM
How to create script to mount / unmount drive rollo Linux - Newbie 8 08-01-2005 06:39 AM
resore mount e2fsck vendace Linux - Newbie 0 02-12-2005 05:49 AM
Mount/Unmount Network Drive Before/After Logrotate Archive GMcFall Linux - General 0 03-31-2004 04:15 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration