[SWLUG] Can't access my HDD
Nic Niedermowwe
niedermo at informatik.tu-muenchen.de
Fri Feb 6 17:52:16 UTC 2004
Hi,
I can't access/mount my hard disk /dev/hdd1 anymore. Unfortunately I don't
know if the filesystem is ext2, ext3 or reiserfs.
So I thought it might be better to copy the whole partition to another
harddisk /dev/hdb1 and try to fix the problem there. But fsck gives
different error messages. Any suggestions? Nic
[root at localhost root]# fdisk /dev/hdd
The number of cylinders for this disk is set to 14596.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdd: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 14596 117242338+ 83 Linux
[root at localhost root]# fdisk /dev/hdb
The number of cylinders for this disk is set to 19929.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 14596 117242338+ 83 Linux
[root at localhost root]# dd if=/dev/hdd1 of=/dev/hdb1 conv=noerror
[root at localhost root]# reiserfsck --check /dev/hdd1
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.6.4
*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list at namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsk **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will read-only check consistency of the filesystem on /dev/hdd1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
reiserfs_open: neither new nor old reiserfs format found on /dev/hdd1
reiserfsck: Cannot not open filesystem on "/dev/hdd1"
Aborted
[root at localhost root]# reiserfsck --check /dev/hdb1
<-------------reiserfsck, 2002------------->
reiserfsprogs 3.6.4
*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list at namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsk **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will read-only check consistency of the filesystem on /dev/hdb1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
The problem has occurred looks like a hardware problem.
Check your hard drive for badblocks.
bread: Cannot read the block (2).
Aborted
[root at localhost root]# fsck.ext2 /dev/hdd1
e2fsck 1.32 (09-Nov-2002)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hdd1
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>
[root at localhost root]# fsck.ext2 /dev/hdb1
e2fsck 1.32 (09-Nov-2002)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/hdb1
Could this be a zero-length partition?
More information about the Swlug
mailing list