I've probably got the syntax wrong, but....
if the drives are the same type, you should be able to
simply put the new drive in place temporarily as your
fourth drive. It would then be unpartitioned, etc., but
it would be /dev/hdd
Boot and do the following
dd if=/dev/hdc of=/dev/hdd
and that should (I believe!) copy hdc to hdd in it's entirety,
right down to how it's partitioned. You then remove drive c,
move d to it's place, boot, and voila! You've copied the drive.
Try man dd first, though, to make sure you get the options right.
HTH!
Bill Ward
-----Original Message-----
From: Darryl Harvey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 23, 2000 8:59 AM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown; @nswcphdn.navy.mil
Subject: Changing Hard disks
I have a failing hard disk that I need to replace, but now I need some help
doing just that without losing anything.
The system (Rh6.0) has three IDE drives set up as;
[darryl@slab darryl]$ sudo fdisk -l
Password:
Disk /dev/hda: 128 heads, 63 sectors, 782 cylinders
Units = cylinders of 8064 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 5 20128+ 83 Linux
/dev/hda2 6 782 3132864 5 Extended
/dev/hda5 6 394 1568416+ 83 Linux
/dev/hda6 395 782 1564384+ 83 Linux
Disk /dev/hdc: 32 heads, 63 sectors, 543 cylinders
Units = cylinders of 2016 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 543 547312+ 83 Linux
Disk /dev/hdd: 14 heads, 40 sectors, 944 cylinders
Units = cylinders of 560 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 878 245820 83 Linux
/dev/hdd2 879 944 18480 82 Linux swap
Mounted as;
[darryl@slab darryl]$ cat /etc/fstab
/dev/hda5 / ext2 defaults 1 1
/dev/hda6 /home ext2 defaults 1 2
/dev/hdc1 /var ext2 defaults 1 2
/dev/hdd1 /tmp ext2 defaults 1 2
/dev/hdd2 swap swap defaults 0 0
The faulty disk (Which is still running and useable) is hdc1 (/var).
I have another Hard disk that I will replace this with, but the question I
have is what process do I do this in?
IE: Copy off /var to somewhere else, remove hdc1, install new hdc1, install
Filesystem . format hdc1, then copy /var to hdc1 and reboot??
I think where I am most falling down, is how do I move /var from hdc1 to /
to accomplish to removal of hdc and the installation of the new drive ready
to format..
How do I do this ?? Easiest and painless way possible would be appreciated.
Thanks in advance
Darryl
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.