Re: Hard Disk failure

2004-10-08 Thread Benjamin P. Keating
Hey Dean, Everything is a file in the UNIX world, so copying over file for file is no problem. be sure that you preserve permissions (aka 'archive mode') preseriving ownership and permissions is vital. '``cp'' should do everything you need in this case. Are you sure there are bad sectors? Can y

Re: Hard Disk failure

2004-10-09 Thread Mike Woods
Dean Hollister wrote: Yep, the kernel reports it cannot read a couple sectors at bootup. Is it just a case of fdisk'ing/label'ing the new drive with a standard MBR, setting up the filesystems and copying to them. Then the new drive should just boot normally? Pretty much, i've done it a few times

Re: Hard Disk failure

2004-10-09 Thread Lowell Gilbert
Mike Woods <[EMAIL PROTECTED]> writes: > Dean Hollister wrote: > > > Yep, the kernel reports it cannot read a couple sectors at bootup. > > > > Is it just a case of fdisk'ing/label'ing the new drive with a > > standard MBR, setting up the filesystems and copying to them. Then > > the new drive sh

Re: Hard Disk failure

2004-10-09 Thread Danny MacMillan
On Fri, Oct 08, 2004 at 04:07:27PM -0600, Dean Hollister wrote: > > Dear All, > > A quick question, and I've searched the FAQ/Handbook to no avail... > > One of the machines I maintain has developed bad sectors on it's /usr > filesystem. I can mount the filesystem R/O, so is it possible to inst

hard disk failure - now what?

2009-08-24 Thread Kelly Martin
I just experienced a hard drive failure on one of my FreeBSD 7.2 production servers with no backup! I am so mad at myself for not backing up!! Now it's a salvage operation. Here are the type of errors I was getting on the console, over-and-over: ad4: TIMEOUT - WRITE_DMA48 retrying (0 retries left)

Re: hard disk failure - now what?

2009-08-24 Thread Tim Judd
On 8/24/09, Kelly Martin wrote: > I just experienced a hard drive failure on one of my FreeBSD 7.2 > production servers with no backup! I am so mad at myself for not > backing up!! Now it's a salvage operation. Here are the type of errors > I was getting on the console, over-and-over: > > ad4: TIM

Re: hard disk failure - now what?

2009-08-24 Thread Lowell Gilbert
Kelly Martin writes: > I just experienced a hard drive failure on one of my FreeBSD 7.2 > production servers with no backup! I am so mad at myself for not > backing up!! Now it's a salvage operation. Here are the type of errors > I was getting on the console, over-and-over: > > ad4: TIMEOUT - WRI

Re: hard disk failure - now what?

2009-08-24 Thread Polytropon
On Mon, 24 Aug 2009 12:29:19 -0600, Kelly Martin wrote: > My question: what kind of checks and/or repair tools should I run on > the damaged drive after it's mounted? Or should I mount it as > read-only and start backing it up? Thou shalt not manipluate thy file systems while they are mounted. :-

Re: hard disk failure - now what?

2009-08-24 Thread Polytropon
On Mon, 24 Aug 2009 14:13:22 -0600, Tim Judd wrote: > If I were you, get a copy of spinrite (from grc.com) and always keep > it handy. It can be risky on a drive already failing. Here's what > I'd do > > Buy spinrite, no matter what. Is it really such a good tool? From my own problems, I r

Re: hard disk failure - now what?

2009-08-24 Thread Tim Judd
On 8/24/09, Polytropon wrote: > On Mon, 24 Aug 2009 14:13:22 -0600, Tim Judd wrote: >> If I were you, get a copy of spinrite (from grc.com) and always keep >> it handy. It can be risky on a drive already failing. Here's what >> I'd do >> >> Buy spinrite, no matter what. > > Is it really suc

Re: hard disk failure - now what?

2009-08-24 Thread Polytropon
On Mon, 24 Aug 2009 14:51:41 -0600, Tim Judd wrote: > It's OS/FS independent. it works on the bits stored on the magnetic > platters, NOT on a filesystem. Ah, I see. So it's primarily intended for diagnosing and recovering from physically defective disks. Good to know, because there are times wh

Re: hard disk failure - now what?

2009-08-24 Thread Tim Judd
On 8/24/09, Polytropon wrote: > On Mon, 24 Aug 2009 14:51:41 -0600, Tim Judd wrote: >> It's OS/FS independent. it works on the bits stored on the magnetic >> platters, NOT on a filesystem. > > Ah, I see. So it's primarily intended for diagnosing and recovering > from physically defective disks.

Re: hard disk failure - now what?

2009-08-24 Thread Polytropon
On Mon, 24 Aug 2009 15:32:05 -0600, Tim Judd wrote: > Not just diagnostics and recovery, it's for preventive maintenance, > and healthy operations too. Most people who use it are in a > diagnostics and recovery, but if you always use it as preventive > maintenance, you'll never need to use it for

