From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d1209a5f60349f3f X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: convert root filesystem to AdvFS Date: 1998/06/23 Message-ID: <358FFE3E.F8BFE85C@EUnet.yu>#1/1 X-Deja-AN: 365417391 Content-Transfer-Encoding: 7bit References: <358E59D6.5FD65666@ife.ee.ethz.ch> <358EEED4.794B@s054.aone.net.au> Content-Type: text/plain; charset=us-ascii Organization: Me organized? Not here! Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Mark & Suzanne (gcs might work) wrote: > > > You need to create the paritions/dev > cd /dev > ./MAKEDEV rz0 > You don't mention which disk you boot from if its not ID0 then you need > to know what it is to > make the correct devices > > assuming from hereon in that it was rz0 and that usr_domain contained > rz0g > mkfdmn -r /dev/rz0a r !!!!!!!!!!!!!!!!!!!! Ahhh. You are forgeting something (I am not, since I had a "privilege" of restoring root file sistem from backup). You must make that disk AdvFS bootable. Tom asked if he could make partition h bootable. Well,... For a partition to be bootable, it must have offset of 0. AFAIK, any partition starting from 0 can be bootable, if you have a proper bootstrap loader (I'm not sure if it looks at the label). But, tradition is tradition, let us make it partition a. Since there are 2 posible FSs for root, there are TWO bootstrap loaders. Each is installed via disklabel command. The problem is, I couldn't make it work with -R option (restore form a file). I had to zero label, install new and then restore the old. So, supposing you have RZ29 disk... # disklabel rz0 > /usr/disklabel.RZ0 # dikslabel -z rz0 # disklabel -wr -t advfs rz0 RZ29 # disklabel -R rz0 /usr/disklabel.RZ0 Of course, this is "open hart surgery" WITHOUT anaestethics. This actually deletes and writes a disklabel on the disk with live file systems, namelly root and usr. You could really mess things up this way. My advice (and the way I did it) is: 1. backup root FS thoroughly, 2 or 3 copies. 2. boot from OS CD-ROM, get to System Maintainance/Root Shell 3. cd /dev ; ./MAKEDEVrz0 4. play with disklabels as above 5. create AdvFS for root 6. mount it 7. restore root from backup 8. ammend root (you need to change /etc/fdmns, /etc/fstab) > Did I say backup first, The wrong command at the wrong moment and kiss > you data good buy! Couldn't agree more. Nix.