Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
First of all, if this thread doesn't belong in the Hardware forum, I apologize.
Anyway, I have an ext3 partition that doesn't mount anymore. First I had a problem with a bad magic number in superblock, or something along those lines. I ran e2fsck with an alternative superblock. e2fsck found lots of errors, and corrected them all.
But alas, the partition still doesn't mount.
Code:
$ sudo mount /dev/sdb1 -t ext3 -o ro,sb=393216 recov/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
$ dmesg |tail
[ 1528.848770] EXT3-fs warning: feature flags set on rev 0 fs, running e2fsck is recommended
[ 1528.854792] EXT3-fs: fragsize 1024 != blocksize 4096 (unsupported)
A weird thing though -- the fragment size is 4096, according to this:
Code:
$ sudo mkfs.ext3 -n /dev/sdb1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
758016 inodes, 1514118 blocks
75705 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1551892480
47 block groups
32768 blocks per group, 32768 fragments per group
16128 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
I haven't found anything helpful on Google, and I'm starting to freak out. Important data was stored on this partition -- now I guess I'm going to back up sensitive stuff each day! I'd really appreciate any help.
I pulled this hard drive from a working computer. Linux was installed on this hard drive, and it worked perfectly. I wanted to copy the data from this hard drive to a Windows XP computer, indeed. So I put the hard drive as a slave drive in the second computer, and I installed the ext2 driver for Windows.
It ran fine twice (and I hadn't recovered the data yet during these two times), and then the hard drive was shut down improperly -- the molex connector has been pulled while the hard drive was still running. Since then, I guess something went corrupt, and Windows doesn't want to mount it either.
I have had a similar bad experience but not when using winblows to mount my ext3, it was during startup, winblows overwrote the partition type of my ext3 partition to vfat. And to fix it all I had to do was tell grub to change the partition type back to ext3.
Don't know if this applies, but when you are at the grub screen, press c to get a shell, then do root (hd0, and then press tab. It will list all the partitions on that drive, including their parition types. Verify that those are correct, and repeat for the other disks.
Actually, I've screwed around the partition a bit since it fails to mount. I don't have enough space to hold a dump that big, hence I didn't back up the partition.
Before I messed around the partition, though, GRUB was stuck just before displaying the menu.
Since then I tried various pieces of software to recover the data. Now, parted doesn't see the partition as a 'Linux' partition anymore.
I've tried to run e2retrieve, to no avail. It froze after a while, and didn't recover anything.
I've also tried the demo version of a Windows shareware, called Stellar Phoenix Linux 2.5, and it seems to see most of my 'lost' files. But it won't recover anything unless I shell out $80 for the full version.
I gave up on mounting the partition, I think it's too badly damaged. But if there's an ext2 data recovery tool in the Windows world, there must be something decent for Linux, right?
Thanks for any help.
EDIT: parted did see it as an ext3 partition before I tried any data recovery software, and the partition didn't want to mount. Amongst the ton of software I tried out today, there might've been a crappy piece of software that wrote to the partition table.
Cannot determine file system type
Invalid magic value (not an EXTxFS file system (magic))
So it apparently cannot recover the directory tree, or lost files. How can I turn the partition type back to ext2 or 3? Thanks a lot.
EDIT: Ok, I've just tried to feed Autopsy with a partial backup of the partition. (It only contains the four first gigabytes) And I got:
Function not supported (This file system has fragments that are a different size than blocks, which is not currently supported
Hmm. Looks familiar. I got the following error on April 9th when trying to mount it:
[ 1528.854792] EXT3-fs: fragsize 1024 != blocksize 4096 (unsupported)
Don't know if this applies, but when you are at the grub screen, press c to get a shell, then do root (hd0, and then press tab. It will list all the partitions on that drive, including their parition types. Verify that those are correct, and repeat for the other disks.
If not correct do a parttype your_partition type
Where type is hex code for magic number which should be 0x83 for ext2 and ext3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.