[SOLVED] Aborted journal and volume remounted read-only??
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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?
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.
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?
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.
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!
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.