Cannot change disklabel of unmounted root disk

From: Joseph P. Perez <jperez_at_uog2.uog.edu>
Date: Thu, 31 Jul 1997 12:58:30 +0000 (WET)

Hello all,

I have read pertinent mail here concerning "disklabel" usage, but still
cannot update the disklabel on my root rz1 drive. My rz1 disk layout is
such: a = root, b = usr, g = swap, h = data. I am basically trying to
increase my root parition, and am using regular UFS (4.2BSD) fstypes. To
do this I need to shrink the size of the adjacent partition, namely b, or
"usr". Here is what I have done to try and accomplish this:

1. Perform complete system backup.

2. Boot from 4.0a install CD-ROM and set my TERM and EDITOR variables
appropiately, making sure root rz1 disk is not mounted.

3. "disklabel -e /dev/rrz1a", then make changes to label info for 'b'.

- I get the following error message when I try to save the new label info:

"Partition 'b' is in-use; Cannot modify its size or location"

4. I then try disklabel on the alternate "c" partition, which encompasses
the entire disk, but is marked as "unused" (first had to "MAKEDEV rz1" to
create special file for rrz1c)

"disklabel -e /dev/rrz1c", then make changes to label

- I still get the following error message when trying to save the new
label info:

"Partition 'b' is in-use; Cannot modify its size or location"

I have even tried setting the fstype to "unused" for the affected
partitions while in disklabel edit mode, but still am not allowed to
change the label upon exiting from disklabel. I have also tried to change
SIZE/ OFFSET/ FSTYPE params for my "h" or data partition which does not
contain any os-specific files, but no luck there also. I still get the
"Partition 'x' is in-use; Cannot modify its zise or location" error
message, where 'x' is the partition I am trying to modify.

What am I missing? Any help will be appreciated.


Thanks Again,

- Joseph
Received on Thu Jul 31 1997 - 05:11:23 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT