Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Mar 2012 14:41:14 +1100
From:      "Dewayne Geraghty" <dewayne.geraghty@heuristicsystems.com.au>
To:        "'Nenhum_de_Nos'" <matheus@eternamente.info>
Cc:        stable@freebsd.org
Subject:   RE: problem: bsdlabel
Message-ID:  <4E34FD0A83F1447A9416E7AB81F7E8D8@white>
In-Reply-To: <e64ad987dca84010c969bc3eae222179.squirrel@109.169.62.232>
References:  <e64ad987dca84010c969bc3eae222179.squirrel@109.169.62.232>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E34FD0A83F1447A9416E7AB81F7E8D8>