From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,df8c538ee464b8e8 X-Google-Attributes: gidfee84,public From: harris@zk3.dec.com (Bob Harris) Subject: Re: disklabel -e two-step? Date: 1997/06/06 Message-ID: #1/1 X-Deja-AN: 246586068 References: <33977B28.2B5134A2@lawrence.no.spam.edu> Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 In article <33977B28.2B5134A2@lawrence.no.spam.edu>, Robert Lowe wrote: >I just have opportunity to use disklabel under 4.0B. Curiously enough, >when changing partitions that were previously in use, one must now edit >the disklabel **twice** -- once to mark the parition as 'unused' and a >second time to change size and/or offset. If you attempt to do this >all in one edit, writing the label fails with the complaint that the >parition is in use. I don't remember this being the case with v3.2. >Can someone else confirm this, or better yet, tell me why the need >for the 'two-step'??? I did a little more research, and someone at work pointed out the Digital UNIX V4.0 AdvFS Admin Guide. Under trouble shooting there is a section called "Recovering from Failure of the Root Domain". It explicitly mentions booting from the CD-ROM. It says to just do the normal stuff MAKEDEV rz1 # or whatever the disk device is MAKEDEV tz1 # or whatever the backup device is disklabel -rw advfs rrz1a # or whatever the boot disk really is mkfdmn -r /dev/rz1a root_domain # or whatever the boot disk really is mkfset root_domain root mount root_domain#root /mnt cd /mnt vrestore -x -D . The manual doesn't say, but someone else said that the CD-ROM boot system knows you will need to create devices and modify some /etc/fdmns stuff so it mounts a memory file system for those functions. Try it and see. What could it hurt. -- Bob Harris "I don't get to tell me what to do, I only get to tell me how to do it." Comments expressed here are my own and _NOT_ those of my employer.