Re: hard disk failure - now what?

2009-08-24 Thread Roland Smith
On Mon, Aug 24, 2009 at 12:29:19PM -0600, Kelly Martin wrote: > I just experienced a hard drive failure on one of my FreeBSD 7.2 > production servers with no backup! I am so mad at myself for not > backing up!! Welcome to the club. :-) > Now it's a salvage operation. Here are the type of errors >

Re: hard disk failure - now what?

2009-08-25 Thread perryh
Lowell Gilbert wrote: > Kelly Martin writes: > > I just experienced a hard drive failure on one of my > > FreeBSD 7.2 production servers with no backup! ... > First, try copying the entire disk, *without* mounting it. Yep. > Use dd(1) to get a copy of the whole disk. I believe that > "conv=noe

Re: hard disk failure - now what?

2009-08-25 Thread Jerry McAllister
On Mon, Aug 24, 2009 at 10:26:11PM +0200, Polytropon wrote: > On Mon, 24 Aug 2009 12:29:19 -0600, Kelly Martin > wrote: > > My question: what kind of checks and/or repair tools should I run on > > the damaged drive after it's mounted? Or should I mount it as > > read-only and start backing it up

Re: hard disk failure - now what?

2009-08-25 Thread Lowell Gilbert
per...@pluto.rain.com writes: > Lowell Gilbert wrote: >> Kelly Martin writes: >> > I just experienced a hard drive failure on one of my >> > FreeBSD 7.2 production servers with no backup! > ... >> First, try copying the entire disk, *without* mounting it. > > Yep. > >> Use dd(1) to get a copy of

Re: hard disk failure - now what?

2009-08-25 Thread Polytropon
On Tue, 25 Aug 2009 11:04:38 -0400, Jerry McAllister wrote: > dd will barf on bad bits too. > You can tinker to make it skip over the bad block, but it > won't read it. As it has been suggested, there are interesting tools in the ports collection. I'll post my "famous list" again. Among them,

Re: hard disk failure - now what?

2009-08-25 Thread Kelly Martin
First, thanks to everyone for the really great replies. Many suggestions were quite helpful and have kept me on track. I'll quote a couple of people and then add some comments below. On Mon, Aug 24, 2009 at 4:32 PM, Roland Smith wrote: > It _could_ just be a bad or improperly connected SATA cable.

Re: hard disk failure - now what?

2009-08-26 Thread cpghost
On Mon, Aug 24, 2009 at 02:51:41PM -0600, Tim Judd wrote: > >> Buy spinrite, no matter what. > > It's OS/FS independent. it works on the bits stored on the magnetic > platters, NOT on a filesystem. TiVo, Linux, BSD and Mac OSX drives > are treated the same. Bits on a magnetic platter. It's rec

Re: hard disk failure - now what?

2009-08-26 Thread Jerry
On Wed, 26 Aug 2009 18:10:38 +0200 cpghost wrote: > On Mon, Aug 24, 2009 at 02:51:41PM -0600, Tim Judd wrote: > > >> Buy spinrite, no matter what. > > > > It's OS/FS independent. it works on the bits stored on the magnetic > > platters, NOT on a filesystem. TiVo, Linux, BSD and Mac OSX drives

Re: hard disk failure - now what?

2009-08-26 Thread Roland Smith
On Tue, Aug 25, 2009 at 11:46:50PM -0600, Kelly Martin wrote: > plugging the drive in and accessing it, I heard those tell-tale signs > of hard drive failure: clicks and pops and other unusual noises, so I > know that it has some damage. I hate those sounds, having heard them > on failing drives to

Re: hard disk failure - now what?

2009-08-26 Thread George Davidovich
On Wed, Aug 26, 2009 at 08:07:41PM +0200, Roland Smith wrote: > On Tue, Aug 25, 2009 at 11:46:50PM -0600, Kelly Martin wrote: > > plugging the drive in and accessing it, I heard those tell-tale > > signs of hard drive failure: clicks and pops and other unusual > > noises, so I know that it has some

Re: hard disk failure - now what?

2009-08-26 Thread Roland Smith
On Wed, Aug 26, 2009 at 12:13:48PM -0700, George Davidovich wrote: > > If the drive is that bad, it is doubtfull if dd or ddrescue will be > > able to get a good copy. > > Probably true. I hesitate to suggest this, but sticking the drive in a > freezer (preferrably in a ziplock bag) for a few ho

Re: hard disk failure - now what?

