On Sun, 2002-11-03 at 09:07, Kieran wrote:
> Hi All,
>
> The machine I am currently sitting on has a hard drive that makes aweful grating
>noises at random intervals (usually I hear once or twice a day, but it's up 24 hours
>so there may be other times). This appears to happen more frequently now that I have
>my squid cache and swap on the same disk.
>
> Anyway, to my question. How can I duplicate the old hard disk (which I know to have
>atleast 2-3 areas which fail to read) onto a new one (free tools preferred)? Is it
>worth attempting or should I just create a new install of Debian on the machine? :-).
>
> Any input on this would be greatly appreciated.
>
> Thx,
> Kieran
Run e2fsck -c on the (unmounted) filesystems. Then put the new drive in
the same box (on the other IDE bus) and partition it. Then for each
partition use dump & restore (or tar with the right options) to copy the
files over.
It's easiest to do all of the above while booted from a rescue
CD/floppy.
Stephen
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug