From: Nikola Milutinovic <milutinn@EUnet.yu>
Subject: Re: convert root filesystem to AdvFS
Date: 1998/06/23 [thread overview]
Message-ID: <358FFE3E.F8BFE85C@EUnet.yu> (raw)
In-Reply-To: 358EEED4.794B@s054.aone.net.au
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.
next prev parent reply other threads:[~1998-06-23 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-22 4:00 convert root filesystem to AdvFS Tom Goessi
1998-06-23 4:00 ` Mark & Suzanne (gcs might work)
1998-06-23 4:00 ` Nikola Milutinovic [this message]
1998-06-24 4:00 ` Mark & Suzanne (gcs might work)
1998-06-24 4:00 ` Nikola Milutinovic
1998-06-25 4:00 ` Mark & Suzanne (gcs might work)
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox