Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 1999 13:00:18 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        freebsd-questions@FreeBSD.ORG (FreeBSD Questions)
Subject:   Updating Slice Table
Message-ID:  <199905041700.NAA03713@cc942873-a.ewndsr1.nj.home.com>

next in thread | raw e-mail | index | archive | help
I am doing some slice and partition resizing. I just used fdisk to
steal some space from slice to another. Specifically, I took a chunk
from 2 and gave it to 4, here is the new table,

# fdisk wd0
******* Working on device /dev/rwd0 *******
parameters extracted from in-core disklabel are:
cylinders=1027 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=1027 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 63, size 3068352 (1498 Meg), flag 0
        beg: cyl 0/ sector 1/ head 1;
        end: cyl 190/ sector 63/ head 254
The data for partition 2 is:
sysid 7,(OS/2 HPFS, NTFS, QNX or Advanced UNIX)
    start 3068415, size 7598745 (3710 Meg), flag 0
        beg: cyl 191/ sector 1/ head 0;
        end: cyl 663/ sector 63/ head 254
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 12064815, size 4433940 (2165 Meg), flag 80 (active)
        beg: cyl 751/ sector 1/ head 0;
        end: cyl 1023/ sector 63/ head 254
The data for partition 4 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 10667160, size 1397655 (682 Meg), flag 0
        beg: cyl 664/ sector 1/ head 0;
        end: cyl 750/ sector 63/ head 254

Note that the physical arrangment of slices is 1-2-4-3, but that does
not matter. The problem is now trying to update the disklabel on slice
4. The disklabel was/is,

# disklabel -r wd0s4
# /dev/rwd0s4:
type: ESDI
disk: wd0s4
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 83
sectors/unit: 1333395
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  1333395        0    unused        0     0         # (Cyl.    0 - 82)
  d:  1333395        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 82)

Now, why can I still read the disklabel? Anyway, I use 'disklabel -e
-r wd0s4' to change the number of cylinders to 87 and the size of the
partitions to 1397655, but when I try to save it, disklabel says,

disklabel: No space left on device
re-edit the label? [y]: 

And it will keep asking me. How do I get the kernel or whatever has
not registered the slice change to notice it? I don't wanna reboot,
afterall, this is not Winblowz. Especially, since I am not sure a
reboot will fix it.

Thanks for any help.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905041700.NAA03713>