On Mon, Apr 05, 2010 at 12:35:52PM +0200, bdz wrote: > Otto Moerbeek wrote: > >On Tue, Apr 06, 2010 at 12:12:04AM +0200, bdz wrote: > > > >>hi! > >> > >>i installed my system with the automated disklabel layout, i > >>just made some size modifications. the disk is a 500G sata. i > >>got a lot of space at the end of the disk that now i want to use > >>as storage. i can not add the new label 'l' because disklabel > >>says: > >> > >> > a l > >>offset: [0] > >>The offset must be >= 0 and < 0, the limits of the OpenBSD portion > >>of the disk. The 'b' command can change these limits. > >> > >>the response is the same for any specified number. > >> > >>here is the current layout: > >> > p > >>OpenBSD area: 0-0; size: 0; free: 63 > >># size offset fstype [fsize bsize cpg] > >> a: 2104452 63 4.2BSD 2048 16384 1 # / > >> b: 2104515 2104515 swap > >>c: 976773168 0 unused > >>d: 530145 4209030 4.2BSD 2048 16384 1 # > >>/tmp > >> e: 10490445 4739175 4.2BSD 2048 16384 1 # /var > >> f: 4209030 15229620 4.2BSD 2048 16384 1 # /usr > >> g: 2104515 19438650 4.2BSD 2048 16384 1 > >># /usr/X11R6 > >> h: 12594960 21543165 4.2BSD 2048 16384 1 > >># /usr/local > >> i: 4209030 34138125 4.2BSD 2048 16384 1 # /usr/src > >> j: 4209030 38347155 4.2BSD 2048 16384 1 # /usr/obj > >> k: 2104515 42556185 4.2BSD 2048 16384 1 # /home > >> > >>it displays the OpenBSD area: 0-0 wrong. what do you suggest to > >>help with this situation? > > > >Show you fdisk output. Likely the A6 partiton is funny. > i accepted the installers Whole disk option: > > Disk: wd0 geometry: 60801/255/63 [976773168 Sectors] > Offset: 0 Signature: 0xAA55 > Starting Ending LBA Info: > #: id C H S - C H S [ start: size ] > ------------------------------------------------------------------------------- > 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] > unused 1: 00 0 0 0 - 0 0 0 [ 0: > 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: > 0 ] unused *3: A6 0 1 1 - 60800 254 63 [ 63: > 976768002 ] OpenBSD > >>could the following work? > >>- use disklabel -e > >>- make a new line with label 'l': > >> l: SIZE OFFSET RAID 2048 16384 1 # /home/storage > >> > >>- SIZE: c size - (sizes a,b,d-k + 63) > >>- OFFSET: size k + offset k > >>- RAID for softraid crypto > >>- :x > > > >If your fdisk settings are ok, you can fisk the openbsd area wit the b > >command. But first check what fdisk reports.
Use the disklabel 'b' command. And fill in 63 and *. That should fix things. If not I'd like to have a copy of your complete label: # disklabel wd0 > file and send me the file. -Otto > > > > -Otto > >>using 4.6-RELEASE. see /var/run/dmesg.boot attached > >> > >>thank you, > >>adam