Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hello.
I used a Partition Magic to add more space to my root partition. But it halted, because of errors in partition. I booted Linux, printed "fsck /dev/hdb6", it said that it can cause severe filesystem damage, but I continued anyway... So, it halted with error, then any program could not be started.
I rebooted and got a kernel panic, because of inability to mount root fs. I booted Live-CD, tried to use fsck - but it said something like "This inconsistency could not be fixed by fsck. Use dumpe2fs -b and e2fsck -L filename". I know, that is because of bad blocks and I need to get list of it. But dumpe2fs failed with an error: "Root inode directory corrupted". Partition Magic's checker failed with a message "Inode 0 contains an illegal block 0".
I used R-Linux to recover my data, but all I saw were some multiplied remaining blocks of my data. After some fsck's, Partition Magic say that there is 37% bad blocks, and says that my partition contains illegal superblock. What can I do to recover my data and (maybe) partition?
hmm, so despite the "severe filesystem damage" warning you still did it??
if you've got a corrupted superblock then one of the few tricks i'd know would be to use parted to scan the rest of the partition to look for spare superblocks. not something i've done myself, but if it finds one you can fsck it (when it's *NOT* mounted... not that you can mount it of course...) providing the spare superblock with the -b option.
I used mke2fs -n /dev/hdb6 - it showed me the backuped superblocks.
I tried to fsck, and mount with -o sb=xxxxx, but it failed
I was inattentive, so I used to press 'y'...
Now I'll try find superblock using your method. But it also says me that my inodes are corrupted, their size might be 0... And many other errors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.