disklabel "unused partition" warnings

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

disklabel "unused partition" warnings

Simon Morgan
Hi,

When I run "disklabel wd0" I get the following warnings:

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

I made no attempt to create the above partitions during the installation.

I've read faq4 and the fdisk man page, searched google and the mailing
list archives and still don't seem to be able to solve the problem so
was hoping that somebody with a bit more experience might be able to
spot something that I can't. I've tried reinstalling a few times now
and as far as I'm aware I'm doing everything right but this clearly
isn't the case.

Thanks.

Disk: wd0 geometry: 9729/255/63 [156296385 Sectors]
Offset: 0 Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: A6    0   1  1 - 4627 254 62 [          63:    74348756 ] OpenBSD
 1: 0F 4628   0  1 - 9728 254 63 [    74348820:    81947565 ] Extended LBA
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
Offset: 74348820 Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 83 4628   1  1 - 7177 254 63 [    74348883:    40965687 ] Linux files*
 1: 05 7178   0  1 - 9662 254 63 [   115314570:    39921525 ] Extended DOS
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
Offset: 115314570 Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 83 7178   1  1 - 9662 254 63 [   115314633:    39921462 ] Linux files*
 1: 05 9663   0  1 - 9728 254 63 [   155236095:     1060290 ] Extended DOS
 2: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
 3: 00    0   0  0 -    0   0  0 [           0:           0 ] unused
Offset: 155236095 Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: 82 9663   1  1 - 9728 254 63 [   155236158:     1060227 ] Linux swap
 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

# Inside MBR partition 0: type A6 start 63 size 74348756
# /dev/rwd0c:
type: ESDI
disk: ad4s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 9729
total sectors: 156301488
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0

8 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:       1048576            63  4.2BSD   2048 16384   66 # Cyl     0*-    65*
  b:       4141712       1048639    swap                   # Cyl    65*-   323*
  c:      74348757            63  unused      0     0      # Cyl     0*-  4627
  d:       1042869       5190351  4.2BSD   2048 16384   64 # Cyl   323*-   387
  e:        240975       6233220  4.2BSD   2048 16384   15 # Cyl   388 -   402
  f:       8385930       6474195  4.2BSD   2048 16384  328 # Cyl   403 -   924
  g:      59488695      14860125  4.2BSD   2048 16384  328 # Cyl   925 -  4627
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

OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3200+ ("AuthenticAMD" 686-class,
512KB L2 cache) 2.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2
cpu0: AMD Powernow: FID VID TTP TM
real mem  = 1072996352 (1047848K)
avail mem = 972345344 (949556K)
using 4278 buffers containing 53751808 bytes (52492K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 08/22/05, BIOS32 rev. 0 @ 0xf0010
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf5ab0/192 (10 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1106 product 0x3227
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xf000! 0xcf000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8HTB Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8HTB Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8HTB Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8HTB Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8HTB Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA K8HTB Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia GeForce 6600 GT AGP" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
skc0 at pci0 dev 10 function 0 "Marvell SKv2" rev 0x13: irq 10
skc0: Marvell Yukon Lite (0x9)
sk0 at skc0 port A: address 00:13:d4:51:fd:73
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
vendor "Conexant", unknown product 0x8800 (class multimedia subclass
video, rev 0x05) at pci0 dev 13 function 0 not configured
vendor "Conexant", unknown product 0x8802 (class multimedia subclass
miscellaneous, rev 0x05) at pci0 dev 13 function 2 not configured
ral0 at pci0 dev 14 function 0 "Ralink RT2560" rev 0x01: irq 3,
address 00:0e:2e:5c:2c:fd
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
pciide0 at pci0 dev 15 function 0 "VIA VT8237 SATA" rev 0x80: DMA
pciide0: using irq 10 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC WD800JD-00HKA0>
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd1 at pciide1 channel 0 drive 0: <WDC WD1600JB-00DUA3>
wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd2 at pciide1 channel 0 drive 1: <WDC WD2000JB-00GVA0>
wd2: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd2(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide1 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-108, 1.20> SCSI0
5/cdrom removable
cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 10
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 5
ehci0: timed out waiting for BIOS
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: irq 5
ac97: codec id 0x414c4790 (Avance Logic ALC850)
audio0 at auvia0
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lm0 at isa0 port 0x290/8: W83627THF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask ffe5 netmask ffed ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
wd1: no disk label
dkcsum: wd1 matches BIOS drive 0x81
wd2: no disk label
dkcsum: wd2 matches BIOS drive 0x82
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uhidev0 at uhub1 port 2 configuration 1 interface 0
uhidev0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev
1.10/3.00, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Jacob Meuser
On Sat, Dec 03, 2005 at 10:51:56PM +0000, Simon Morgan wrote:

> Hi,
>
> When I run "disklabel wd0" I get the following warnings:
>
> 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
>
> I made no attempt to create the above partitions during the installation.

is this an installation on a previously unused disk, or was there
something on it?

--
<[hidden email]>

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Simon Morgan
Jacob Meuser <jakemsr <at> jakemsr.com> writes:
> is this an installation on a previously unused disk, or was there
> something on it?

It's had all kinds of different operating systems installed on it
at various times.

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Simon Morgan
Simon Morgan <sjmorgan <at> gmail.com> writes:
> It's had all kinds of different operating systems installed on it
> at various times.

Strange. I just ran the same command on a completely different machine
and got the exact same warnings:

# Inside MBR partition 3: type A6 start 63 size 40017852
# /dev/rwd0c:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 39703
total sectors: 40020624
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

8 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:        307377            63  4.2BSD   2048 16384  304 # Cyl     0*-   304
  b:        614880        307440    swap                   # Cyl   305 -   914
  c:      40020561            63  unused      0     0      # Cyl     0*- 39702
  d:        245952        922320  4.2BSD   2048 16384  244 # Cyl   915 -  1158
  e:        164304       1168272  4.2BSD   2048 16384  164 # Cyl  1159 -  1321
  f:       8388576       1332576  4.2BSD   2048 16384  328 # Cyl  1322 -  9643
  g:      30299472       9721152  4.2BSD   2048 16384  328 # Cyl  9644 - 39702
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

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

J.D. Bronson
At 07:18 PM 12/3/2005, Simon Morgan wrote:

>Simon Morgan <sjmorgan <at> gmail.com> writes:
> > It's had all kinds of different operating systems installed on it
> > at various times.
>
>Strange. I just ran the same command on a completely different machine
>and got the exact same warnings:
>
># Inside MBR partition 3: type A6 start 63 size 40017852
># /dev/rwd0c:
>type: ESDI
>disk: ad0s1
>label:
>flags:
>bytes/sector: 512
>sectors/track: 63
>tracks/cylinder: 16
>sectors/cylinder: 1008
>cylinders: 39703
>total sectors: 40020624
>rpm: 3600
>interleave: 1
>trackskew: 0
>cylinderskew: 0
>headswitch: 0           # microseconds
>track-to-track seek: 0  # microseconds
>drivedata: 0
>
>8 partitions:
>#             size        offset  fstype [fsize bsize  cpg]
>   a:        307377            63  4.2BSD   2048 16384  304 #
> Cyl     0*-   304
>   b:        614880        307440    swap                   #
> Cyl   305 -   914
>   c:      40020561            63  unused      0     0      #
> Cyl     0*- 39702
>   d:        245952        922320  4.2BSD   2048 16384  244 #
> Cyl   915 -  1158
>   e:        164304       1168272  4.2BSD   2048 16384  164 #
> Cyl  1159 -  1321
>   f:       8388576       1332576  4.2BSD   2048 16384  328 #
> Cyl  1322 -  9643
>   g:      30299472       9721152  4.2BSD   2048 16384  328 #
> Cyl  9644 - 39702
>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

I had this too, until I did a zero of the drive then fdisk -i then zero
then fdisk -i.

dd if=/dev/zero of=/dev/rwd1c bs=1024k


...the problem seemed to be from using a FreeBSD setup drive (with 10
partitions) and then trying to simply install OBSD on this drive.

I think if I zero'd the drive 2x before install OBSD, this problem
wouldnt have happened.

-JD

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Simon Morgan
J.D. Bronson <jbronson <at> wixb.com> writes:
> I think if I zero'd the drive 2x before install OBSD, this problem
> wouldnt have happened.

Thanks for the tip but I have other operating systems and partitions
on the drive which I want to keep.

I shouldn't need to do this should I? I mean, shouldn't fdisk and
disklabel make sure that the partitions are in a sane state? Should
I file this as a bug?

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Nick Holland
Simon Morgan wrote:

> J.D. Bronson <jbronson <at> wixb.com> writes:
>> I think if I zero'd the drive 2x before install OBSD, this problem
>> wouldnt have happened.
>
> Thanks for the tip but I have other operating systems and partitions
> on the drive which I want to keep.
>
> I shouldn't need to do this should I? I mean, shouldn't fdisk and
> disklabel make sure that the partitions are in a sane state? Should
> I file this as a bug?

No, fdisk and disklabel are not there to "make sure that the partitions
are in a sane state".  That's your job.  disklabel and fdisk are there
to do your bidding, regardless of sanity (or hair loss it may later
trigger).

However, they do try to make your life easier sometimes.  I *think* that
may be what is biting you here.  I am guessing that they see the other
partitions you have on this disk already, and are trying to make them
into usable, mountable disklabel partitions...but it is choking on
something.

Solution should be pretty easy, I think: boot single user (or even
multi-user, as it doesn't seem to be a problem for you at the moment,
right?) and do a "disklabel -e wd0" and delete the lines corresponding
to the "unwanted" partitions.

Oh, I think I see what it is choking on...
> disk: ad4s1
> disk: ad0s1

Isn't that FreeBSD naming convention?

It looks like you had FreeBSD on this system, removed it, put OpenBSD on
the same partition, and OpenBSD saw and tried to use the FreeBSD
disklabel, and choked on some of it.

If that's the case, using the 'D' command of disklabel in the '-E' mode
(mini-editor) before installing OpenBSD should resolve the problem
nicely by nuking any existing label and starting from scratch.  However,
if you have started to use the OpenBSD partition, the above "disklabel
-e wd0" suggestion still stands.  Just edit out the cruft.

IN GENERAL, you are right, you should not need to zero a disk before
using it.  On the other hand, there are some complicated interactions
that I know I don't understand fully that can be solved by a Zero-write
process if you don't know a better way to fix a problem.  But I am
pretty sure they can all be solved in more elegant ways. :)

Nick.

Reply | Threaded
Open this post in threaded view
|

Re: disklabel "unused partition" warnings

Simon Morgan
On 04/12/05, Nick Holland <[hidden email]> wrote:
> It looks like you had FreeBSD on this system, removed it, put OpenBSD on
> the same partition, and OpenBSD saw and tried to use the FreeBSD
> disklabel, and choked on some of it.
>
> If that's the case, using the 'D' command of disklabel in the '-E' mode
> (mini-editor) before installing OpenBSD should resolve the problem
> nicely by nuking any existing label and starting from scratch.  However,
> if you have started to use the OpenBSD partition, the above "disklabel
> -e wd0" suggestion still stands.  Just edit out the cruft.

Thanks for your help, Nick. You were right on the money. Problem now
solved.

Simon