2009-08-26 Thread Jerry McAllister
On Wed, Aug 26, 2009 at 10:23:47PM +0200, Roland Smith wrote: > On Wed, Aug 26, 2009 at 12:13:48PM -0700, George Davidovich wrote: > > > > If the drive is that bad, it is doubtfull if dd or ddrescue will be > > > able to get a good copy. > > > > Probably true. I hesitate to suggest this, but st

Re: hard disk failure - now what?

2009-08-26 Thread Polytropon
On Wed, 26 Aug 2009 12:13:48 -0700, George Davidovich wrote: > Probably true. I hesitate to suggest this, but sticking the drive in a > freezer (preferrably in a ziplock bag) for a few hours or overnight > might help. Stories from people claiming "I swear it works!" go back > years. I heared

Re: hard disk failure - now what?

2009-08-26 Thread George Davidovich
On Wed, Aug 26, 2009 at 04:45:40PM -0400, Jerry McAllister wrote: > On Wed, Aug 26, 2009 at 10:23:47PM +0200, Roland Smith wrote: > > > On Wed, Aug 26, 2009 at 12:13:48PM -0700, George Davidovich wrote: I > > remember this special non-condictive 3M fluid that can be used to > > cool electronics. A

Re: hard disk failure - now what?

2009-08-26 Thread Scott Schappell
On Aug 26, 2009, at 14:14:51, George Davidovich wrote: I believe you. I saw a similar scene in a movie, so I already knew it had to be true. Bonus points for anyone that can add to this thread's collection of off-topic but semi-interesting trivia and name the movie. What is "The Abyss" for

RE: hard disk failure - now what?

2009-08-26 Thread Gary Gatten
- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Polytropon Sent: Wednesday, August 26, 2009 4:13 PM To: George Davidovich Cc: freebsd-questions@freebsd.org Subject: Re: hard disk failure - now what? On Wed, 26 Aug 2009 12:13:48 -0700, George

Re: hard disk failure - now what?

2009-08-26 Thread Jerry McAllister
On Wed, Aug 26, 2009 at 02:14:51PM -0700, George Davidovich wrote: > > > > A number of supercomputers from Cray and Control Data and maybe some > > other places used this sort of thing on some experimental systems. I > > don't know if any ever were put in to commercial production. They > > subm

Re: hard disk failure - now what?

2009-08-26 Thread Polytropon
On Wed, 26 Aug 2009 16:30:59 -0500, "Gary Gatten" wrote: > I had a laptop years ago that started to die, but seemed to work OK when > first removed from a cold car. After an hour or so it would die. I > eventually put it in the freezer long enough to get what I needed off > the drive, so in some

RE: hard disk failure - now what?

2009-08-26 Thread Gary Gatten
reebsd-questions@freebsd.org Subject: Re: hard disk failure - now what? On Wed, 26 Aug 2009 16:30:59 -0500, "Gary Gatten" wrote: > I had a laptop years ago that started to die, but seemed to work OK when > first removed from a cold car. After an hour or so it would die. I >

Re: hard disk failure - now what?

2009-08-26 Thread Polytropon
On Wed, 26 Aug 2009 20:07:41 +0200, Roland Smith wrote: > If the drive is that bad, it is doubtfull if dd or ddrescue will be able to > get a good copy. There's an additional problem: Let's assume dd creates an 1:1 copy of the file system in its actual state - nobody guarantees that this file sys

Re: hard disk failure - now what?

2009-08-26 Thread Al Plant
! -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Polytropon Sent: Wednesday, August 26, 2009 4:13 PM To: George Davidovich Cc: freebsd-questions@freebsd.org Subject: Re: hard disk failure - now what? On Wed, 26 Aug 2009 12

Re: hard disk failure - now what?

2009-08-26 Thread Roland Smith
On Thu, Aug 27, 2009 at 01:03:58AM +0200, Polytropon wrote: > On Wed, 26 Aug 2009 20:07:41 +0200, Roland Smith wrote: > > If the drive is that bad, it is doubtfull if dd or ddrescue will be able to > > get a good copy. > > There's an additional problem: Let's assume dd creates an 1:1 copy > of th

Re: hard disk failure - now what?

2009-08-26 Thread Sebastian Seidl
George Davidovich wrote: On Wed, Aug 26, 2009 at 04:45:40PM -0400, Jerry McAllister wrote: On Wed, Aug 26, 2009 at 10:23:47PM +0200, Roland Smith wrote: On Wed, Aug 26, 2009 at 12:13:48PM -0700, George Davidovich wrote: I remember this special non-condictive 3M fluid that can be used t

Re: hard disk failure - now what?

2009-08-26 Thread Mark Stapper
Gary Gatten wrote: > Naw, I don't recall the POST error exactly, but from what I remember it > couldn't find a boot device. Could've been the controller, but from > what I recall I swapped the drive (later) and all was good. I really > don't recall though - I could've put the "bad" drive in a goo