problem: bsdlabel

Dewayne Geraghty dewayne.geraghty at heuristicsystems.com.au
Thu Mar 29 03:41:34 UTC 2012


Hi Matheus,

You have two options.

Option 1. Resync the in-memory and on-disk view of the world
Identify the device from 
# usbconfig list
Then power it off and then power on. If this doesn't work then you'll need
to dd the device.

For example: 
# usbconfig list
ugen4.2: <DT Mini Slim Kingston> at usbus4, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE
# usbconfig -d 4.2 power_off
# usbconfig -d 4.2 power_on

Option 2. Clear the boot blocks 
# dd if=/dev/zero of=/dev/da0 bs=1M count=1
If this doesn't help then zero the whole device, omit the bs and count
arguments.

I'd also suggest that you assign 0xa5 to the device, by 
# fdisk -p da0 > /tmp/fdisk.cf
Use a text editor to change the 0xa6 to 0xa5; then write it back to fdisk
# fdisk -f /tmp/fdisk.cf /dev/da0

Of course, the excessive option is to reboot...
Regards, Dewayne.
PS I think this question would be better placed in the FreeBSD Questions
mailing list :)



More information about the freebsd-stable mailing list