On Fri, Jul 08, 2005 at 12:14:00PM -0400, Dimitri Yioulos wrote: ... > OK, more info.:
Yes, now THIS is how it is done. :) > I don't remember what the geometry of the "standard" partiton scheme that I > first tried is. At any rate, I thought I'd eliminated earlier scheme. Then > I created the / and swap scheme. > > Here are the results of fdisk, disklabel, and dmesg (it's long; hope I don't > get yelled at :-) ): > > cohasset# fdisk wd0 > Disk: wd0 geometry: 2434/255/63 [39102210 Sectors] > Offset: 0 Signature: 0xAA55 > Starting Ending LBA Info: > #: id C H S - C H S [ start: size ] > ------------------------------------------------------------------------ > *0: A6 0 1 1 - 2610 213 34 [ 63: 41943040 ] OpenBSD > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused whooops. Something went wrong here.... Your OpenBSD partition is larger than your disk. That explains the rest, I think. > cohasset# fdisk wd0a oh, cool. Never did that, myself. This, btw, is wrong: fdisk is only done on entire disks (i.e., wd0), not sub-slices (wd0a). However, as always, better too much info than too little. besides, I didn't know one could do this. cool. :) ... > cohasset# disklabel wd0 > # using MBR partition 0: type A6 off 63 (0x3f) size 41943040 (0x2800000) > # /dev/rwd0c: ... > total sectors: 39102336 > > 8 partitions: > # size offset fstype [fsize bsize cpg] > a: 37748529 63 4.2BSD 2048 16384 328 # Cyl 0*- 37448 > b: 2097648 37748592 swap # Cyl 37449 - 39529 > c: 8387505 63 unused 0 0 # Cyl 0*- 8320 > disklabel: partition b: partition extends past end of unit > disklabel: warning, unused partition i: size 1413615339 offset -2147417768 > disklabel: warning, unused partition j: size -1900006918 offset 402701520 > disklabel: warning, unused partition k: size 503365533 offset 1463353529 > disklabel: warning, unused partition l: size -1407327343 offset -1382830702 > disklabel: warning, unused partition m: size -2013104760 offset -1065155243 > disklabel: warning, unused partition n: size 402998726 offset 268977606 > disklabel: warning, unused partition o: size -400023365 offset 17760443 > disklabel: warning, unused partition p: size 1723867151 offset 251775107 According to my 1930 vintage Burroughs Calculator (Comptometer-like thing) says your 'b' partition ends at block 39,846,240 blocks, which is bigger than your disk is: 39,102,336 blocks (from dmesg). So...it isn't surprising that you are getting errors reading your B partition. Your 'c' partition is messed up there...but I suspect that's a side effect of the fdisk issue. I'd start by fixing your fdisk layout. Change the partition so that it ends at the physical end of the disk (2434/255/63), or even just "reinit" the disk, to create a "full disk" partition. You can then reduce the size of your 'b' partition so that it ends at an appropriate place, and you will hopefully be in business. If you do it carefully, you won't even lose your existing install (hint: don't alter 'a'!). I think I see what happened. You thought you had a 20G HD, so in fdisk, you told it to give you a 20G partition, and that is what you have: 2 sectors/k * 1024k/M * 1024M/G * 20G = 41943040 sectors. Problem is, your disk is 20G only in marketing terms. You have to respect what you really have... Nick.