Disk to disk copy.

Norman Kohn nvk at ddsw1.MCS.COM
Sat Jun 30 10:04:06 AEST 1990


In article <1990Jun23.111358.11625 at virtech.uucp> cpcahil at virtech.UUCP (Conor P. Cahill) writes:
>In article <188 at hacker.UUCP> steve at hacker.UUCP (Stephen M. Youndt) writes:
>>Add a SCSI controller (AHA1542B) and drive (MiniScribe) to a system that
>>is presently running off of an MFM drive (ST4096) and controller.  I'd
>>like to copy all data on the MFM drive to partitions I will create on the
>>SCSI drive then turn the SCSI drive into a boot disk, reformatting the
>>ST4096 for other usage.
>There are several ways to do this.  I would recommend the following mechanism.
>...
>
>1. shut your system down and add the new disk as disk 0 (moving the old disk
>   to the disk 1 position.
>2. Use the boot/install disk to set up the new disk.

It'll be a bit more complicated... as I recall you won't be able
to boot off the SCSI partition with the MFM drives enabled.

I'd suggest:

1) Agree with the backup recommendation as noted above, though the
procedures involved should pose RELATIVELY little risk

2) Disable the MFM drives and set up the SCSI using the boot disk
etc... Go as far as loading the core system, as recommended

3) Shut down and re-enable the MFM drives; reboot.
If your  OS does not have SCSI enabled in the driver, you'll need
to run kconfig to make a kernel that can read the SCSI drive.

3) You'll need device names to access the SCSI drive: these
may be installed, or you may need to make them with mknod.
Look at the /usr/admin/menu/diskmgmt/harddisk/addharddisk
shell script (in ISC, at least): you may want to run at least parts
of this.  Partitions will be made, don't do it again; but
check the device names

4) try manually mounting the partitions on the SCSI drive

5) copy things over with find

6) now try shutting down, rebooting with MFM disabled: see if the
SCSI is there

7) be very careful of the fstab and partitions files; these are 
readily clobbered if you get into install scripts.  Each should
be backed up with a copy (of different name) in its respective 
/etc directory.  Print a copy out for safe measure.
You'll need to manually edit a composite /etc/partitions file
for your new SCSI-based system, listing the MFM as, for example,
disk1.  Once you have all of your stuff safely out of the MFM
things area easier, as you can add it back in with the 
addharddisk script... but, as I recall, you won't be able to add
MFM drives if you're booting off SCSI.  You might want to boot
off a small MFM partition and put most of unix onto SCSI
 

-- 
Norman Kohn   		| ...ddsw1!nvk
Chicago, Il.		| days/ans svc: (312) 650-6840
			| eves: (312) 373-0564



More information about the Comp.unix.i386 mailing list