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.
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.
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
fsck.ext3: Attempt to read block from filesystem resulted in short read while checking ext3 journal for /data1
I cannot mount the device again
fdisk -l device says:
Disk /dev/hda9: 255 heads, 63 sectors, 2511 cylinders
Units = cylinders of 16065 * 512 bytes
Disk /dev/hda9 doesn't contain a valid partition table
Now I'm desperate looking for another option than "mke2fs -S"
What happens when you run disk druid? Can it see /dev/hda9?
If it can, you can add it back in while not disturbing the data. Disk druid was the partioner you may have used when you loaded RedHat. It runs under X, so you get the nice GUI look and feel, if that matters to you.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Welcome to LQ, madsjakob!!
Do you know what the blocksize for your /dev/hda9 is? For RH8, it the default has always been 4k as far as I've seen . That means, there would be a backup superblock at 32768, 98304, 163840 etc. Assuming sparse_super, as default for ext3 . If you had sparse_super unset at filesystem creation, there will be one at every multiple of 32768 ( 8*4k ).
I would try passing the -B 4096 ( or whatever your blocksize is ) option to e2fsck. Read up on the -b option at e2fsck(8) also, so you can pass it a specific superblock at the end of the disk for instance as -b 12345678, if you know that area is intact.
Like you said, I'd save mke2fs -S as a last option, but if you know the blocksize it should be less dangerous than it sounds; of course at that point, we won't have much of a choice.
It seems that the problem is not the bad superblock but the partition in question seems to have some bad blcoks.So try
e2fsck -c device
then mount it back again.
Thank you fellas I really appreciate your help although the disk went really bad - so bad that i didn't even have a chance to try out any of your suggestions.
Anyways I've spend the whole night trying to reestablish the system on a new disk and I'm not done yet - most of the scripts are lost
e2fsck returns:
e2fsck: Attempt to read block from filesystem resulted in short read while checking ext3 journal for /usr2
No matter what I tell fsck, I get this, unless I give it the -b option and the block number of a non-backup superblock in which case it complains about that.
It seems like fsck isn't even trying. It finds that the journal is bad and gives up. What should I do?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.