fdisk/disklabel broken for usb sticks ..

Matthew Dillon dillon at apollo.backplane.com
Fri May 25 20:05:43 PDT 2007


:..
:dscheck(#da/0x10002): illegal partition number (2) for WHOLE_DISK_SLICE access
:
:
:fdisk fails to read disk partition table. disklabel is likewise confused.
:
:The stick in question has a standard partition table and one dos partition.
:
:It worked last week.
:
:Should be easily reproducible.
:
:Cheers,
:
:Andrew

    You need to do a full buildworld/installworld/upgrade.  Make sure you
    have the latest MAKEDEV from /usr/src/etc/MAKEDEV, and remake all your
    devices.  In fact, rm your disk devices before you remake them to be
    sure you got them all.

    cp /usr/src/etc/MAKEDEV /dev/MAKEDEV
    cd /dev
    rm da*
    ./MAKEDEV da0

    fdisk will operate on a raw disk.  disklabel only operates on a slice.
    Any entities that did not have MBR's (were not fdisked) before, but
    did have disklabels, can be accessed via slice 0 (e.g. da0s0a instead
    of da0a). 

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Bugs mailing list