LinuxQuestions.org
Review your favorite Linux distribution.
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 06-05-2010, 11:25 AM   #16
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62

I would guess that the first e2fsck you ran did that damage. That's why when you get an aborted journal you do _not_ run e2fsck first, you drop the journal. If I understand it correctly e2fsck tries to replay the aborted journal and then places the files in lost+found because of this.

Regards,

Alunduil
 
Old 06-05-2010, 11:28 AM   #17
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
So is there an easy or systematic way I can put those files back in there original locations? I've never dealt with lost and found before.
 
Old 06-05-2010, 12:00 PM   #18
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Not that I'm aware of. It's based on the inode numbers as the references got lost. You can use file to determine what kind of file it is and then look at the contents to put it back but I don't know about any programmatic way to accomplish that.

Regards,

Alunduil
 
Old 06-05-2010, 12:28 PM   #19
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
So will the files have the original filename or will the subfolders be the same as the original location? I had to step away for a bit so can't look, just trying to see how easy or difficult this might be
 
Old 06-05-2010, 01:34 PM   #20
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
If I'm not mistaken it's because the directory entries got misplaced that the files are in the lost+found directory so the directory structure doesn't exist in lost+found. Just the files that didn't have any references. Once you do an ls on that directory you'll see if I'm correct.

Regards,

Alunduil
 
Old 06-05-2010, 02:23 PM   #21
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
When i do an ls in lost+found, all i see is those random inode names, which are guess are really files not folders for the most part. i guess i need to figure out how to do a ls that will only show me the folders it put in lost+found so i can cd into them and see what files are there. Then you were saying there is a way to tell what type of file all those files in there renamed with the inode name are?
 
Old 06-05-2010, 02:35 PM   #22
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
You can use the file command to try and determine what format a file is in but it doesn't tell you the file name. The file name was part of the directory entry (directories are a special filesystem structure that correlates file names to inodes). I have the feeling there are no directories in your lost+found but to find out run the following:

Code:
find . -type d -print
If that comes back with any results at all they are directories otherwise everything else is a file.

Regards,

Alunduil
 
Old 06-05-2010, 02:41 PM   #23
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks. there are quite a few directories in there, maybe they have some files still that I could use and put back to where they should be. But that means that the majority of whats in the root of lost+found are files, which now have meaningless names to what they meant before Sounds like I'm kinda in a bad spot, right?
 
Old 06-05-2010, 02:50 PM   #24
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
or i wonder if i could copy all them to my windows machine and use thumbnail view to see if any of these are actual jpgs to eliminate some? i think most of the files on the volume were jpg's to start with, so i'm guessing quite a few are them.
 
Old 06-05-2010, 02:55 PM   #25
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Good luck and if this happens again see what the outcome is if you don't start with the e2fsck.

Regards,

Alunduil
 
Old 06-05-2010, 03:01 PM   #26
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Thanks again, i think my best bet is to copy them all to my Windows PC so i can sift through them with a GUI. Couldn't have fixed this without you, wish i wouldnt have done the e2fsck first, i thought since the journal "aborted" it wouldn't use it when doing the e2fsck since it knew it was bad. guess not!
 
Old 06-05-2010, 03:02 PM   #27
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
can i make a samba share to my lost+found folder temporarily, or will that cause problems on the server?
 
Old 06-05-2010, 03:42 PM   #28
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I don't use samba or windows for that matter so I can't tell you. Hopefully, someone else will mention something or just try it and let us know as usual.

Regards,

Alunduil
 
Old 06-11-2010, 08:49 AM   #29
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I was able to share it out and copy everything to my PC to sift through it. I was able to move some stuff back to where it needed to go. Thanks again for all your help Alunduil.
 
  


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
Ext3 - Short read reading journal superblock izaakrach Linux - Hardware 4 10-28-2008 05:47 PM
[SOLVED] EXT3-fs error (device sd(8,7)) in start_transaction: Journal has aborted harikrishnan81 Linux - Newbie 4 04-25-2008 12:50 AM
EXT3-fs error (device md0) in start_transaction: Journal has aborted pilot11 Linux - Software 14 02-27-2007 04:14 AM
Compilation aborted - Please read the FAQ for linux-libc-headers package ???? idardh Linux - Software 3 07-17-2006 07:31 PM
tmpfs is remounted read only vavoem Debian 2 04-11-2006 12:41 PM

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

All times are GMT -5. The time now is 12:00 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
Open Source Consulting | Domain Registration