home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!olivea!news.bbn.com!news.bbn.com!jpeters
- From: jpeters@bbn.com (Jim Peters)
- Newsgroups: comp.sys.sun.admin
- Subject: Moving Sun 3/50 NFS root & swap to local disk
- Message-ID: <JPETERS.92Aug26142622@saavik.bbn.com>
- Date: 26 Aug 92 21:26:22 GMT
- Reply-To: jpeters@bbn.com
- Organization: BBN Communications (SD&S)
- Lines: 58
- NNTP-Posting-Host: saavik.bbn.com
-
- My goal is to have my 3/50 boot from the local disk and have both root and
- swap local. (/usr is done via NFS). The current configuration is set up
- to use an NFS root and a small NFS swap partition and then adds the local
- swap as it mounts things.
-
- The NFS kernel has the config line:
- config vmunix root on type nfs
-
- I have tried:
- config vmunix root on sd0a swap on type spec sd0b
- and
- config vmunix swap generic
-
- The problem that I am trying to get by is having the kernel load fail with
- the message Truncated file, just as it reaches the size of the old NFS
- kernel.
-
- In short here are the changes I have made:
-
- # mount /dev/sd0a /mnt
- # tar xpf <tar file made on server of client's root>
- # cd dev ; MAKEDEV std &
- # sync; sync;
- # cp <newkernel> /mnt/vmunix
- # <Edit /etc/fstab to mount /dev/sd0a as root>
- # cp <server's /boot> /mnt/boot - server is a 3/280.
-
- I only did this because there is no /boot in my NFS root and
- installboot will not proceed without it, it gives No such file or
- directory. (As an aside, I'd like to understand how a local boot is
- different from a NFS one.) Is there some way to create a /boot file?
-
- # cd /usr/mdec
- # installboot /mnt/boot bootsd /dev/rsd0a
- # sync; sync;
- # umount /mnt
- # /etc/halt
- > b -s
- Booting sd0(0,0,0).....
- <id's all the devices>
- ...
- vmunix
- ->> 586016Truncated file
- root on sd0a
- root image:
-
- Note: /etc/bootparams does not exist. The NIS bootparams file has been
- changed to say root=/dev/sd0a swap=/dev/sd0b
-
- I did this after trying to boot with the local disk with the old kernel and
- noticing that it still picked up the NFS root and swap.
-
- I am sure that I have missed some configuration steps or just have a bad
- kernel config to begin with. Any ideas?
-
- Thanks.
-
- -- Jim Peters (jpeters@bbn.com)
-