Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linux and bad SCSI HD: can I force mount a partition?

335 views
Skip to first unread message

RS

unread,
Aug 7, 2003, 11:30:45 PM8/7/03
to
Hi, there,

I have this SCSI HD which developed a problem. It seems that
sector 0 of the HD turned bad.
When my Redhat Linux 7.3 boot up, I got this message:

--
sym53c896-0-<4,*>: FAST-40 WIDE SCSI 80.0 MB/s (25.0 ns, offset 31)
SCSI device sdc: 71776260 512-byte hdwr sectors (36749 MB)
sdc:SCSI disk error : host 0 channel 0 id 4 lun 0 return code = 2
I/O error: dev 08:20, sector 0
--

It cannot mount /dev/sdc5. But when I do '/sbin/fdisk -l',
I see the partition there:

--
Disk /dev/sdc: 255 heads, 63 sectors, 4467 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 2 4467 35873145 f Win95 Ext'd (LBA)
/dev/sdc5 2 4467 35873113+ 83 Linux
--

I verified the disk through the SCSI bios. It also reported sector 0
is bad. I tried to reallocate it but failed.


Is there a way to force Linux to mount the partition?

Thanks in advance,
Roger
email: rs...@bigmailbox.net

Wolfgang Fischer

unread,
Aug 8, 2003, 4:25:42 AM8/8/03
to
Hello,
Copy the whole hd to another disk or an ftp server. This makes sure that
another disk failure won't destroy any more data. If you know the exact
start/end of the partition, you can mount it using something like this:
losetup -o start_position_in_bytes /dev/loopX image
mount /dev/loopX /mnt

regards
Wolfgang

0 new messages