SUMMARY: help to copy the root partition

From: Elena Gianolio (gianolio@ptsun00.cern.ch)
Date: Tue May 16 1995 - 04:31:24 CDT


 Hello,
Thanks to who answers, at the end I was able to solve my problem!
Here the summary :

** The problem:
move the root partition from an old IP (id000a) disk
to a new SEAGATE disk (sd9a).

** The solution:
I forgot maybe to specify that the disk should be
plugged and formatted, partitioned, labeled and
you did run newfs on it!
(remark the root partition should be at least big as the space used by
the old one!)

(It is not necessary to reboot the machine in single-user mode)

--> mount the new disk in a directory previously created:
>mount /dev/sd9a /new_root

--> use the dump/restore command to copy the partition
dump 0f - /dev/id000a | (cd /new_root; restore xf -)

--> run installboot
cd /usr/kvm/mdec
installboot -vlt /new_root/boot bootsd /dev/rsd9a

--> stop the machine
>halt

--> check the boot-device you are using now (in case you have
to go back because something is wrong!!)
ok? printenv
(look for boot-device and remember it .. in case you will be able to
set it back just doing 'boot your_disk' or 'setenv boot-device your_disk'
and 'boot' !)

--> you can eventually check if your disk has an alias:
ok? devalias
(mine doesn't )

--> set the new boot device:
ok? setenv boot_device /iommu/sbus/dma/esp/sd@1,0

my disk was on (from dmesg):
dma2 at SBus slot 3 0x81000
esp2 at SBus slot 3 0x80000 pri 5 (sbus level 3)
sd9 at esp2 target 1 lun 0
sd9: <ST32550N cyl 3495 alt 2 hd 11 sec 109>

but in fact was not necessary to specify the right dma & esp
as I did the first time
it was able to recognize by it self!

--> reboot
ok? boot

--> I forgot: of course /new_toot/etc/fstab
(or /new_root/etc/vfstab for Solaris)
should be previously changed (before the reboot) in something like:

#filesystem directory type options freq pass
/dev/id000a /old_root 4.2 rw 1 1
/dev/sd9a / 4.2 rw 1 1

** Thanks to:
Ray Brownrigg <Ray.Brownrigg@isor.vuw.ac.nz>
Chris Bolan <cbolan@mercury.ccca.centcom.mil>
Karl J Mumford <kmumford@esoc.esa.de>
Ross Stocks <Ross.Stocks.INSDRS01@nt.com>
Rich Holland <holland@Synopsys.COM>
John Rosenberg <jcr@bgumby.bwh.harvard.edu>
Sid Shapiro <sid@ingres.com>

Best Regards
elena gianolio

** The original question was:

>From gianolio Thu May 11 09:51:46 1995
Date: Thu, 11 May 95 09:51:44 +0200
From: gianolio (Elena Gianolio)
To: sun-managers@eecs.nwu.edu
Subject: help to copy the root partition
Cc: gianolio, khoda
Content-Length: 1891
Status: RO
X-Lines: 68

Hello,

** The problem:
I have to move the root partition from an old IP (id000a) disk
to a new SEAGATE disk (sd9a).

** The actions:
After I have boot the machine in single-user mode:
>boot -s
df
Filesystem kbytes used avail capacity Mounted on
/dev/id000a 15404 7558 6306 55% /
/dev/sd9g 485648 149175 287909 34% /usr

I mounted the new disk:
mount /dev/sd9a /new_root

I used the dump/restore command to copy the partition as suggested
into the man page:
dump 0f - /dev/id000a | (cd /new_root; restore xf -)

then I run installboot
cd /usr/kvm/mdec
install -vlt /boot bootsd /dev/rsd9a

I generated a new vmunix

changing the line of the GENERATE file into
config vmunix root on sd9a

and I tried to boot on the new disk:
>halt
>boot /iommu/sbus/dma@3/esp@3/sd@1,0 vmunix

But because I get these messages with dmesg

dma2 at SBus slot 3 0x81000
esp2 at SBus slot 3 0x80000 pri 5 (sbus level 3)
sd9 at esp2 target 1 lun 0
sd9: <ST32550N cyl 3495 alt 2 hd 11 sec 109>
 ^
 | this is my new disk (Target 1 )

I also tried to boot with
boot /iommu/sbus/dma2@3/esp2@3/sd1,0
but with no successful

** The question:
Any suggestions?

** The greetings:
Best Regards
elena gianolio
                                     ,,,
                                    (o o)
---------------------------------ooO-(_)-Ooo-------------------------------
Phone : (+41 22 767) 47 51
Fax : (+41 22 767) 87 30
---------------------------------------------------------------------------

CERN | E-mail
ECP div | Elena.Gianolio@cern.ch
Blg. 14-6-12 | gianolio@ptsun00.cern.ch
1211 Geneva 23 | gianolio@cernvm.cern.ch
Switzerland /|\
-----------------------------=====oooooooooo=====--------------------------
 



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:25 CDT