random problem with 8.3 from yesterday
erich at alogreentechnologies.com
Wed Feb 22 07:00:28 UTC 2012
I got a new thumb drive which was FAT formatted. I use this script to change this:
# This script format a thumb drive connected to USB as da0.
printf "You have to run this script as 'root' to succeed.\n"
printf "Warning this script will delete all your data from /dev/da0. Continue? > "
set Eingabe = $<
if ("$Eingabe" == "y") then
printf "\nDeleting the device "
dd if=/dev/zero of=/dev/da0 bs=1k count=1
printf "\nWriting the BSD label "
bsdlabel -Bw da0 auto
printf "\nEditing the BSD label "
bsdlabel -e da0
printf "\nThe device /dev/da0 was formated to be used with FreeBSD.\n"
printf "\nScript aborted!\n"
I then call manually
tunefs -L NewDeviceName /dev/da0a
Either this call or the mount command does not work randomly.
When I then try to mount the device on /dev/da0a it does not work always.
I do not know what this causes, I am only randomly able to reproduce it.
It might be affected by removing the device or keeping it plugged in.
FreeBSD AMD620.ovitrap.com 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #28: Tue Feb 21 17:15:07 WIT 2012 erich at AMD620.ovitrap.com:/usr/obj/usr/src/sys/AsusAMD620 amd64
ugen1.2: <vendor 0x1005> at usbus1
umass0: <vendor 0x1005 USB FLASH DRIVE, class 0/0, rev 2.00/1.00, addr 2> on usbus1
umass0: SCSI over Bulk-Only; quirks = 0x4001
umass0:2:0:-1: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: < USB FLASH DRIVE PMAP> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 15272MB (31277056 512 byte sectors: 255H 63S/T 1946C)
It is not an urgent problem.
More information about the freebsd-stable