0 Replies Latest reply: Apr 27, 2010 5:31 AM by 807559 RSS

    Copy the file in a nother disk and bott from there

    807559
      Hi,
      i have a disk with my file all in the same slice:
      Filesystem size used avail capacity Mounted on
      /dev/dsk/c1t0d0s0 63G 49G 13G 79% /
      /proc 0K 0K 0K 0% /proc
      mnttab 0K 0K 0K 0% /etc/mnttab
      fd 0K 0K 0K 0% /dev/fd
      swap 11G 16K 11G 1% /var/run
      swap 512M 344K 512M 1% /tmp

      now i have a second disk and i have an nother partiton:
      Part Tag Flag Cylinders Size Blocks
      0 root wm 824 - 1688 4.20GB (865/0/0) 8802240
      1 swap wu 0 - 823 4.00GB (824/0/0) 8385024
      2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
      3 var wm 1689 - 2925 6.00GB (1237/0/0) 12587712
      4 usr wm 2926 - 4162 6.00GB (1237/0/0) 12587712
      5 unassigned wm 4163 - 14065 48.05GB (9903/0/0) 100772928
      6 unassigned wm 14066 - 14086 104.34MB (21/0/0) 213696
      7 unassigned wu 0 0 (0/0/0) 0

      I mount the slice from the second disk:
      /dev/dsk/c1t1d0s3 6198606 157424 5979196 3% /disk1/var
      /dev/dsk/c1t1d0s5 49625344 34310869 14818222 70% /disk1/opt
      /dev/dsk/c1t1d0s4 6198606 6198606 0 100% /disk1/usr


      and copy with:

      cp -p -r /opt /disk1
      cp -p -r /var /disk1
      cp -p -r /usr /disk1

      Can i do that so?

      an how i can boot from disk2?

      Thanks

      regards,
      mayas

      Edited by: dasdasdadad on 27.04.2010 12:29