I think you have the right idea. I haven't done it before but it seems 
correct. I think all you need to do is just copy the files to say /temp/var 
then change mount /temp/var as /var instead of /dev/hdc1. Then change the 
drives, move the files and change the mountpoint again.

-----Original Message-----
From:   Darryl Harvey [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, February 23, 2000 8:59 AM
To:     [EMAIL PROTECTED]
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.

Reply via email to