LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 11:37 AM   #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, 01:48 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
deleted

Last edited by JeremyBoden; 11-25-2016 at 01:56 PM.
 
1 members found this post helpful.
Old 11-25-2016, 03:49 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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, 03:56 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

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


Reply



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
[SOLVED] USB drive fails to mount – “Mount denied…..”, also deletes data on unmount ronells2000 Linux - Software 14 11-15-2016 11:03 PM
How Mount/Unmount Local USB drive in LTSP Client? levglonti Linux - Server 0 02-22-2010 02:03 PM
How to create script to mount / unmount drive rollo Linux - Newbie 8 08-01-2005 05:39 AM
resore mount e2fsck vendace Linux - Newbie 0 02-12-2005 04:49 AM
Mount/Unmount Network Drive Before/After Logrotate Archive GMcFall Linux - General 0 03-31-2004 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration