Miscellaneous questions re: Microport V/AT 2.4

Derek E. Terveer det at hawkmoon.MN.ORG
Thu Nov 24 02:41:19 AEST 1988


In article <152 at tree.UUCP>, stever at tree.UUCP (Steve Rudek) writes:
> (6) The 2.4 documentation says that divvy contains two "undocumented" switches:
> "-u and -d" and, sure enough, the documentation then proceeds to *leave* them
> basically undocumented.  It's a joke, right?  I'd like to take some space from
> 0s0 (root) and give it to 0s2 (user); will divvy allow me to do that *without*
> requiring a reinstallation?

Yes, you should be able to if there are no other partitions in between.  For
example, on my system (hawkmoon), a mkpart -tp on drive 0 reveals:

# mkpart -tp disk0
partition 0:	DISK		permissions:	VALID UNMOUNTABLE 
	starting sector:	0 (0x0)		length:	139264 (0x22000)
partition 1:	ROOT		permissions:	VALID 
	starting sector:	153 (0x99)		length:	23103 (0x5a3f)
partition 2:	SWAP		permissions:	VALID UNMOUNTABLE 
	starting sector:	23256 (0x5ad8)		length:	19040 (0x4a60)
partition 3:	USER		permissions:	VALID 
	starting sector:	42296 (0xa538)		length:	61200 (0xef10)
partition 4:	USER		permissions:	VALID 
	starting sector:	103496 (0x19448)		length:	17680 (0x4510)
partition 5:	USER		permissions:	VALID 
	starting sector:	121176 (0x1d958)		length:	8432 (0x20f0)
partition 6:	BOOT		permissions:	VALID UNMOUNTABLE 
	starting sector:	0 (0x0)		length:	34 (0x22)
partition 7:	ALTERNATES	permissions:	VALID UNMOUNTABLE 
	starting sector:	34 (0x22)		length:	62 (0x3e)
partition 8:	USER		permissions:	VALID 
	starting sector:	129608 (0x1fa48)		length:	9656 (0x25b8)
# df
/         (/dev/dsk/0s1    ):     6040 blocks     1909 i-nodes
/usr      (/dev/dsk/0s3    ):    12266 blocks     5150 i-nodes
/usr/users (/dev/dsk/0s4    ):      510 blocks     1438 i-nodes
/usr/spool/uucp (/dev/dsk/0s5    ):     4580 blocks     1346 i-nodes
/usr/ubin (/dev/dsk/0s8    ):     3544 blocks       61 i-nodes
/usr/spool/news (/dev/dsk/1s3    ):     8214 blocks     6944 i-nodes

Notice that 0s2 sits in between 0s1 and 0s3 and is assigned to swap.  If, in
your case, 0s0 and 0s2 are contiguous, i.e., the last block of 0s0 is next to
the first block of 0s2 you *should* be able to back up both partitions and then
change the sizes of both, taking from 0s0 and giving to 0s2, and restore to
those partitions from the backups just made.
Make sure that you use cpout or tar or cpio to do this, 'cause otherwise if you
use volcopy, the fs will be restored the same way you took it off!

Note however, that you will have to restore the root partition (i'm assuming
that 0s0 on your system is root) from your stand-alone boot floppy, since you
can't restore the root file system when running from it!

If you have swap in between the two partitions, you will have to adjust all
three somehow.  I.e., take from 0s0, give to 0s1, take from 0s1 and, in turn,
give to 0s2.  You should be able to adjust the swap space with the swap(1m)
command, if you have it.  Otherwise i'm not terribly sure how to do that except
with the mkpart(1m) command and fiddling with the def for the SWAP partition.

Of course, if you have resize(1m), just use that command to dynamically resize
your partitions.... (:-) (although that is generally not available on PCs...
sigh)

Hope this helps....

derek
-- 
Derek Terveer		det at hawkmoon.MN.ORG
			w(612)681-6986	h(612)688-0667

"A proper king is crowned" -- Thomas B. Costain



More information about the Comp.unix.microport mailing list