LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-03-2003, 10:12 AM   #1
mystia
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
[ext3] Input/Output error


Hello everybody !

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


Is there someone who can help me ?

Thank you
 
Old 09-04-2003, 10:30 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
from man e2fsck:
Quote:
-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.
 
Old 09-05-2003, 02:27 AM   #3
mystia
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
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 ?
 
Old 09-05-2003, 02:47 AM   #4
mystia
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I found the command for ext3 filesystem

$ fsck -t ext3 <device>

but I get the same error message ...
 
Old 09-05-2003, 08:52 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
not /mnt/hda7. This is the mount point which is a directory.
try with
/dev/hda7
instead.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
Input/Output error new@linux Linux - Newbie 1 01-21-2005 07:59 AM
input/output error c12ayon Linux - Newbie 2 12-27-2003 07:04 AM
Input/Output error arctuniol Linux - Software 2 10-06-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration