SUMMARY: moving root to another disk

From: liz Zukowski <elynds_at_MIT.EDU>
Date: Thu, 18 Apr 96 09:43:23 EDT

The original question:

>Can any one tell me how to restore root to a different
>disk, What I have done so far is:
>
> Modified this line in the config file:
> config vmunix root on re0 swap on re0
>
> rebuilt Kernel (moved Kernel to re0)
>
> newfs /dev/re0a
> mount /dev/re0a /mnt
> vdump rz24a vrestore to /mnt
> edited /mnt/fstab to mount /dev/re0a /
> also added swap and rebooted re0a
>
>I receive this error:
> panic: vfs_mountroot: cannot mount root
> sync the disks
>
> DUMP: problem w/specified dumpdev 0xa00001, status 19, not used
> DUMP: no primary swap, not ecplicit dumpdev.

Thanks to all who responsed. I had some suggestions to boot
GENvmunix...I was unsuccessfully with that, receiving all kind of
errors. I decided to start from scratch...

        modified the kernel to its original state on root disk (rz24):
               config vmunix swap generic
               rebuild the kernel

               newfs /dev/re0a
                        (I had previous disklabel as SWXCR)
               mount /dev/re0a /mnt
               vdump -0 -f - / | (cd /mnt; vrestore -x -f -)

               modified /mnt/etc/fstab to
                                        /dev/re0a / ufs rw 1 1
                                        /dev/re0b swap1 ufs sw 0 2
               defined /mnt/sbin/swapdefault symlink for /dev/re0b
                       (note, I did not modify /etc/rc.config)

        shutdown and booted from the new disk (re0) without any problems.

I appreciated the feedback from everyone.


thanks,

liz Zukowski
Received on Thu Apr 18 1996 - 16:20:37 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT