Q: Replacing crashed hard drive

Q: Replacing crashed hard drive

Post by Charles Rap » Sun, 29 Dec 1996 04:00:00



I had a hard drive crash recently and was able to get
a replacement since it was under warranty. I believe
I need to partition the drive but am running into
problems.

Hard Drive: WDC AC31000H (Western Digital Caviar)
Connection: Primary IDE slave
Device: /dev/hdb1
Error:
[/sbin/fsck.ext2] fsck.ext2 -a /dev/hdb1
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?

Upon seeing this error, I tried to run "fdisk /dev/hdb1" but
that results in the error "Unable to read /dev/hdb1".
I ran "mount" and saw that /dev/hdb1 was already mounted on
/home/development as read/write. So I attempted to
"umount /home/development" but this failed because the filesystem
was mounted read only! I have the full set of docs under /usr/doc/HOW-TO
but all the how-to's are gzipped and I can't gunzip them because
the file system is read only.

What I am looking for is some steps I can take to get this new
hard drive up and mounted properly. I have a back up tape just waiting
to be reloaded.

--

1 Hastings Lane         /
Lincolnshire, IL  60069 /

 
 
 

Q: Replacing crashed hard drive

Post by Charles Rap » Mon, 30 Dec 1996 04:00:00


I had a hard drive crash recently and was able to get
a replacement since it was under warranty. I believe
I need to partition the drive but am running into
problems.

Hard Drive: WDC AC31000H (Western Digital Caviar)
Connection: Primary IDE slave
Device: /dev/hdb1
Error:
[/sbin/fsck.ext2] fsck.ext2 -a /dev/hdb1
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?

Upon seeing this error, I tried to run "fdisk /dev/hdb1" but
that results in the error "Unable to read /dev/hdb1".
I ran "mount" and saw that /dev/hdb1 was already mounted on
/home/development as read/write. So I attempted to
"umount /home/development" but this failed because the filesystem
was mounted read only! I have the full set of docs under /usr/doc/HOW-TO
but all the how-to's are gzipped and I can't gunzip them because
the file system is read only.

What I am looking for is some steps I can take to get this new
hard drive up and mounted properly. I have a back up tape just waiting
to be reloaded.

--

1 Hastings Lane         /
Lincolnshire, IL  60069 /

 
 
 

Q: Replacing crashed hard drive

Post by Jon Sundquis » Thu, 09 Jan 1997 04:00:00



> I had a hard drive crash recently and was able to get
> a replacement since it was under warranty. I believe
> I need to partition the drive but am running into
> problems.

> Hard Drive: WDC AC31000H (Western Digital Caviar)
> Connection: Primary IDE slave
> Device: /dev/hdb1
> Error:
> [/sbin/fsck.ext2] fsck.ext2 -a /dev/hdb1
> 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?

> Upon seeing this error, I tried to run "fdisk /dev/hdb1" but

You should just run fdisk /dev/hdb.  I've made this mistake before.
You'll get errors trying to fdisk a partition rather than a disk!

Quote:> that results in the error "Unable to read /dev/hdb1".
> I ran "mount" and saw that /dev/hdb1 was already mounted on
> /home/development as read/write. So I attempted to
> "umount /home/development" but this failed because the filesystem
> was mounted read only! I have the full set of docs under /usr/doc/HOW-TO
> but all the how-to's are gzipped and I can't gunzip them because
> the file system is read only.

> What I am looking for is some steps I can take to get this new
> hard drive up and mounted properly. I have a back up tape just waiting
> to be reloaded.

I had a similar problem, but don't know if it was the same.  Basically,
this is what happened.  I got a new machine, and was transfering my
linux system the literal way: by yanking the disk out of the old
machine, and intalling it in the new one.  It also was a 1-gig WDC.  I
put it in the new machine as /dev/hdb and got similar error messages.  I
wish I wrote them down, but I can't remember it quite right.  Both
during boot up (note, I had the jumpers set up right, and the correctly
rdev-ed boot floppy) and during trying fdisk from the Slackware
boot/root floppies, I got a some reading error message repeatly (about a
dozen times or so) before it gave up trying to read from the disk.  Just
for fun, I tried the DOS fdisk twice.  Once it didn't recognize it at
all, and the second time it sort of recognized it (i.e. at least there
was menu option to change to another drive) but once I changed, it could
read nothing about the disk.  Great, I thought, I trashed the disk while
moving it (it was a tight fit trying to slide it into the 3.5" drive
bay, I had to really push on it to get it in).  So I put it back in the
old machine, and it worked great (as /dev/hdb for that matter).  As a
last resort, I installed in on the new machine as /dev/hdd on ide1 (the
CD-ROM was on /dev/hdc).  And lo and behold, it worked great.  I have no
idea why this solved my problem, but it did, and I haven't messed with
it since!

Either it is something peculiar to the motherboad/bios/ide controller,
or else maybe there was something wrong in the ribbon connector.  What I
thought was interseting was that during booting via floppy, it
recognized the disk (i.e. I got a line to the effect of "hard disk 1,
WDCAC31000H 1024 KB blah blah...") during its semi-plug-and-play routine
at the beginning of the boot sequence, and it didn't panic until it came
time to reading the partitions.  BTW, the machine is a Gatewaty G6-180
(180 PP) with 32 MB RAM, with a 2.5 WDC on /dev/hda and a Toshiba CD-ROM
on /dev/hdc.  Of course, Gateway couldn't be bothered to provide any
information about the motherboard, except how to install more RAM, etc.

So:
1) Unless your problem is something other than a /dev/hdb vs. /dev/hdb1
type thing (as it was when you ran fdisk), try installing it on /dev/hdd
instead.
2) Anybody know why I might have had these problems?

Jon Sundquist

 
 
 

1. Replaced scsi hard drive can no longer find scsi tape drive

My Linux system had a hard disk crash just recently and I had to
replace the hard drive.  I did so and installed a "brand-new" copy of
RH 7.2 on it.  Previously it was running RH 6.2, but since I needed to
catch up a bit, it seemed like now was as good a time as any.....
The system is now up and running.

Now, I would like to restore my backup tapes on to it.  The system has
a HP SCSI DDS-3 tape drive on it, which I have used with tar to keep
backups.

The problem is Linux is no longer "seeing" my tape drive.

So, I look for the device file, and it looks "ok"

And I look to see if the device is known:
Ooops, no tape drive, just a disk.  

Am I missing support in the kernel:
...
Well, the kernel seems to know about scsi tapes.

I also checked the physical connections to the drive and they seem "ok".

I'm not certain what to check next.

Suggestions would be appreciated.

Thanks,
-Chris

*****************************************************************************

Compiler Resources, Inc.       Web Site   :  http://world.std.com/~compres  
3 Proctor Street               voice      :  (508) 435-5016
Hopkinton, MA  01748  USA      fax        :  (508) 435-4847  (24 hours)
------------------------------------------------------------------------------

2. SZ/RZ:Wanted - binaries for SCO 3.2 ver 4.0

3. Help in replacing 2.5 GB hard drive

4. How do I determine if file is binary or ascii?

5. Replacing an IDE hard drive with a SCSI (Solaris 8 OS)

6. bgSEC distributes bastion-firewall under the GPL license

7. Replacing hard drive

8. Meta's e-mail address or phone please ?

9. New Hard Drive to replace bad one

10. Replacing Hard Drive

11. Replacing the hard drive access indicator light on the front panel

12. replace Ultra5 hard drive?

13. Replacing Hard Drives