help please - "Superblock has an invalid ext3 journal"
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
help please - "Superblock has an invalid ext3 journal"
lesson learned: don't do system admin when you're really tired. :P
I fsck'd a disk that was mounted & seriously fouled it up by doing so. (I suppose it could have gone bad on it's own... there was a reason I was fsck'ing).
In any event, I've since booted the machine off CD & run fsck, but now I get:
If at all possible, I need to get some data (lots of data, actually) off of this disk. If I "Clear" like it's asking me, is there any chance of recovering any data? This machine is pretty critical - it's the system drive on my NIS/queue manager/software license server. It *was* running an old copy of RH9 - pretty much out of the box - no updates, 2.4 kernel, etc.
AFAIK deleting the journal only means the system won't have been updated since the last journal commit. The first thing I would do is make sure to never mount the drive in write mode but read-only and make a dd copy just in case.
If you think you can get away with copying off data just try it I'd say. If it bombs out then you could run fsck with the "check only" option which should give you a clue how large the damage is. If it spits out a list of inodes then you can query what file is attached using "debugfs -c /dev/hda3; ncheck inode_number" to determine if repair is worth it or necessary. If you have a lot of inodes to check, get them in a list and run like
for inode in $list; do /sbin/debugfs -R "ncheck ${i}" -c /dev/hda3; done
AFAIK deleting the journal only means the system won't have been updated since the last journal commit. The first thing I would do is make sure to never mount the drive in write mode but read-only and make a dd copy just in case.
If you think you can get away with copying off data just try it I'd say. If it bombs out then you could run fsck with the "check only" option which should give you a clue how large the damage is. If it spits out a list of inodes then you can query what file is attached using "debugfs -c /dev/hda3; ncheck inode_number" to determine if repair is worth it or necessary. If you have a lot of inodes to check, get them in a list and run like
for inode in $list; do /sbin/debugfs -R "ncheck ${i}" -c /dev/hda3; done
very good info.
for future reference, if anyone comes across this thread...
I dd'd the whole disk over to a larger disk (just because I had one lying around). Then ran fsck & answered yes to *everything* - took quite a while.
The root of the driectory structure was lost, so nothing was where it was supposed to be, but whole chunks of data were able to be recovered once found in the newly created "lost+found" directory... things like /var were in lost+found, but had been renamed to something like #163487... but inside there was a completly intact www/html - which is really what I was after. Have to learn to put php code into cvs. :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.