I am running DU 4.0 on a DEC 3000/800S. I recently doubled the
memory to 256MB and wanted to increase swap. I thought that I
would use the opportunity to increase the root partition from
64MB to 128MB. The disk has partitions a (/), b (swap) and
g (AdvFS domain). I used rmvol to get rid of g, booted from
the CD-ROM, marked a and b unused with disklabel -s, changed
the partition sizes and offsets, put '4.2BSD' and 'swap' back on
the disklabel and rebooted. Everything is fine, except that
df -k / shows root as still only 64MB. Is there anything I
can do to fix this (e.g. boot from CD, newfs /dev/rrz3a rz28b)
which won't destroy the information on the root partition?
Thanks for your help.
Peter
Peter Stern
Chemical Physics Department
Weizmann Institute of Science
76100 Rehovot, ISRAEL
email: peter_at_wiscpa.weizmann.ac.il
phone: 972-8-9342096
fax: 972-8-9344123
Here's some output:
# disklabel -r /dev/rrz3c
# /dev/rrz3c:
type: SCSI
disk: RZ28B
label:
flags:
bytes/sector: 512
sectors/track: 99
tracks/cylinder: 16
sectors/cylinder: 1376
cylinders: 2595
sectors/unit: 4110480
rpm: 5411
interleave: 1
trackskew: 13
cylinderskew: 22
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 262144 0 4.2BSD 1024 8192 0 # (Cyl. 0 - 190*)
b: 1310720 262144 swap # (Cyl. 190*- 1143*)
c: 4110480 0 unused 1024 8192 # (Cyl. 0 - 2987*)
d: 0 0 unused 1024 8192 # (Cyl. 0 - -1)
e: 0 0 unused 1024 8192 # (Cyl. 0 - -1)
f: 0 0 unused 1024 8192 # (Cyl. 0 - -1)
g: 2537616 1572864 unused 0 0 # (Cyl. 1143*- 2987*)
h: 0 0 unused 0 0 # (Cyl. 0 - -1)
# newfs -N rz3a
Warning: calculated sectors per cylinder (1584) disagrees with disk label (1376)
Warning: 800 sector(s) in last cylinder unallocated
/dev/rrz3a: 262144 sectors in 166 cylinders of 16 tracks, 99 sectors
128.0MB in 11 cyl groups (16 c/g, 12.38MB/g, 3008 i/g)
super-block backups (for fsck -b #) at:
32, 25488, 50944, 76400, 101856, 127312, 152768, 178224,
203680, 229136, 254592,
# df -k /
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/rz3a 63167 51090 5760 90% /
# swapon -s
Swap partition /dev/rz3b (default swap):
Allocated space: 81920 pages (640MB)
In-use space: 1 pages ( 0%)
Free space: 81919 pages ( 99%)
Total swap allocation:
Allocated space: 81920 pages (640MB)
Reserved space: 6961 pages ( 8%)
In-use space: 1 pages ( 0%)
Available space: 74959 pages ( 91%)
Received on Fri Sep 26 1997 - 12:04:23 NZST