Date: Tue, 4 May 1999 15:51:10 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: cjclark@home.com Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Updating Slice Table Message-ID: <Pine.BSF.4.03.9905041549040.28350-100000@resnet.uoregon.edu> In-Reply-To: <199905041700.NAA03713@cc942873-a.ewndsr1.nj.home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 May 1999, Crist J. Clark wrote: > 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, Er..... this is not a good idea. > # 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]: You can't edit those values. Also use 'disklabel -r -e wd0s4' to get the right label (otherwise you get the one out of memory, which is useless). You have to create a new partition and take on the new space. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org 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?Pine.BSF.4.03.9905041549040.28350-100000>