| wikiC/2.06 Main page Alphabetic index Recent Edits |
irix/clone system disk |
login 38.107.179.241 |
su
fx -x fx: "device-name" = (dksc) <enter> fx: ctlr# = (0) <enter> fx: drive# = (1) 3 fx: lun# = (0) <enter> fx> exercise fx/exercise> butterfly modifier = (rd-only) wr-cmp starting block# = (0) <enter> nblocks = (143374744) <enter> nscans = (1) <enter> about to destroy data on disk dksc(0,3,0)! ok? yes .. .. label info has changed for disk dksc(0,3,0). write out changes? yes exit
fx -x fx: "device-name" = (dksc) fx: ctlr# = (0) fx: drive# = (1) 3 fx: lun# = (0) auto about to destroy data on disk dksc(0,3,0)! ok? yes (Several tests... may take a long long time, you can abort them.) exitIt is perhaps easier to do this via the Disk Manager desktop-interface: just initialise the disk. This only takes a few seconds and also puts a SGI label on the disk.
prtvtoc
prtvtoc /dev/rdsk/dks0d3vh
fx "dksc(0,3)" repartition rootdrive type of data partition = (xfs) .. exitThen compare the prtvtoc outputs again.
dvhtool /dev/rdsk/dks0d1vh (CAREFUL!) vd (volume directory) l (list) g sash /stand/sash_Octane g ide /stand/ide_Octane g IP30prom /stand/IP30prom_Octane quit
dvhtool /dev/rdsk/dks0d3vh (SCSI ID=3) vd (volume directory) l (list) a /stand/sash_Octane sash (add to volume header) a /stand/ide_Octane ide a /stand/IP30prom_Octane IP30prom l quit write quit
mkfs /dev/dsk/dks0d3s0
single mkdir /clone mount /dev/dsk/dks0d3s0 /clone cd /clone
xfsdump -l 0 - / | xfsrestore - .Notice the 0, it is a NULL character, not an O!
cd .. umount /clone rmdir /clone shutdown