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!
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.
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!
/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
/dev/hda7: 5830/1001920 files (0.0% non-contiguous), 194412/2002092 blocks
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 ?