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'm a french newbie and I need your help to recover datas.
I replaced a Mandrake 9.1 by a Debian but I saved my home directory in a hard disk partition.
At first, I made this partition with ext2 filesystem but I converted it in ext3.
I mounted the partition in the home directory of the Debian and I realized that ext3 filesystem wasn't supported.
So I installed Knoppix 3.2 which supports ext3. But all the directories aren't considered like that and I lost access on all data contained in these directories.
When I try to remove a supposed directory, I get this error :
rm : cannot lstat 'Mail' : Input/Output error
and when I try to check the filesystem :
The filesystem size (according to the superblock) is 2002092 blocks
The physical size of the device is 263056 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no
/dev/hda7 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 294916 (Invalid argument) while doing inode scan. Ignore error<y>? no
Error while scanning inodes (145440): Can't read next inode
e2fsck: aborted
/dev/hda7: 5830/1001920 files (0.0% non-contiguous), 194412/2002092 blocks
-b superblock
Instead of using the normal superblock, use an alternative superblock specified by superblock. This option is normally used when the primary superblock has been corrupted. The location of the backup superblock is dependent on the filesystem's blocksize. For filesystems with 1k blocksizes, a backup superblock can be found at block 8193; for filesystems with 2k blocksizes, at block 16384; and for 4k blocksizes, at block 32768.
Additional backup superblocks can be determined by using the mke2fs program using the -n option to print out where the superblocks were created. The -b option to mke2fs, which specifies blocksize of the filesystem must be specified in order for the superblock locations that are printed out to be accurate.
If an alternative superblock is specified and the filesystem is not opened read-only, e2fsck will make sure that the primary superblock is updated appropriately upon completion of the filesystem check.
so you might try with this option. Sorry, I don't know much about this fschecking stuff.
Thank you for your answer but when I do that, here is the result :
$ e2fsck -b 8193 /mnt/hda7
e2fsck 1.34-WIP (21-May-2003)
e2fsck: Is a directory while trying to open /mnt/hda7
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
Is there a command like this for ext3 filesystem ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.