dieing hdd

Mark Hughes mh_lists at digitalspy.co.uk
Fri Nov 23 16:57:38 GMT 2001

> > OK people i got a problem that is bugging me.
> >
> > i have a freebsd 4.3 machine that i use as a router.
> > It has NATD a firewall,
> > samba, apache...all setup nicely. But the harddrive
> > is doing its best to die
> > on me. I am installing a second hdd with the purpose
> > of doing an exact copy
> > of the original drive.
> >
> > What would be the best way to go about this?
> > would dd if=/dev/acd0 of=/dev/acd1 work?

> i had this type of dying hdd problem with a scsi
> drive... so.. what i did was... use the ol' cp(1)
> command.. which did the trick of copying the stuff
> exactly as it was before....
> all you do is.. once you have mounted your other
> drive... with the current one (of course).. do this in
> single user mode... beleive me.. it helps...
> from the root of the drives...
> cp -vR /old /new...
> -R - copy entire directory and subtree...
> -v - Verbose...

You may want to add a "-p" to that to preserve permissions on all the

cp -vRp /old /new

However, I suspect dd is the correct tool to use for the job.


More information about the Ukfreebsd mailing list