[H-GEN] How do I swap disks in RedHat 5.2?

Frank Brand fbrand at uq.net.au
Sat Apr 10 02:40:18 EDT 1999


(Note reply-to: being general at humbug.org.au vs Frank Brand <fbrand at uq.net.au>)

Peter J Arnold wrote:

> I want to swap the disk sdb for another smaller scsi disk and transfer all the current
> installation over onto the new disk.
>
> I currnetly have both old and new disks installed but the new one is not fdisked or
> formated.
>
> Can I boot off the current installation, fdisk, format and transfer all the data to
> the new disk, swap SCSI id's (between old and new disks) and reboot?
>
> Any suggestions/help/comments/pointers to relevant manuals etc would be greatly
> appreciated.
>

Yes you can do that, look at the dd command to copy over the whole disk.

If you want to change the SCSI ID's (thinking about it this might be the easiest way) you
can do that or else you could edit the /etc/fstab file to change sdb to the new drive eg
sdb -> sda if the new disk is sda. You will need to edit the lilo.conf file and  re-run
Lilo so a boot disk would be handy (I think the command in RH 5.2 is /sbin/mkbootdisk
There is a man entry about this.) You might want to reconstruct the master boot record of
the original disk sometime too or if you ever try to boot off it in the future it will
try to boot up a non-existent linux.

--
Frank Brand
E-mail: fbrand at uq.net.au
Home Page: http://www.uq.net.au/~zzfbrand




--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list