# /site/etc/devd/berklix.conf by jhs@berklix. # http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/devd/berklix.conf # Periodicaly install to # /home/jhs/public_html/src/bsd/fixes/FreeBSD/src/jhs/etc/devd/berklix.conf # With: cd /site/etc ; make install # To restart devd: service devd restart # See Also: # ~jhs/media/notes Offline: list of personal content of media. # ~jhs/tech/equipment_notices/all.rof # ~jhs/tech/disk/list # /etc/disktab # /etc/printcap # http://www.berklix.com/~jhs/standards/phone # http://www.berklix.com/~jhs/standards/rs232.v24 # https://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 # https://en.wikipedia.org/wiki/USB # USB1: 1.5Mbit/s (Low Speed) & 12 Mbit/s (Full Speed) # USB2: 480 Mbit/s High Speed # USB3: 5 Gbit/s, SuperSpeed. 3.1 10 & 20 Gbit/s, SuperSpeed+ # USB4: 40 Gbit/s # Included by /etc/devd.conf # ln -s ../../site/etc/devd/berklix.conf /etc/devd/berklix.conf # ln -s ../../../../site/etc/devd/berklix.conf /usr/local/etc/devd/berklix.conf # List of chips in devices: https://wikidevi.com/wiki/Main_Page # Samples of keywords for searching: # Media_Size: 8G # Media_LED: # Bug: Do Not reduce action lines of form: # action "sleep 4 ;\ # "rm -f /devusb/platinum.dos /devusb/platinum.bde \ # /devusb/platinum.name /devusb/platinum.os \ # To # action "sleep 4 ;\ # "rm -f /devusb/platinum.dos /devusb/platinum.bde \ # /devusb/platinum.name /devusb/platinum.os \ # As devd -d omits 2 tabs of next line, does not insert a space, # then shows error nonexistat on concatenated string: # /devusb/platinum.bde/devusb/platinum.name # {==== DEVICE_TYPE In this order: # HUBS # CARD READERS # STICK # MP3 PLAYER # DISK # OPTICAL # FLOPPY # CAMERA # TABLET & PHONES # PHONE ADAPTERS # MODEMS # BLUETOOTH # MOUSE # COMBI MOUSE+KEYBOARD # KEYBOARD # PRINTER # SCANNER # COMBI SCANNER+PRINTER # WLAN # CARDBUS ADAPTER # GPS TOMTOM # OTHER # } # ---- Dividers for individuals of same device type. # New command syntax in stable & current not in 8.2-rel: # usbconfig -d X.Y dump_device_desc # Later: # Apart from soft updates, one can also choose the block sizes # newfs creates, I recall FFS is larger than UFS ?. # Block sizing: # man newfs: # default 16K, smallest 4k # See Also: # man 5 devd.conf # For a USB descriptor dump: # /usr/ports/sysutils/udesc_dump and man ugen # About ram sticks & file systems #http://www.uwe-sieber.de/usbstick_e.html block sizes & cluster alignment. #http://www.yaffs.net/yaffs-nand-specific-flash-file-system-introductory-article # Bug: 8.2-RELEASE first searches to match the Last entry in this file. # Bug: My /usr/src/etc/usbd.conf has a few devices I havent copied yet. # Bug: # This sometimes mounts multiple discs on wrong points # I suspect a race order problem, # solution till fixed is to plug discs on one at a time. # Bug: # All occurences of $device-name below will fail for any device seen # after a previous physical device that has multiple logical devices. # eg a 35in1 card reader or Integral stick, would screw any subsequent # device. # Man devd.conf: # `0` is lowest priority. If two statements match the same # event, only the action of the statement with highest priority # will be executed. # Fsck.sh: See /site/usr/local/bin/fsck.sh # Fsck: # I call eg `/site/usr/local/bin/fsck.sh` -t ufs # /devusb/something because otherwise it can not # figure what FS type is, whereas in /dev it can, (either maybe # because it looks up in /etc/fstab, or modifies the # name & probes the modified name for a label). # ----------------------------------------------------------------------------- # Hope human has already unmounted & done gbde detach md0 or md1 # as its too late when devd sees device disappear # See also: /home/jhs/bin/.sh/umountusb. # ----------------------------------------------------------------------------- # If mount fails: fsck_ufs -b 160 /dev/Whatever # block 32 for UFS1, and block 160 for UFS2 # ----------------------------------------------------------------------------- # Old Notes To Add to defunct man usbd.conf # - Power Ratings on all devices # 8.0 usbconfig dump_device_desc # USB spec: <= 500 mA # - devname entries are mostly unused, as only reported on attach, # not detach, so detach fails to be called if devname is specified. # - Hashes as comment line delimeter: # - Are acceptable with some restrictions. # - Do not have to be on left margin. # - Lines do not break entries (unlike in Makefiles). # - Trailing after code cause errors. # - http://www.interfacebus.com/Design_Connector_USB.html # - Slow 10K - 100 K # - Full 500K - 10M # - High 25M-400M 45 ohm to ground # - 1.5 Mbit/s UTP cable 3 metre Human Devices as keyboards, mice, buttons # - Meg bits/s: Low=1.5, Full=12, Hi=480, Super=4800 # - USB1= 12 Mbit/s = 1.5 M bytes/s, less protocol, STP cable 5 metre. # - USB2= 480 Mbit/s = 60 M bytes/s, less after protocol # - USB3=4800 Mbit/s = 4.8 G = 600 M Bytes/s, less after protocol # http://en.wikipedia.org/wiki/Usb3#USB_3.0 # - DVI single-link 3.96 Gbps < rfg@@tristatelogic.com 2012-11 # - HDMI 1.0/1.2 4.95 Gbps < rfg@@tristatelogic.com 2012-11 # - HDMI 1.3 10.2 Gbps < rfg@@tristatelogic.com 2012-11 # - Timings observed in Mbyte/sec, using dd if=/dev/zero bs=100k: # 6: host=laps 7.0, using cardbus adaptor, & all of {my 60M USB # external 3.5"" disk, Freecom 3.5"" disk, & gj@ 60 G disc box # with firewire & USB sockets}. # 22.5M: Host=fire,Internal USB port, Hub=slim USB2.0, gj@ disk. # 24.5M: internal disk host=laps # 52: host=fire amd64 6.2 SATA internal disk # 78.3 Mbyte/s host=blak, USB3 dd no bs reading from USB3 1T msdosfs # 81.1 Mbyte/s host=blak, USB3 dd bs=64k reading from USB3 1T msdosfs # - Writing to Clipman, via Belkin 0.5 Mbyte/Sec = 4 Mbit/sec. # - http://www.usb.org/developers/usb20/ # - http://www.usb.org/developers/docs/ # - MOUNT & UNMOUNT # - Umount: should be done by amd, not by detach, as detach crashes # system. (after detach there is no device to umount). # - I tried using mount -r but system still crashes sometime after # removing device, so now I mount writable which is more convenient. # - I havent tried mount -o sync # ohci: USB1 OHCI v1.0 compliant controllers including:, # AcerLabs M5237 (Aladdin-V), AMD-756, OPTi 82C861 (FireLink), # NEC uPD 9210, CMD Tech 670 (USB0670), CMD Tech 673 (USB0673), # NVIDIA nForce3 # uhci: USB1 UHCI v1.1 compliant controllers including: # Intel 82371AB/EB (PIIX4), Intel 82371SB (PIIX3), VIA 83C572 # ehci: USB2 gj@ said 2004.12 not stable. # -o noatime is to save wear on sticks # rec. by "Jonas Lund" # PROBLEMS # - Cannot use $device-name & assume eg # umass0 -> da0 & umass1 -> da1 because # umass0 may be external DVD writer whic goes to cd[01], & # umass1 may be a floppy going to da0 # - If DVD is plugged in at boot, it gets cd0, & the internal atapi # gets cd1, but if DVD get plugged in after boot, the cd0 & 1 # ordering is opposite. # Temporary solution: Only use 1 device of type umass at a time. # Later SOLUTION: # - man scsi camcontrol re. da0 numeric name allocation. # - or explore man devd. # ----------------------------------------------------------------------------- # action "mount /dev/`echo $device-name|sed -e s/umass/da/`s1a /media/disk2" ; # will not always work, if eg: host has scsi disks. # using an 8 or 9 to 1 multi card adapter wih multiple da[x] on one umass. # ----------------------------------------------------------------------------- # /sys/dev/usb/usbdevs: vendor HUAWEI 0x12d1 Huawei Technologies # ----------------------------------------------------------------------------- # "chmod 777" is needed after "mkdir" for "mount -t msdosfs" as otherwise # one can not write sub directories as msdosfs doesnt allow per directory # permissions unlike UFS. # ----------------------------------------------------------------------------- # One more reason for encryption of USB sticks: # I (jhs) had a black bird fly in an unoccupied room, & hop out with a # snack bar in a shiney wrapper, (maybe 30 grams ?), it reluctantly # dropped it to fly as I neared. A shiney sandisk USB 2G stick is # just 7 gram. Imagine a DOS FAT32 falling out of a tree with someone''s bank # passwords. (MS users look a bit worried when I mention that, # but they don''t think encryption, just heavier key rings ;-) # ----------------------------------------------------------------------------- # detach 5000 { # action "rm /tmp/devd-product=$product \ # /tmp/devd-device-name=$device-name" ; # } ; # ----------------------------------------------------------------------------- # Purpose of /media/Old: # If data gets accidentaly written to a tree which pre exists before # device is mounted, (which happens via rdist6), then data then becomes # inaccesible, it wastes space on root, its not on an encrypted media, # & it is not noticed that data may not have been copied to the media. # With /media/Old it is easy to check there should be nothing but empty # directories. # ============================================================================= # { DEVICE_TYPE HUBS # ----------------------------------------------------------------------------- attach 1000 { # JHS: Hub Zediworks # device-name match "vendor" "0x0409" ; match "product" "0x0058" ; match "devclass" "0x09" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "touch /tmp/devd-usb_hub_zediworks" ; # Hub, Zediworks, USB 2.0, 4 PORT, Bought at Croydon computer fair. # USB2.0 Hub Controller, NEC Corporation, class 9/0, rev 2.00/1.00, # uhub4: Removable Direct # Access SPC-2 SCSI device 40.000MB/s transfers 30000MB # (61440000 512 byte sectors) quirks=0x2 attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x1f75" ; match "product" "0x0918" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "72940761" ; match "release" "0x0210" ; action "sleep 4 ;\ rm -f /devusb/mk32g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/mk32g ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mk32g ;\ mkdir /media/mk32g ; chmod 777 /media/mk32g ;\ chown jhs:staff /media/mk32g ;\ mount -t msdosfs /devusb/mk32g /media/mk32g" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x1f75" ; match "product" "0x0918" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "72940761" ; match "release" "0x0210" ; action "rmdir /media/mk32g ; rm -f /devusb/mk32g" ; } ; # ----------------------------------------------------------------------------- # 32G Blue from Birgit USB stick 2020-08-21 # dmesg da1: Serial Number E45880FA # dmesg da1: 40.000MB/s transfers # dmesg da1: 30000MB (61440000 512 byte sectors) # dmesg da1: quirks=0x2 # dmesg da1: s/n E45880FA detached attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "E45880FA" ; match "release" "0x0100" ; action "sleep 4 ;\ rm -f /devusb/blue ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/blue ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/blue ;\ mkdir /media/blue ; chmod 777 /media/blue ;\ chown jhs:staff /media/blue ;\ mount -t msdosfs /devusb/blue /media/blue" ; } ; detach 1000 { action "rmdir /media/blue ; rm -f /devusb/blue" ; match "vendor" "0x058f" ; match "product" "0x6387" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "E45880FA" ; match "release" "0x0100" ; action "rmdir /media/blue ; rm -f /devusb/blue" ; } ; # ----------------------------------------------------------------------------- # SanDisk 32G Ultra micro SDHC UHS-1 Card with adapter, in phone # "Speed up to 48 MB/s 320X" # fdisk da0 # parameters extracted from in-core disklabel are: # cylinders=3880 heads=255 sectors/track=63 (16065 blks/cyl) # Figures below won''t work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=3880 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 8192, size 62325760 (30432 Meg), flag 0 # beg: cyl 0/ head 130/ sector 3 ; # end: cyl 1023/ head 254/ sector 63 # The data for partition 2 is: # The data for partition 3 is: # The data for partition 4 is: # 11.0-CURRENT: # dmesg: # umass0: on usbus0 # umass0: SCSI over Bulk-Only ; quirks = 0x4000 # umass0:3:0: Attached to scbus3 # da0 at umass-sim0 bus 0 scbus3 target 0 lun 0 # da0: Removable Direct Access SCSI-0 device # da0: Serial Number 20071114173400000 # da0: 40.000MB/s transfers # da0: 30436MB (62333952 512 byte sectors: 255H 63S/T 3880C) # da0: quirks=0x2 # devd: # Processing event cdev=diskid/DISK-201114173400000s1' # Pushing table # cdev=diskid/DISK-20071114173400000s1 # cdev=diskid/DISK-200714173400000' # ----------------------------------------------------------------------------- # 2G Transcend microSD in converter, on Acer host lapr, # 2014-01-28 with FreeBSD-10.0 http://www.transcend-info.com/downloads/ # TS2GUSD on back paper label. # http://uk.transcend-info.com/products/Catlist.asp?modno=96&cat_no=188 # Size 11mm x 15mm x 1mm # Op. Voltage 2.7V~3.6V # Op. Temperature -25°C(-13°F) ~ 85°C(185°F) # Durability 10,000 insertion/removal cycles # Weight 0.4g # dmesg: da1: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C) # fdisk /dev/da1 # cylinders=239 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 137, size 3841911 (1875 Meg), flag 0 # beg: cyl 0/ head 2/ sector 12 ; # end: cyl 952/ head 56/ sector 56 # ----------------------------------------------------------------------------- # 4G Transcend microSD bought in 2013 or 2012 normaly in net stick # dmesg: 3849MB (7882752 512 byte sectors: 255H 63S/T 490C) # fdisk /dev/da1 # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 8192, size 7874560 (3845 Meg), flag 0 # beg: cyl 1/ head 2/ sector 3 ; # end: cyl 977/ head 67/ sector 3 # ----------------------------------------------------------------------------- # 2G SD Card Sandisk as new 2012-12 fdisk # cylinders=240 heads=255 sectors/track=63 (16065 blks/cyl) # partition 1 sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 135, size 3858489 (1884 Meg), flag 0 # beg: cyl 0/ head 2/ sector 10 ; end: cyl 956/ head 63/ sector 63 # The data for partition 2 is: # The data for partition 3 is: # The data for partition 4 is: # 8M SD Card(from some camera) # cylinders=6 heads=64 sectors/track=32 (2048 blks/cyl) # partition 1 sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 32, size 12256 (5 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; end: cyl 5/ head 63/ sector 32 # ----------------------------------------------------------------------------- # SDCard Memory slot in HP host laph attach 1000 { # JHS: Slot Laph # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6366" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intprotocol" "0x50" ; # match "intsubclass" "0x06" ; match "sernum" "058F63666433" ; # same sernum for different sdrams, so it comes from within PC. match "release" "0x0100" ; action "sleep 4 ;\ rm -f /devusb/slot ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/slot ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/slot ;\ mkdir /media/slot ; chmod 777 /media/slot ;\ chown jhs:staff /media/slot ;\ mount -t msdosfs /devusb/slot /media/slot" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6366" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "058F63666433" ; match "release" "0x0100" ; action "rmdir /media/slot ; rm -f /devusb/slot" ; } ; # ----------------------------------------------------------------------------- # I bought a 4 G micro SDHC card to go in. 12,49 Euro # Model TS4GUSDC6 Class 6 # http://transcendusa.com # http://transcend.com.tw # Cardboard says: # 15x11x1 mm # 0.4g # 2.7V - 3.6 V # -25 C. - +85 C. # 10,000 insert cycles. # Compatible with Secure Digital V2.0 # The guy at conrad.de told me 15 Meg/sec read, 8Meg/sec write, # as compared with sandisk 10M/sec r&w # http://www.conrad.de/ce/de/product/411849/\ # TRANSCEND-MICRO-SDHC-KARTE-4GB-CL6-WA/SHOP_AREA_19818\ # &promotionareaSearchDetail=005 # Class 6 Übertragungsstandard # 30 Jahre bedingte Herstellergarantie # Lesen 15 MB/s # Schreiben 8 MB/s # Typ SDHC # By comparison a class 2 device can only do # http://www.conrad.de/ce/de/product/412797/\ # TRANSCEND-MICRO-SDHC-KARTE-4GB-CLASS2/SHOP_AREA_19818\ # &promotionareaSearchDetail=005 # Lesen 2 MB/s # Schreiben 2 MB/s # Typ microSDHC # ----------------------------------------------------------------------------- # ls /dev/da* # da0 # `/site/usr/local/bin/fsck.sh` /dev/da0 # ls /dev/da* # da0, Still Nothing else. # Seen by FreeBSD as: # ******* Working on device /dev/da0 ******* # parameters extracted from in-core disklabel are: # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # parameters to be used for BIOS calculations are: # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 8192, size 7874560 (3845 Meg), flag 0 # beg: cyl 1/ head 2/ sector 3 ; # end: cyl 977/ head 67/ sector 3 # The data for partition 2 is: # # The data for partition 3 is: # # The data for partition 4 is: # # ============================================================================= # }{ DEVICE_TYPE STICK # ----------------------------------------------------------------------------- # Gary Intenso 128 Gbyte 2023-12-15 # dd if=/dev/da0 of=/dev/null bs=1m # 120000+0 records # 125829120000 bytes transferred in 1040.294124 secs (120955331 bytes/sec) # Julian Intenso 128 Gbyte Speed Line, Super Speed, USB-A Glash Drive. 2023-12-26 on host=Dell via USB-3 Hub # dmesg # ugen0.10: at usbus0 # umass2 on uhub7 # umass2: on usbus0 # umass2: SCSI over Bulk-Only; quirks = 0x4101 # umass2:7:2: Attached to scbus7 # (probe0:umass-sim2:2:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 # (probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error # (probe0:umass-sim2:2:0:0): SCSI status: Check Condition # (probe0:umass-sim2:2:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) # (probe0:umass-sim2:2:0:0): Info: 0 # (probe0:umass-sim2:2:0:0): Error 22, Unretryable error # da2 at umass-sim2 bus 2 scbus7 target 0 lun 0 # da2: Removable Direct Access SPC-4 SCSI device # da2: Serial Number CF0FC92B # da2: 400.000MB/s transfers # da2: 120000MB (245760000 512 byte sectors) # da2: quirks=0x2 # fdisk da2 # parameters extracted from in-core disklabel are: # cylinders=15297 heads=255 sectors/track=63 (16065 blks/cyl) # # Figures below won't work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=15297 heads=255 sectors/track=63 (16065 blks/cyl) # # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 128, size 245759872 (119999 Meg), flag 80 (active) # beg: cyl 0/ head 2/ sector 3; # end: cyl 961/ head 217/ sector 24 # On host=dell dd if=/dev/da2 of=/dev/null bs=1m # 120000+0 records in # 120000+0 records out # 125829120000 bytes transferred in 1591.393363 secs (79068521 bytes/sec) # ls -l /dev/diskid # crw-r----- 1 root operator 0x124 Dec 26 23:04 DISK-CF0FC92B # crw-r----- 1 root operator 0x125 Dec 26 23:04 DISK-CF0FC92Bs1 # SDCard Memory slot in HP host laph attach 1000 { # JHS: # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "0xCF0FC92B" ; # Although the serial number appears to be hexadecimal, Do not use 0x else devd -d shows # Testing sernum=CF0FC92B against ^0xCF0FC92B$, invert=0 # So sernum is just a text string to match, not necessarily a number. match "sernum" "CF0FC92B" ; match "release" "0x0002" ; match "intclass" "0x08" ; match "intprotocol" "0x50" ; match "intsubclass" "0x06" ; action "sleep 4 ;\ rm -f /devusb/intenso128g ; \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/intenso128g ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/intenso128g ;\ mkdir /media/intenso128g ; chmod 777 /media/intenso128g ;\ chown jhs:staff /media/intenso128g ;\ mount -t msdosfs /devusb/intenso128g /media/intenso128g" ; } ; detach 1000 { # # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6387" ; # match "devclass" "0x0" ; # match "devsubclass" "0x0" ; # match "sernum" "0" ; # match "release" "0x0" ; action "rmdir /media/intenso128g ; rm -f /devusb/intenso128g" ; } ; # ----------------------------------------------------------------------------- # jes kingston white 2016-02-10 attach 1000 { match "vendor" "0x0951" ; match "product" "0x1603" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "0010000000000000000000E0" ; match "release" "0x0200" ; match "devproto" "0x00" ; match "intclass" "0x08" ; match "intprotocol" "0x50" ; match "intsubclass" "0x06" ; action "sleep 4 ;\ rm -f /devusb/jes-kingston ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/jes-kingston ;\ mkdir /media/jes-kingston ; chmod 777 /media/jes-kingston ;\ chown jhs:staff /media/jes-kingston ;\ mount -r -t msdosfs /devusb/jes-kingston /media/jes-kingston" ; # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/jes-kingston ; } ; detach 1000 { match "vendor" "0x0951" ; match "product" "0x1603" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "0010000000000000000000E0" ; match "release" "0x0200" ; match "devproto" "0x00" ; match "intclass" "0x08" ; match "intprotocol" "0x50" ; match "intsubclass" "0x06" ; action "rmdir /media/jes-kingston ; rm -f /devusb/jes-kingston" ; } ; # ----------------------------------------------------------------------------- # Media_LED: Yes, Red Big # Sandisk 8 G Cruzer bought @ Conrad Tue 24 Feb 2009 # As received: # fdisk /dev/da0 # cylinders=977 heads=255 sectors/track=63 (16065 blks/cyl) # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 44, size 15679396 (7655 Meg), flag 0 # beg: cyl 0/ head 0/ sector 45 ; # end: cyl 975/ head 254/ sector 63 # The data for partition 2, 3, 4 is: # # 44 + 15679396 = 15679436 # --------- # As I reconfigured: # dmesg: da0: 7667MB (15704063 512 byte sectors: 255H 63S/T 977C) # Determination of sizes ; # F1:1.5 G, aligned to cylinder # For a later bootable memstick.img. # Note FreeBSD-8.2 still wont boot from a USB FS within an fdisk slice, # Only from a raw whole stick. # F2: Rest of stick, aligned to cylinder # F3: remnant, not aligned # ------------------------------------------ # The data for partition 1 is: # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 63, size 2988027 (1458 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 185/ head 254/ sector 63 # The data for partition 2 is: # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 2988090, size 12707415 (6204 Meg), flag 0 # beg: cyl 186/ head 0/ sector 1 ; # end: cyl 976/ head 254/ sector 63 # The data for partition 3 is: # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 15695505, size 8558 (4 Meg), flag 0 # beg: cyl 977/ head 137/ sector 54 ; # end: cyl 978/ head 18/ sector 43 # ------------------------------------------ # bsdlabel -r -w -B /dev/da0s1 # newfs /dev/da0s1a # /dev/da0s1a: 1459.0MB (2988008 sectors) block size 16384, # fragment size 2048 # using 8 cylinder groups of 183.72MB, 11758 blks, 23552 inodes. # super-block backups (for `/site/usr/local/bin/fsck.sh` -b #) at: # 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952 # bsdlabel -r -w -B /dev/da0s2 # bsdlabel -e /dev/da0s2 # 4.2BSD # newfs /dev/da0s2a # mount -t ufs -o noatime /dev/da0s2a /mnt ; cd /mnt # bsdlabel -r -w -B /dev/da0s3 # bsdlabel -e /dev/da0s3 # 4.2BSD # newfs /dev/da0s3a # ------------------------------------------ # Timing test on host=lapr # cd /media/sanblack.s1 # time testblock -v -b 64k -w t # 1,362,034,688/199= 6,844,395 # time testblock -v -b 64k -r t # 1,362,034,688/56 =24,183,855 # time dd if=/dev/zero bs=64k of=t # 5,793,120,256/790= 7,336,964 # time dd if=t of=/dev/null bs=64k # 5,793,120,256/251=23,094,882 # ------------------------------------------ attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0781" ; match "product" "0x5406" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0200" ; action "sleep 4 ;\ mkdir -p /media/Old ;\ mv /media/sanblack.s1 /media/sanblack.s1 /media/sanblack.s1 \ /media/Old ;\ rm -f /devusb/sanblack.s1 /devusb/sanblack.s2 /devusb/sanblack.s3 ;\ mkdir -p /media/sanblack.s1 /media/sanblack.s2 /media/sanblack.s3 ;\ ln -s /dev/DUMMY /devusb/DUMMY ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` \ /devusb/sanblack ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ /devusb/sanblack.s1 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ /devusb/sanblack.s2 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a \ /devusb/sanblack.s3 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sanblack.s1 ;\ mount -t ufs -o noatime /devusb/sanblack.s1 /media/sanblack.s1 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sanblack.s2 ;\ mount -t ufs -o noatime /devusb/sanblack.s2 /media/sanblack.s2 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sanblack.s3" ; # Last s3 is too small to use, so don''t mount, # to avoid having to unmount. # mount -t ufs -o noatime /devusb/sanblack.s3 /media/sanblack.s3 # /media/sanblack is for use by fdisk } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0781" ; match "product" "0x5406" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0200" ; action "rmdir /media/sanblack.s1 /media/sanblack.s2 \ /media/sanblack.s3 /media/sanblack ;\ rm -f /devusb/sanblack.s1 /devusb/sanblack.s2 /devusb/sanblack.s3" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS : pas@ purple stick 2008.08 # device-name "umass[0-9]+" ; match "vendor" "0x0ea0" ; match "product" "0x2168" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; match "release" "0x0200" ; action "sleep 4 ;\ rm -f /devusb/purple ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/purple ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/purple ;\ mkdir /media/purple ; chmod 777 /media/purple ;\ chown jhs:staff /media/purple ;\ mount -t msdosfs /devusb/purple /media/purple" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0ea0" ; match "product" "0x2168" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0200" ; action "rmdir /media/purple ; rm -f /devusb/purple" ; } ; # ----------------------------------------------------------------------------- # FLASH MEMORY STICKS # From: Eric Anderson # Date: Sat, 20 Aug 2005 21:44:18 -0500 (Sun 04:44 CEST) # To: "M. Warner Losh" # Cc: freebsd-hackers@@@freebsd.org, hselasky@@@c2i.net # I''ve been using 64mb compact flash cards (rated at 100k writes) in # about 100 Soekris boxes (running FreeBSD) for about 4 years, and # they are all still working, except for one. Now, most compact flash # cards are rated at 1 million writes. # ----------------------------------------------------------------------------- # Media_LED: Yes, Red, Small. Flashes when Not being accessed. # Media_Size: 256M attach 1000 { # JHS: Memory Stick - 256 M - Celldisk DOS mk@ personal # device-name "umass[0-9]+" ; match "vendor" "0x08ec" ; match "product" "0x0834" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "sleep 4 ;\ rm -f /devusb/cell ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/cell ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/cell ;\ mkdir /media/cell ; chmod 777 /media/cell ;\ chown jhs:staff /media/cell ;\ mount -t ufs /devusb/cell /media/cell" ; } ; # power 100 mA, config 1, CellDisk(0x0834), IOCELL(0x08ec) # dc: 268435456 # 1024 1024 256 * * p # host=lapd usb1: dd if=/dev/da0 of=cell.host=lapd 499712+0 records # 255852544 bytes / 7081.042984 secs (36132 bytes/sec) # dd if=/dev/da2 of=/dev/null 499712+0 records detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x08ec" ; match "product" "0x0834" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/cell ; rm -f /devusb/cell" ; } ; # ----------------------------------------------------------------------------- attach 1000 { #Colin W.: Memory Stick - 2 G Black Plastic Silver Pearl Micro X # Caution This entry should precede /media/januvia # As /media/januvia does less matches. # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "AA04012700038675" ; match "release" "0x1100" ; # intclass=0x08 # intsubclass=0x06 action "sleep 4 ;\ rm -f /devusb/colin ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/colin ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/colin ;\ mkdir /media/colin ; chmod 777 /media/colin ;\ chown jhs:staff /media/colin ;\ mount -t msdosfs /devusb/colin /media/colin" ; } ; detach 1000 { # Caution Theres is no difference between this & /media/januvia match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "AA04012700038675" ; match "release" "0x1100" ; action "rmdir /media/colin ; rm -f /devusb/colin" ; } ; # ----------------------------------------------------------------------------- attach 1000 { #JHS: Memory Stick - 128 M - SMI # Caution This entry should be after /media/colin # As /media/colin has more matches. # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "1" ; match "release" "0x1100" ; action "sleep 4 ;\ rm -f /devusb/januvia ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/januvia ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/januvia ;\ mkdir /media/januvia ; chmod 777 /media/januvia ;\ chown jhs:staff /media/januvia ;\ mount -t msdosfs /devusb/januvia /media/januvia" ; } ; # I added "sernum" "1" Sat Mar 24 19:55:31 CET 2012 # after devd looked backward through list & saw # this entry before the colin above. # Note "1" is not correct, but until I read pas@''s stick it will do # to avoid matching colin''s stick. # Promotional stick from MSD with Januvia written on it. # Now with either mk@ or pas@ # USB DISK, SMI Corporation # 246784+0 records 126353408 bytes in 187 secs (675365 bytes/sec) # dd if=/dev/da3 of=/dev/null 246784+0 records detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "1" ; match "release" "0x1100" ; action "rmdir /media/januvia ; rm -f /devusb/januvia" ; } ; # ----------------------------------------------------------------------------- # dd if=/dev/zero of=/dev/da0 1001473+0 records in 1001472+0 records out # 512753664 bytes transferred (257864 bytes/sec) attach 1000 { # Memory Stick - 512 M - Kingston - DOS to Marguerite # device-name "umass[0-9]+" ; match "vendor" "0x0930" ; match "product" "0x6533" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; # action "sleep 4 ;\ # rm -f /devusb/kingston ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a \ # /devusb/kingston ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/kingston ;\ # mkdir /media/kingston ;\ # mount -t ufs -o noatime /devusb/kingston /media/kingston" ; action "sleep 4 ;\ rm -f /devusb/kingston ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/kingston ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/kingston ;\ mkdir /media/kingston ; chmod 777 /media/kingston ;\ chown jhs:staff /media/kingston ;\ mount -t msdosfs /devusb/kingston /media/kingston" ; } ; # 100 mA, config 1, USB Flash Memory # dc: 536870912 # 1024 1024 512 * * p # host=laps via belkin usb2: dd if=/dev/da0 of=kingston.512M.da0 # 432464384 bytes / 973.256263 secs (444348 bytes/sec) # host=laps usb1: dd if=/dev/da0 of=kingston.host=laps.usb1 # 412200960 # host=lapd usb1: dd if=/dev/da0 of=kingston.host=lapd.usb1 # FAILS SHORT detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0930" ; match "product" "0x6533" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/kingston ; rm -f /devusb/kingston" ; } ; # ---------------------------------------------------------------------------- # 3875MB (7936000 512 byte sectors: 255H 63S/T 493C) # Media_LED: Yes, Green inside near plug. # Content FreeBSD-10.0-RC5-amd64-memstick.img # /pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/10.0 # 697753600 # Timing Test dd bs=512 is Very inefficient, use higher # bs=512 ,110,228 bytes/sec host=laps, belkin # bs=1k ,233,153 bytes/sec host=laps, belkin # bs=2k ,489,198 bytes/sec host=laps, belkin # bs=4k ,918,736 bytes/sec host=laps, belkin # bs=8k 1,823,585 bytes/sec host=laps, belkin # bs=16k 1,970,588 bytes/sec host=laps, belkin # bs=32k 2,356,145 bytes/sec host=laps, belkin # bs=64k 2,565,281 bytes/sec host=laps, belkin # bs=128k 2,223,860 bytes/sec host=laps, belkin # bs=1m 5,965,897 bytes/sec host=blak, front socket attach 1000 { # JHS: Memory Stick - 2 G Red DaneElec from jes@ 2009.03 - DOS # Maybe it said 2G cos MS couldnt do an FS with more. # PAINT ON STICK SAYS FOUR GIG # dmesg says: da0: 3875MB (7936000 512 byte sectors: 255H 63S/T 493C) # device-name "umass[0-9]+" ; match "vendor" "0x0930" ; match "product" "0x6545" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "001D92A5F59A5B8A0F110373" ; # Not necessary match "release" "0x0100" ; # Below is after dd if=FreeBSD-13.0-RELEASE-amd64-memstick.img of=/dev/da1 bs=1m action "sleep 4 ; rm -f /devusb/red ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/red" ; # Below is for a file system. # action "sleep 4 ; rm -f /devusb/red ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/red ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/red ;\ # mkdir /media/red ; mount -t ufs -o noatime /devusb/red /media/red" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0930" ; match "product" "0x6545" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "001D92A5F59A5B8A0F110373" ; Not available. match "release" "0x0100" ; action "rmdir /media/red ; rm -f /devusb/red" ; } ; # ----------------------------------------------------------------------------- # Media_Size: 4G # Media_LED: No. # The 2 Lufthansa sticks varied slightly as received: # fdisk /dev/da[01] # ******* Working on device /dev/da0 ******* # parameters extracted from in-core disklabel are: # cylinders=497 heads=255 sectors/track=63 (16065 blks/cyl) # parameters to be used for BIOS calculations are: # cylinders=497 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # Stick 1: start 512, size 7988727 (3900 Meg), flag 0 Given to jes@ # Stick 2: start 1024, size 7988215 (3900 Meg), flag 0 With jhs@ # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 497/ head 254/ sector 63 # dmesg: # da0: 3901MB (7989248 512 byte sectors: 255H 63S/T 497C) # da1: 3901MB (7989248 512 byte sectors: 255H 63S/T 497C) # 2011-11-14 # 4 G bootable live stick from a 1 G that was near full, # 1 G was built from /pub/FreeBSD/releases/amd64/ISO-IMAGES/8.2/ # FreeBSD-8.2-RELEASE-amd64-memstick.img + ntfs support added by jhs # bsdlabel -w -r /dev/da0 # bsdlabel /dev/da0 # bsdlabel -B /dev/da0 # newfs /dev/da0a # mount /dev/da0a /mnt # did not think to use -o noatime # ( cd /usr1/tmp/luftjhs ; tar cf - . ) | ( cd /mnt && tar xf - ) attach 1000 { # JES: Memory Stick -4 G Lufthansa Promotion < MK AmCham 2010.01 # device-name "umass[0-9]+" ; match "vendor" "0x1aa6" ; match "product" "0x0201" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" " 30905001608871" ;# devd shows 1 space at front match "release" "0x1000" ; action "sleep 4 ;\ rm -f /devusb/luftjes ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/luftjes ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/luftjes ;\ mkdir /media/luftjes ; chmod 777 /media/luftjes ;\ chown jhs:staff /media/luftjes ;\ mount -t msdosfs /devusb/luftjes /media/luftjes" ; } ; # 2011-09-16 content: # blak cd /pub/freebsd/ISO-IMAGES-amd64/8.2 ; # 1087774720 bytes # dd if=FreeBSD-8.2-RELEASE-amd64-memstick.img of=/dev/da1 # 2124560+0 records 1087774720 bytes in 182 mins (99491 bytes/sec) # + tar zxvf /host/fire/usra/ftp/pub/FreeBSD/ports/amd64/\ # packages-8.2-release/All/libublio-20070103.tbz # + tar zxvf /host/fire/usra/ftp/pub/FreeBSD/ports/amd64/\ # packages-8.2-release/All/ntfsprogs-2.0.0_1.tbz # + tunefs -m 0 attach 1000 { # JHS: Memory Stick - 4 G Lufthansa Promotion < MK AmCham 2010.01 # device-name "umass[0-9]+" ; match "vendor" "0x1aa6" ; match "product" "0x0201" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" " 571274229212" ; #devd shows 3 spaces at front match "release" "0x1000" ; #-------- # action "sleep 4 ;\ # rm -f /devusb/luftjhs ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/luftjhs ;\ # mkdir /media/luftjhs ; # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/luftjhs ;\ # mount -t ufs -o noatime /devusb/luftjhs /media/luftjhs" ; #-------- action "sleep 4 ; rm -f /devusb/luftjhs.efi /devusb/luftjhs.ufs ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/luftjhs.efi ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a /devusb/luftjhs.ufs ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/luftjhs.ufs ;\ mkdir /media/luftjhs.efi /media/luftjhs.ufs ;\ mount -t ufs -o noatime /devusb/luftjhs.ufs /media/luftjhs.ufs" ; # JJLATER how to mount /media/luftjhs.efi ? #-------- } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x1aa6" ; match "product" "0x0201" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" " 571274229212" ; match "release" "0x1000" ; action "rmdir /media/luftjhs ; rm -f /devusb/luftjhs" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x1aa6" ; match "product" "0x0201" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" " 30905001608871" ; match "release" "0x1000" ; action "rmdir /media/luftjes ; rm -f /devusb/luftjes" ; } ; # ----------------------------------------------------------------------------- # Melanie''s 4G stick, fold out, diamond array stuck on side. # 2018-11-14 # dmesg: # # attach 1000 { # # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "AA00000000012723" ; match "release" "0x1100" ; action "sleep 4 ;\ rm -f /devusb/mk_diamond ; mkdir /media/mk_diamond ;\ ln -s /dev/da`echo $device-name|sed -e s/umass//`s1 \ /devusb/mk_diamond ;\ mount -r -t msdosfs /devusb/mk_diamond /media/mk_diamond" ; # No fsck as not my stick # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mk_diamond } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "AA00000000012723" ; match "release" "0x1100" ; action "rmdir /media/mk_diamond ; rm -f /devusb/mk_diamond" ; } ; # ----------------------------------------------------------------------------- # Media_LED: Yes, Red # Stick Name Integral # 2 device numbers are created when this stick is plugged in, eg: da4 & da5, # /dev/da4 # /dev/da4s1 # /dev/da4s1a # /dev/da5 # What we want: # /usbdev/integral.ufs@ -> /dev/da4s1a # /usbdev/integral.dos@ -> /dev/da5 # The attach action gets run twice, first for da4 then da5, # The first sleep 4 is normal, to ensure /dev/da* are there to be linked to. # The second sleep 10 is to ensure the 2nd iteration with da5 is gone # before unlocking. # (I am not sure if kernel & devd etc guarantee order of da4 then da5, # but I expect it will mostly work. ) # UDPv261.exe 'USB Disk Pro v2.55.pdf' attach 1000 { #JHS: Memory Stick - 1 Gig - Integral - Unlocked # device-name "umass[0-9]+" ; match "vendor" "0x0d7d" ; match "product" "0x1620" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "\ if [\! -e /devusb/integral.lock ] ; then \ rm -f /devusb/integral.dos /devusb/integral.ufs ;\ mkdir /media/integral.dos ; chmod 777 /media/integral.dos ;\ chown jhs:staff /media/integral.dos ;\ mkdir /media/integral.ufs ;\ sleep 4 ;\ ln -s /dev/da`echo $device-name|sed -e s/umass//`s1a \ /devusb/integral.ufs ;\ ln -s /dev/da`echo $device-name 1 + p |sed -e s/umass//|dc`\ /devusb/integral.dos ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/integral.dos ;\ mount -t msdosfs /devusb/integral.dos /media/integral.dos ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/integral.ufs ;\ mount -t ufs -o noatime /devusb/integral.ufs /media/integral.ufs ;\ sleep 10 ;\ rm /devusb/integral.lock ;\ fi" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0d7d" ; match "product" "0x1620" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/integral.dos /media/integral.ufs ;\ rm -f /devusb/integral.ufs \ /devusb/integral.dos /devusb/integral.lock " ; } ; # Sleep is needed on host=laps. # Only works on host=laps, not host=fire, fire has # an external CD umass device so numbering gets messed up. # power 200 mA, config 1, USB DISK Pro # dc 1073741824 # 1024 1024 1024 * * p # host=laps via belkin usb2: dd if=/dev/da0 of=integral.1g.da0 # 1000448+0 recs = 512229376 bytes / 809.536057 secs (632744 bytes/sec) # Stick lockable, when unlocked it appears with # /dev/da0 /dev/da0s1 (978MB) & /dev/da1 (1M). # fdisk da0 # parameters extracted from in-core bsdlabel are: # cylinders=978 heads=64 sectors/track=32 (2048 blks/cyl) # parameters to be used for BIOS calculations are: # cylinders=978 heads=64 sectors/track=32 (2048 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) # start 32, size 2003936 (978 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 841/ head 15/ sector 32 # When unlocked it appears with just /dev/da0, dd if=/dev/da0 \ # of=/dev/null 2880 records 1474560 bytes (682835 bytes/sec) # fdisk da0 # ******* Working on device /dev/da0 ******* # parameters extracted from in-core bsdlabel are: # cylinders=1 heads=64 sectors/track=32 (2048 blks/cyl) # parameters to be used for BIOS calculations are: # cylinders=1 heads=64 sectors/track=32 (2048 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 105 (0x69),(unknown) # start 1869771365, size 168689522 (82367 Meg), flag ff # beg: cyl 68/ head 13/ sector 10 ; # end: cyl 288/ head 115/ sector 43 # The data for partition 2 is: # sysid 115 (0x73),(unknown) # start 1701519481, size 1869881465 (913028 Meg), flag 50 # beg: cyl 371/ head 114/ sector 37 ; # end: cyl 366/ head 32/ sector 33 # The data for partition 3 is: # sysid 116 (0x74),(unknown) # start 2573, size 0 (0 Meg), flag 20 # beg: cyl 371/ head 114/ sector 37 ; # end: cyl 372/ head 97/ sector 50 # The data for partition 4 is: # sysid 0 (0000),(unused) # start 0, size 3435113472 (1677301 Meg), flag 0 # beg: cyl 0/ head 0/ sector 0 ; # end: cyl 0/ head 0/ sector 0 # I have created a quirk table entry for this: /sys/cam/scsi/scsi_da.c # After I converted this from DOS to a BSD partition, # 6.2 now sees: /dev/da0 /dev/da0s1 /dev/da0s1a # /dev/da0s1c /dev/da0s1cs4 /dev/da1 # Host=fire console reports 40.000MB/s transfers # dmesg: 978MB (2003968 512 byte sectors: 64H 32S/T 978C) # ----------------------------------------------------------------------------- # There was a problem, test again later: # `/site/usr/local/bin/fsck.sh` -t ufs /dev/da0s1a # ** /dev/da0s1a # ** Last Mounted on /media/integral.ufs # ** Phase 1 - Check Blocks and Sizes # ** Phase 2 - Check Pathnames # CANNOT READ BLK: 38672 # CONTINUE? yes # THE FOLLOWING DISK SECTORS COULD NOT BE READ: # ** Phase 3 - Check Connectivity # ** Phase 4 - Check Reference Counts # ** Phase 5 - Check Cyl groups # 35969 files, 433290 used, 49889 free (753 frags, 6142 blocks, 0.2% fragmentation) # ----------------------------------------------------------------------------- # Media_LED: No. # Light brown wood effect stick labelled HSM, MK received 2009.03.19, 1 Gig. # This stick lies: # The end of it is write only memory ! # It lets one write the last chunk, # It even lets one read that last chunk, # but the content of the last chunk is all zeroes. # Proven by # http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/testblock/\ # testblock.c # Discovered by chance, while checking a backup on a UFS # file system on a gbde partition. # Stick was given to mk@ as part of a promotional bundle. # (so no access to more sticks to see if same fault) # Outside of stick is marked www.hsm.eu # but they are doubtless just some firm buying the sticks in as a promotion # Came with a strange Fdisk/MBR allocation. of 3 or 4 slices. # dmesg laps (internal USB-1 Interface): # umass0: Get Max Lun not supported (STALLED) # da0: Removable Direct Access SCSI-2 device # da0: 1010MB (2068480 512 byte sectors: 64H 32S/T 1010C) # end: cyl 1009/ head 63/ sector 32 # bsdlabel -r -w da0 auto # a: 2068464 16 unused 0 0 # c: 2068480 0 unused 0 0 # testblock -I -b 512 /dev/da0a # Wrote 0 bytes after previous 1059053568 (2068464 * 512). # Error after 1032314880 previously read ; Byte read 0x0 # dc: # 2016240 512 * p 1032314880 # 2068464 512 * p 1059053568 # 2068480 512 * p 1059061760 # bsdlabel -r -e da0 # # a: 2068464 16 unused 0 0 # 2016240 Good + 52224 Bad # c: 2068480 0 unused 0 0 # raw # d: 2016240 16 unused 0 0 # Good # e: 52224 2016256 unused 0 0 # Bad, Zeroes # testblock -I -v -b 512 -r /dev/da0d # OK # ----------------------------------------------------------------------------- attach 1000 { # JHS: Brown device-name "umass[0-9]+" ; match "vendor" "0x0000" ;# Manufacturer didnt register ? match "product" "0x7777" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "B55E32FD" ; match "release" "0x0101" ; action "touch /tmp/devd-usb_brown" ; action "sleep 4 ;\ rm -f /devusb/brown /devusb/brown.ufs /devusb/brown.bde ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ /devusb/brown ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`d \ /devusb/brown.ufs ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`d.bde \ /devusb/brown.bde ;\ gbde attach /dev/da`echo $device-name|sed -e s/umass//`d \ -p `cat /home/jhs/.DOTS/.passwd/gbde/jhs.1700m` ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/brown.bde ;\ mkdir /media/brown.ufs ;\ mount -t ufs -o noatime /devusb/brown.bde /media/brown.ufs" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0000" ; match "product" "0x7777" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "B55E32FD" ; match "release" "0x0101" ; action "gbde detach /dev/`echo $device-name|sed -e s/umass/da/`d ;\ rmdir /media/brown.ufs ;\ rm -f /devusb/brown /devusb/brown.ufs /devusb/brown.bde" ; # hope human has already umount /media/brow # hope human has already gbde detach md0 or md1 # See also: /home/jhs/bin/.sh/umountusb. } ; # ---------------------------------------------------------------------------- # Picture Frame/ Viewer sold by Rossman. 20 Euro Dec. 2010 # German leaflet lists: # Manufacturer # http://www.tucantec.de # Useless web site just a flash page. # Model DPF 259706 attach 1000 { match "vendor" "0x1dbd" ; match "product" "0x302b" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "000000000000" ; match "release" "0x0215" ; action "sleep 4 ;\ rm -f /devusb/viewer ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/viewer ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/viewer ;\ mkdir /media/viewer ; chmod 777 /media/viewer ;\ chown jhs:staff /media/viewer ;\ mount -t msdosfs /devusb/viewer /media/viewer" ; } ; detach 1000 { match "vendor" "0x1dbd" ; match "product" "0x302b" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "000000000000" ; match "release" "0x0215" ; action "rmdir /media/viewer ; rm -f /devusb/viewer" ; } ; # mount -t msdosfs -r /dev/da1 /mnt # ls -l /mnt # drwxr-xr-x 1 root wheel 2048 Jan 1 1980 ./ # -rwxr-xr-x 1 root wheel 20 Jan 1 2000 setup_config.data* # Filesystem 1K-blocks Used Avail Capacity Mounted on # /dev/da1 245806 6 245800 0% /mnt # ------------ # mount -t msdosfs -r /dev/da0 /mnt0 # Fails if no SD card in. # auto recognised # ------------ # Experiment on ordering # laps/media/viewer/hadrian (cd ~/pics/xxx ; tar cf - ) | tar xf - # ------------ # laps/media/viewer/sorted !fo # foreach i ( `cd ~/pics/dates/2010-06-08_5_hadrians_wall ; # echo *` ) # cp ~/pics/dates/2010-06-08_5_hadrians_wall/$i . # sleep 4 # end # ------------ # laps/media/viewer/reverse foreach i # ( `cd ~/pics/dates/2010-06-08_5_hadrians_wall ; # /bin/ls -1 | sort -r`) # cp ~/pics/dates/2010-06-08_5_hadrians_wall/$i . # sleep 4 # end # Result: # Its a dumb viewer, as expected, just like the `dir` # command in MSDOS since time immemorial, it diplays # the pictures in the order the handles (MS parlance) # or file descriptors (Unix parlance) were created # in in directory, Not in an alpha-numeric sorted # order of names. So after you''ve eg edited a few # files with eg xv etc, perhaps to change portratit # & landscape etc, & maybe delete some files & copied # in some pics from another photographer etc, & renamed # files in order you want, WHile it will look fine # on Unix, As MSDOS is so dumb (& so still is Mickesoft # & much junk based on it), you can not safely just # copy to a mounted msdodfs file system with back to # back tar. Instead you need to explicitly sort then # copy each file one by one into a new empty directory. # ----------------------------------------------------------------------------- # 2 x Sandisk 2 G # jhs@''s 1st stick as in use years prior to 2011.04: # /var/log/messages:1909MB (3911679 512 byte sectors: 255H 63S/T 243C) # fdisk: # cylinders=243 heads=255 sectors/track=63 (16065 blks/cyl) # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 63, size 16002 (7 Meg), flag 0 # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 0/ head 254/ sector 63 # The data for partition 2 is: # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 16065, size 3887730 (1898 Meg), flag 80 (active) # beg: cyl 1/ head 0/ sector 1 ; # end: cyl 242/ head 254/ sector 63 # jes@''s Sandisk stick given to jhs@ 2011-04-24 # /var/log/messages:1909MB (3911679 512 byte sectors: 255H 63S/T 243C) # Arrived from jes@ with fdisk showing: # cylinders=243 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 129, size 3910911 (1909 Meg), flag 0 # beg: cyl 0/ head 2/ sector 4 ; # end: cyl 969/ head 63/ sector 63 # ---------------------------------------------------------------------------- # dmesg: 1909MB (3911679 512 byte sectors: 255H 63S/T 243C) attach 1000 { # JHS: Memory Stick - 2 Gig SanDisk - UFS Backup # device-name "umass[0-9]+" ; match "vendor" "0x0781" ; match "product" "0x5151" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "2004452871050E227E10" ; # Mine died: "2004431840050E227A6C" ; match "release" "0x0010" ; action "sleep 4 ;\ rm -f /devusb/sanjes.dos /devusb/sanjes.bde \ /devusb/sanjes.name ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/sanjes.dos ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/sanjes.dos ;\ mkdir /media/sanjes.dos ; chmod 777 /media/sanjes.dos ;\ chown jhs:staff /media/sanjes.dos ;\ mount -t msdosfs /devusb/sanjes.dos /media/sanjes.dos ;\ echo /dev/`echo $device-name`s2|sed -e s/umass/da/ >\ /devusb/sanjes.name ;\ gbde attach `cat /devusb/sanjes.name` \ -p `cat /home/jhs/.DOTS/.passwd/gbde/jhs.1700m` ;\ ln -s `cat /devusb/sanjes.name`.bde /devusb/sanjes.bde ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sanjes.bde ;\ mkdir /media/sanjes.ufs ;\ mount -t ufs -o noatime /devusb/sanjes.bde /media/sanjes.ufs" ; } ; # power 100 mA # 3911679+0 records = 2002779648 bytes # Very slow when doing rdist backup, but only 1/3 slower than integral # when doing large raw dd: # dd if=/dev/zero of=/media/integral/junk (4302944 bytes/sec) # dd if=/dev/zero of=/media/sandisk/junk (3700233 bytes/sec) # time rdist 2sandisk 1.277u 2.391s 29:00.93 0.2% 78+1267k 3+0io 0pf+0w # time rdist 2integral 1.193u 2.364s 2:56.36 2.0% 87+1417k 32+0io 0pf+0w detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0781" ; match "product" "0x5151" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "2004452871050E227E10" ; match "release" "0x0100" ; action "\ umount -f /media/sanjes.dos ;\ rm -f /devusb/sanjes.dos ;\ umount -f /media/sanjes.ufs ;\ gbde detach `cat /devusb/sanjes.name` ;\ rmdir /media/sanjes.dos /media/sanjes.ufs ;\ rm -f /devusb/sanjes.dos /devusb/sanjes.name" ; # See also: /home/jhs/bin/.sh/umountusb . } ; # ----------------------------------------------------------------------------- # Media_LED: No # jes@ has 2 of these sticks & will give one to pas@ # 2011-09-16 dmesg reports: # da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 # da0: # Removable Direct Access SCSI-2 device # da0: 40.000MB/s transfers # da0: 953MB (1952768 512 byte sectors: 64H 32S/T 953C) # 2011-09-16 fdisk /dev/da0 reports: # cylinders=953 heads=64 sectors/track=32 (2048 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 128, size 1952640 (953 Meg), flag 0 # beg: cyl 0/ head 2/ sector 3 ; # end: cyl 968/ head 20/ sector 20 # 2011-09-16 content: # host=blak, front top socket # cd /pub/freebsd/ISO-IMAGES-i386/8.2 ; # bytes: 958617600 # dd if=FreeBSD-8.2-RELEASE-i386-memstick.img of=/dev/da0 # 1872300+0 records 958617600 bytes in 88 mins (180132 bytes/sec) # 2011-11-20 # umass0: on usbus1 # umass0: SCSI over Bulk-Only ; quirks = 0x0000 # umass0:2:0:-1: Attached to scbus2 # da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 # da0: Removable Direct Access # SCSI-2 device # da0: 1.000MB/s transfers # da0: 953MB (1952768 512 byte sectors: 64H 32S/T 953C) # GEOM: da0: geometry does not match label (255h,63s != 64h,32s). # GEOM: da0: media size does not match label. attach 1000 {# jes@''s 1 G # Kingston DataTraveler stick given to jhs@ 2011-04-24 match "vendor" "0x0951" ; match "product" "0x1603" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "00100000000000000000038E" ; match "release" "0x0200" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; action "sleep 4 ;\ rm -f /devusb/traveler ;mkdir /media/traveler ;\ chmod 777 /media/traveler ;\ chown jhs:staff /media/traveler ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/traveler ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/traveler ;\ mount -t msdosfs /devusb/traveler /media/traveler" ; } ; # DOS: # action "sleep 4 ;\ # rm -f /devusb/traveler ;mkdir /media/traveler ;\ # chmod 777 /media/traveler ;\ # chown jhs:staff /media/traveler ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/traveler ;\ # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/traveler ;\ # mkdir /media/traveler ; chmod 777 /media/traveler ;\ # chown jhs:staff /media/traveler ;\ # mount -t msdosfs /devusb/traveler /media/traveler" ; # BSD # action "sleep 4 ;\ # rm -f /devusb/traveler ;mkdir /media/traveler ;\ # chmod 777 /media/traveler ;\ # chown jhs:staff /media/traveler ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/traveler ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/traveler ;\ # mount -t ufs -o noatime /devusb/traveler /media/traveler" ; # Wed 4 Apr 2012 I reverted from BSD FS to DOS FS like this: # cp /dev/zero /dev/da0 # sysctl kern.geom.debugflags=16 # fdisk -i /dev/da0 # manualy all to 0. # fdisk -B /dev/da0 # fdisk -u /dev/da0 # sysid 11 # start 8192 # ^C # fdisk -B /dev/da0 # change the boot code? [n] y # fdisk -i /dev/da0 # "sysid (165=FreeBSD)" [165] 11 # "start" [32] # "size" [1951712] # "active partition" [1] # newfs_msdos /dev/da0s1 # Which is then usable on Toshiba TV. detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0951" ; match "product" "0x1603" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "00100000000000000000038E" ; match "release" "0x0200" ; action "rmdir /media/traveler ; rm -f /devusb/traveler" ; } ; # ----------------------------------------------------------------------------- # # dd bs=32k (3,544,652 bytes/sec) # 12.3-RELEASE statv /dev/da0 Optimal I/O 4096 # dc 1075061248 4096 / p 262466 4096 * p 1075060736 # dd bs=4k of=/dev/da0 conv=sync if=FreeBSD-12.3-RELEASE-amd64-memstick.img # FreeBSD-12.3-RELEASE-amd64-memstick.img # 262467+0 records in 262467+0 records out # 1075064832 bytes transferred in 1514.010285 secs (710078 bytes/sec) # 1075061248 ls -l #attach 1000 { # JHS: Memory Stick - ZOGI 2 G < MSD Glued paper clip. LED Red # # device-name "umass[0-9]+" ; # match "vendor" "0x058f" ; # match "product" "0x6387" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "47F0CAFA" ; # match "release" "0x0103" ; # # ------------------------------ # # Older release: # # action "sleep 4 ; rm -f /devusb/clip ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/clip ;\ # # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/clip ;\ # # mkdir /media/clip ;\ # # mount -t ufs -o noatime /devusb/clip /media/clip" ; # # Mounted as msdosfs: testblock -v bla ; Block size 61440 11 mins # # -b 512 ; 52 min # -b 1k ; 15 min # -b 2k ; 12 min # -b 8k ; 13 min # # ------------------------------ # # Newer release: # # The data for partition 1 is: # # sysid 239 (0xef),(EFI System Partition) # # start 1, size 1600 (0 Meg), flag 0 # # beg: cyl 1023/ head 255/ sector 63 ; # # end: cyl 1023/ head 255/ sector 63 # # The data for partition 2 is: # # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # # start 1601, size 1904464 (929 Meg), flag 80 (active) # # beg: cyl 1023/ head 255/ sector 63 ; # # end: cyl 1023/ head 255/ sector 63 # action "sleep 4 ; rm -f /devusb/clip.efi /devusb/clip.ufs ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/clip.efi ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a /devusb/clip.ufs ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/clip.ufs ;\ # mkdir /media/clip.efi /media/clip.ufs ;\ # mount -t ufs -o noatime /devusb/clip.ufs /media/clip.ufs" ; # # JJLATER how to mount /media/clip.efi ? # } ; #detach 1000 { # match "vendor" "0x058f" ; # match "product" "0x6387" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "47F0CAFA" ; # match "release" "0x0103" ; # action "rmdir /media/clip ; rm -f /devusb/clip" ; # } ; # ----------------------------------------------------------------------------- # mk''s 1Gig stick from Lovells. # da0: Removable Direct Access SCSI-4 device # da0: 40.000MB/s transfers # da0: 962MB (1970176 512 byte sectors: 64H 32S/T 962C) # fdisk # cylinders=962 heads=64 sectors/track=32 (2048 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # partition 1 # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 1464, size 1968712 (961 Meg), flag 0 # beg: cyl 0/ head 23/ sector 16 ; end: cyl 977/ head 8/ sector 40 attach 1000 { match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intsubclass" "0x06" ; match "sernum" "A9DE38FB" ; match "release" "0x0103" ; # match "intclass" "0x08" ; # match "intprotocol" "0x50" ; action "sleep 4 ;\ rm -f /devusb/lovelsmk ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/lovelsmk ;\ mkdir /media/lovelsmk ; chmod 777 /media/lovelsmk ;\ chown jhs:staff /media/lovelsmk ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/lovelsmk ;\ mount -t msdosfs /devusb/lovelsmk /media/lovelsmk" ; # Maybe it might need `/site/usr/local/bin/fsck_o_large.sh` ? } ; detach 1000 { match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "A9DE38FB" ; match "release" "0x0103" ; # hope human has already umount /media/lovelsmk # See also: /home/jhs/bin/.sh/umountusb. action "rmdir /media/lovelsmk ; rm -f /devusb/lovelsmk" ; } ; # ----------------------------------------------------------------------------- # Media_LED: Yes, Red # Stick showed only /dev/da0, no da0s1. # /var/log/messages: # da0: 40.000MB/s transfers # da0: 4038MB (8269824 512 byte sectors: 255H 63S/T 514C) # fdisk: cylinders=514 heads=255 sectors/track=63 (16065 blks/cyl) # The data for partition 1 is: # sysid 105 (0x69),(unknown) # beg: cyl 68/ head 13/ sector 10 ; # end: cyl 288/ head 115/ sector 43 # The data for partition 2 is: # sysid 115 (0x73),(unknown) # start 1701519481, size 1869881465 (913028 Meg), flag 50 # beg: cyl 371/ head 114/ sector 37 ; # end: cyl 366/ head 32/ sector 33 # end: cyl 0/ head 0/ sector 0 # I zeroed all partitions with: fdisk -i /dev/da0 # Plugged into MS on Acer which formatted it to: # cylinders=514 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 63, size 8257347 (4031 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 513/ head 254/ sector 63 # Media_Size: 8G attach 1000 { # mk bought from Mueller 2011.01, gave to jhs, jhs gave to jes match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intsubclass" "0x06" ; match "sernum" "67843FC2" ; match "release" "0x0103" ; action "sleep 4 ;\ rm -f /devusb/mueljes ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/mueljes ;\ mkdir /media/mueljes ; chmod 777 /media/mueljes ;\ chown jhs:staff /media/mueljes ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mueljes ;\ mount -t msdosfs /devusb/mueljes /media/mueljes" ; # Maybe it might need `/site/usr/local/bin/fsck_o_large.sh` ? } ; detach 1000 { match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intsubclass" "0x06" ; # match "sernum" "67843FC2" ; match "release" "0x0103" ; # hope human has already umount /media/mueljes # See also: /home/jhs/bin/.sh/umountusb. action "rmdir /media/mueljes ; rm -f /devusb/mueljes" ; } ; # ----------------------------------------------------------------------------- # fdisk /dev/da0 of new stick: # parameters extracted from in-core disklabel are: & # parameters to be used for BIOS calculations are: # cylinders=472 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 1688, size 7584104 (3703 Meg), flag 0 # beg: cyl 0/ head 26/ sector 51 ; # end: cyl 940/ head 89/ sector 25 # The data for partition 2,3,4 is: # Sales leaflet USB2.0 bar code: 4 002903 012452 http://www.mueller.de attach 1000 { # mk bought from Mueller 2011.04, gave to jhs match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match intclass "0x08" ; # match "intsubclass" "0x06" ; match "sernum" "11122517030244" ; match "release" "0x0102" ; action "sleep 4 ;\ rm -f /devusb/muelmk ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/muelmk ;\ mkdir /media/muelmk ; chmod 777 /media/muelmk ;\ chown jhs:staff /media/muelmk ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/muelmk ;\ mount -t msdosfs /devusb/muelmk /media/muelmk" ; # Maybe it might need `/site/usr/local/bin/fsck_o_large.sh` ? } ; detach 1000 { match "vendor" "0x058f" ; match "product" "0x6387" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "sernum" "11122517030244" ; match "release" "0x0102" ; # hope human has already umount /media/muelmk # See also: /home/jhs/bin/.sh/umountusb. action "rmdir /media/muelmk ; rm -f /devusb/muelmk" ; } ; # ----------------------------------------------------------------------------- # Mueller 8G # dmesg: # da0: 7400MB (15155200 512 byte sectors: 255H 63S/T 943C) # GEOM: da0: partition 1 does not start on a track boundary. # GEOM: da0: partition 1 does not end on a track boundary. # fdisk /dev/da0 # cylinders=943 heads=255 sectors/track=63 (16065 blks/cyl) # The data for partition 1 is: # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 3256, size 15151944 (7398 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 939/ head 255/ sector 46 # The data for partition 2,3,4 is: # Sales leaflet USB2.0 High Speed bar code: 4 002903 012483 # http://www.mueller.de attach 1000 { # mk bought from Mueller 2011.09, gave to jhs # laps reports: '+umass0' match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "12053009008056" ; match "release" "0xc622" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; action "sleep 4 ;\ rm -f /devusb/mueljhs ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/mueljhs ;\ mkdir /media/mueljhs ; chmod 777 /media/mueljhs ;\ chown jhs:staff /media/mueljhs ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mueljhs ;\ mount -t msdosfs /devusb/mueljhs /media/mueljhs" ; # Maybe it might need `/site/usr/local/bin/fsck_o_large.sh` ? } ; detach 1000 { match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "12053009008056" ; # laps 8.2-RELEASE 2012-10-11 did see the serial number during detach ! match "release" "0xc622" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # hope human has already umount /media/mueljhs # See also: /home/jhs/bin/.sh/umountusb. action "rmdir /media/mueljhs ; rm -f /devusb/mueljhs" ; } ; # ----------------------------------------------------------------------------- # 8 G Green bracelet mk@ has 2 # Removable Direct Access SCSI-4 device # 40.000MB/s transfers # 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) # quirks=0x3 # fdisk /dev/da0 # cylinders=974 heads=255 sectors/track=63 (16065 blks/cyl) sector size 512 # partition 1 sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 56, size 15663048 (7647 Meg), flag 0 # beg: cyl 0/ head 0/ sector 57 ; end: cyl 974/ head 250/ sector 44 # dd read speed 27,297,052 bytes/sec attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "AA00000000012805" ; match "release" "0x1100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 4 ; rm -f /devusb/green ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/green ;\ mkdir /media/green ; chmod 777 /media/green ;\ chown jhs:staff /media/green ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/green ;\ mount -t msdosfs /devusb/green /media/green" ; } ; detach 1000 { match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "AA00000000012805" ; match "release" "0x1100" ; action "rmdir /media/green" ; } ; # ----------------------------------------------------------------------------- # Range: http://www.delock.com/produkte/F_460_eflash-speicher_867_USB.html # 8G: http://www.delock.com/produkte/F_867_USB_54221/merkmale.html # Read: 10 MB/s Write: 4 MB/s # Media_LED: Yes, Red, very Small. # 8 G from Virginie & Roman, stick died 2013-12, # (wouldnt work more than a minute, even cool at 8 C, # all but /dev/da0 kept dissapearing, so bad sectors) # match "vendor" "0x05e3" ; # match "product" "0x0727" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "000000000250" ; # match "release" "0x0250" ; # match "intclass" "0x08" ; # match "intprotocol" "0x50" ; # match "intsubclass" "0x06" ; # ----------------------------------------------------------------------------- # Media_Size: 16G # Media_LED: No # Stick built by ~/private/bin/.sh/gbde_build.sh # When fdisk showed partition 2 as active, # Evi using MS asked if the partition was F: ? # I said probably so, but then she couldnt access it. attach 1000 { # JHS: Slender Stick 16G Brand=Platinum # Aluminium chassis, unpainted colour=8G size. # Conrad.de shop Im Tal 2013-12-13 13.99 Euro. # Stick: http://www.conrad.de/ce/de/product/417197/\ # USB-Stick-16-GB-Platinum-Slender-Silber-177546-USB-20/ # http://www.conrad-electronic.co.uk/ce/en/product/417197/\ # Platinum-Slender-177546-16GB-USB-Stick-Silver # Range: http://www.conrad.de/ce/de/Search.html?search=Platinum+Slender # http://www.conrad-electronic.co.uk search Platinum Slender # bestmedia.de bar code 4 027927 775466, order no 127035, Article 177546 # http://www.bestmedia.de/produkte/c/\ # platinum_highspeed_usb_slender_stick.html # Write: 6-10 MB/sec. Read: 15-20 MB/sec. # I''m not seeing those rates on idle host=lapr, see below # dmesg reports: da0: quirks=0x3 match "vendor" "0x13fe" ; match "product" "0x4100" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "070B3114C022D211" ; # older with 18 mm diameter ring. match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; # match "ugen" "ugen1.5" ; # setting cdev=diskid/DISK-070B3114C022D211 # setting cdev=msdosfs/USB%20DISK # cdev=diskid/DISK-070B3114C022D211s1 # ls -l /dev/ # da0 # da0s1 # diskid: # DISK-070B3114C022D211 # DISK-070B3114C022D211s1 # msdosfs: # USB%20DISK # -------- # time testblock -v -w -n 8k.tb ; time testblock -v -r -n 8k.tb # Wrote -1 bytes, after previous 4,294,959,104 (0xffffe000) # (524287 blocks * 8192 bytes). # 17:38.82 # dc: 17 60 * 38 + p 1058 # dc: 1024 1024 1024 4 * * * 1058 / p 4,059,515 # -------- # time testblock -v -r -n 8k.tb # Reading (no prior writing). Reading 8k.tb. # Read 0 bytes, after previous 4,294,959,104 (0xffffe000) # (524287 blocks * 8192 bytes). # 4:17.26 # dc: 4 60 * 17 + p 257 # dc 1024 1024 1024 4 * * * 257 / p 16,711,935 # -------- # time testblock -v -w -n -b 128k 128k.tb ; # Wrote -1 bytes, after previous 4,294,836,224 (0xfffe0000) # (32767 blocks * 131072 bytes). # 17:25.34 # dc: 17 60 * 25 + p 985 # dc: 1024 1024 1024 4 * * * 985 / p 4,360,372 # -------- # time testblock -v -r -n -b 128k 128k.tb ;date # Read 0 bytes, after previous 4,294,836,224 (0xfffe0000) # (32767 blocks * 131072 bytes). # 4:48.53 # dc 4 60 * 48 + p 288 # dc 1024 1024 1024 4 * * * 288 / p 14,913,080 # -------- # dd if=/dev/zero of=128k.dd bs=128k # 32768+0 records in 32767+0 records out # 4294836224 bytes transferred (3,971,653 bytes/sec) # -------- # dd if=128k.dd of=/dev/null bs=128k # 32767+0 records in out # 4294836224 bytes transferred (15,563,190 bytes/sec) # -------- # dd if=/dev/zero of=64k.dd bs=64k # 39789+0 records in 39788+0 records out # 2607546368 bytes transferred (4,027,143 bytes/sec) # ---------- # Create a tiny UFS for s4, so /media/platinum.end can mount, # & be seen by /site/etc/rc.shutusb, to rm /devusb/platinum.end # fdisk da0 # partition 4 is: # start 30282525, size 483 (0 Meg), flag 0 # beg: cyl 861/ head 0/ sector 1 ; # end: cyl 861/ head 7/ sector 42 # newfs /dev/da0s4 # # First cylinder group ran out of space # newfs -b 4096 -f 512 /dev/da0s4 # Floating exception # newfs -b 4096 -f 1024 /dev/da0s4 # Floating exception # newfs -b 4096 -f 2048 /dev/da0s4 # Reduced frags per cylinder group from # 46 to 40 to enlarge last cyl group # /dev/da0s4: 0.2MB (480 sectors) block size 4096, # fragment size 2048 # using 3 cylinder groups of 0.08MB, # 20 blks, 32 inodes. # super-block backups (for fsck_ffs -b #) at: # 144, 304,newfs: wtfs: 20480 bytes at sector 464: # No error: 0 # newfs -b 4096 /dev/da0s4 # /dev/da0s4: 0.2MB (480 sectors) block size 4096, # fragment size 4096 # using 2 cylinder groups of 0.12MB, # 32 blks, 16 inodes. # super-block backups (for fsck_ffs -b #) at: # 144, 400 action "sleep 4 ;\ rm -f /devusb/platinum.dos /devusb/platinum.bde \ /devusb/platinum.name /devusb/platinum.os \ /devusb/platinum.fdisk /devusb/platinum.end \ /devusb/platinum.which ;\ mkdir -p /media/Old ;\ mv /media/platinum.dos /media/platinum.ufs /media/platinum.os \ /media/platinum.end /media/Old ;\ echo ring > /devusb/platinum.which ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ /devusb/platinum.fdisk ;\ echo /dev/`echo $device-name`s3|sed -e s/umass/da/ >\ /devusb/platinum.name ;\ gbde attach `cat /devusb/platinum.name` \ -p `cat /home/jhs/.DOTS/.passwd/gbde/jhs.1700m` ;\ ln -s `cat /devusb/platinum.name`.bde /devusb/platinum.bde ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.bde ;\ mkdir /media/platinum.ufs ;\ mount -t ufs -o noatime /devusb/platinum.bde /media/platinum.ufs ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/platinum.dos ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/platinum.dos ;\ mkdir /media/platinum.dos ; chmod 777 /media/platinum.dos ;\ chown jhs:staff /media/platinum.dos ;\ mount -t msdosfs /devusb/platinum.dos /media/platinum.dos ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ /devusb/platinum.os ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.os ;\ mkdir /media/platinum.os ;\ mount -t ufs -o noatime /devusb/platinum.os /media/platinum.os ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ /devusb/platinum.end ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.end ;\ mkdir /media/platinum.end ;\ mount -t ufs -o noatime /devusb/platinum.end /media/platinum.end ;\ \ echo 'For a manual demount: /site/etc/rc.shutusb' >>\ /var/log/messages " ; # If the USB stick is plugged in at boot, & rc.conf # domain="js.berklix.net", then mount of /media/platinum.ufs # fails, as /home/jhs/.DOTS/.passwd/gbde/jhs.1700m is not # fetched, presumably as NFS + AMD not yet running. } ; detach 1000 { match "vendor" "0x13fe" ; match "product" "0x4100" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "\ umount -f /media/platinum.dos ;\ \ umount -f /media/platinum.ufs ;\ gbde detach `cat /devusb/platinum.name` ;\ \ umount -f /media/platinum.os ;\ \ umount -f /media/platinum.end ;\ \ rmdir /media/platinum.dos /media/platinum.ufs \ /media/platinum.os /media/platinum.end ;\ \ rm -f /devusb/platinum.dos /devusb/platinum.name \ /devusb/platinum.os /devusb/platinum.end \ /devusb/platinum.bde /devusb/platinum.which" ; # For a manual demount: /site/etc/rc.shutusb } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS: Slender Stick 16G Brand=Platinum # This a near clone of section above, for all except sernum. match "vendor" "0x13fe" ; match "product" "0x4100" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "070B3C9A27828828" ; # newer with mini chain & 10 mm diameter ring match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 4 ;\ rm -f /devusb/platinum.dos /devusb/platinum.bde \ /devusb/platinum.name /devusb/platinum.os \ /devusb/platinum.fdisk /devusb/platinum.end \ /devusb/platinum.which ;\ mkdir -p /media/Old ;\ mv /media/platinum.dos /media/platinum.ufs /media/platinum.os \ /media/platinum.end /media/Old ;\ echo chain > /devusb/platinum.which ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ /devusb/platinum.fdisk ;\ echo /dev/`echo $device-name`s3|sed -e s/umass/da/ >\ /devusb/platinum.name ;\ gbde attach `cat /devusb/platinum.name` \ -p `cat /home/jhs/.DOTS/.passwd/gbde/jhs.1700m` ;\ ln -s `cat /devusb/platinum.name`.bde /devusb/platinum.bde ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.bde ;\ mkdir /media/platinum.ufs ;\ mount -t ufs -o noatime /devusb/platinum.bde /media/platinum.ufs ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/platinum.dos ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/platinum.dos ;\ mkdir /media/platinum.dos ; chmod 777 /media/platinum.dos ;\ chown jhs:staff /media/platinum.dos ;\ mount -t msdosfs /devusb/platinum.dos /media/platinum.dos ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ /devusb/platinum.os ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.os ;\ mkdir /media/platinum.os ;\ mount -t ufs -o noatime /devusb/platinum.os /media/platinum.os ;\ \ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ /devusb/platinum.end ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/platinum.end ;\ mkdir /media/platinum.end ;\ mount -t ufs -o noatime /devusb/platinum.end /media/platinum.end ;\ \ echo 'For a manual demount: /site/etc/rc.shutusb' >>\ /var/log/messages " ; } ; # ----------------------------------------------------------------------------- # Date: Fri, 09 Dec 2011 18:39:46 +0100 # To: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org # Another 2 G stick was particularly slow: (marked as) Sony, # bought at a computer Sunday 'flea' market in Croydon England, # in retrospect I wonder if manufacturer Sony might have withdrawn them # from sale, marked the batch for destruction, & possibly some criminal # 'liberated' them for resale again ? # (Such things do happen, eg In Germany years back, pre USB # era, CT Mag reported reported Betruger/Placebo cache chips. # They were just ceramic with no silicon in, it was reported # importers (in Munich I think) were afraid to sue chinese # exporters, fear of Triads! maybe last bit was speculation, # but wasn''t My speculation, I read it, whatever, can not remember # more now) # ----------- # JHS: Memory Stick - 2 Gig Sony - Many Defunct ** # match "vendor" "0x1043" ; # match "product" "0x8012" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # da0: Removable Direct Access SCSI-2 device # da0: 1.000MB/s transfers # da0: 2038MB (4173824 512 byte sectors: 255H 63S/T 259C) # usbd -d -v -v : power 100 mA, config 1 # dc 2147483648 # 1024 1024 1024 2 * * * p # USB1: dd if=/dev/da0 of=/usr1/tmp/stick PENDING # USB2: 2138177536 pas@ stick, not my stick # jes@: 2130018304 jes@ stick, bytes free on the DOS FS. # JHS: 2136997888 = 4173824 x 512 Stick wont r. or w. # JES did get money back from the guy at the Croydon computer fair. # .jpg of bill dated 2/4/2006 # for 4 x 55 pound = 220. # No VAT marked ! # Stapled on, a business card # P 0870 80 30 231 # E sales@mantisonline.co.uk # W www.mantis-online.co.uk # No other info like human name, company name, # address, tax reg no. # Just a mobile phone number ! # 2010.11.04 web: Asiatic character set. # whois mantis-online.co.uk: # Domain name: # mantis-online.co.uk # Registrant: # VALUE DOMAIN # Trading as: # VALUE-DOMAIN COM # Registrant type: # UK Individual # Registrant''s address: # Honmachi TS Bld. 6F Bakurou-machi 4-7-5, Chuo-ku # Osaka-fu # Osaka-shi # 541-0059 # Japan # Registrar: # eNom, Inc. [Tag = ENOM] # URL: http://www.enom.com # Relevant dates: # Registered on: 28-Aug-2008 # Renewal date: 28-Aug-2012 # Last updated: 09-Sep-2010 # Registration status: # Registered until renewal date. # Name servers: # ns1.priceseo.com # ns2.priceseo.com # ----------------------------------------------------------------------------- # 16 G USB3 Transcend stick bought by pas@ for pas & jhs 2012-04-11, pas@ notes: # I tried mine on the computer''s USB3 port. # Video files (few, large) from my Fujitsu external to the new stick # about 24MB/s # Web site files (many, small) from main hard drive to the new stick # about 3.5 MB/s # My red 4 GB USB2 stick to see if there was any material difference. # The comparable figures there were 4.8MB/s max and 0.8 MB/S max. # copying the same small files from my hard drive to the Fujitsu. # The rate started at 40MB/S, dropped down steadily # as low as 4 then climbed up slowly above 6. # So the USB2 hard drive is still appreciably faster than the USB3 stick, # but the USB3 stick is streets faster than the USB2 stick. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Media_Size: 16G UFS Transcend usb3 # dmesg: # da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 # da0: # Removable Direct Access SCSI-5 device # da0: 40.000MB/s transfers # da0: 15074MB (30871552 512 byte sectors: 255H 63S/T 1921C) # bsdlabel -w /dev/da0 auto # bsdlabel -e /dev/da0 # a > 4.2BSD # newfs /dev/da0a # Block size 1048576 (0x100000). # 14,070,841,344 13419 blocks # (another gig or so notused cos of tunefs -m) # (Speeds measured while machine also running a make.) # date ; testblock -v -n -b 1m -w bla ; date # 29 min 47 sec = 1787 sec ... 7,874,002 bytes/sec # date ; testblock -v -n -b 1m -r bla ; date # 7 min 59 secs = 479 sec ... 29,375.452 bytes/sec attach 1000 { # JHS: Memory Stick # device-name "umass[0-9]+" ; match "vendor" "0x8564" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "3506087747" ; match "release" "0x0a00" ; # action "sleep 4 ; rm -f /devusb/transcend16g ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a \ # /devusb/transcend16g ;\ # mkdir /media/transcend16g ; chmod 777 /media/transcend16g ;\ # chown jhs:staff /media/transcend16g ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/transcend16g ;\ # mount -t ufs /devusb/transcend16g /media/transcend16g" ; # --------- # 2015-04-17 reformatted with: # dd if=/dev/zero bs=20k of=/dev/da0 # sysctl kern.geom.debugflags=16 ; fdisk -u da0 # sysid 12 # newfs_msdos /dev/da0s1 # --------- action "sleep 4 ; rm -f /devusb/transcend16g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/transcend16g ;\ mkdir /media/transcend16g ; chmod 777 /media/transcend16g ;\ chown jhs:staff /media/transcend16g ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/transcend16g ;\ mount -t msdosfs /devusb/transcend16g /media/transcend16g" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x8564" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "3506087747" ; match "release" "0x0a00" ; action "sleep 4 ; rm -f /devusb/transcend16g" ; } ; # ============================================================================= # }{ DEVICE_TYPE MP3 PLAYER # ----------------------------------------------------------------------------- # 4 G Rossman mp3 player MP X30 V Multimedia Player # http://berklix.com/~jhs/txt/odys_de_mp3-player-mp-x30/ # Garantiekarte ODYS X30V/ EAN 4260087125126 # Sernum: Both mk''s & jhs@''s report same serial number. # Vendor: Paper manual says Odys.de # /usr/share/misc/usbdevs says vendor 0x10d6= ACTIONS. # This creates 2 /dev/da[0-9] entries, da0 is internal, # da1 is external micro SD card, manual says only up to 2 G. # I have succesfully used a 2G card in slot. # I have succesfully used a transcend 4G card in slot. That card had: # fdisk /dev/da1 # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 8192, size 7874560 (3845 Meg), flag 0 # beg: cyl 1/ head 2/ sector 3 ; # end: cyl 977/ head 67/ sector 3 # J & M from display screen: # FW: CD514K40m_V3.1 # Date: 2010/08/04 # Core: 9.5.54 # Date: 2008/09/05 # Serial on case & cardboard: J: 3708012301397, M: 3708012301350 # 4G size. # It mounts /dev/da0 , Note /dev/da0s1 fdisk is meaningless, do not use fdisk. # I can not remember if it came from the shop like that, but presumably. # 2013-03-07 it seems to come & go off usb bus so gets multi mounted # maybe low battery might cause that ? # ------ # I often see: # ** /devusb/mp3.int # ** Phase 1 - Read and Compare FATs # FAT starts with odd byte sequence (f8ffff0ffffffff7) # Correct? yes # FAT starts with odd byte sequence (f8ffff0ffffffff7) # Correct? yes # ** Phase 2 - Check Cluster Chains # ** Phase 3 - Checking Directories # ** Phase 4 - Checking for Lost Files # 403 files, 2095504 free (523876 clusters) attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x10d6" ; # Actions match "product" "0x1101" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "4512482adf0fe" ; match "release" "0x0100" ; # match "intclass" "0x08" ; # match "intsubclass" "0x05" ; action "sleep 4 ;\ rm -f /devusb/mp3.int /devusb/mp3.ext ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/mp3.int ;\ ln -s /dev/da`echo $device-name 1 + n | sed -e s/umass// | dc`s1 \ /devusb/mp3.ext ;\ mkdir /media/mp3.int /media/mp3.ext ;\ chmod 777 /media/mp3.int /media/mp3.ext ;\ chown jhs:staff /media/mp3.int /media/mp3.ext ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mp3.int ;\ mount -t msdosfs /devusb/mp3.int /media/mp3.int ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mp3.ext ;\ mount -t msdosfs /devusb/mp3.ext /media/mp3.ext" ; } ; # JJLATER some code seems to run twice ? # First I see: /devusb/mp3@ -> /dev/ugen5.4 # Then /devusb/mp3 -> /dev/da1 detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x10d6" ; # Actions match "product" "0x1101" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "4512482adf0fe" ; match "release" "0x0100" ; # match "intclass" "0x08" ; # match "intsubclass" "0x05" ; action "rmdir /media/mp3.int /media/mp3.ext ;\ rm -f /devusb/mp3 /devusb/mp3.ext" ; } ; # ----------------------------------------------------------------------------- # I suspect mk@''s silver rossmann will fall through to here as here serial not in entry above ? # /bin/df | grep -v fire # Filesystem 1K-blocks Used Avail Capacity Mounted on # /dev/da0 3971136 24 3971112 0% /mnt attach 1000 { # MK: MP3 Player Green Rossmann 2014-06-12 match "vendor" "0x10d6" ; # Actions match "product" "0x1101" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x05" ; match "intprotocol" "0x50" ; action "sleep 10 ;\ rm -f /devusb/mp3green ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/mp3green ;\ mkdir /media/mp3green ; chmod 777 /media/mp3green ;\ chown jhs:staff /media/mp3green ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/mp3green ;\ mount -t msdosfs /devusb/mp3green /media/mp3green" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x10d6" ; # Actions match "product" "0x1101" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/mp3green ; rm -f /devusb/mp3green" ; } ; # ======================================================================= attach 1000 { # JHS: MP3 Player - X4-Tech Clipman # device-name "umass[0-9]+" ; match "vendor" "0x10d6" ; # Actions match "product" "0x1100" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "sleep 30 ;\ rm -f /devusb/clipman ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/clipman ;\ mkdir /media/clipman ; chmod 777 /media/clipman ;\ chown jhs:staff /media/clipman ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/clipman ;\ mount -t msdosfs /devusb/clipman /media/clipman" ; } ; # Give it a real long sleep, cos devd is very slow to create the /dev/da* # especially if processor is also fscking a hard disc. # http://www.berklix.com/~jhs/txt/clipman/#usbd.conf # USB 2.0 (FS) FLASH DISK # FSCK: # Omit `/site/usr/local/bin/fsck.sh` -t msdosfs \ # /dev/`echo $device-name|sed -e s/umass/da/` # as this is a live device with a processor & may get confused. # devname doesnt get reported on detach. # Manual says only format as FAT or FAT32 not as NTFS. detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x10d6" ; # Actions match "product" "0x1100" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/clipman ; rm -f /devusb/clipman" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS: MP3 Player - MSD Univadis - Sigmatel chipset # http://www.berklix.com/~jhs/txt/sigmatel/ # A more meaningful name for the world is Sigmatel # As that seems to be chipset designer, but mine has word # univadis written on so is easier to remember localy. # fdisk for 3 different devices reports: # cylinders=118 heads=64 sectors/track=32 (2048 blks/cyl) # Media sector size is 2048 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB)) # start 48, size 242256 (473 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 630/ head 7/ sector 48 # That 2K seems to be real as this fails: # dd if=/dev/da0 of=/usr1/tmp/univadis # Whereas this works: # dd if=/dev/da0 of=/usr1/tmp/univadis bs=2k # ------------- # sernum 0002F769F7BD0B8A # dd if=/dev/da0 bs=2k of=/usr/tmp/da0 # 242304+0 records 496238592 bytes # (1841186 bytes/sec) # dd if=/dev/da0s1 bs=2k of=/tmp/da0s1 # 242256 records 496140288 bytes # dd if=/tmp/da0s1 bs=2k of=/dev/da0s1 # dd: /dev/da0s1: Input/output error # 80+0 records in 79+0 records out # ------------- # match "device-name" "umass[0-9]+" ; match "vendor" "0x066f" ; match "product" "0x8000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; # match "sernum" "0002F77585460390" ; # Paul 2013-03-02 # match "sernum" "0002F9A96344898F" ; # Birgit 2013-02-27 # match "sernum" "0002F769F7BD0B8A" ; # Julian Bad Media ? Wont run. match "release" "0x1001" ; action "sleep 10 ;\ rm -f /devusb/univadis ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/univadis ;\ mkdir /media/univadis ; chmod 777 /media/univadis ;\ chown jhs:staff /media/univadis ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/univadis ; mount -t msdosfs -o longnames /devusb/univadis /media/univadis" ; # fsck fails with could not read boot block (Invalid argument) # but it goes on to mount after. # reason fsck fails is the 2K media size } ; detach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x066f" ; match "product" "0x8000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; match "release" "0x1001" ; action "rmdir /media/univadis ; rm -f /devusb/univadis" ; } ; # ============================================================================= # }{ DEVICE_TYPE DISK by increasing size, # sernum is of USB adapter in box/enclosure, Not S/N of disk itself. # maybe/probably also for vendor product devclass etc ? # ----------------------------------------------------------------------------- # 0G # attach 1000 { # 2 identical Enclosures I JHS have, because USB hangs etc # # blue case & black case # # device-name "umass[0-9]+" ; # match "vendor" "0x058f" ; # match "product" "0x6390" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "intclass" "0x08" ; # # match "intsubclass" "0x06" ; # match "release" "0x0100" ; # action "touch /tmp/devd-warning_bad_usb_enclosure" ; # } ; # /var/log/messages & console: # umass0: BBB reset failed, TIMEOUT # umass0: BBB bulk-in clear stall failed, IOERROR # umass0: BBB bulk-out clear stall failed, IOERROR # umass0: BBB reset failed, TIMEOUT # umass0: BBB bulk-out clear stall failed, IOERROR # umass0: BBB reset failed, TIMEOUT # g_vfs_done():da0a[WRITE(offset=65536, length=2048)]error = 5 # g_vfs_done():da0a[WRITE(offset=6144000, length=16384)]error = 5 # g_vfs_done():da0a[WRITE(offset=6160384, length=6144)]error = 5 # g_vfs_done():da0a[WRITE(offset=198229819392, length=16384)]error = 5 # ----------------------------------------------------------------------------- # 2G # Commented out devd thinks both disk look the same. # As this enclosure hangs the bus I leave soft updates off: tunefs -p # Paper label 5V 0.7 A # attach 1000 { # JHS: Hard Disk 2 Gig, Enclosures hangs USB black case # # device-name "umass[0-9]+" ; # match "vendor" "0x058f" ; # match "product" "0x6390" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # # match "intclass" "0x08" ; # # match "intsubclass" "0x06" ; # action "touch /tmp/devd-warning_bad_usb_enclosure ;\ # sleep 4 ; rm -f /devusb/disk2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d /devusb/disk2 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/disk2 ;\ # mkdir /media/disk2 ;\ # mount -t ufs /devusb/disk2 /media/disk2" ; # } ; # detach 1000 { # JHS: Disk 2 Gig # match "vendor" "0x058f" ; # match "product" "0x6390" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # action "rmdir /media/disk2 ; rm -f /devusb/disk2" ; # } ; # ----------------------------------------------------------------------------- # 10G # Entry for this enclosure to access the 10 G disk normaly in toshiba libretto. # IBM Travelstar Model IC25N010ATDA04-0 4200RPM 5V 1.0A DC 10.05 GB ATA/IDE #attach 1000 { # Silver enclosure # # device-name "umass[0-9]+" ; # match "vendor" "0x067b" ; # match "product" "0x2507" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "00" ; # match "release" "0x0100" ; # action "sleep 4 ;\ # rm -f /devusb/libr* ;\ # mkdir -p /media/libr ;\ # cd /media/libr ;\ # mkdir -p s1/root s1/tmp s1/usr s1/var s2/root s2/usr s2/var \ # s3/root s3/usr s3/var s4/usr1 ;\ # cd /devusb ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ # /devusb/libr.s1.root ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s1.root ;\ # mount -t ufs /devusb/libr.s1.root /media/libr/s1/root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d \ # /devusb/libr.s1.usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s1.usr ;\ # mount -t ufs /devusb/libr.s1.usr /media/libr/s1/usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e \ # /devusb/libr.s1.var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s1.var ;\ # mount -t ufs /devusb/libr.s1.var /media/libr/s1/var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1f \ # /devusb/libr.s1.tmp ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s1.tmp ;\ # mount -t ufs /devusb/libr.s1.tmp /media/libr/s1/tmp ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ # /devusb/libr.s2.root ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s2.root ;\ # mount -t ufs /devusb/libr.s2.root /media/libr/s2/root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2d \ # /devusb/libr.s2.usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s2.usr ;\ # mount -t ufs /devusb/libr.s2.usr /media/libr/s2/usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2e \ # /devusb/libr.s2.var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s2.var ;\ # mount -t ufs /devusb/libr.s2.var /media/libr/s2/var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a \ # /devusb/libr.s3.root ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s3.root ;\ # mount -t ufs /devusb/libr.s3.root /media/libr/s3/root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3d \ # /devusb/libr.s3.usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s3.usr ;\ # mount -t ufs /devusb/libr.s3.usr /media/libr/s3/usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3e \ # /devusb/libr.s3.var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s3.var ;\ # mount -t ufs /devusb/libr.s3.var /media/libr/s3/var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4a \ # /devusb/libr.s4.usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/libr.s4.usr1 ;\ # mount -t ufs /devusb/libr.s4.usr1 /media/libr/s4/usr1" ; # } ; ## ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4b \ # /devusb/libr.s4.swap1 ## ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4d \ # /devusb/libr.s4.swap2 # detach 1000 { # JHS: libretto # # device-name "umass[0-9]+" ; # match "vendor" "0x067b" ; # match "product" "0x2507" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # action "rmdir /media/libretto ; rm -f /devusb/libretto" ; # } ; # ----------------------------------------------------------------------------- # 60G Blue chassis. Seems to be OK on toshiba USB-1 with doubler cable. # name=disk60 Fixed Direct Access SCSI-0 device # 40.000MB/s transfers # 57231MB (117210240 512 byte sectors: 255H 63S/T 7296C) (57231MB) # Storage Device, Prolific Technology Inc.: # Toshiba MK6021GAS HDD2183 B ZE01 DC +5V 0.7A, 8.455MB # (Cyl 16383, H16, S63) 60.00 GB (LBA 117,210,240 Sectors) # Speeds: # Reading to another drive on same USB2 hub 6.3 Megabyte/sec # Reading big files with tar to /dev/null 9.4 Megabyte/sec # Writing with testblock -v -n -w -b 60K 9.3 Megabyte/sec # GJ wrote his SATA to this disc got 20 Megabyte/sec # (but on a different enclosure (chip set) & faster dual core CPU). # 40.000MB/s transfers # As this enclosure hangs the bus I leave soft updates off: tunefs -p attach 1000 { # JHS: Disk - 60 Gig, Ex Toshiba Disc # Enclosures hangs USB, blue case # device-name "umass[0-9]+" ; match "vendor" "0x058f" ; match "product" "0x6390" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; match "release" "0x0100" ; action "touch /tmp/devd-warning_bad_usb_enclosure ;\ sleep 4 ; rm -f /devusb/disk60 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a \ /devusb/disk60 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/disk60 ;\ mkdir /media/disk60 ;\ mount -t ufs /devusb/disk60 /media/disk60" ; } ; detach 1000 { match "vendor" "0x058f" ; match "product" "0x6390" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/disk60 ; rm -f /devusb/disk60 \ /tmp/devd-warning_bad_usb_enclosure" ; } ; # ----------------------------------------------------------------------------- # 60G JHS: gj@''s 60 G SAMSUNG MP0603H 0811 57M 40.000MB/s USB2 & Firewire attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x05e3" ; match "product" "0x0702" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; match "release" "0x0033" ; action "sleep 4 ;\ bsdlabel /dev/`echo $device-name|sed -e s/umass/da/`c ;\ rm -f /devusb/gary60 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a /devusb/gary60 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/gary60 ;\ mkdir /media/gary60 ;\ mount -t ufs /devusb/gary60 /media/gary60" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x05e3" ; match "product" "0x0702" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; match "release" "0x0033" ; action "rmdir /media/gary60 ; rm -f /devusb/gary60" ; } ; # ----------------------------------------------------------------------------- # 63G # fsck_ext2fs /dev/da0s1 # mount -t ext2fs /dev/da0s1 /mnt # ----------------------------------------------------------------------------- # 76G # Aluminium enclosure from gj@ with 76 G disk was NTFS from host=lapo # testblock -v /dev/da1 # Wrote 0 bytes, after previous 80,026,361,856 (0x12a1f16000) # Read 0 bytes, after previous 80,026,361,856 (0x12a1f16000) # bsdlabel -B -w -r /dev/da0 ; # unplug ; replug # newfs /dev/da0a # newfs: /dev/da1a: could not find special device # unplug, plug # newfs /dev/da1a ; mount /dev/da1a /media/disk76 ; cd /media/disk76 # testblock -v bla # Wrote -1 bytes, after previous 71,269,220,352 (0x1097fa0000) # (8699856 blocks * 8192 bytes). # Reading bla. # Read 0 bytes, after previous 71,269,220,352 (0x1097fa0000) # (8699856 blocks * 8192 bytes). attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0402" ; match "product" "0x5621" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "00042222200000041582" ; match "release" "0x0103" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 4 ; rm -f /devusb/disk76 ;\ mkdir /media/disk76 ; chmod 777 /media/disk76 ;\ chown jhs:staff /media/disk76 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/disk76 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/disk76 ;\ mount -t ufs /devusb/disk76 /media/disk76" ; } ; # -o noatime detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0402" ; match "product" "0x5621" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0103" ; action "rmdir /media/disk76 ; rm -f /devusb/disk76" ; } ; # ----------------------------------------------------------------------------- # 76G # JHS: Ex pas@''s @ 2014-07, Ex jes@ 2006.11, Western 80 G # WD 800BB External 0602> Fixed Direct Access SCSI-0 device # 40.000MB/s transfers # 76319MB (156301488 512 byte sectors: 255H 63S/T 9729C) # Western Digital External HDD, class 0/0, rev 2.00/6.02, addr 5 # --- # Rectangular chassis. Push top blue button to start disc. # sysid 131 (0x83),(Linux native) # 9.3-RELEASE devd reports 6 x 'Processing event' lines in order below, # { # Processing event '!system=USB subsystem=DEVICE \ # type=ATTACH ugen=ugen5.2 cdev=ugen5.2 mode=host port=1 \ # parent=ugen5.1' # --- # Processing event '!system=USB subsystem=INTERFACE \ # type=ATTACH ugen=ugen5.2 cdev=ugen5.2 mode=host interface=0 \ # endpoints=2 intclass=0x08 intsubclass=0x06 intprotocol=0x50' # --- # Processing event '!system=USB subsystem=INTERFACE \ # type=ATTACH ugen=ugen5.2 cdev=ugen5.2 mode=host interface=1 \ # endpoints=1 intclass=0x03 intsubclass=0x00 intprotocol=0x00' # --- # Processing event '+umass2 at bus=1 hubaddr=1 port=5 \ # devaddr=2 interface=0 mode=host intclass=0x08 \ # intsubclass=0x06 intprotocol=0x50 on uhub5' # setting device-name=umass2 # --- # Processing event '!system=DEVFS subsystem=CDEV \ # type=CREATE cdev=uhid0' # --- # Processing event '+uhid0 at bus=1 hubaddr=1 port=5 devaddr=2 \ # interface=1 mode=host intclass=0x03 intsubclass=0x00 \ # intprotocol=0x00 on uhub5' # setting device-name=uhid0 # } # all with all of: # { # "vendor" "0x1058" ; # "product" "0x0404" ; # "devclass" "0x00" ; # "devsubclass" "0x00" ; # "sernum" "57442D5743414D3944373630393530" ; # "release" "0x0602" ; # } # Then 9.3-RELEASE devd continues with these, without vendor # product devclass devsubclass sernum release # { # Processing event '!system=DEVFS subsystem=CDEV type=CREATE \ # cdev=pass6' # Processing event '!system=DEVFS subsystem=CDEV type=CREATE \ # cdev=da2' # Processing event '!system=DEVFS subsystem=CDEV type=CREATE \ # cdev=da2s1' # Processing event '!system=DEVFS subsystem=CDEV type=CREATE \ # cdev=ext2fs/WD_80GB' # } # 9.3-RELEASE /dev/ has all of these created: # { da2 da2s1 ext2fs ext2fs/WD_80GB pass6 ugen5.2 uhid0 # usb/5.2.0 usb/5.2.1 usb/5.2.2 usb/5.2.3 } # The Disc: { attach 1000 { # JHS: 76g < pas@ < jes@ match "vendor" "0x1058" ; match "product" "0x0404" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "57442D5743414D3944373630393530" ; match "release" "0x0602" ; match "device-name" "umass[0-9]+" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 4 ;\ rm -f /devusb/76g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/76g ;\ fsck_ext2fs -y /devusb/76g ; mkdir /media/76g ; chmod 777 /media/76g ;\ chown jhs:staff /media/76g ; mount -t ext2fs /devusb/76g /media/76g" ; } ; # setting cdev=ext2fs/WD_80GB # which has same dev number as # /dev/da2s1 I guess I could start using cdev, But: # - Is cdev supported back to eg 8.* ? # - What if 2 identical device names ? # host=lapr 9.2 & host=blak 9.3 have /sbin/fsck_ext2fs # host=lapr 10-current & host=blak 9.3 have /usr/local/sbin/fsck_ext2fs # fsck_ext2fs /usr/ports/sysutils/e2fsprogs # mount -t ext2fs /dev/da0s1 /mnt detach 1000 { match "vendor" "0x1058" ; match "product" "0x0404" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "57442D5743414D3944373630393530" ; match "release" "0x0602" ; device-name "umass[0-9]+" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "echo Hope a human called umount /media/76g ; rmdir /media/76g ; rm -f /devusb/76g" ; } ; # } # The push buttons on front, seen when connecting cable { attach 1000 { match "vendor" "0x1058" ; match "product" "0x0404" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "57442D5743414D3944373630393530" ; match "release" "0x0602" ; match "device-name" "uhid[0-9]+" ; match "intclass" "0x03" ; match "intsubclass" "0x00" ; match "intprotocol" "0x00" ; action "echo Not doing anything to attach $device-name" ; # Maybe freebsd has some button reader but I dont know. } ; detach 1000 { match "vendor" "0x1058" ; match "product" "0x0404" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "57442D5743414D3944373630393530" ; match "release" "0x0602" ; device-name "uhid[0-9]+" ; match "intclass" "0x03" ; match "intsubclass" "0x00" ; match "intprotocol" "0x00" ; action "echo Not doing anything to detach UHID $device-name" ; } ; # } # The push buttons on front, labelling: # Top: 2 square boxes & arrow, presumably manufacture # may think this might be to ask OS to move/synch files. # Lower: Snowflake, maybe to ask for a umount ? # The 2 buttons when pushed produce no action reported by devd, # I presume they cause action on subsystem=CDEV type=MEDIACHANGE # ----------------------------------------------------------------------------- # 2 Enclosures from Gary # dmesg: vendor 0x04b4 Cypress AT2LP RC42 attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x04b4" ; match "product" "0x6830" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "D000000010008211" ; match "release" "0x0420" ; action "sleep 4 ;\ bsdlabel /dev/`echo $device-name|sed -e s/umass/da/`c ;\ rm -f /devusb/venus1 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a /devusb/venus1 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/venus1 ;\ mkdir /media/venus1 ;\ mount -t ufs /devusb/venus1 /media/venus1" ; } ; attach 1000 { # device-name "umass[0-9]+" ; # Normal Disk match "vendor" "0x04b4" ; match "product" "0x6830" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "C000000000030633" ; match "release" "0x0420" ; action "sleep 4 ;\ bsdlabel /dev/`echo $device-name|sed -e s/umass/da/`c ;\ rm -f /devusb/venus3 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a /devusb/venus3 ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/venus3 ;\ mkdir /media/venus3 ;\ mount -t ufs /devusb/venus3 /media/venus3" ; # Host=lapn rescus # action "sleep 4 ;\ # bsdlabel /dev/`echo $device-name|sed -e s/umass/da/`c ;\ # rm -f /devusb/lapn ;\ # rm -f /devusb/lapn.s1 ;\ # rm -f /devusb/lapn.s1c ;\ # rm -f /devusb/lapn.root ;\ # rm -f /devusb/lapn.swap ;\ # rm -f /devusb/lapn.var ;\ # rm -f /devusb/lapn.tmp ;\ # rm -f /devusb/lapn.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/lapn ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/lapn.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1c /devusb/lapn.s1c ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a /devusb/lapn.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1b /devusb/lapn.swap ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d /devusb/lapn.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e /devusb/lapn.tmp ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1f /devusb/lapn.usr ;\ # mkdir /media/lapn ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapn.root ;\ # mount -t ufs /devusb/lapn.root /media/lapn ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapn.var ;\ # mount -t ufs /devusb/lapn.var /media/lapn/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapn.tmp ;\ # mount -t ufs /devusb/lapn.tmp /media/lapn/tmp ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapn.usr ;\ # mount -t ufs /devusb/lapn.usr /media/lapn/usr" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x04b4" ; match "product" "0x6830" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0420" ; action "rmdir /media/venus1 ; rm -f /devusb/venus1 ;\ rmdir /media/venus2 ; rm -f /devusb/venus2" ; } ; # ----------------------------------------------------------------------------- # 120G # Silver chassis # 2011-11 # disk had a lot of errors direct on host=blak. # After connecting via a powered hub, success first time # testblock -v -n /dev/da0 # Wrote 0 bytes, after previous 120,034,123,776 # Read 0 bytes, after previous 120,034,123,776 # Previous errors were with a doubler cable straight on to # sockets on back of machine, on main board, (not the sockets at front # of PC that might have extra wire resistance) # VOLTAGE TEST PENDING ******************************** # name=disk120 120 G laptop disc. Samsung HM120JC # bsdlabel -w -r da0 auto ; bsdlabel -e da0 # To a: Add "4.2BSD 2048 16384 8" to become: # a: 234441632 16 4.2BSD 2048 16384 8 # c: 234441648 0 unused 0 0 # newfs /dev/da0a # cd /dev ; /bin/ls -1 da* # da0 da0a da0c da0cs1 da0cs1c da0s1 da0s1c # Unplug ; Reinsert # da0 da0a da0c da0cs1 da0cs1c da0s1 da0s1c # Mount & wait # ls -1 da* # da0 da0a da0c da0cs1 da0cs1c # ------ # bsdlabel -w -r da2 auto # newfs /dev/da2a # super-block 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, # ------ # da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) attach 1000 { # Silver enclosure disk120 - was Toshiba Satellite internal until March 2009 # ------ # 2016:01 fdisk -i /dev/da0 ; fdisk -B /dev/da0 ; /sbin/newfs_msdos /dev/da0s1 # # device-name "umass[0-9]+" ; match "vendor" "0x067b" ; match "product" "0x2507" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; # action "sleep 4 ; rm -f /devusb/disk120 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/disk120 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/disk120 ;\ # mkdir /media/disk120 ;\ # mount -t ufs /devusb/disk120 /media/disk120" ; action "sleep 4 ; rm -f /devusb/disk120 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/disk120 ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs -y /devusb/disk120 ;\ mkdir /media/disk120 ;\ chmod 777 /media/disk120 ;\ chown jhs:staff /media/disk120 ;\ mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/disk120 /media/disk120" ; ## -y is to not hang on: ## ** Phase 1 - Read and Compare FATs ## FAT starts with odd byte sequence (f0ffff0ffffffff7) ## Correct? yes ## FAT starts with odd byte sequence (f0ffff0ffffffff7) ## Correct? yes # Content list: ~/media/lists/sata120 } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x067b" ; match "product" "0x2507" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "rmdir /media/disk120 ; rm -f /devusb/disk120" ; } ; # ----------------------------------------------------------------------------- # 120G attach 1000 { # JHS: Disc - Freecom, 120 Gig # device-name "umass[0-9]+" ; match "vendor" "0x07ab" ; match "product" "0xfc02" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x1110" ; action "sleep 4 ;\ bsdlabel /dev/`echo $device-name|sed -e s/umass/da/`c ;\ rm -f /devusb/freecom ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/freecom ;\ sleep 4 ; `/site/usr/local/bin/fsck.sh` -t ufs /devusb/freecom ;\ mkdir /media/freecom ;\ mount -t ufs /devusb/freecom /media/freecom" ; } ; # I think 3 secs not long enough to spin up & dev to appear. # Problem $device-name reports umass0 is allocated for dvd-ram, # umass1 gets allocated for da0 # FREECOM USB2-IDE Controller 1.000MB/s transfers # SAMSUNG SV1204H RK10 1.000MB/s transfers, 40.000MB/s transfers # testblock -v -n took ~ 6 hours with belkin usb2 card. detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x07ab" ; match "product" "0xfc02" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x1110" ; # I think 3 secs not long enough to spin up & dev to appear. action "rmdir /media/freecom ; rm -f /devusb/freecom" ; } ; # ----------------------------------------------------------------------------- # 175G drive given me by pas@ 2014-07 silver colour, swollen chassis. # vibrates table, gets hot, maybe causing disconnects. # 2013-01-04 reformat of pas@ 170G aluminium cased 3.5 # vendor=0x067b # product=0x3507 # devclass=0x00 # devsubclass=0x00 # sernum="" ; # release=0x0100 # intclass=0x08 # intsubclass=0x06 # intprotocol=0x50 # disk, that he had scrambled using Apple Mac: # dmesg: # da0: Fixed Direct Access \ # SCSI-0 device # da0: 40.000MB/s transfers # da0: 171705MB (351651889 512 byte sectors: 255H 63S/T 21889C) # sysctl kern.geom.debugflags=16 # fdisk -i /dev/da0 # Bios left as # cylinders=21889 heads=255 sectors/track=63 (16065 blks/cyl) # newfs_msdos -F 12 -L by_freebsd /dev/da0s1 # newfs_msdos: warning: FAT type limits file system to 261048 sectors # /dev/da0s1: 260928 sectors in 4077 FAT12 clusters \ # (32768 bytes/cluster) # BytesPerSec=512 SecPerClust=64 ResSectors=1 FATs=\ # 2 RootDirEnts=512 Media=0xf0 FATsecs=1 \ # 2 SecPerTrack=63 Heads=255 HiddenSecs=\ # 0 HugeSectors=261048 # newfs_msdos -F 32 -L by_freebsd /dev/da0s1 # /dev/da0s1: 351560832 sectors in 5493138 FAT32 cluster \ # s (32768 bytes/cluster) # BytesPerSec=512 SecPerClust=64 ResSectors=32 FATs=\ # 2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=\ # 0 HugeSectors=351646722 FATsecs=42916 RootCluster=\ # 2 FSInfo=1 Backup=2 # # took several minutes # mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ # /dev/da0s1 /mnt attach 1000 { # dmesg: # WDC WD18 00BB-00DAA0 65.1 # 40.000MB/s transfers # 171705MB (351651889 512 byte sectors: 255H 63S/T 21889C) match "vendor" "0x067b" ; match "product" "0x3507" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "" ; match "release" "0x0100" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; action "sleep 10 ; rm -f /devusb/175g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/175g ;\ mkdir -p /media/175g ; chmod 777 /media/175g ;\ chown jhs:staff /media/175g ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/175g ; mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/175g /media/175g" ; } ; detach 1000 { match "vendor" "0x067b" ; match "product" "0x3507" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "umount /media/175g ; rmdir /media/175g ;\ rm -f /devusb/175g" ; } ; # ----------------------------------------------------------------------------- # 2021-10-05 I have a WD2500BEKT 250GB with a label "Replace with HP spare ..." # so maybe from a dead laptop ? # ( /5V = 0.42 Amp, leaves 0.08 amp for USB / SATA adapter on USB2 ) # https://www.hdsentinel.com/storageinfo_details.php?lang=en&model=WDC%20WD2500BEKT # This WD2500BEKT from # HP laptop (pavilion entertainment PC dm3 referenced in: # mail/z_seen/tech/laph/1 # mail/z_seen/tech/laph/2 # mail/z_seen/tech/laph/4 # public_html/hardware/laptops/shrink/index.lmth # /var/log/messages: # 40.000MB/s transfers # 238475MB (488397168 512 byte sectors) # fdisk /dev/da0 # The data for partition 1 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 2048, size 407552 (199 Meg), flag 80 (active) # The data for partition 2 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 409600, size 457328640 (223305 Meg), flag 0 # The data for partition 3 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 457738240, size 30445568 (14866 Meg), flag 0 # The data for partition 4 is: # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 488183808, size 211312 (103 Meg), flag 0 # ----------------------------------------------------------------------------- # 250G P-ATA disc is now in host=lapo, (a 76 G disk was removed from lapo) # purchased 18.03.2009 # Paper Label says: WD2500BEVE-00W2TO LBA 488397168 5V 0.55A EIDE WD Scorpio # www.westerndigital.com # bsdlabel -w -r da0 auto ; bsdlabel -e da0 # To a: Add "4.2BSD 2048 16384" to become: # a: 234441632 16 4.2BSD 2048 16384 # c: 234441648 0 unused 0 0 # bsdlabel -e da0 # /dev/da0: # 8 partitions: # size offset fstype [fsize bsize bps/cpg] # a: 488397152 16 4.2BSD 2048 16384 0 # c: 488397168 0 unused 0 0 # newfs /dev/da0a # mount -t ufs /dev/da0a /mnt # I didnt think to use -o noatime # attach 1000 { # disk250 # # device-name "umass[0-9]+" ; # match "vendor" "0x0402" ; # match "product" "0x5621" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "sernum" "00042222200000041582" ; # match "release" "0x0103" ; # action "sleep 4 ; rm -f /devusb/disk250 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/disk250 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/disk250 ;\ # mkdir /media/disk250 ;\ # mount -t ufs /devusb/disk250 /media/disk250" ; # } ; # # `/site/usr/local/bin/fsck.sh` takes too long on a big disc with many small files, # # especially at USB-1 speed, & if plugged in at boot time, it will # # try to fix & mount before going multiuser & take maybe a week !, # # so do `/site/usr/local/bin/fsck.sh` manually after boot necessary ! # detach 1000 { # JHS: disk250 # # device-name "umass[0-9]+" ; # match "vendor" "0x0402" ; # match "product" "0x5621" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "sernum" "00042222200000041582" ; # match "release" "0x0103" ; # action "rmdir /media/disk250 ; rm -f /devusb/disk250" ; # } ; # ----------------------------------------------------------------------------- # 120G # cdev=msdosfs/NO_NAME # cdev=diskid/DISK-088815678900000345s1 # disc from pas''s dead laptop, mostly stripped, rest is dosfs av. # Fixed Direct Access SCSI-5 device # 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) # cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl) # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 63, size 234436482 (114470 Meg), flag 0 # beg: cyl 0/ head 1/ sector 1 ; end: cyl 1023/ head 254/ sector 63 # newfs_msdos -F 32 /dev/da0s1 attach 1000 { # 250 G original disc from laph # HP Pavilion Notebook now in SATA ext. box # match "device-name" "umass[0-9]+" ; match "vendor" "0x1f75" ; match "product" "0x0888" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "088815678900000345" ; match "release" "0x0015" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 10 ;\ rm -f /devusb/sata120 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/sata120 ;\ mkdir -p /media/sata120 ; chmod 777 /media/sata120 ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/sata120 ;\ mount -t msdosfs /devusb/sata120 /media/sata120" ; } ; detach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x1f75" ; match "product" "0x0888" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "088815678900000345" ; match "release" "0x0015" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; action "umount /media/sata120 ; rmdir /media/sata120" ; } ; # ----------------------------------------------------------------------------- # 250G # Raw disk hp host=laph wd disk with original data, # to be kept at least till I upgrade bios: # ~/public_html/hardware/hp/pavilion/dm3-1155ea # hp.com says: 250 GB SATA Hard Disk Drive 7200 rpm # dmesg: Fixed Direct Access SCSI-5 device # Fixed Direct Access SPC-4 SCSI device # Serial Number 123456789012 # 40.000MB/s transfers # 238475MB (488397168 512 byte sectors) # quirks=0x2 # Serial Number 0123456789ABCDEF0188 # 1.000MB/s transfers # 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) # action "sleep 10 ;\ # rm -f /devusb/hp.s1 /devusb/hp.s2 /devusb/hp.s3 /devusb/hp.s4 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/hp.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 /devusb/hp.s2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 /devusb/hp.s3 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 /devusb/hp.s4 ;\ # mkdir -p /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ # chmod 555 /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ # ntfsfix /devusb/hp.s1 ;\ # ntfsfix /devusb/hp.s2 ;\ # ntfsfix /devusb/hp.s3 ;\ # ntfs-3g /devusb/hp.s1 /media/hp.s1 ;\ # ntfs-3g /devusb/hp.s2 /media/hp.s2 ;\ # ntfs-3g /devusb/hp.s3 /media/hp.s3 ;\ # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/hp.s4 ;\ # mount -t msdosfs -r /devusb/hp.s4 /media/hp.s4" ; # # hp.s1 hp.s2 hp.s3 dont work on blak 9.2 0s3, or on lapr current # # /usr/ports/sysutils/fusefs-ntfs ntfsfix ntfs-3g # # /usr/ports/sysutils/ntfsprogs ntfsfix # action "\ # umount /media/hp.s1 ; umount /media/hp.s2 ;\ # umount /media/hp.s3 ; umount /media/hp.s4 ;\ # rmdir /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ # rm -f /devusb/hp.s1 /devusb/hp.s2 /devusb/hp.s3 /devusb/hp.s4" ; # ----------------------------------------------------------------------------- # HP 250 G original from host=laph via mini USB adapter with 2 plugs. # 2020-12-01 attach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x14cd" ; match "product" "0x6116" ; match "sernum" "116AC2101219" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0220" ; action "sleep 10 ;\ rm -f /devusb/hp.s1 /devusb/hp.s2 /devusb/hp.s3 /devusb/hp.s4 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/hp.s1 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 /devusb/hp.s2 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 /devusb/hp.s3 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 /devusb/hp.s4 ;\ mkdir -p /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ chmod 555 /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ ntfsfix /devusb/hp.s1 ;\ ntfsfix /devusb/hp.s2 ;\ ntfsfix /devusb/hp.s3 ;\ ntfs-3g /devusb/hp.s1 /media/hp.s1 ;\ ntfs-3g /devusb/hp.s2 /media/hp.s2 ;\ ntfs-3g /devusb/hp.s3 /media/hp.s3 ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/hp.s4 ;\ mount -t msdosfs -r /devusb/hp.s4 /media/hp.s4" ; # hp.s1 hp.s2 hp.s3 dont work on blak 9.2 0s3, or on lapr current # /usr/ports/sysutils/fusefs-ntfs ntfsfix ntfs-3g # /usr/ports/sysutils/ntfsprogs ntfsfix } ; detach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x14cd" ; match "product" "0x6116" ; # match "sernum" "116AC2101219" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0220" ; action "\ umount /media/hp.s1 ; umount /media/hp.s2 ;\ umount /media/hp.s3 ; umount /media/hp.s4 ;\ rmdir /media/hp.s1 /media/hp.s2 /media/hp.s3 /media/hp.s4 ;\ rm -f /devusb/hp.s1 /devusb/hp.s2 /devusb/hp.s3 /devusb/hp.s4" ; } ; # ----------------------------------------------------------------------------- # Empty Sata enclosure - dead with host=lapr 2020-01-23 # attach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # match "sernum" "0123456789ABCDEF0188" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # } ; # detach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # # match "sernum" "0123456789ABCDEF0188" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # } ; # ----------------------------------------------------------------------------- # 250G # parameters extracted from in-core disklabel are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # Figures below will not work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 63, size 625137282 (305242 Meg), flag 0 # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 1023/ head 254/ sector 63 attach 1000 { # JHS: pas@ # pas@''s small black enclosure with 2 leads 250 g Seen 2012-03-21 match "vendor" "0x04c5" ; match "product" "0x11bc" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "61111170103A" ; match "release" "0x0101" ; action "sleep 4 ;\ rm -f /devusb/pas250 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/pas250 ;\ mkdir /media/pas250 ; chmod 777 /media/pas250 ;\ chown jhs:staff /media/pas250 ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/pas250 ;\ mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ -r /devusb/pas250 /media/pas250" ; } ; detach 1000 { # 250 g Seen 2012-03-21 match "vendor" "0x04c5" ; match "product" "0x11bc" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "61111170103A" ; match "release" "0x0101" ; action "rmdir /media/pas250 ; rm -f /devusb/pas250" ; } ; # ----------------------------------------------------------------------------- # 300G attach 1000 { # jes@ 300 G External 2006.11 # device-name "umass[0-9]+" ; match "vendor" "0x0bc2" ; match "product" "0x0503" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0300" ; action "sleep 4 ;\ rm -f /devusb/jes ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/jes ;\ mkdir /media/jes ; chmod 777 /media/jes ; chown jhs:staff /media/jes ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/jes ;\ mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/jes /media/jes" ; } ; # Seagate External Drive, Jabil Circuit # parameters extracted from in-core bsdlabel are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # Figures below will not work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 63, size 625137282 (305242 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 0/ head 254/ sector 63 detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0bc2" ; match "product" "0x0503" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0300" ; action "rmdir /media/jes ; rm -f /devusb/jes" ; } ; # ----------------------------------------------------------------------------- # /var/log/messages: kernel: da2: Serial Number 334E46314E35393920202020 # is from the disk not the USB to sata adapter. # ----------------------------------------------------------------------------- # 2023-05-23 1T disk in my curved LogiLink base attach 1000 { match "device-name" "umass[0-9]+" ; match "vendor" "0x174c" ; match "product" "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; match "sernum" "123456789012" ; # match "release" "0x0100" ; action "sleep 3 ;\ rm -f /devusb/1t /devusb/1t.raw ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` \ /devusb/1t.raw ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a \ /devusb/1t ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/1t ;\ mkdir -p /media/1t ; \ mount -t ufs /devusb/1t /media/1t" ; # cdev=ufsid/646955eb6cda472f # setting cdev=diskid/DISK-123456789012a } ; # detach 1000 JJLATER not written # ----------------------------------------------------------------------------- # # fire_500g_0 Added 2023-03-30, to mount Disk0 removed from host=fire { # # Written by referring to /site/domain/js.berklix.net/host/fire/etc/fstab.1s1 # # dmesg: 40.000MB/s transfers 476938MB (976771055 512 byte sectors) # attach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "123456789012" ; # match "release" "0x0100" ; # action "sleep 10 ;\ # rm -f \ # /devusb/fire_500g_0 \ # /devusb/fire_500g_0.s1 \ # /devusb/fire_500g_0.s1.root \ # /devusb/fire_500g_0.s1.var \ # /devusb/fire_500g_0.s1.usr \ # /devusb/fire_500g_0.s1.usr1 \ # /devusb/fire_500g_0.s2 \ # /devusb/fire_500g_0.s2.root \ # /devusb/fire_500g_0.s2.var \ # /devusb/fire_500g_0.s2.usr \ # /devusb/fire_500g_0.s2.usr1 \ # /devusb/fire_500g_0.s3 \ # /devusb/fire_500g_0.s3.root \ # /devusb/fire_500g_0.s3.var \ # /devusb/fire_500g_0.s3.usr \ # /devusb/fire_500g_0.s3.usr1 \ # /devusb/fire_500g_0.s4 \ # /devusb/fire_500g_0.s4.root \ # /devusb/fire_500g_0.s4.crypt \ # /devusb/fire_500g_0.s4.swap ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ # /devusb/fire_500g_0 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ # /devusb/fire_500g_0.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ # /devusb/fire_500g_0.s1.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d \ # /devusb/fire_500g_0.s1.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e \ # /devusb/fire_500g_0.s1.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1f \ # /devusb/fire_500g_0.s1.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 \ # /devusb/fire_500g_0.s2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ # /devusb/fire_500g_0.s2.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2d \ # /devusb/fire_500g_0.s2.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2e \ # /devusb/fire_500g_0.s2.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2f \ # /devusb/fire_500g_0.s2.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 \ # /devusb/fire_500g_0.s3 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a \ # /devusb/fire_500g_0.s3.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3d \ # /devusb/fire_500g_0.s3.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3e \ # /devusb/fire_500g_0.s3.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3f \ # /devusb/fire_500g_0.s3.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ # /devusb/fire_500g_0.s4 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4b \ # /devusb/fire_500g_0.s4.swap ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4d \ # /devusb/fire_500g_0.s4.crypt ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4e \ # /devusb/fire_500g_0.s4.root ;\ # mkdir -p /media/fire_500g_0/s1 /media/fire_500g_0/s2 \ # /media/fire_500g_0/s3 /media/fire_500g_0/s4 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s1.root ;\ # mount -t ufs /devusb/fire_500g_0.s1.root /media/fire_500g_0/s1 ;\ # mkdir -p /media/fire_500g_0/s1/var \ # /media/fire_500g_0/s1/usr \ # /media/fire_500g_0/s1/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s1.var ;\ # mount -t ufs /devusb/fire_500g_0.s1.var /media/fire_500g_0/s1/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s1.usr ;\ # mount -t ufs /devusb/fire_500g_0.s1.usr /media/fire_500g_0/s1/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s1.usr1 ;\ # mount -t ufs /devusb/fire_500g_0.s1.usr1 /media/fire_500g_0/s1/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s2.root ;\ # mount -t ufs /devusb/fire_500g_0.s2.root /media/fire_500g_0/s2 ;\ # mkdir -p /media/fire_500g_0/s2/var \ # /media/fire_500g_0/s2/usr \ # /media/fire_500g_0/s2/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s2.var ;\ # mount -t ufs /devusb/fire_500g_0.s2.var /media/fire_500g_0/s2/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s2.usr ;\ # mount -t ufs /devusb/fire_500g_0.s2.usr /media/fire_500g_0/s2/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s2.usr1 ;\ # mount -t ufs /devusb/fire_500g_0.s2.usr1 /media/fire_500g_0/s2/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s3.root ;\ # mount -t ufs /devusb/fire_500g_0.s3.root /media/fire_500g_0/s3 ;\ # mkdir -p /media/fire_500g_0/s3/var \ # /media/fire_500g_0/s3/usr \ # /media/fire_500g_0/s3/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s3.var ;\ # mount -t ufs /devusb/fire_500g_0.s3.var /media/fire_500g_0/s3/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s3.usr ;\ # mount -t ufs /devusb/fire_500g_0.s3.usr /media/fire_500g_0/s3/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s3.usr1 ;\ # mount -t ufs /devusb/fire_500g_0.s3.usr1 /media/fire_500g_0/s3/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s4.root ;\ # mount -t ufs /devusb/fire_500g_0.s4.root /media/fire_500g_0/s4 ;\ # mkdir -p /media/fire_500g_0/s4/crypt ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_0.s4.crypt ;\ # mount -t ufs /devusb/fire_500g_0.s4.crypt /media/fire_500g_0/s4/crypt" ; # } ; # # detach 1000 JJLATER not written # # } Added 2023-03-30 # ----------------------------------------------------------------------------- # # fire_500g_1 Added 2023-03-30, to mount Disk0 removed from host=fire { # # Written by referring to /site/domain/js.berklix.net/host/fire/etc/fstab.1s1 # ## dmesg: 40.000MB/s transfers 476938MB (976771055 512 byte sectors) # attach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "123456789012" ; # match "release" "0x0100" ; # action "sleep 10 ;\ # rm -f \ # /devusb/fire_500g_1 \ # /devusb/fire_500g_1.s1 \ # /devusb/fire_500g_1.s1.root \ # /devusb/fire_500g_1.s1.var \ # /devusb/fire_500g_1.s1.usr \ # /devusb/fire_500g_1.s1.usr1 \ # /devusb/fire_500g_1.s2 \ # /devusb/fire_500g_1.s2.root \ # /devusb/fire_500g_1.s2.var \ # /devusb/fire_500g_1.s2.usr \ # /devusb/fire_500g_1.s2.usr1 \ # /devusb/fire_500g_1.s3 \ # /devusb/fire_500g_1.s3.root \ # /devusb/fire_500g_1.s3.var \ # /devusb/fire_500g_1.s3.usr \ # /devusb/fire_500g_1.s3.usr1 \ # /devusb/fire_500g_1.s4 \ # /devusb/fire_500g_1.s4.swap \ # /devusb/fire_500g_1.s4.tmp \ # /devusb/fire_500g_1.s4.root ; \ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ # /devusb/fire_500g_1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ # /devusb/fire_500g_1.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ # /devusb/fire_500g_1.s1.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d \ # /devusb/fire_500g_1.s1.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e \ # /devusb/fire_500g_1.s1.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1f \ # /devusb/fire_500g_1.s1.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 \ # /devusb/fire_500g_1.s2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ # /devusb/fire_500g_1.s2.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2d \ # /devusb/fire_500g_1.s2.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2e \ # /devusb/fire_500g_1.s2.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2f \ # /devusb/fire_500g_1.s2.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 \ # /devusb/fire_500g_1.s3 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a \ # /devusb/fire_500g_1.s3.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3d \ # /devusb/fire_500g_1.s3.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3e \ # /devusb/fire_500g_1.s3.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3f \ # /devusb/fire_500g_1.s3.usr1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ # /devusb/fire_500g_1.s4 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4b \ # /devusb/fire_500g_1.s4.swap ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4d \ # /devusb/fire_500g_1.s4.tmp ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4e \ # /devusb/fire_500g_1.s4.root ;\ # mkdir -p /media/fire_500g_1/s1 /media/fire_500g_1/s2 \ # /media/fire_500g_1/s3 /media/fire_500g_1/s4 \ # /media/fire_500g_1/tmp ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s1.root ;\ # mount -t ufs /devusb/fire_500g_1.s1.root /media/fire_500g_1/s1 ;\ # mkdir -p /media/fire_500g_1/s1/var \ # /media/fire_500g_1/s1/usr \ # /media/fire_500g_1/s1/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s1.var ;\ # mount -t ufs /devusb/fire_500g_1.s1.var /media/fire_500g_1/s1/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s1.usr ;\ # mount -t ufs /devusb/fire_500g_1.s1.usr /media/fire_500g_1/s1/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s1.usr1 ;\ # mount -t ufs /devusb/fire_500g_1.s1.usr1 /media/fire_500g_1/s1/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s2.root ;\ # mount -t ufs /devusb/fire_500g_1.s2.root /media/fire_500g_1/s2 ;\ # mkdir -p /media/fire_500g_1/s2/var \ # /media/fire_500g_1/s2/usr \ # /media/fire_500g_1/s2/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s2.var ;\ # mount -t ufs /devusb/fire_500g_1.s2.var /media/fire_500g_1/s2/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s2.usr ;\ # mount -t ufs /devusb/fire_500g_1.s2.usr /media/fire_500g_1/s2/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s2.usr1 ;\ # mount -t ufs /devusb/fire_500g_1.s2.usr1 /media/fire_500g_1/s2/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s3.root ;\ # mount -t ufs /devusb/fire_500g_1.s3.root /media/fire_500g_1/s3 ;\ # mkdir -p /media/fire_500g_1/s3/var \ # /media/fire_500g_1/s3/usr \ # /media/fire_500g_1/s3/usr1 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s3.var ;\ # mount -t ufs /devusb/fire_500g_1.s3.var /media/fire_500g_1/s3/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s3.usr ;\ # mount -t ufs /devusb/fire_500g_1.s3.usr /media/fire_500g_1/s3/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s3.usr1 ;\ # mount -t ufs /devusb/fire_500g_1.s3.usr1 /media/fire_500g_1/s3/usr1 ;\ # mkdir -p /media/fire_500g_1/tmp \ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s4.tmp ;\ # mount -t ufs /devusb/fire_500g_1.s4.tmp /media/fire_500g_1/tmp ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/fire_500g_1.s4.root ;\ # mount -t ufs /devusb/fire_500g_1.s4.root /media/fire_500g_1/s4" ; # } ; # # detach 1000 not written # # } Added 2023-03-30 # ----------------------------------------------------------------------------- # 1T # Samsung 1st 1 T SATA HN-M101MBB 5400 8MB 9.5mm # New internal drive for laph HP Pavilion Notebook, not USB currently # ----------------------------------------------------------------------------- # attach 1000 { # 1T when it previously contained av media. # Since then the disk has now gone inside host=lapr # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "0123456789ABCDEF0124" ; # match "release" "0x0100" ; # # match "intclass" "0x08" ; # # match "intsubclass" "0x06" ; # # match "intprotocol" "0x50" ; # action "sleep 10 ;\ # rm -f /devusb/sata1tdos ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ # /devusb/sata1tdos ;\ # mkdir -p /media/sata1tdos ; chmod 777 /media/sata1tdos ;\ # chown jhs:staff /media/sata1tdos ;\ # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/sata1tdos ; # mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ # /devusb/sata1tdos /media/sata1tdos" ; # } ; # detach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "sernum" "0123456789ABCDEF0124" ; # match "release" "0x0100" ; # action "umount /media/sata1tdos ; rmdir /media/sata1tdos ;\ # rm -f /devusb/sata1tdos" ; # } ; # ----------------------------------------------------------------------------- # 1T SATA 2nd Disk 2017-07-20 installed in host=lapr, Previously contained av. # Disc big paper label: # Bar code: S/N: S2TBJ90C305976 # dmesg: # ada0: ATA8-ACS SATA 2.x device # ada0: Serial Number S2TBJ90C305976 # ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # ada0: Command Queueing enabled # ada0: 953869MB (1953525168 512 byte sectors) # GEOM: new disk ada0 # pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 # pass0: ATA8-ACS SATA 2.x device # pass0: Serial Number S2TBJ90C305976 # pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # pass0: Command Queueing enabled # ----------------------------------------------------------------------------- # Wed Apr 6 14:26:22 CEST 2022 # 12.2-STABLE lapr dd if=/dev/da0 of=/dev/null # dd: /dev/da0: Input/output error # 102,262,896+0 records in 102,262,896+0 records out # 52,358,602,752 bytes transferred in 38790.112719 secs (1349792 bytes/sec) # ----------------------------------------------------------------------------- # # 1T SATA 2012-10-15 to 2017-07-20 internal host=lapr, with bad sectors # # 2021-11-25: # # dd if=da0 of=/dev/null # # 102,262,896+0 records in 102,262,896+0 records out # # 52,358,602,752 bytes transferred in 38366.355216 secs (1,364,701 bytes/sec) # # dmesg: da0: 953,869MB (1,953,525,168 512 byte sectors) # # dc 1,953,525,168 512 * p 1,000,204,886,016 # # 3rd 1 T disc: 2012-10-01 # # dmesg: # # ada0: ATA8-ACS SATA 2.x device # # ada0: Serial Number S2TBJ90C260997 # # ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # # ada0: Command Queueing enabled # # ada0: 953869MB (1953525168 512 byte sectors) # # GEOM: new disk ada0 # # pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 # # pass0: ATA8-ACS SATA 2.x device # # pass0: Serial Number S2TBJ90C260997 # # pass0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # # pass0: Command Queueing enabled # # Disc big paper label: # # Bar code: S/N: S2TBJ90C260997 # # # dmesg: ada0: Serial Number S2TBJ90C260997 # # Model: ST1000LM024 # # HDD P/N HN-M101MBB/D # # LBA 1,953,525,168 1TB # # CN-05M94D-69518- # # 223-01O K-A02 # # Made in China # # DP/N 05M94D # # SATA # # 1000 GB # # RPM 5400 # # FW: 2AR10002 # # Rev A # # F/W 2AR10002 # # Samsung Spinpoint # # Advanced AF Format # # Momentus (R) # # Rated: 5V 0.85 A # # HDD Mfg by Seagate Technology LLC # # DOM 02.2012 # # Site: DGT # # KCC-REM-STX-Momentus-B # # This Class B digital apparutus complies with Canadian ICES-003 # # Disc small paper label: # # Bar code: P/N: C7882-G14A-A8QUO # # ----------- # # da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C) # # sysinstall called fdisk to partition # # fdisk: # # cylinders=121601 heads=255 sectors/track=63 (16065 blks/cyl) # # The data for partition 1 is: # # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # # start 63, size 39985722 (19524 Meg), flag 80 (active) # # beg: cyl 0/ head 1/ sector 1 ; # # end: cyl 1023/ head 254/ sector 63 # # The data for partition 2 is: # # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # # start 39985785, size 39985785 (19524 Meg), flag 0 # # beg: cyl 1023/ head 255/ sector 63 ; # # end: cyl 1023/ head 254/ sector 63 # # The data for partition 3 is: # # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # # start 79971570, size 39985785 (19524 Meg), flag 0 # # beg: cyl 1023/ head 255/ sector 63 ; # # end: cyl 1023/ head 254/ sector 63 # # The data for partition 4 is: # # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # # start 119957355, size 1833562710 (895294 Meg), flag 0 # # beg: cyl 1023/ head 255/ sector 63 ; # # end: cyl 1023/ head 254/ sector 63 # #--------- # attach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "0123456789ABCDEF0124" ; # match "release" "0x0100" ; # action "sleep 10 ;\ # rm -f \ # /devusb/sata1t \ # /devusb/sata1t.s1 \ # /devusb/sata1t.s1.root \ # /devusb/sata1t.s1.swap \ # /devusb/sata1t.s1.tmp \ # /devusb/sata1t.s1.usr \ # /devusb/sata1t.s1.var \ # /devusb/sata1t.s2 \ # /devusb/sata1t.s2.root \ # /devusb/sata1t.s2.tmp \ # /devusb/sata1t.s2.usr \ # /devusb/sata1t.s2.var \ # /devusb/sata1t.s3 \ # /devusb/sata1t.s3.root \ # /devusb/sata1t.s3.usr \ # /devusb/sata1t.s3.var \ # /devusb/sata1t.s4 \ # /devusb/sata1t.s4.data \ # /devusb/sata1t.s4.root \ # /devusb/sata1t.s4.usr \ # /devusb/sata1t.s4.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ # /devusb/sata1t ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ # /devusb/sata1t.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ # /devusb/sata1t.s1.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1b \ # /devusb/sata1t.s1.swap ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d \ # /devusb/sata1t.s1.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e \ # /devusb/sata1t.s1.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 \ # /devusb/sata1t.s2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a \ # /devusb/sata1t.s2.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2d \ # /devusb/sata1t.s2.tmp ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2e \ # /devusb/sata1t.s2.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2f \ # /devusb/sata1t.s2.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 \ # /devusb/sata1t.s3 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a \ # /devusb/sata1t.s3.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3d \ # /devusb/sata1t.s3.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3e \ # /devusb/sata1t.s3.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ # /devusb/sata1t.s4 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4a \ # /devusb/sata1t.s4.root ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4d \ # /devusb/sata1t.s4.var ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4e \ # /devusb/sata1t.s4.usr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4f \ # /devusb/sata1t.s4.data ;\ # mkdir -p /media/sata1t/s1 /media/sata1t/s2 \ # /media/sata1t/s3 /media/sata1t/s4 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s1.root ;\ # mount -t ufs /devusb/sata1t.s1.root /media/sata1t/s1 ;\ # mkdir -p /media/sata1t/s1/var /media/sata1t/s1/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s1.var ;\ # mount -t ufs /devusb/sata1t.s1.var /media/sata1t/s1/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s1.usr ;\ # mount -t ufs /devusb/sata1t.s1.usr /media/sata1t/s1/usr ;\ # \ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s2.root ;\ # mount -t ufs /devusb/sata1t.s2.root /media/sata1t/s2 ;\ # mkdir -p /media/sata1t/s2/tmp /media/sata1t/s2/var \ # /media/sata1t/s2/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s2.tmp ;\ # mount -t ufs /devusb/sata1t.s2.tmp /media/sata1t/s2/tmp ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s2.var ;\ # mount -t ufs /devusb/sata1t.s2.var /media/sata1t/s2/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s2.usr ;\ # mount -t ufs /devusb/sata1t.s2.usr /media/sata1t/s2/usr ;\ # \ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s3.root ;\ # mount -t ufs /devusb/sata1t.s3.root /media/sata1t/s3 ;\ # mkdir -p /media/sata1t/s3/var /media/sata1t/s3/usr ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s3.var ;\ # mount -t ufs /devusb/sata1t.s3.var /media/sata1t/s3/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s3.usr ;\ # mount -t ufs /devusb/sata1t.s3.usr /media/sata1t/s3/usr ;\ # \ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s4.root ;\ # mount -t ufs /devusb/sata1t.s4.root /media/sata1t/s4 ;\ # mkdir -p /media/sata1t/s4/var /media/sata1t/s4/usr \ # /media/sata1t/data ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s4.var ;\ # mount -t ufs /devusb/sata1t.s4.var /media/sata1t/s4/var ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s4.usr ;\ # mount -t ufs /devusb/sata1t.s4.usr /media/sata1t/s4/usr ;\ # echo 'skipping `/site/usr/local/bin/fsck.sh` -t ufs /devusb/sata1t.s4.data' ;\ # echo 'skipping mount -t ufs /devusb/sata1t.s4.data /media/sata1t/data'" ; # } ; # detach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # action "\ # umount /media/sata1t/s1/tmp ;\ # umount /media/sata1t/s1/usr ;\ # umount /media/sata1t/s1/var ;\ # umount /media/sata1t/s1 ;\ # umount /media/sata1t/s2/tmp ;\ # umount /media/sata1t/s2/usr ;\ # umount /media/sata1t/s2/var ;\ # umount /media/sata1t/s2 ;\ # umount /media/sata1t/s3/usr ;\ # umount /media/sata1t/s3/var ;\ # umount /media/sata1t/s3 ;\ # umount /media/sata1t/data ;\ # umount /media/sata1t/s4/usr ;\ # umount /media/sata1t/s4/var ;\ # umount /media/sata1t/s4 ;\ # rmdir /media/sata1t/s1 /media/sata1t/s2 \ # /media/sata1t/s3 /media/sata1t/s4 \ # /media/sata1t" ; # } ; # ----------------------------------------------------------------------------- # 1T Media_Size: < jes@ black plastic, checked pattern. # From case: # Model: HX-M11TCBG M3 Portable 1TB, E2FWJJHDA1BCEB, Nemko # Manufactured by Seagate, Made in China # From /var/log/messages: # Fixed Direct Access SCSI-6 device # Serial Number 00000000011E4E97 # 40.000MB/s transfers # 953859MB (1953504688 512 byte sectors: 255H 63S/T 121600C) # quirks=0x2 # ------- # 2014-07 & 2014-12-16 rebuilt with # sysctl kern.geom.debugflags=16 # fdisk -B -i da0 # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 63, size 1953503937 (953859 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 767/ head 254/ sector 63 # I think one also needs: # Do you want to change the boot code? [n] y # else /dev/da0s1 does not appear. # newfs_msdos /dev/da0s1 # /dev/da0s1: 1953027072 sectors in 30516048 # FAT32 clusters (32768 bytes/cluster) # BytesPerSec=512 SecPerClust=64 ResSectors=32 # FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 # HiddenSecs=0 HugeSectors=1953503937 # FATsecs=238407 RootCluster=2 FSInfo=1 # Backup=2 # mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ # /dev/da0s1 /media/check # 2014-12: # on host=blak USB3 2 port card, I saw problems when card # tried to power 2 x USB3 discs ; Connecting a power source # to the other disc solved the problem. # ufs speed # - # Speed Test on host=acer port=left, uname=11.0-CURRENT # fdisk -I da0 ; fdisk -B da0 ; # bsdlabel -w -r da0 auto ; newfs /dev/da0a # Write: # date ; testblock -v -n -b 60k -w bla ; date ; # 26.93 M byte/sec = 1.61 GB/min. # Read (& check data block ): # date ; testblock -v -n -b 60k -r bla ; date # 32.36 Mbyte/sec = 1.94 GB/min # Write of 6G: # dd if=/dev/zero bs=60k of=bla count=100000 # 28,102,943 bytes/sec # Read of 6G, no data check: # dd if=bla bs=60k of=/dev/null count=100000 # 32,406,831 bytes/sec # msdosfs speed TO RUN: # host=lapr # dd if=/dev/zero bs=60k of=bla count=100000 # 28,308,036 bytes/sec # dd if=bla bs=60k of=/dev/null count=100000 # 31,752,846 bytes/sec # host=blak # dd if=/dev/zero bs=60k of=bla count=100000 # File too large, limits at 4294963200 # 78,111,121 bytes/sec # dd if=bla bs=60k of=/dev/null count=100000 # 95,446,142 bytes/sec attach 1000 { # 1T UFS # match "device-name" "umass[0-9]+" ; match "vendor" "0x04e8" ; match "product" "0x61b6" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "00000011E4E97" ; # match "release" "0x0e00" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; # Pre 2014-12-09 action "sleep 10 ; rm -f /devusb/check ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/check ;\ mkdir -p /media/check ; chmod 777 /media/check ;\ chown jhs:staff /media/check ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/check ; mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/check /media/check" ; #---------- Caution UFS below wont be readable by Cyclone AV streamer. # action "sleep 10 ; rm -f /devusb/check ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/check ;\ # mkdir -p /media/check ; chmod 777 /media/check ;\ # chown jhs:staff /media/check ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/check ; # mount -t ufs /devusb/check /media/check" ; } ; detach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x04e8" ; match "product" "0x61b6" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "00000011E4E97" ; match "release" "0x0e00" ; action "umount /media/check ; rmdir /media/check ;\ rm -f /devusb/check" ; } ; # ----------------------------------------------------------------------------- # 2T attach 1000 { # JHS: jes@ 2 T byte External 2012.09.27 match "vendor" "0x0411" ; match "product" "0x01ba" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "devaddr" "5" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "sernum" "00000002F08171D" ; match "release" "0x0113" ; action "sleep 4 ;\ rm -f /devusb/jes2t ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/jes2t ;\ mkdir /media/jes2t ; chmod 777 /media/jes2t ;\ chown jhs:staff /media/jes2t ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/jes2t ;\ mount -t msdosfs -r `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/jes2t /media/jes2t" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0411" ; match "product" "0x01ba" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "00000002F08171D" ; match "release" "0x0113" ; action "rmdir /media/jes2t ; rm -f /devusb/jes2t" ; } ; # ----------------------------------------------------------------------------- # Toshiba DT01ACA300 3T sata raw disk Gary gave me 2023-02-09 # https://toshiba.semicon-storage.com/ap-en/storage/product/\ # internal-specialty/pc/articles/dt01aca-series.html # https://toshiba.semicon-storage.com/content/dam/toshiba-ss-v3/\ # master/en/storage/product-archive/\ # HDD_larger_than_2.2TB_comments_REV2a_ENG.pdf # ---- # Paper label has AF logo: it uses 4K blocks internaly), not 512 bytes. # https://en.wikipedia.org/wiki/Advanced_Format # (But BSD still treats it as 512, eg on 12.3-RELEASE # ---- # dmesg: # ada1: ATA8-ACS SATA 3.x device # ada1: Serial Number Z4O3L4LGS # ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # ada1: Command Queueing enabled # ada1: 2,861,588MB (5,860,533,168 512 byte sectors) # bsdlabel -w /dev/ada1 # bsdlabel: disks with more than 2^32-1 sectors are not supported # ---- # dc 256 256 * p 65536 * p 4,294,967,296 = 2^32 sectors # dc 4294967296 512 * p 2,199,023,255,552 = 2 terabyte # ---- # fdisk -B -i -v /dev/ada1 # parameters extracted from in-core disklabel are: # cylinders=5814021 heads=16 sectors/track=63 (1008 blks/cyl) # Figures below won''t work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=5814021 heads=16 sectors/track=63 (1008 blks/cyl) # Do you want to change our idea of what BIOS thinks ? [n] # fdisk: invalid fdisk partition table found # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 63, size 4294966977 (2097151 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 15/ head 15/ sector 63 # Information from DOS bootblock is: # 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) # start 63, size 4294966977 (2097151 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 15/ head 15/ sector 63 # So we loose one terabyte # Adds /dev/ada1s1 # bsdlabel -w -A -B /dev/ada1s1 # Adds /dev/ada1s1a # a: 4294966961 16 unused 0 0 # c: 4294966977 0 unused 0 0 # newfs /dev/ada1s1a # yet to try: gpart # ---- # Used with: # Label: Sharkoon SATA QUICKPORT PRO FOR 2.5" & 3.5" SATA HARD DISKs # https://en.sharkoon.com/product/08209 # https://www.sharkoon.com/Download/Storage_Solutions/Docking_Stations \ # /SATA_QuickPort_Pro/datasheet_sata_quickport_pro_en.pdf # Size: # Sharkoon SATA-to-USB bridge chip can''t handle large disks. ESATA can. # 784 G with Sharkoon using USB cable from Dell laptop # with USB via a non USB-3 hub # dmesg: # da1: Serial Number 5A344F334C344C4753202020 # da1: 40.000MB/s transfers # da1: 764 436MB (1,565,565,872 512 byte sectors) # dc 1565565872 512 * p 801,569,726,464 # da1: quirks=0x2 # Sharkoon eSATA instead of USB, reoprts right size: 2.86 G # ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) # ada1: ATA8-ACS SATA 3.x device # ada1: Serial Number Z4O3L4LGS # ada1: 2861588MB (5860533168 512 byte sectors) # dc: 5860533168 512 * p 3000592982016 # Timing with eSATA: # Writing: # date ; xs testblock -v -n -b 1m /dev/ada1 ; date # Sun Feb 19 14:59:03 CET 2023 # Sun Feb 19 15:21:47 CET 2023 # 270G @ 22m 44s # dc 22 60 * 44 + p ; dc 270000 1364 / p # 197 Mbyte / sec # Writing + Reading: # Sun Feb 19 14:59:03 CET 2023 # Mon Feb 20 01:52:26 CET 2023 # dc 10 60 * 53 + 60 * 23 + p # 39203 secs # dc 3000592498688 39203 / p # 76,539,869 bytes/sec # Will write then read. # Block size 1048576 (0x100000). # Wrote 483328 (0x76000) bytes, # after previous 3,000,592,498,688 (0x2baa1400000) # (2861588 blocks * 1048576 bytes). # Reading /dev/ada1. # Mon Feb 20 01:52:26 CET 2023 # Mon Feb 20 07:18:54 CET 2023 # Block size 1048576 (0x100000). # Read 483328 (0x76000) bytes, # after previous 3,000,592,498,688 (0x2baa1400000) # (2861588 blocks * 1048576 bytes). # dc 5 60 * 26 + 60 * 28 + p # 19588 seconds # dc 3000592498688 19588 / p # 153,185,240 bytes / sec # ----------------------------------------------------------------------------- # 3T attach 1000 { # jes@ rectangular black disk Seagate from lounge TV. 2015-11-28 # Fixed Direct Access SPC-4 SCSI device # Serial Number NA4K4AVP # 40.000MB/s transfers # 2861588MB (732566645 4096 byte sectors) # quirks=0x2 # Filesystem Size Used Avail Capacity Mounted on # /dev/da0s1 801G 795G 5.6G 99% /mnt # devd: cdev=diskid/DISK-NA4K4AVP # devd: cdev=diskid/DISK-NA4K4AVPs1 # devd: cdev=msdosfs/SEAG3TB_FAT match "vendor" "0x0bc2" ; match "product" "0x3320" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "NA4K4AVP" ; match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 10 ;\ rm -f /devusb/jes_seagate ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/jes_seagate ;\ mkdir -p /media/jes_seagate ;\ chmod 777 /media/jes_seagate ;\ chown jhs:staff /media/jes_seagate ;\ fsck -t msdosfs /devusb/jes_seagate ;\ mount -t msdosfs `/site/usr/local/bin/fsck_o_large.sh`\ /devusb/jes_seagate /media/jes_seagate" ; } ; detach 1000 { match "vendor" "0x0bc2" ; match "product" "0x3320" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; action "umount /media/jes_seagate" ; } ; # ============================================================================= # }{ DEVICE_TYPE OPTICAL # ----------------------------------------------------------------------------- attach 1000 { # JHS: DVD Rewriter - LG # device-name "umass[0-9]+" ; match "vendor" "0x152e" ; match "product" "0xe003" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; # action "sleep 4 ;\ # mkdir /media/dvd ; mount -t cd9660 /dev/cd1 /media/dvd" ; # DVD writer, Manufacturer=LG, Model=GSA-5163D, P/N 3890H-1921A Ver. A # External - USB-2.0 & Firewire=IEEE 1394 # 16X Super Multi DVD/CD Rewriter # Tri-DVD Formats DVD+-RW / DVD-RAM # 8.5 GB DVD+R Double layer # DVD+R 16x # DVD-R 16x # DVD+RW 8x # DVD-RW 6x # DVD-RAM 5x # DVD-ROM 16x # DVD+R DL 4x # CD-R 40x # CD-RW 24x # CD-ROM 40x # Up to 4 hours of MPEG-2 video. # Software Included: # Ahead''s Recording Software ( Nero Express, InCD ) # Cyberlink''s Authoring & Playback Software # ( PowerProducer Gold, PowerDVD) # Backup Software ( Nero BackitUp ) # Key < jes@ after install on her XP [laptop?]: # ms91919999575433 19/3/05 # Super Multi DVD Rewriter, HL-DT-ST DVDRAM GSA-5163D, rev 2.00/0.01 # Manufacturer = LG # Speed analysis: # host=laps + belkin pcmcia card with ehci driver: # /var/log/messages: cd1: 1.000MB/s transfers # dd if=vts_01_1.vob of=/dev/null # 1 gig file # host=laps external USB2 7,232,404 bytes/sec # host=laps internal USB1 1,058,483 bytes/sec # host=laps internal atapi drive 1,7597,65 bytes/sec # host=film internal atapi drive 4,575,677 bytes/sec # dd if=/dev/cd1 of=/dev/null bs=2k # host=laps external USB2 644871 bytes/sec # Industry norm: # Single speed CDROM is 150 K byte/sec. # Single speed DVD is 1385 K byte/sec. # Drive paper spec for DVD-R read is 10x ie 13.85 M byte/sec # Dont know what jes@''s plain white DVD media specifies # but clearly 7.2 is far short of 13.8 # I am not cable bandwidth limited, as # USB1=12 Mbit/s, USB2=480Mbit/sec = 60 M bytes/s # Possibly I am USB system process limited in laptop. } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x152e" ; match "product" "0xe003" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; # action "rmdir /media/dvd" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS: DVD Dual Layer - Freecom - Black # device-name "umass[0-9]+" ; match "vendor" "0x07ab" ; match "product" "0xfccc" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "1000000000000000203BC" ; match "release" "0x0407" ; action "touch /tmp/devd-dvd_dual_layer" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x07ab" ; match "product" "0xfccc" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "1000000000000000203BC" ; match "release" "0x0407" ; action "rm -f /tmp/dvd_dual_layer" ; } ; # ============================================================================= # }{ DEVICE_TYPE FLOPPY # ----------------------------------------------------------------------------- attach 1000 { # JHS: Floppy # device-name "umass[0-9]+" ; match "vendor" "0x0644" ; match "product" "0x0000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0000" ; action "sleep 4 ;\ bsdlabel `echo $device-name|sed -e s/umass/da/` ;\ rm -f /devusb/floppy ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`c /devusb/floppy ;\ mkdir /media/floppy ;\ mount -t ufs -o noatime /devusb/floppy /media/floppy" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x0644" ; match "product" "0x0000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0000" ; action "rmdir /media/floppy ; rm -f /devusb/floppy " ; } ; # ----------------------------------------------------------------------------- # TEAC FD-05PUB, rev 1.10/0.00 da0 at umass-sim0 bus 0 target 0 lun 0 # Assume UFS format floppy. 4.10 fixit floppy has UFS on C, not A ! # bsdlabel is needed else mount fails. # ============================================================================= # }{ DEVICE_TYPE CAMERA # ----------------------------------------------------------------------------- # Canon Digital Camera, Canon Inc. rev 1.10/0.01 # Digital Ixus II # Also known as Power Shot SD100 I think. # rotate Swich up to blue ie viewing mode. attach 1000 { # JHS: Camera - Canon device-name "ugen[0-9]+" ; match "vendor" "0x04a9" ; match "product" "0x3072" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; action "echo 'You may want to try digikam or gtkam'" ; } ; # gphoto2 --auto-detect # Shows nothing. # ----------------------------------------------------------------------------- attach 1000 { # Camera Technika Model CD-30 # Bought for ~ 8 pounds in UK/TW/Tesco 2008 # gphoto2 --auto-detect # Che-Ez Snap SNAP-U device-name "ugen[0-9]+" ; match "vendor" "0x2770" ; match "product" "0x905c" ; match "devclass" "0xff" ; match "devsubclass" "0xff" ; match "release" "0x0100" ; # action "echo 'Start digikam or gtkam'" ; action "chmod 666 /dev/$device-name /dev/$device-name.[0-3] ;\ logger 'User should call digikam'" ; # logger line goes to /var/log/messages. } ; detach 1000 { device-name "ugen[0-9]+" ; match "vendor" "0x2770" ; match "product" "0x905c" ; match "devclass" "0xff" ; match "devsubclass" "0xff" ; match "release" "0x0100" ; action "rm -f /tmp/devd-camera_technika" ; } ; # ----------------------------------------------------------------------------- # gphoto2 --auto-detect does not see it, not suprising as it is umass. # Camera "Odys SLIM5L ProII" = name on chassis attach 1000 { device-name "umass[0-9]+" ; match "vendor" "0x0595" ; match "product" "0x2002" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "Default 1234567" ; match "release" "0x0000" ; action "logger 'should mount -t msdosfs'" ; action "sleep 4 ;\ rm -f /devusb/odys ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/odys" ; # mkdir /media/odys ; chmod 777 /media/odys ; # chown jhs:staff /media/odys ; # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/odys ; # mount -t msdosfs -r /devusb/odys /media/odys ; # mount did not happen, not suprising as camera kept turning off # to save batteries. } ; detach 1000 { device-name "umass[0-9]+" ; match "vendor" "0x0595" ; match "product" "0x2002" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "Default 1234567" ; match "release" "0x0000" ; action "logger 'should umount'" ; action "rmdir /media/odys ; rm -f /devusb/odys" ; } ; # ============================================================================= # }{ DEVICE_TYPE TABLET & PHONES # ----------------------------------------------------------------------------- attach 1000 { # Kindle mk@ # /dev/ da0 da0s1 msdosfs msdosfs/Kindle pass3 # ugen1.6 usb/1.6.0 usb/1.6.1 match "vendor" "0x1949" ; match "product" "0x0004" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "9017220144220GDB" ; match "release" "0x0100" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; action "mkdir /media/kindle ;\ chmod 777 /media/kindle ; chown jhs:staff /media/kindle ;\ mount -t msdosfs /dev/msdosfs/Kindle /media/kindle" ; # This minimal attach is for 11.0-CURRENT. } ; detach 1000 { match "vendor" "0x1949" ; match "product" "0x0004" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "9017220144220GDB" ; match "release" "0x0100" ; # match "intclass" "0x08" ; # match "intsubclass" "0x06" ; # match "intprotocol" "0x50" ; action "rmdir /media/kindle" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # Vodafone small smart phone mk@ #1 # http://berklix.com/android/#vodafone_858 # /dev/ cd1 iso9660 iso9660/MOBILE%20PARTNER pass3 pass4 # ugen1.6 usb/1.6.0 usb/1.6.1 # /usr/ports/audio/gmtp reports: No raw devices found # device-name "umass0" ; match "vendor" "0x12d1" ; match "product" "0x1037" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "84A8E459B819" ; match "release" "0x0226" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "mkdir /media/vodafone_858 ;\ chmod 777 /media/vodafone_858 ; chown jhs:staff /media/vodafone_858 ;\ mount -t cd9660 /dev/iso9660/MOBILE%20PARTNER /media/vodafone_858" ; } ; detach 1000 { # device-name "umass0" ; match "vendor" "0x12d1" ; match "product" "0x1037" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "84A8E459B819" ; match "release" "0x0226" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "umount /media/vodafone_858" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # vodafone_985N mk@ #2 http://berklix.com/android/#vodafone_985N # /usr/ports/audio/gmtp reports: # Vendor: Alcatel/TCT Product: 6010D/TCL S950 # When powered up before connecting, creates: # /dev/ pts/3 ugen1.6 usb/1.6.0 usb/1.6.1 usb/1.6.2 usb/1.6.3 match "vendor" "0x1bbb" ; match "product" "0x0167" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "A6VOH67H6TQK7PDU" ; match "release" "0x0216" ; # match "intclass" "0xff" ; } ; detach 1000 { match "vendor" "0x1bbb" ; match "product" "0x0167" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "A6VOH67H6TQK7PDU" ; match "release" "0x0216" ; # match "intclass" "0xff" ; # action ? } ; # ----------------------------------------------------------------------------- # samsung Galaxy A5 mk@ #3 http://berklix.com/android/#samsung_galaxy_a5 # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 - When powered off before connecting, produces: # /dev/ cd1 pass3 ugen1.6 usb/1.6.0 usb/1.6.1 # Fails: mount -t cd9660 /dev/cd1 /mnt # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 - When first physicaly connected # Media device MTP shown in Samsung "USB PC connection" # Alternately toggles to PTP # /dev/ cuaU0 cuaU0.init cuaU0.lock ttyU0 ttyU0.init ttyU0.lock # ugen1.6 usb/1.6.0 usb/1.6.1 usb/1.6.2 usb/1.6.3 usb/1.6.4 usb/1.6.5 attach 1000 { # Samsung Galaxy Note 3 # Seen 1st when tethering match "vendor" "0x04e8" ; match "product" "0x6860" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "6758498c" ; match "release" "0x0400" ; match "intclass" "0xff" ; match "intsubclass" "0xff" ; match "intprotocol" "0x00" ; } ; detach 1000 { # Seen 2nd untethering match "vendor" "0x04e8" ; match "product" "0x6860" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "6758498c" ; # sernum does show on detach with 9.3-RELEASE match "release" "0x0400" ; match "intclass" "0xff" ; match "intsubclass" "0xff" ; match "intprotocol" "0x00" ; } ; # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 - Android After Selecting: # "Settings ; Connections ; Tethering and portable hot spot ; USB tethering" attach 1000 { # Seen 2nd when tethering match "vendor" "0x04e8" ; match "product" "0x6863" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "6758498c" ; match "release" "0x0232" ; # match "intclass" "0xe0" ; # match "intsubclass" "0x01" ; # match "intprotocol" "0x03" ; ## action "ifconfig ue0 192.168.42.139 ; dhclient ue0" ; # To use phone as router for PC: use dhclient ue0. # To use PC as router for phone: avoid dhclient ue0. # /usr/src/etc/devd.conf has: /etc/rc.d/dhclient quietstart $subsystem action "ifconfig ue0 192.168.42.139" ; } ; detach 1000 { # Seen 1st untethering match "vendor" "0x04e8" ; match "product" "0x6863" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "6758498c" ; # sernum does show on detach with 9.3-RELEASE match "release" "0x0232" ; # match "intclass" "0x0a" ; # match "intsubclass" "0x00" ; # match "intprotocol" "0x00" ; action "cp /dev/null /etc/resolv.conf" ; # No need to ifconfig ue0 down, as it dissapears. # zap /etc/resolvf.conf to avoid all DNS lookups slowing, # cp not rm as a sym link } ; # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 In Menu item "Tethering & portable hotspot" # Touch "Settings > Connections > Tethering & Portable Hotspots # > USB tethering" & Samsung shows "Tethered" # & FreeBSD 11.0-CURRENT creates device shown by ifconfig: # ue0: flags=8802 metric 0 mtu 1500 attach 1000 { match "vendor" "0x04e8" ; match "product" "0x6864" ; # This gets created (not by me) shown with "ifconfig ue0" # ue0: flags=8802 metric 0 mtu 1500 # ether 02:0f:0f:56:38:34 # Maybe later add: # action "ifconfig ue0 10.0.0.3 10.0.0.4" ; } ; detach 1000 { match "vendor" "0x04e8" ; match "product" "0x6864" ; action "ifconfig ue0 down" ; } ; # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 - ?Camera PTP? attach 1000 { match "vendor" "0x04e8" ; match "product" "0x6865" ; } ; detach 1000 { match "vendor" "0x04e8" ; match "product" "0x6865" ; } ; # ----------------------------------------------------------------------------- # Samsung Galaxy Note 3 - Camera (PTP) shown in Samsung "USB PC connection" # Alternately toggles to MTP attach 1000 { match "vendor" "0x04e8" ; match "product" "0x6866" ; } ; detach 1000 { match "vendor" "0x04e8" ; match "product" "0x6866" ; } ; # ----------------------------------------------------------------------------- # Lenovo A8-50 Android Tablet http://berklix.com/android/#lenovo_a5500 # /dev/ creations: # ugen1.5 # usb/1.5.0 # usb/1.5.1 # usb/1.5.2 # { # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # As a media device MTP attach 1000 { match "vendor" "0x17ef" ; match "product" "0x772a" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "HJH011VB" ; match "release" "0x0216" ; match "intclass" "0xff" ; match "intsubclass" "0xff" ; match "intprotocol" "0x00" ; #action "echo dont_know_what_to_mount" ; } ; detach 1000 { match "vendor" "0x17ef" ; match "product" "0x772a" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "HJH011VB" ; match "release" "0x0216" ; match "intclass" "0xff" ; match "intsubclass" "0xff" ; match "intprotocol" "0x00" ; #action "echo dont_know_what_to_umount" ; } ; # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # As a camera device PTP attach 1000 { match "vendor" "0x17ef" ; match "product" "0x772c" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "HJH011VB" ; match "release" "0x0216" ; match "intclass" "0x06" ; match "intsubclass" "0x01" ; match "intprotocol" "0x01" ; } ; detach 1000 { match "vendor" "0x17ef" ; match "product" "0x772c" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "HJH011VB" ; match "release" "0x0216" ; match "intclass" "0x06" ; match "intsubclass" "0x01" ; match "intprotocol" "0x01" ; } ; # } # ============================================================================= # }{ DEVICE_TYPE PHONE ADAPTERS # ----------------------------------------------------------------------------- attach 1000 { # JHS: Mobile Phone Adapter - Sony device-name "ugen[0-9]+" ; match "vendor" "0x054c" ; match "product" "0x0437" ; match "devclass" "0xff" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; action "echo 'You may want to start xgnokii'" ; # OLD match "vendor" "0x067b" ; # OLD match "product" "0x2303" ; # OLD match "release" "0x0100" ; # PL2303 Serial adapter (ATEN/IOGEAR UC232A), Prolific Technology Inc., # rev 1.10/1.00 Manufacturer: Sony Model: QN-3USB } ; # ============================================================================= # }{ DEVICE_TYPE BLUETOOTH # ----------------------------------------------------------------------------- # JHS: Bluetooth USB Stick, Cambridge Silicon Radio Ltd. (pas@ < Vobis) attach 1000 { device-name "ugen[0-9]+" ; match "vendor" "0x0a12" ; match "product" "0x0001" ; match "devclass" "0xe0" ; match "devsubclass" "0x01" ; match "release" "0x0525" ; # match "protocol" "0x0001" ; action "sleep 4 ;\ mkdir /media/0/dos /media/0/dummy ;\ chmod 777 /media/0/dos /media/0/dummy ;\ chown jhs:staff /media/0/dos /media/0/dummy ;\ mount /media/0/dummy ; mount /media/0/dos \ " ; # rev 1.10/5.25 # pas@ never got this working under MS. } ; detach 1000 { # device-name "ugen[0-9]+" ; match "vendor" "0x0a12" ; match "product" "0x0001" ; match "devclass" "0xe0" ; match "devsubclass" "0x01" ; match "release" "0x0525" ; # match "protocol" "0x0001" ; action "rmdir /media/0/dos /media/0/dummy ;\ rm -f /media/0/dummy ; mount /media/0/dos \ " ; } ; # Media_Size: 16G # Hama, 34 090894, 10 EU from Mueller 2012-10-11 Cardboard marked USB2 6 MB/sec # Stick only works on 8.3-RELEASE, not 9.2 & 10.0, see # http://lists.freebsd.org/pipermail/freebsd-usb/2014-March/012843.html # Bar Code 4 047443 144492 # Stick works with Samsung Galaxy Note 3 + USB OTG # demsg: # 40.000MB/s transfers # 15015MB (30750720 512 byte sectors: 255H 63S/T 1914C) # fdisk # cylinders=1914 heads=255 sectors/track=63 (16065 blks/cyl) # sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 63, size 30750657 (15014 Meg), flag 0 # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 1023/ head 254/ sector 63 # The data for partition 2,3,4 is: # Media_LED: Yes, Red attach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x048d" ; match "product" "0x1170" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "0000000004DA3CC3" ; match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 4 ; rm -f /devusb/hama16g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/hama16g ;\ mkdir /media/hama16g ; chmod 777 /media/hama16g ;\ chown jhs:staff /media/hama16g ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/hama16g ;\ mount -t msdosfs /devusb/hama16g /media/hama16g" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x048d" ; match "product" "0x1170" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "0000000004DA3CC3" ; match "release" "0x0100" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "rmdir /media/hama16g ; rm -f /devusb/hama16g" ; } ; # ----------------------------------------------------------------------------- # intenso 16G # fdisk /dev/da0 # cylinders=1936 heads=255 sectors/track=63 (16065 blks/cyl) # partition 1 sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA)) # start 43360, size 31069856 (15170 Meg), flag 80 (active) # beg: cyl 0/ head 1/ sector 1 ; end: cyl 964/ head 255/ sector 36 # dmesg: # da0: Removable Direct Access SCSI-0 device # da0: 40.000MB/s transfers # da0: 15192MB (31113216 512 byte sectors: 255H 63S/T 1936C) # (Speeds measured while machine also running a make.) # date ; testblock -v -n -b 1m -w bla1 ; testblock -v -n -b 1m -w bla2 ;\ # testblock -v -n -b 1m -w bla3 ; testblock -v -n -b 1m -w bla4 ;date # 27 min 35 sec = 1620 sec # 3 x 4,293,918,720 + 3,010,461,696 bytes = 1.589221e+10 # 9,810,011 bytes/sec # date ; testblock -v -n -b 1m -r bla1 ; testblock -v -n -b 1m -r bla2 ;\ # testblock -v -n -b 1m -r bla3 ; testblock -v -n -b 1m -r bla4 ;date # 11 mins 10 secs = 670 secs # 23,719,728 bytes/sec attach 1000 { # JHS: Memory Stick. # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "11091900004097" ; match "release" "0x1000" ; action "sleep 4 ; rm -f /devusb/intenso16g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/intenso16g ;\ mkdir /media/intenso16g ; chmod 777 /media/intenso16g ;\ chown jhs:staff /media/intenso16g ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/intenso16g ;\ mount -t msdosfs /devusb/intenso16g /media/intenso16g" ; } ; detach 1000 { # device-name "umass[0-9]+" ; match "vendor" "0x090c" ; match "product" "0x1000" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "11091900004097" ; match "release" "0x1000" ; action "rmdir /media/intenso16g ; rm -f /devusb/intenso16g" ; } ; # ============================================================================= # }{ DEVICE_TYPE MOUSE # Blue & Silver wireless mouse from Ernst # Red green LED # On = first charging # Flashing = half charged # Off: after fully charged # Green # On = USB connected. # Flashing = Movement. # attach 1000 { # JHS: Wireless Mouse # device-name "ums[0-9]+" ; # match "vendor" "0x05fe" ; # match "product" "0x0011" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0010" ; # action "moused -p /dev/$device-name \ # -I /var/run/moused.$device-name.pid ; vidcontrol -m on" ; # ------------ # Wireless mouse given jhs@ by ew@ Serial 20122103 # No Manufacturer marked on base or mouse. # Base has an extended top to fit IR hole of mouse to align electrodes. # Wireless mouse from Jim to test. Serial 20114842 # Marked "Addison Technology" on base & mouse. # I did not have his transformer to test, so used mine from # Zediworks hub. His has a bigger power socket, no compatible with mine. # Both: # Marked "RF Optical Mouse" on both # CE 0560. # Work OK on both zinc carbon & 1.2V NiCad. # LED Left Red: Power, Flashes when charging mouse. # LED Right Green: On when USB plug is in. Flashes fast when # searching mouse & when returned to base. # (On Jim''s with Nicad I also noticed if mouse was put in base # straight, red LED hard on (till charged ?), whereas if put # in off central, left or right , red LED flashed slowly.) # Mine can not be put in out of alignement because of extra base # plastic into the IR hole of mouse. # Switch under base in position 1. (I tried position 2: # when syncing, base does not hear mouse). # Jim''s base is happy to sync to my mouse & vice versa # (but they do need a resync so fortunately do not interfere). # Resync sequence (may not be official but works for me): # Plug in power & USB Green LED on continuously # Push & release button in base. Green flashes slowly (a few per sec.) # Push & release button in mouse. Green flashes fast for a second # then stays on continuously. # To activate power on mouse squeeze side buttons. # Failed Google search for manual: Addison Technology RF Optical Mouse # http://www.ciao.de/ADDISON_Technology_RF_Optical_Mouse__2199265 # http://www.addison-technology.com/ Dead # http://www.addison-technology.com/rightclick.cfm?id=509 Dead # http://www.addison-tech.com/ irrelevant cable co. # usbd reports: PS2/USB Browser Combo Mouse, Cypress Sem: # } ; # ============================================================================= # }{ DEVICE_TYPE COMBI MOUSE+KEYBOARD # ----------------------------------------------------------------------------- # Unit marked 3 is first one I bought, # Consumption measured at 12 mA # usbconfig: # ugen1.4: at usbus1, # cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) # http://www.delock.de # Buddy (TM) PS/2 Keyboard-PS/2 Mouse - Cypress Semiconductor # Original cost: 10 or 12 Euro in Schiller str. # Periodicaly stops (just unplug & replug & works again). # Units 1 & 2 I bought later. # Consumption measured at 16 mA # usbconfig: # ugen1.4: at usbus1, # cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) # 2 more at 3.5 pound (March 2005) by young lad + smoker in wheelchair # @ http://www.computerfairs.com, Croydon they work, # but not yet tested to see if they too periodicaly stop. attach 1000 { # JHS: PS2 Mouse & Keyboard Adaptor - Buddy match "vendor" "0x04b4" ; match "product" "0x8328" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; match "intclass" "0x03" ; match "intsubclass" "0x01" ; match "intprotocol" "0x02" ; } ; attach 1000 { # JHS: PS2 Mouse & Keyboard Adaptor - Semi Tech match "vendor" "0x04b4" ; match "product" "0x8081" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # "sernum" ; match "release" "0x0001" ; match "intclass" "0x03" ; match "intsubclass" "0x01" ; match "intprotocol" "0x02" ; } ; # device names: ukbd[0-9]+,ums[0-9]+ ; # device-name=ukbd0 # device-name=ums1 # action "kbdcontrol -k /dev/kbd1 -l us.iso < /dev/console ;\ # /usr/local/bin/xmodmap -display :0 \ # /home/jhs/.xmodmap/host=laps.init" ; # detach "kbdcontrol -k /dev/kbd0 -l uk.iso \ # < /dev/console ;/usr/local/bin/xmodmap \ # -display laps:0 /home/jhs/.xmodmap/english" ; # ----------------------------------------------------------------------------- attach 1000 {#JHS: Targus AMP02EU Notebook Wireless Presenter-Mouse component device-name "ums[0-9]+" ; match "vendor" "0x05fe" ; match "product" "0x1010" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x4101" ; action "moused -p /dev/$device-name \ -I /var/run/moused.$device-name.pid ; vidcontrol -m on" ; # device JHS: Targus AMP02EU Notebook Wireless Presenter - keyboard component # devname "ukbd[0-9]+" ; # match "vendor" "0x05fe" ; # match "product" "0x1010" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x4101" ; } ; # If the 2 things wont speak, you have to push the button on the tip # of the USB half, then a LED blinks inside the crack between 2 halves # of the shell, then push button on back of hand held presenter. # Be aware if slide on front top is slid up to pointer rather than # mouse mode, if you then push top right a laser comes out so do not # point that at eyes. # ============================================================================= # }{ DEVICE_TYPE KEYBOARD # External keyboard is American layout. # Toshiba internal keyboard is English & black, can not be relabelled. # /usr/share/syscons/keymaps/ # usbd starts before xdm, xmodmap fails at boot, # but might work later, xauth permitting. # ----------------------------------------------------------------------------- attach 1000 { # JHS: Keyboard: Havit Model AL-2199 # power 100 mA, rev 2.30 # device-name "ukbd[0-9]+" ; match "vendor" "0x1241" ; match "product" "0x1203" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x03" ; # match "intsubclass" "0x00" ; match "release" "0x0230" ; action "touch /tmp/devd-kbd-havit-attach ;\ /usr/local/bin/xmodmap -display :0 /home/jhs/.xmodmap/host=laps.init" ; # --------- # touch /tmp/dev-xx-$device-name seems to get called 3 times with # all of these in this order: ugen1.3 ukbd0 uhid0 # kbdcontrol -k /dev/kbd2 -l us.iso < /dev/console ; # kbdcontrol: cannot open /dev/kbd2: Device busy # xmodmap: If an X session is not already running it will complain: # No protocol specified # xmodmap: unable to open display ':0' } ; # A fresh booted laps 8.0 has all of: # crw------- 1 root wheel 0, 45 Mar 7 17:24 /dev/atkbd0 # lrwxr-xr-x 1 root wheel 6 Mar 7 17:24 /dev/kbd0 -> atkbd0 # lrwxr-xr-x 1 root wheel 7 Mar 7 17:24 /dev/kbd1 -> kbdmux0 # crw------- 1 root wheel 0, 14 Mar 7 17:24 /dev/kbdmux0 # After inserting keyboard it adds: # lrwxr-xr-x 1 root wheel 5 Mar 7 17:29 /dev/kbd2 -> ukbd0 # crw------- 1 root wheel 0, 125 Mar 7 17:28 /dev/ukbd0 detach 1000 { # device-name "device-name[0-9]+" ; # ugen1.3 match "vendor" "0x1241" ; match "product" "0x1203" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "intclass" "0x03" ; # match "intsubclass" "0x00" ; # match "intsubclass" "0x01" ; match "release" "0x0230" ; action "rm /tmp/devd-kbd-havit-attach ;\ /usr/local/bin/xmodmap -display :0 /home/jhs/.xmodmap/english" ; # --------- # kbdcontrol -k /dev/kbd2 -l uk.iso < /dev/console # kbdcontrol: cannot open /dev/kbd2: No such file or directory # xmodmap: If an X session is not already running it will complain: # No protocol specified # xmodmap: unable to open display ':0' } ; # ----------------------------------------------------------------------------- # device JHS: Toshiba inbuilt mouse pad # CREATE ENTRY LATER # I guess host=laps inbuilt mouse pad is a USB, as # with nothing plugged usbdevs -v shows: # Controller /dev/usb0: # addr 1: full speed, self powered, config 1, # UHCI root hub(0x0000), Intel(0x0000), rev 1.00 # port 1 powered port 2 powered # Controller /dev/usb1: # addr 1: full speed, self powered, config 1, # UHCI root hub(0x0000), Intel(0x0000), rev 1.00 # port 1 powered # port 2 addr 2: full speed, power 100 mA, config 1, # Synaptics cPad(0x0003), Synaptics Inc.(0x06cb), rev 0.11 # Controller /dev/usb2: # addr 1: full speed, self powered, config 1, # UHCI root hub(0x0000), Intel(0x0000), rev 1.00 # port 1 powered port 2 powered # With other USB mice plugged in at boot, it showed up as ums2. # After a reboot with no USB plugged in at boot time, # it showed up as /dev/ums0 # After usbd_enable="NO" in /etc/rc.conf & another reboot, # ums0 still appeared , # presumably created by these : ps -laxww | grep usb # 0 35 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb0] # 0 36 0 0 8 0 0 8 usbtsk DL ?? 0:00.00 [usbtask] # 0 37 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb1] # 0 38 0 0 8 0 0 8 usbevt DL ?? 0:00.00 [usb2] # ----------------------------------------------------------------------------- # Kensington USB Wheel Mouse - Blue < jes@ 100 mA #attach 1000 { # JHS: Mouse - Blue < jes@ # device-name "ums[0-9]+" ; # match "vendor" "0x047d" ; # match "product" "0x1012" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # action "moused -p /dev/$device-name \ # -I /var/run/moused.$device-name.pid ;\ # vidcontrol -m on" ; # # host=lapr uname=9.1 warns: # # unable to open /dev/ums1 # # ls+diff shows + ugen1.4 + ums1 # # crw-r--r-- 1 root operator 0, 154 Nov 26 20:27 /dev/ums1 # # lrwxr-xr-x 1 root wheel 9 Nov 26 20:27 /dev/ugen1.4@ -> usb/1.4.0 # # crw------- 1 root operator 0, 96 Nov 26 20:27 /dev/usb/1.4.0 # # host=lapr uname=10.0-BETA3 with xdm on, warns: # # moused: unable to open /dev/ums1: Device busy # # vidcontrol: getting active vty: Inappropriate ioctl for device # } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS: Stick Mouse: JVC Handy Mouse HC-MM55U device-name "ums[0-9]+" ; match "vendor" "0x04f1" ; match "product" "0x0001" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0001" ; action "moused -p /dev/$device-name \ -I /var/run/moused.$device-name.pid ;\ vidcontrol -m on" ; # This mouse is not recognised on most of my systems. # On host=laps with 6.0BETA2, it also isnt, if connected straight # but after I put it through a zediworks hub (powered or # unpowered irrelevant!) it then works ! # On 8.1, direct on USB 1 it didnt work, # via USV-2 vardbus & sediworks hub it did work. # usbdevs -v : low speed, power 100 mA, config 1, rev 0.01 } ; # ----------------------------------------------------------------------------- # Logitech mouse RX250A from mk 2011-02-18 from EG # M/N: M-BAD58B # P/N: 810-000208 # PID: LZ946HG21S0 # 5V 100mA attach 1000 { device-name "ums[0-9]+" ; match "vendor" "0x046d" ; match "product" "0xc050" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x2720" ; action "moused -p /dev/$device-name \ -I /var/run/moused.$device-name.pid -t logitech -3 ;\ vidcontrol -m on" ; } ; # -3: This thing has a wheel, (which unlike my Mickeysoft does not # physicaly click) I havent configured the wheel. # JJLATER: Remove a not of spcificity & snd-pr for defaults/ # ----------------------------------------------------------------------------- ## attach 1000 { # JHS: Mouse Generic ## device-name "ums[0-9]+" ; ## action "moused -p /dev/$device-name \ ## -I /var/run/moused.$device-name.pid ; vidcontrol -m on" ; ## # The entry below starts moused when a mouse is plugged in. Moused ## # stops automatically (actually it bombs :) when the device disappears. ## } ; # ----------------------------------------------------------------------------- # My USB tp PS2 Keyboard+Mouse adaptors uses 17mA. # My very slim USB keyboard use 17mA. # PS2 Keyboards use 20 to 100 mA # ============================================================================= # }{ DEVICE_TYPE PRINTER (not Scanner+Printer combi) # See Also /etc/printcap -> /site/domain/js.berklix.net/etc/printcap # ----------------------------------------------------------------------------- # attach 1000 { # JHS: HP LaserJet 1010 in Munich, Grey Body # device-name "ugen[0-9]+" ; # match "vendor" "0x03f0" # match "product" "0x0c17" # match "devclass" "0x00" # match "devsubclass" "0x00" # match "release" "0x0100" # match "devproto" "0x00" # match "intclass" "0x07" # match "intprotocol" "0x02" # match "intprotocol" "0x03" # match "intsubclass" "0x01" # match "sernum" "00CNFF062127" # # cdev=ulpt0 cdev=unlpt0 # # ps: # # Executing 'chgrp cups /dev/$'ugen0.3' ; chmod g+rw /dev/$'ugen0.3'' # } # detach 1000 { # } ; # /dev/ # crw-r--r-- 1 root operator 0xc1 Dec 15 01:56 ulpt0 # crw-r--r-- 1 root operator 0xc2 Dec 15 01:56 unlpt0 # rwxr-xr-x 1 root wheel 9 Dec 15 01:56 ugen0.3@ -> usb/0.3.0 # crw-rw---- 1 root cups 0xa9 Dec 15 01:56 usb/0.3.0 # ----------------------------------------------------------------------------- # HP LaserJet 1018 in Aachen, White Body # ----------------------------------------------------------------------------- # device JHS: Laser Printer, NO scanner - Brother HL-P2500 - Hardware gone # device-name "ugen[0-9]+" ; # match "vendor" "0x04f9" ; # match "product" "0x000a" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # Brother Industries rev 1.00/1.00 # ----------------------------------------------------------------------------- # HP/deskjet_970_cxi_printer Ink Jet Printer, No scanner # Adds: /dev/ ugen1.2 + ulpt0 + unlpt0 # See: ~/tech/hp_deskjet_970xxi_printer attach 1000 { # JHS: Printer imported 2010.02.28 # device-name match "vendor" "0x03f0" ; match "product" "0x1004" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "MY07E1D1J8JQ" ; match "release" "0x0100" ; action "touch /tmp/devd_debug_hp_deskjet_970_cxi" ; } ; detach 1000 { # device-name match "vendor" "0x03f0" ; match "product" "0x1004" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "MY07E1D1J8JQ" ; match "release" "0x0100" ; action "rm /tmp/devd_debug_hp_deskjet_970_cxi" ; } ; # ============================================================================= # }{ DEVICE_TYPE SCANNER (not Scanner+Printer combi) # ----------------------------------------------------------------------------- # Scanner (Slim Line) Canon F916900 from pas@ 2022-03 # ----------------------------------------------------------------------------- # To allow normal progs such as xsane to access scanner I added this, # which is too indiscriminate as it allows access to all USB. # I also added to /etc/rc.conf: devfs_system_ruleset="localrules" # & to /etc/devfs.rules # [localrules=10] # add path 'ugen*' mode 0660 group saned # add path 'usb*' mode 0660 group saned # ----------------------------------------------------------------------------- # attach 1000 { # media-type "uscanner0" ; # action "touch /tmp/devd-media-type_scanner0" ; # } ; # detach 1000 { # media-type "uscanner0" ; # action "rm -f /tmp/devd-media-type_scanner0" ; # } ; # ----------------------------------------------------------------------------- # @ 2022-02 The aac combi scanner printer ex ron is Epson XP-312 # it works with xsane but only as root. # it needs a chmod # find -s . -print showed these additions after connecting USB: # da1 does it have a memory card in a slot ? # pass4 # ugen1.8 # ulpt0 printer # unlpt0 printer # usb/1.8.0 # usb/1.8.1 # usb/1.8.2 # usb/1.8.4 # usb/1.8.5 # usb/1.8.7 # usb/1.8.8 # xs sane-find-scanner -q # found USB scanner (vendor=0x148f [Ralink], product=0x2770 [802.11 n \ # WLAN]) at libusb:001:005 # found USB scanner (vendor=0x04b8, product=0x08af) at libusb:001:004 attach 1000 { # match "device-name" "uscanner0" ; match "vendor" "0x04b8" ; # vendor "0x04b8":"0x08af" match "product" "0x08af" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; # match "sernum" "533553503039313955" ; action "chmod 666 /dev/$device-name" ; # this would be ulpt0 # man ulpt USB printer support } ; # ----------------------------------------------------------------------------- # Scanner, A4, Dark Grey sides, light grey top, Slim profile, No printer # Takes ages to start 2023-07 with Xsane on FreeBSD 12.4-RELEASE # Label on front: Epson Perfection 1260 # 2 Labels Undeneath: # Epson GT-7300U # Epson Perfection 1260 Model J121A 15.2V 1.2A # vendo0x04b8 product=0x011d # My Insulating Tape Label On Side: Epson GT-7300U # Pre 2017-08: # Product Name for Sane & Epson: GT-7300U # Files in /ftp/pub/download.ebz.epson.net/dsc/du/02/epson_scanner-gt-7300u # 2013-06-14 I see in http://www.sane-project.org/sane-backends.html # Model :Interface:USB id :Status :Comment :Backend :Manpage # GT-7300U:USB :0x04b8/0x011d:Unsupported:supported by the epkowa # backend plus non-free interpreter:epson2 (1.0.124):sane-epson2 # http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX # http://download.ebz.epson.net/dsc/search/01/search/searchModule # http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do \ # ?LG2=EN&CN2=&DSCMI=15831&DSCCHK=dc314c7561f36b1e0796b28c20038ddc9fc14ff3 # http://www.sane-project.org/cgi-bin/driver.pl?manu=Epson&model=GT-7300U&bus=usb&v=&p= # 2017-08: # http://www.sane-project.org/cgi-bin/driver.pl?manu=Epson&model=Perfection+1260&bus=usb&v=04b8&p=011d # Epson, # Perfection 1260, # USB # 04b8 # 011d # backends: # epson2 # comment= supported by the epkowa backend plus # non-free interpreter # Manual Page: sane-epson2 # plustek # status=complete # Manual Page: sane-plustek.5 # /var/log/messages: ugen1.5: at usbus1 # sane-find-scanner -q # found USB scanner (vendor=0x04b8 [EPSON], product=0x011d \ # [EPSON Scanner], chip=LM9832/3) at libusb:001:005 # 2017-08 it works on FreeBSD, But with background colour down # the of the length: yellow on left, red on right. # usbconfig list # ugen1.6: at usbus1,\ # cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA) # 12 is USB1 speed. # scanimage -L # device ``plustek:libusb:001:005'' is a Epson Perfection \ # 1260/Photo flatbed scanner # I Added to /usr/local/etc/sane.d/plustek.conf: # usb 0x04b8 0x011d # device libusb:001:005 # /sys/dev/usb/usbdevs: # product EPSON 1260 0x011d Perfection 1260 scanner # /sys/amd64/compile/DELL.small/usbdevs.h: # #define USB_PRODUCT_EPSON_1260 0x011d /* Perfection 1260 scanner */ # /sys/amd64/compile/DELL.small/modules/usr1/src/sys/modules/usb/*/usbdevs.h: # USB_PRODUCT_EPSON_1260 0x011d /* Perfection 1260 scanner */ # attach 1000 { # JHS scanner from JES 2009.09 # # match "system" "USB"; # # match "subsystem" "INTERFACE"; # # match "type" "ATTACH"; # # match "device-name" "uscanner0" ; # match "vendor" "0x04b8" ; # # "0x04b8":"0x011d" # match "product" "0x011d" ; # ## match "devclass" "0xff" ; # ## match "devsubclass" "0x00" ; # ## match "release" "0x0100" ; # # match "intclass" "0xff" ; # # match "intsubclass" "0x00" ; # # match "intprotocol" "0xff" ; # # match "devproto" "0xff" ; # action "/usr/bin/touch /tmp/jhs-debug; chmod 666 /dev/$device-name" ; # } ; attach 1000 { # match "device-name" "uscanner0" ; match "vendor" "0x04b8" ; # "0x04b8":"0x011d" match "product" "0x011d" ; match "devclass" "0xff" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; action "echo $device-name > /tmp/jhs-debug.device-name ; \ echo $cdev > /tmp/jhs-debug.cdev ; \ chmod 666 /dev/$device-name" ; } ; # FreeBSD-9.1 devd just creates in /dev/ : ugen1.6 -> usb/1.6.0 # FreeBSD-12.4-RELEASE devd creates # lrwxr-xr-x 1 root wheel 9 Jul 31 21:14 /dev/ugen0.4@ -> usb/0.4.0 # /dev/usb/ # crw------- 1 root operator 0xb1 Jul 31 21:14 /dev/usb/0.4.0 # crw------- 1 root operator 0xb3 Jul 31 21:14 /dev/usb/0.4.1 # crw------- 1 root operator 0xb4 Jul 31 21:14 /dev/usb/0.4.2 # crw------- 1 root operator 0xb5 Jul 31 21:14 /dev/usb/0.4.3 ## Gary 2023-07, failed with: /usr/local/etc/devd/saned.conf ## Add the saned.conf file to /usr/local/etc/devd/saned.conf with the ## following content: ## notify 100 { ## match "system" "USB"; ## match "subsystem" "INTERFACE"; ## match "type" "ATTACH"; ## match "cdev" "ugen[0-9].[0-9]"; ## match "vendor" "0x03f0"; ## match "product" "0x8911"; ## action "chown -L cups:saned /dev/\$cdev && chmod -L 660 /dev/\$cdev"; ## }; # sane-find-scanner -q # From graphics/sane-backends # found USB scanner (vendor=0x04b8 [EPSON], # product=0x011d [EPSON Scanner], # chip=LM9832/3) at libusb:/dev/usb:/dev/ugen1.6 # ----------------------------------------------------------------------------- # Canon scanner LIDE 110, No printer # LIDE=LED Indirect Exposure # /devd/ additions observed 2017-08-26: # + ./ugen1.5 # + ./usb/1.5.0 # + ./usb/1.5.1 # + ./usb/1.5.2 # + ./usb/1.5.3 # 12.2-STABLE addition observed 2021-08, just ugen1.6 # xs scanimage -L # device ``genesys:libusb:001:006'' is a Canon LiDE 110 flatbed scanner # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Black slim bought in UK charity chop 2016. Lock bar underneath # Dismantled but still seems to jam, reports some IO error. # sane-find-scanner # found USB scanner (vendor=0x04a9 [Canon], product=0x1909 [CanoScan],\ # chip=GL124) at libusb:001:004 # scanimage -L # ``genesys:libusb:001:006'' is a Canon LiDE 110 flatbed scanner # usbconfig list # with ext. hub: ugen1.6: # no ext. hub: ugen1.4: # at usbus1, cfg=0 md=HOST \ # spd=HIGH (480Mbps) pwr=ON (500mA) # 480 is USB2 # devd: Executing 'logger Unknown USB device: # vendor 0x04a9 product 0x1909 bus uhub2' attach 1000 { match "vendor" "0x04a9" ; match "product" "0x1909 " ; match "devclass" "0xff" ; match "devsubclass" "0xff" ; # match "sernum" "" ; match "release" "0x0701" ; # match "interface" "0" ; match "intclass" "0xff" ; match "intsubclass" "0xff" ; match "intprotocol" "0xff" ; action "chmod 666 /dev/$ugen" ; } ; # detach 1000 { # match "vendor" "0x04a9" ; # match "product" "0x1909 " ; # match "devclass" "0xff" ; # match "devsubclass" "0xff" ; # match "sernum" "" ; # match "release" "0x0701" ; # match "interface" "0" ; # match "intclass" "0xff" ; # match "intsubclass" "0xff" ; # match "intprotocol" "0xff" ; # } ; # ----------------------------------------------------------------------------- # # HP ScanJet 4400c, Hewlett-Packard - Dead & dumped. Scanner No printer. # attach 1000 { # JHS: Scanner - HP ScanJet 4400c, Hewlett-Packard # # device-name # match "vendor" "0x03f0" ; # match "product" "0x0705" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0100" ; # # 6.1-RELEASE custom kernel, patched, adds /dev/uscanner0 # } ; # ============================================================================= # }{ DEVICE_TYPE COMBI SCANNER+PRINTER # See Also /etc/printcap -> /site/domain/js.berklix.net/etc/printcap # ----------------------------------------------------------------------------- # Epson Stylus DX3850 InkJet Printer Scanner from ljk@, OK with Xsane 2021-08 # See also /etc/printcap # sane-find-scanner -q # found USB scanner (vendor=0x04b8 [EPSON], # Pre 2021-06-02: # product=0x0818 [USB MFP]) at libusb:001:003 # 2021-06-02: # product=0x0818 [USB MFP]) at libusb:001:007 # 2021-06-02 12.2-STABLE when device is plugged in these get created: # lrwxr-xr-x 1 root wheel 9 Jun 2 01:45 ugen1.7 -> usb/1.7.0 # crw-r--r-- 1 root operator 0x149 Jun 2 01:45 ulpt0 # crw-r--r-- 1 root operator 0x14a Jun 2 01:45 unlpt0 # crw------- 1 root operator 0x10b Jun 2 01:45 usb/1.7.0 # crw------- 1 root operator 0x10d Jun 2 01:45 usb/1.7.1 # crw------- 1 root operator 0x10e Jun 2 01:45 usb/1.7.2 # crw------- 1 root operator 0x147 Jun 2 01:45 usb/1.7.3 # crw------- 1 root operator 0x148 Jun 2 01:45 usb/1.7.4 # man 4 ugen - USB generic device support # man 4 ulpt - USB printer support # scanimage -L # device ``epson2:libusb:001:007'' is a Epson CX3800 flatbed scanner # /sbin/devd -d attach 1000 { # JHS: Printer Scanner # device-name # cdev=ugen1.6 # cdev=ulpt0 match "vendor" "0x04b8" ; # "0x04b8":"0x0818" match "product" "0x0818" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "devproto" "0x00" ; # match "sernum" "L33040510180019280" ; match "release" "0x0100" ; # Debug: # action "\ # echo $cdev > /tmp/devd-v04b8p0818-cdev.echo ;\ # ls -l /dev/$cdev > /tmp/devd-v04b8p0818-cdev.ls ;\ # echo $device-name > /tmp/devd-v04b8p0818-device-name.echo ;\ # ls -l /dev/$device-name > /tmp/devd-v04b8p0818-device-name.ls ;\ # echo $ugen$interface > /tmp/devd-v04b8p0818-interface.echo ;\ # ls -l /dev/ugen$interface > /tmp/devd-v04b8p0818-interface.ls ;\ # echo $ugen$interface* > /tmp/devd-v04b8p0818-interfacestar.echo ;\ # ls -l /dev/ugen$interface* > /tmp/devd-v04b8p0818-interfacestar.ls ;\ # echo $ugen* > /tmp/devd-v04b8p0818-ugen.echo ;\ # ls -l /dev/ugen* > /tmp/devd-v04b8p0818-ugen.ls" ; # # Produces with 12.2-STABLE 20201-06-02: # # echo $cdev nothing # # ls -l /dev/$cdev everything in /dev listed # # echo $device-name ulpt0 # # ls -l /dev/$device-name /dev/ulpt0 # # echo $ugen$interface ugen1.41 # # ls -l /dev/ugen$interface nothing # # echo $ugen$interface* ugen1.41 # # ls -l /dev/ugen$interface* /dev/ugen1.4 -> usb/1.4.0 # # echo $ugen* ugen1.4 # # ls -l /dev/ugen* /dev/ugen1.4 -> usb/1.4.0 # action "ls -l /dev/$ugen /dev/usb/1.4.0 ; chmod 444 /dev/$ugen ;\ # ls -l /dev/$ugen /dev/usb/1.4.0" ; # # lrwxr-xr-x 1 root wheel 9 Jun 2 18:13 /dev/ugen1.4 -> usb/1.4.0 # # crw------- 1 root operator 0xb5 Jun 2 18:13 /dev/usb/1.4.0 # # lrwxr-xr-x 1 root wheel 9 Jun 2 18:13 /dev/ugen1.4 -> usb/1.4.0 # # cr--r--r-- 1 root operator 0xb5 Jun 2 18:13 /dev/usb/1.4.0 action "chmod 666 /dev/$ugen" ; # 666 needed for xsane, # JJLATER I could instead let just saned access the scanner, # & let xsane access devices via saned, but no need on a PC. # JJLATER I suspect I should tweak something so system recognise # a scanner & creates a scanner device name & not just ugen } ; detach 1000 { # device-name match "vendor" "0x04b8" ; # "0x04b8":"0x0818" match "product" "0x0818" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; } ; # ----------------------------------------------------------------------------- # http://www.sane-project.org/cgi-bin/\ # driver.pl?manu=epson&model=stylus+DX3850&bus=usb&v=04b8&p=0818 # backend=epson2, epkowa # scanimage -L # device ``epson2:libusb:001:003'' is a Epson CX3800 flatbed scanner # usbconfig list # ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL \ # (12Mbps) pwr=ON (2mA) # 12 = USB1 # Actually works with FreeBSD 2017-08, in colour even, # after I dumped previous ~/.sane # ----------------------------------------------------------------------------- # Pending ras@ combi @ ex 3KC # ----------------------------------------------------------------------------- # Sample from /usr/ports/graphics/sane-backends/files/pkg-message.in # Here is an example saned.conf for an Epson CX3650 # multi-function scanner/printer device (assuming you are sharing # the printer function with cups): # notify 100 { # match "system" "USB" ; # match "subsystem" "INTERFACE" ; # match "type" "ATTACH" ; # match "cdev" "ugen[0-9].[0-9]" ; # match "vendor" "0x04b8" ; # "0x04b8":"0x080e" # match "product" "0x080e" ; # action "chown -L cups:saned /dev/$cdev && chmod -L 660 /dev/$cdev" ; # } # ----------------------------------------------------------------------------- # HP DeskJet 2050 # No entry in /etc/printcap # My black combi scanner + printer above white table : # Label On Back: HP DeskJet 2050 All in 1 J510 Series. # 2013-06 I dont see this in http://www.sane-project.org/sane-backends.html # http://www.sane-project.org/cgi-bin/driver.pl \ # ?manu=HP&model=J510+series&bus=usb&v=&p= # sane-find-scanner -q # From graphics/sane-backends # found USB scanner (vendor=0x03f0 [HP], product=0x8711 # [Deskjet 2050 J510 series]) at libusb:/dev/usb:/dev/ugen1.2 # 2017-08: # sane-find-scanner -q # found USB scanner (vendor=0x03f0 [HP], product=0x8711 # [Deskjet 2050 J510 series]) at libusb:001:003 # scanimage -L # No scanners were identified. If you were expecting something different, # sane-find-scanner # found USB scanner (vendor=0x03f0 [HP], product=0x8711 # [Deskjet 2050 J510 series]) at libusb:001:003 # Old Section to be stripped: # { # xsane net:rain:mustek:/dev/pass1 # Works # setenv SANE_DEFAULT_DEVICE net:rain:mustek:/dev/pass1 # Fails # Often need to reset 20.95 cm x 29.65 cm # scanimage -L # From sane-frontends # It wont see my scanner unless # /usr/ports/print/hplip # has these added # WITH_SCAN=YES # WITH_XSANE=YES # then it reports: # device # ``hpaio:/usb/Deskjet_2050_J510_series?serial=CN09721HXY05D1'' # is a Hewlett-Packard Deskjet_2050_J510_series all-in-one # ls -l /dev/ugen1.2 /dev/usb/1.2.0 # usbconfig -d 1.2 # ugen1.2: # at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON # chmod 666 /dev/usb/1.2.0 # vi /etc/devfs.rules created & rc.conf # reinstalled virgin ports/graphics/xsane # reinstalled virgin ports/graphics/sane-backends # ports/devel/libusb has been already included into base system # /usr/local/etc/sane.d/ From ?? # Consider editing in: # dll.conf # hpaio # hp.conf # # HP Deskjet 2050 special edition -added by jhs@ # usb 0x03f0 0x8711 # /usr/local/etc/sane.d/dll.conf edited by # /var/db/pkg/hplip-3.11.1/+CONTENTS # /usr/local/etc/sane.d/dll.conf discussed by # /var/db/pkg/sane-backends-1.0.21_2/+DISPLAY # /usr/local/etc/sane.d/saned.conf discussed by # /var/db/pkg/sane-backends-1.0.21_2/+DISPLAY # hpaio.conf None # hp.conf # hp3900.conf # hp4200.conf # hp5400.conf # /usr/local/lib/sane/ # libsane-hp.la* # libsane-hp.so@ # libsane-hp.so.1* # libsane-hp3500.la* # libsane-hp3500.so@ # libsane-hp3500.so.1* # libsane-hp3900.la* # libsane-hp3900.so@ # libsane-hp3900.so.1* # libsane-hp4200.la* # libsane-hp4200.so@ # libsane-hp4200.so.1* # libsane-hp5400.la* # libsane-hp5400.so@ # libsane-hp5400.so.1* # libsane-hp5590.la* # libsane-hp5590.so@ # libsane-hp5590.so.1* # libsane-hpaio.la* # libsane-hpaio.so@ # libsane-hpaio.so.1* # libsane-hpljm1005.la* # libsane-hpljm1005.so@ # libsane-hpljm1005.so.1* # /usr/local/man/man5/ # sane-hp.5.gz # sane-hp3500.5.gz # sane-hp3900.5.gz # sane-hp4200.5.gz # sane-hp5400.5.gz # sane-hp5590.5.gz # sane-hpljm1005.5.gz # /usr/local/share/doc/sane-backends/hpaio None # /usr/local/share/doc/sane-backends/README.freebsd Exists but Old # # print/hplip install message: # HPLIP expects printers to be attached as a ugen(4) # devices. This means that you must NOT have "device # ulpt" in your kernel and ulpt must NOT be loaded # as a kernel module (you may also want to compile # print/cups-base with LIBUSB support). Please, follow # the instructions from print/cups-base pkg-message # to setup correct permission for usb devices. # # In order to enable full functionality of hp tools, # users must be added to group ``cups''. # } # ----------------------------------------------------------------------------- # HP PSC 2110 all-in-one printer scanner copier # From Jim 2010.01.03 - Scrapped as hardware error. # FreeBSD 8.0-RELEASE kernel=LAPS.small devd -d -D shows: # ugen3.3 # ulpt0 # man ulpt USB printer support # unlpt0 # man unlpt No manual entry for unlpt # usb/3.3.0 usb/3.3.1 usb/3.3.2 usb/3.3.3 usb/3.3.4 usb/3.3.5 usb/3.3.6 # attach 1000 { # # match "device-name" "ugen3.3" ; # match "vendor" "0x03f0" ; # match "product" "0x2811" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "sernum" "MY25GB607Z0F" ; # match "release" "0x0100" ; # action "touch /tmp/devd-HP-PSC-2110" ; # } ; # detach 1000 { # # match "device-name" "ugen3.3" ; # match "vendor" "0x03f0" ; # match "product" "0x2811" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "sernum" "MY25GB607Z0F" ; # match "release" "0x0100" ; # action "rm -f /tmp/devd-HP-PSC-2110" ; # } ; # HP PSC 1500 Series SDG0B-0502 from Holz str rubbish room 2018-09-16, # scanner works with Xsane, printer not tried. # ============================================================================= # }{ HOST=DELL internal seen after all USB are unplugged, dont know what it is # sane-find-scanner -q : vendor=0x413c [Broadcom Corp], product=0x8197 [BCM20702A0]) # usbconfig show_ifdrv ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) # usbconfig show_ifdrv ugen1.1.0: uhub2: # usbconfig show_ifdrv ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) # usbconfig show_ifdrv ugen2.1.0: uhub1: # usbconfig show_ifdrv ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) # usbconfig show_ifdrv ugen0.1.0: uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> # usbconfig show_ifdrv ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) # usbconfig show_ifdrv ugen2.2.0: uhub3: # usbconfig show_ifdrv ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) # usbconfig show_ifdrv ugen1.2.0: uhub4: # usbconfig show_ifdrv ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) # usbconfig show_ifdrv ugen1.3.0: ubt0: # usbconfig show_ifdrv ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (0mA) # usbconfig show_ifdrv ugen2.3.1: umodem0: # usbconfig show_ifdrv ugen2.3.3: umodem1: # usbconfig show_ifdrv ugen2.3.6: cdce0: # usbconfig show_ifdrv ugen2.3.9: umodem2: # usbconfig show_ifdrv ugen1.4: <001E8C1D8850-D310-06171A LaptopIntegratedWebcamE4HD> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) # usbconfig show_ifdrv ugen2.4: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) # usbconfig show_ifdrv ugen1.5: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (100mA) # usbconfig show_ifdrv ugen1.5.0: uhub5: # usbconfig show_ifdrv ugen1.6: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) # usbconfig show_ifdrv ugen1.6.0: ukbd0: # usbconfig show_ifdrv ugen1.6.1: ums2: # usbconfig show_ifdrv ugen1.7: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) # usbconfig show_ifdrv ugen1.7.0: ums0: # usbconfig show_ifdrv ugen1.8: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) # usbconfig show_ifdrv ugen1.8.0: ukbd1: # usbconfig show_ifdrv ugen1.8.1: ums1: # USB+WLAN Toshiba # usbconfig show_ifdrv ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA) # usbconfig show_ifdrv ugen0.2.0: run0: <1.0> # }{ DEVICE_TYPE WLAN # 2023-10 current measurements: # Edimax wlan is drawing 0.8 mA on meter while I'm doing # ping land, with an sftp it rose to 1.0 & 1.1 mA # Humax wlan stick draws 1.5 mA with ping, 1.8 mA with sftp # TP-Link wlan stick 1.85 mA with sftp # Toshiba wlan stick 1.55 mA with sftp # 2023-07-16: USB+WLAN foldable rotating aerial (pos from colour laser ? ) CSL Computer GmbH # usbconfig show_ifdrv ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) # usbconfig show_ifdrv ugen0.2.0: rsu0: # sane-find-scanner -q : Manufacturer Realtek, RTL8191S WLAN Adapter # match device-name "rsu0" # match vendor "0x0bda" # match product "0x8172" # match devclass "0x00" # match devsubclass "0x00" # match sernum "00e04c000001" # match release "0x0200" # ----- # match devproto "0x00" # match intclass "0xff" # match intprotocol "0xff" # match intsubclass "0xff" # /etc/rc.d/netif attach 1000 { # Iomega & Toshiba wlan stick driver=run match "device-name" "run[0-9]+" ; action "ifconfig wlan$interface create wlandev $device-name ; \ ifconfig wlan$interface regdomain ETSI ; \ ifconfig wlan$interface country de ; \ ifconfig wlan$interface \ `grep -v '^#' /var/run/wlan_params_berklix` ; \ ifconfig wlan$interface up ; \ service netif start ; \ wpa_supplicant -i wlan$interface \ -c /etc/wpa_supplicant.conf \ -P /var/run/wpa_supplicant_berklix.pid & \ ( sleep 30 ; dhclient wlan$interface ) &" ; # ntpdate ntp1.t-online.de # the NTP socket is in use, exiting # --- # JJLATER Problem: "wpa_supplicant ... &" returns instantly, # but takes a while to scan for WLAN in background, # so "dhclient wlan0" can get called too soon & fail. # How long the sleep should be is a compromise. # -W is not useful to add to wpa_supplicant # it is not a flag to wait till associated, I proved that by: # This never returns until the device is removed: # wpa_supplicant -i wlan0 \ # -c /etc/wpa_supplicant.conf \ # -P /var/run/wpa_supplicant_berklix.pid # This never returns until the device is removed, # but also fail to progress # status: no carrier to status: associated # wpa_supplicant -i wlan0 \ # -c /etc/wpa_supplicant.conf \ # -P /var/run/wpa_supplicant_berklix.pid -W # After a quick look at man dhclient.conf # I cant see a way to call wpa_supplicant as a precursor # to dhclient fetching IP number # Except JJLATER: # try getting wpa_supplicant to start # as a demon at boot, before wlan0 even exists. } ; # ----------------------------------------------------------------------------- attach 1000 { # Edimax wlan nano stick driver=rtwn match "device-name" "rtwn[0-9]+" ; action "ifconfig wlan$interface create wlandev $device-name ; \ ifconfig wlan$interface regdomain ETSI ; \ ifconfig wlan$interface country de ; \ ifconfig wlan$interface \ `grep -v '^#' /var/run/wlan_params_berklix` ; \ ifconfig wlan$interface up ; \ service netif start ; \ wpa_supplicant -i wlan$interface \ -c /etc/wpa_supplicant.conf \ -P /var/run/wpa_supplicant_berklix.pid & \ ( sleep 30 ; dhclient wlan$interface ) &" ; # ntpdate ntp1.t-online.de" ; # 2023-05-25 16:24:49 ntpdate[3300]: the NTP socket is in use, exiting } ; # ----------------------------------------------------------------------------- attach 1000 { # Edimax wlan nano stick driver=urtwn match "device-name" "urtwn[0-9]+" ; action "ifconfig wlan$interface create wlandev $device-name ; \ ifconfig wlan$interface regdomain ETSI ; \ ifconfig wlan$interface country de ; \ ifconfig wlan$interface \ `grep -v '^#' /var/run/wlan_params_berklix` ; \ ifconfig wlan$interface up ; \ service netif start ; \ wpa_supplicant -i wlan$interface \ -c /etc/wpa_supplicant.conf \ -P /var/run/wpa_supplicant_berklix.pid & \ ( sleep 30 ; dhclient wlan$interface ) &" ; # ntpdate ntp1.t-online.de" ; # 2023-05-25 16:24:49 ntpdate[3300]: the NTP socket is in use, exiting } ; # ----------------------------------------------------------------------------- detach 1000 { # Iomega Wireless 802.11n USB Adapter, # FCC ID: NOI W473, S/N: W473A10004C04303 match "vendor" "0x148f" ; match "product" "0x2770" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "1.0" ; match "release" "0x0101" ; # action "kill -9 `cat /var/run/wpa_supplicant.pid`" ; # No need of a detach kill of wpa_supplicant, it dies of its own. # If I have more than one wlan stick in operation, I shouldnt kill. } ; # ----------------------------------------------------------------------------- detach 1000 { # Toshiba Corporation, WLM-10U2, Askey Computer Corp, WLU5022 (RoH)D, # Dual Band WLAN Adapter, 5V 500mA, # MAC E839df159952, S/N: 61061034479A match "vendor" "0x0930" ; match "product" "0x0a07" ; match "release" "0x0101" ; match "sernum" "1.0" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # action "kill -9 `cat /var/run/wpa_supplicant.pid`" ; # If I have more than one wlan stick in operation, I shouldnt kill. } ; # ----------------------------------------------------------------------------- detach 1000 { match "vendor" "0x7392" ; match "product" "0x7811" ; match "release" "0x0200" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # action "kill -9 `cat /var/run/wpa_supplicant.pid`" ; # If I have more than one wlan stick in operation, I shouldnt kill. } ; # ----------------------------------------------------------------------------- detach 1000 { # Edimax rtwn match "vendor" "0x7392" ; match "product" "0x7811" ; match "release" "0x0200" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # action "kill -9 `cat /var/run/wpa_supplicant.pid`" ; # If I have more than one wlan stick in operation, I shouldnt kill. } ; # ----------------------------------------------------------------------------- # attach 1000 { # JHS < EWW Black radio Stick & Hot Spot Finder # # USB2.0 WLAN, ZyDAS # # man 4 zyd # # Paint job on front: ConnecTec TEW-429UB # # dmesg: ZyDAS USB2.0 WLAN # # ugen0 + ugen0.1 + ugen0.2 + ugen0.3 + ugen0.4 # # device-name "ugen[0-9]+" ; # match "vendor" "0x157e" ; # match "product" "0x300b" ; # match "devclass" "0xff" ; # match "devsubclass" "0xff" ; # match "release" "0x4802" ; # # match "protocol" "0x00ff" ; # action "touch /tmp/devd-radio-attach" ; # # usbdevs -v: power 500 mA, config 1, USB2.0 WLAN(0x300b), # # ZyDAS(0x157e), rev 48.02 # # Numbers on back label: MM051021300083 0014D1C0AB9C # } ; # detach 1000 { # # match device-name=ugen0 # match "vendor" "0x157e" ; # match "product" "0x300b" ; # match "devclass" "0xff" ; # match "devsubclass" "0xff" ; # match "release" "0x4802" ; # # match "protocol" "0x00ff" ; # action "rm -f /tmp/devd-radio-detach" ; # } ; # ----------------------------------------------------------------------------- # Humax USB WLAN Stick WNA699U8N3 from jes@ 2015-07 # I''ve seen both: # match "vendor" "0x148f" ; # match "product" "0x5572" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "1.0" ; # match "release" "0x0101" ; # match "intclass" "0xff" ; # match "intsubclass" "0xff" ; # match "intprotocol" "0xff" ; # - - - - - - - - - - - - - - - - - - - - - - - - - # match "vendor" "0x05e3" ; # match "product" "0x0660" ; # match "devclass" "0x09" ; # match "devsubclass" "0x00" ; # match "sernum" "" ; # match "release" "0x0507" ; # match "interface" "0" ; # match "intclass" "0x09" ; # match "intsubclass" "0x00" ; # match "intprotocol" "0x00" ; # ----------------------------------------------------------------------------- # Tchibo stick After plugging in I see: # crw-rw---- 1 uucp dialer 0, 177 Nov 5 00:35 /dev/cuaU0.0 # crw-rw---- 1 uucp dialer 0, 178 Nov 5 00:35 /dev/cuaU0.0.init # crw-rw---- 1 uucp dialer 0, 179 Nov 5 00:35 /dev/cuaU0.0.lock # crw-rw---- 1 uucp dialer 0, 183 Nov 5 00:35 /dev/cuaU0.1 # crw-rw---- 1 uucp dialer 0, 184 Nov 5 00:35 /dev/cuaU0.1.init # crw-rw---- 1 uucp dialer 0, 185 Nov 5 00:35 /dev/cuaU0.1.lock # crw-rw---- 1 uucp dialer 0, 189 Nov 5 00:35 /dev/cuaU0.2 # crw-rw---- 1 uucp dialer 0, 190 Nov 5 00:35 /dev/cuaU0.2.init # crw-rw---- 1 uucp dialer 0, 191 Nov 5 00:35 /dev/cuaU0.2.lock # crw-rw---- 1 uucp dialer 0, 195 Nov 5 00:35 /dev/cuaU0.3 # crw-rw---- 1 uucp dialer 0, 196 Nov 5 00:35 /dev/cuaU0.3.init # crw-rw---- 1 uucp dialer 0, 197 Nov 5 00:35 /dev/cuaU0.3.lock # attach 1000 { # # u3g0 # # device-name "u3g[0-9]+" ; # match "vendor" "0x12d1" ; # match "product" "0x140c" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0000" ; # # match "intclass" "0xff" ; # # match "intsubclass" "0xff" ; # action "touch /tmp/tchibo_net_stick_wlan" ; # } ; # detach 1000 { # # u3g0 # ugen5.3 # # device-name "u3g[0-9]+" ; # match "vendor" "0x12d1" ; # match "product" "0x140c" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # # match "intclass" "0xff" ; # # match "intsubclass" "0xff" ; # match "release" "0x0000" ; # action "rm /tmp/tchibo_net_stick_wlan" ; # } ; # -------------------- # 4 G chip in the side of the umts modem: # First of all just da0 appears, # after mount -t msdosfs /dev/da0 /mnt # then da0s1 also appears # fdisk da0 # ******* Working on device /dev/da0 ******* # parameters extracted from in-core disklabel are: # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # parameters to be used for BIOS calculations are: # cylinders=490 heads=255 sectors/track=63 (16065 blks/cyl) # Media sector size is 512 # The data for partition 1 is: # sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) # start 8192, size 7874560 (3845 Meg), flag 0 # beg: cyl 1/ head 2/ sector 3 ; # end: cyl 977/ head 67/ sector 3 # ----------------------------------------------------------------------------- attach 1000 { match "vendor" "0x12d1" ; match "product" "0x1446" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0000" ; # ugen5.2 action "touch /tmp/tchibo_net_stick_umass" ; } ; detach 1000 { match "vendor" "0x12d1" ; match "product" "0x1446" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0000" ; # ugen5.2 action "rm /tmp/tchibo_net_stick_umass" ; } ; # ============================================================================= # Dual Band Wireless LAN Adapter WLM-10U2, came with Toshiba TV 40VL743G # +ugen1.4 # match "vendor" "0x0930" ; # match "product" "0x0a07" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "1.0" ; # match "release" "0x0101" ; # Inserting creates these: # /dev/ # lrw-rw---- 1 root scanberklix 9 Apr 1 19:10 ugen1.3 -> usb/1.3.0 # /dev/usb/ # + crw-rw-rw- 1 root scanberklix 0, 105 Apr 1 19:09 1.3.0 # + crw------- 1 root operator 0, 131 Apr 1 19:09 1.3.1 # + crw------- 1 root operator 0, 132 Apr 1 19:09 1.3.2 # + crw------- 1 root operator 0, 133 Apr 1 19:09 1.3.3 # + crw------- 1 root operator 0, 134 Apr 1 19:09 1.3.4 # ============================================================================= # }{ DEVICE_TYPE CARDBUS ADAPTER # From: Hans Petter Selasky # Date: Wed, 18 Jun 2008 01:48:46 +0200 # To: freebsd-usb@@@freebsd.org # The blocksize for USB Flash is typically 512 bytes due to # wMaxPacketSize being 512 bytes at High Speed USB. # The SCSI command set allows you to read up to 32MByte in one go, but FreeBSD # typically does not read/write more than 64K. # ----------------------------------------------------------------------------- # I guess my Belkin Hi-Speed USB 2.0 Notebook Card is an earlier version of # http://catalog.belkin.com/IWCatProductPage.process?Product_Id=123940 # It runs extremely hot. # umass errs, g_vfs_done()da0a[WRITE(offset= # ) ] for brackets.c # this card used to run hot on FreeBSD-6, in this # Toshiba Satellite S5100-603, & I think BSD + this laptop # cooked my brothers identical Belkin card too last year. # The laptop BTW: # http://www.berklix.com/~jhs/hardware/toshiba/satellite.s5100-603/ # FreeBSD-7.1-RELEASE is still cooking by default. # 7.1-RELEASE /var/log/messages : # Belkin after insertion: # cardbus0: Warning: CIS pointer 0 (no CIS present) # cardbus0: Warning: Bogus CIS ignored # cardbus0: at device 0.0 (no driver attached ) # cardbus0: Warning: CIS pointer 0 (no CIS present) # cardbus0: Warning: Bogus CIS ignored # cardbus0: at device 0.1 (no driver attached ) # cardbus0: Warning: CIS pointer 0 (no CIS present) # cardbus0: Warning: Bogus CIS ignored # ehci0: # mem 0xfce05000-0xfce050ff irq 11 at device 0.2 on cardbus0 # ehci0: [GIANT-LOCKED] # ehci0: [ITHREAD] # usb3: EHCI version 1.0 # usb3: wrong number of companions (2 != 0) # usb3: on ehci0 # usb3: USB revision 2.0 # uhub3: on usb3 # uhub3: 5 ports with 5 removable, self powered # ----------------------------------------------------------------------------- # "M. Warner Losh" # Cardbus runs at 3.3V only. There''s X.X and Y.Y low-voltage specs, but # nobody seems to implement them. PC Card (the 16-bit version) runs at # 3.3V or 5.0V. The usual reason for cards running really hot is too # much current draw over the bus for supplied devices. Many of the # cards have an external power supply that can be used to provide more # power over a path that is made for it rather than exceeding the # CardBus specs to pull the power in over that power bus. # ----------------------------------------------------------------------------- # NOTES TO MERGE IN # It gets too warm when just plugged into laptop''s cardbus, # nothing external connected, (but not painfully hot as when # pulled out after heavy use with no external power, # connected to a powered hub driving an unpowered 2.5 disc). # (But yes of course lots of stuff in a laptop to keep it hot). # Belkin doesnt seem to get hot, sitting idle under XP # But I dont know how to load Belkin to do disc intensive IO under XP. # (more accurately I have not looked for eg GCC under XP # to compile my # http://www.berklix.com/~jhs/src/bsd/jhs/bin/public/testblock/ ) # I wonder if XP turns off the card when not needed, # & if that might be viable in BSD ?. # Powerd: I was not running powerd until last few days. # PC fan went on & off OK before & still does. # Yes, this Belkin has a power socket, I hardly ever used it till now: # Only ever used the Belkin via 1 or 2 powered hubs, which I # assumed would buffer it + laptop from excess load. I had # assumed laptop supplies the Belkin at a well regulated 5V, # & I measured a few 5V supplies for hubs as { 5.36, 5.41 & # 5.22 V }, (So unless disc pulled down hub voltage below # 5.0, hub would not load down the Belkin, pulling extra # current, but I suppose an over voltage is also potential # unwanted heat (& at square law V^2 / R for heat), # if hubs were to feeds back to Belkin at full V (but hubs # would not, as discs pull hub V. down from eg 5.36 to 5.2).) # Both Belkin sockets deliver no voltage, unless Belkin is # externaly powered. (& a memory stick requiring little # current produces no /dev/da* so power supply from Belkin # is not some OS related turn- on- if- something detected thing), # but more simple: power must be supplied from { external # socket or a device (in my case a powered hub) }. # ------------------ # I swapped the disc to a different USB to IDE converter, omitted case, # disc does not get hot, but USB to IDE chip painfully hot (on good converter) # + another power doubler cable, straight into PC, no hub, # it wrote then read all remaining FS free space of 217 G succesfully. # I swapped my other previously failing 120 G disc out of bad enclosure, # into a known good enclosure, NO problems now on that either, have written # 106 with no hang, & read verified 60 G as I type. # ============================================================================= # }{ DEVICE_TYPE GPS TOMTOM # Warning TomTom are not using differentiating Product Codes ! # So I specify serial number - Ugh ! # ----------------------------------------------------------------------------- # If PC powers up after tomtom, TomTom One does not notice PC, until cable # is disconnected then reconnected, then it asks if it should connect. # --- # TomTom One does not connect until its screen its touched to confirm. # Until that happens, devd creates no /dev/da[0-9]. attach 1000 { # JHS: GPS for Car TomTom One - new, light, slim grey chassis match "vendor" "0x1390" ; match "product" "0x0001" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "Y24297C01161" ; match "release" "0x0001" ; match "device-name" "umass" ; action "sleep 4 ;\ rm -f /devusb/tomtom1 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/tomtom1 ;\ mkdir /media/tomtom1 ; chmod 777 /media/tomtom1 ;\ chown jhs:staff /media/tomtom1 ;\ mount -r -t msdosfs /devusb/tomtom1 /media/tomtom1" ; } ; # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/tomtom1 ; detach 1000 { match "vendor" "0x1390" ; match "product" "0x0001" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "Y24297C01161" ; Not reported on detach. match "release" "0x0001" ; match "device-name" "umass" ; action "rmdir /media/tomtom1 ; rm -f /devusb/tomtom1" ; } ; # ----------------------------------------------------------------------------- attach 1000 { # JHS: GPS for Car TomTom 700 - old, heavy, black chassis # device-name match "vendor" "0x1390" ; match "product" "0x0001" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "AA8075371733" ; # My serial above, jes@ will have another serial number. # So dont specify so I can mount any. match "release" "0x0200" ; match "device-name" "umass" ; action "sleep 4 ;\ rm -f /devusb/tomtom700 ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/tomtom700 ;\ sleep 4 ;\ mkdir /media/tomtom700 ; chmod 777 /media/tomtom700 ;\ chown jhs:staff /media/tomtom700 ;\ mount -r -t msdosfs /devusb/tomtom700 /media/tomtom700" ; # sleep 4 was added 28.04.2009 because on 7.1-RELEASE host=laps, # /dev/da[0-9] does not get created immediately. # 4 worked OK but I made it 6 for safety margin. # One can see the TomTom 700 screen flashing an image # (flat black disk maybe ?) during connect. # `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/tomtom700 ; } ; # No `/site/usr/local/bin/fsck.sh`, & mount read only, # as probably a live device! # usbd -d -v: # /dev/da0 isnt seen by FreeBSD until I turn on TomTom power button. # dd if=/dev/da0 of=/usr1/tomtom.da0 gives size: 2070786048 # Then dd froze for a while & file didnt grow bigger, but screen stopped # flashing. # Note 2 gig should be 2147483648 # Then it started flashing & growing again. # final 2500485120 # 4883760+0 records in & out # 2500485120 bytes / 3781.476143 secs (661246 bytes/sec) # Above using Belkin cardbus/usb2 adapter which hangs a lot. # 2009.04.09 log: # { # I connected via reliable USB1 internal, # (not Belkin USB2 Cardbus that hangs # periodically & might confuse diagnosis) # mount -t msdosfs -r /dev/da1 /mnt ; df: # Filesystem Size Used Avail Capacity Mounted on # /dev/da1 2.5 G 1.4 G 1.1 G 57% /mnt # } detach 1000 { # device-name match "vendor" "0x1390" ; match "product" "0x0001" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "AA8075371733" # wont show on detach match "release" "0x0200" ; match "device-name" "umass" ; action "rmdir /media/tomtom700 ; rm -f /devusb/tomtom700" ; } ; attach 1000 { # new widest tomtom @ 2017-07 match "vendor" "0x1390" ; match "product" "0x5454" ; action "echo incomplete_devd_config" ; } ; # ============================================================================= # }{ DEVICE_TYPE E-BOOKS attach 1000 { # JHS: Tolino match "vendor" "0x1f85" ; match "product" "0x1688" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; # match "sernum" "20959304" ; match "release" "0x0226" ; action "sleep 4 ;\ rm -f /devusb/tolino-int /devusb/tolino-ext ;\ ln -s /dev/da`echo $device-name |sed -e s/umass//`\ /devusb/tolino-int ;\ ln -s /dev/da`echo $device-name 1 + p |sed -e s/umass// | dc`\ /devusb/tolino-ext ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/tolino-int ;\ mkdir /media/tolino-int ; chmod 777 /media/tolino-int ;\ chown jhs:staff /media/tolino-int ;\ mount -t msdosfs /devusb/tolino-int /media/tolino-int ;\ sleep 3 ;\ `/site/usr/local/bin/fsck.sh` -t msdosfs /devusb/tolino-ext ;\ mkdir /media/tolino-ext ; chmod 777 /media/tolino-ext ;\ chown jhs:staff /media/tolino-ext ;\ mount -t msdosfs /devusb/tolino-ext /media/tolino-ext" ; # Books/ Downloads/ extsd/ notes.txt DCIM/ LOST.DIR/ fonts/ } ; detach 1000 { match "vendor" "0x1f85" ; match "product" "0x1688" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; action "sleep 4 ;umount /media/tolino-int ;umount /media/tolino-ext ;\ rmdir /media/tolino-int /media/tolino-ext ;\ rm -f /devusb/tolino-int /devusb/tolino-ext" ; } ; # ============================================================================= # }{ DEVICE_TYPE OTHER # ----------------------------------------------------------------------------- # Reiner SCT card scanner (credit card size) - Came free with CT mag. # http://www.reiner-sct.com/produkte/chipkartenleser/cyberjack_RFID_basis.html # cyberJack® RFID basis # Der cyberJack® RFID basis wurde primär für die Nutzung des # elektronischen Identitätsnachweises mit dem neuen Personalausweis # entworfen, bei dem der nPA als Ausweis im Internet # verwendet werden kann. # Neben den Anwendungen des nPA unterstützt der Leser auch # alle weiteren RFID-Anwendungen, wie z.B. das eTicketing mit # RFID-Karten. # Card has these refs: # http://www.reiner-sct.com/cardlogin # http://www.reiner-sct.com/owok # http://allyve.de # ugen=ugen1.3 # cdev=ugen1.3 # 9.2-RELEASE devd reports: # ugen1.3: at usbus1 (disconnected) # usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored) # usbd_setup_device_desc: # getting device descriptor at addr 3 failed, USB_ERR_STALLED # usbd_req_re_enumerate: # addr=3, set address failed! (USB_ERR_STALLED, ignored) # usbd_setup_device_desc: # getting device descriptor at addr 3 failed, USB_ERR_STALLED # usbd_req_re_enumerate: # addr=3, set address failed! (USB_ERR_STALLED, ignored) # usbd_setup_device_desc: # getting device descriptor at addr 3 failed, USB_ERR_STALLED # ugen1.3: at usbus1 (disconnected) # uhub_reattach_port: could not allocate new device # Unknown USB device: vendor 0x0c4b product 0x9102 bus uhub3 # ugen1.3: at usbus1 # Inserting creates these in 9.2-RELEASE /dev # lrwxr-xr-x 1 root wheel 9 Feb 18 18:15 ugen1.3 -> usb/1.3.0 # crw------- 1 root operator 0x8c Feb 18 18:14 usb/1.3.0 # crw------- 1 root operator 0x8e Feb 18 18:14 usb/1.3.1 # crw------- 1 root operator 0x8f Feb 18 18:14 usb/1.3.2 # crw------- 1 root operator 0x90 Feb 18 18:14 usb/1.3.3 # attach 1000 { # match "vendor" "0x0c4b" ; # match "product" "0x9102" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0001" ; # } ; # ----------------------------------------------------------------------------- # Dymo LabelWriter 320 www.dymo.com given to jes@ may have been given further. # # ulpt # attach 1000 { # JHS: Dymo LabelWriter 320 # # device-name # match "vendor" "0x0922" ; # match "product" "0x0010" ; # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "release" "0x0046" ; # # action "echo dont know what to do" ; # } ; # ----------------------------------------------------------------------------- # Default For Pretty Log Printing attach 1000 { # JHS: USB device - Generic } ; # ----------------------------------------------------------------------------- # YV Adaptor: Hauppage! WinTV USB attach 1000 { # JHS: TV from Francis # device-name match "vendor" "0x0573" ; match "product" "0x4d21" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "release" "0x0100" ; } ; # ----------------------------------------------------------------------------- # AVM ISDN-Controller FRITZ!Card USB, AVM Berlin: attach 1000 { # JHS ISDN from Francis # device-name match "vendor" "0x057c" ; match "product" "0x0c00" ; match "devclass" "0xff" ; match "devsubclass" "0xff" ; match "release" "0x0300" ; # match "protocol" "0x00ff" ; } ; # ----------------------------------------------------------------------------- # Smaller Un Named SATA HDD Adapter, with 2 USB plugs for extra power # ----------------------------------------------------------------------------- # # 300 G disk from Acer Laptop, # { # # Also jes@ disk from dead black monster PC # # 305245MB (625142448 512 byte sectors) 40.000MB/s transfers # # ASMT 2105 0 Fixed Direct Access SPC-4 SCSI device ASMT1051 # # Almost identical to sata1tdos # # Both ntfsfix fail. # # Probably disc needs a good power down from within MS # # ntfs-3g of acer300.2 mounts just 15 Meg # # ntfs-3g -o ro needed for acer300.3 AcerLap else fails # # ntfs-3g -o ro needed for acer300.2 jes@ PC else fails # # jes@ PC s2: # # Mounting volume... The disk contains an unclean file system (0, 1). # # FAILED # # Attempting to correct errors... # # Processing $MFT and $MFTMirr... # # Reading $MFT... OK # # Reading $MFTMirr... OK # # Comparing $MFTMirr to $MFT... OK # # Processing of $MFT and $MFTMirr completed successfully. # # Setting required flags on partition... OK # # Going to empty the journal ($LogFile)... OK # # Checking the alternate boot sector... FAILED # # Error: Failed to fix the alternate boot sector # # du -k # 183114 # # jes@ PC s3 # # Mounting volume... The disk contains an unclean file system (0, 0). # # FAILED # # Attempting to correct errors... # # Processing $MFT and $MFTMirr... # # Reading $MFT... OK # # Reading $MFTMirr... OK # # Comparing $MFTMirr to $MFT... OK # # Processing of $MFT and $MFTMirr completed successfully. # # Setting required flags on partition... OK # # Going to empty the journal ($LogFile)... OK # # # "mkdir -p /media/acer300.s2 ; mkdir -p /media/acer300.s3 ;\ # chmod 777 /media/acer300.s* ;\ # chown jhs:staff /media/acer300.* ;\ # ntfsfix /devusb/acer300.s2 ;\ # ntfs-3g -o ro /devusb/acer300.s2 /media/acer300.s2 ;\ # ntfsfix /devusb/acer300.s3 ;\ # ntfs-3g -o ro /devusb/acer300.s3 /media/acer300.s3" ; # # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # # Media sector size is 512 # # 1 sysid 39 start 63, size 25173792 (12291 Meg), flag 0 # # 2 sysid 7 NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX. # # start 25173855, size 208845 (101 Meg), flag 80 (active) # # 3 sysid 7 NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX. # # start 25382700, size 599757700 (292850 Meg), flag 0 # action "touch /devusb/acer300.detach.date ;\ # date >> /devusb/acer300.detach.date ;\ # rm -f /devusb/acer300 \ # /devusb/acer300.s1 \ # /devusb/acer300.s2 \ # /devusb/acer300.s3 \ # /devusb/acer300.warning" ; # } ; # ----------------------------------------------------------------------------- # Disk Ex jes@ Acer 320G laptop, after MS upgrade while in Eeebox, as read on bsd 2020-02-29 # Paper Label: # Hitachi 5K500.B-320 # HTS545032B9A300 5400RPM # Type TS5SAA320 # S/N: 1DCDHY8L # dmesg: # da0: Serial Number 116AC2101219 # da0: 305245MB (625142446 512 byte sectors) # da0: quirks=0x2 # devd 2020-05-08: # cdev=diskid/DISK-116AC2101219s1 # cdev=diskid/DISK-116AC2101219s2 # cdev=diskid/DISK-116AC2101219s3 # P47 of /book/Generic_User_Guide.pdf on slice 3, says slice 1 is 15G of hidden recovery partition. # fdisk da0 # ******* Working on device /dev/da0 ******* # parameters extracted from in-core disklabel are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # # Figures below won''t work with BIOS for partitions not in cyl 1 # parameters to be used for BIOS calculations are: # cylinders=38913 heads=255 sectors/track=63 (16065 blks/cyl) # # Media sector size is 512 # Warning: BIOS sector numbering starts with sector 1 # Information from DOS bootblock is: # The data for partition 1 is: # sysid 39 (0x27),(unknown) # start 63, size 25173792 (12291 Meg), flag 0 # beg: cyl 0/ head 1/ sector 1 ; # end: cyl 1023/ head 254/ sector 63 # The data for partition 2 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 25173855, size 208845 (101 Meg), flag 80 (active) # beg: cyl 1023/ head 254/ sector 63 ; # end: cyl 1023/ head 254/ sector 63 # The data for partition 3 is: # sysid 7 (0x07),(NTFS, OS/2 HPFS, QNX-2 (16 bit) or Advanced UNIX) # start 25382700, size 599757700 (292850 Meg), flag 0 # beg: cyl 1023/ head 254/ sector 63 ; # end: cyl 1023/ head 254/ sector 63 # The data for partition 4 is: # # dc # 63 25173792 208845 599757700 + + + p 625140400 # 2046 less allocated than max on disk 625142446 # Data copied to 500G WD 3.5"" SATA drive with UFS: # S0 expect dc 63 512 * p 32,256 # dd if=/dev/da0 of=s0.dd count=63 # 63+0 records in 63+0 records out # 32,256 bytes # ------- # S1 expect dc 25173792 512 * p 12,888,981,504 = 12888981504 # dd if=/dev/da0s1 of=s1.dd bs=1m # 12291+1 records # 12,888,981,504 bytes # ------- # S2 expect dc 208845 512 * p 106,928,640 = 106928640 # dd if=/dev/da0s2 of=s2.dd.bs=1m bs=1m # 101+1 records # 106,928,640 bytes # dd if=/dev/da0s2 of=s2.dd.bs=def # 208.845+0 records # 106,928,640 bytes # - - - - # dc 25173792 63 + p 25,173,855 # dd if=/dev/da0 of=da0.skip=25173855.count=208845 \ # skip=25173855 count=208845 # 208845+0 records # 106,928,640 bytes # cmp s2.dd.bs=1m da0.skip=25173855.count=208845 # Same # ------- # S3 expect dc 599757700 512 * p 307,075,942,400 = 307075942400 # dd if=/dev/da0s3 bs=1m of=s3.dd # 292,850+1 records # 307,075,942,400 bytes # ------- # S4 expect dc 2046 512 * p 1,047,552 = 1047552 # dd if=/dev/da0 skip=625140400 of=s4.dd # 2046+0 records # 1,047,552 bytes # Do MS or Acer hide any recovery magic or ID traces in S4 ? # ------- # file da* # s0.dd: DOS/MBR boot sector MS-MBR Windows 7 english # at offset 0x163 "Invalid partition table" # at offset 0x17b "Error loading operating system" # at offset 0x19a "Missing operating system", # disk signature 0xb7cc85f ; # partition 1 : ID=0x27, start-CHS (0x0,1,1), end-CHS (0x3ff,254,63), # startsector 63, 25173792 sectors ; # partition 2 : ID=0x7, active, start-CHS (0x3ff,254,63), # end-CHS (0x3ff,254,63), # startsector 25173855, 208845 sectors ; # partition 3 : ID=0x7, start-CHS (0x3ff,254,63), # end-CHS (0x3ff,254,63), # startsector 25382700, 599757700 sectors # s1.dd: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS ", # sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, # heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80), # FAT (1Y bit by descriptor) ; NTFS, sectors/track 63, sectors # 25173791, $MFT start cluster 786432, $MFTMirror start cluster # 1573361, bytes/RecordSegment 2^(-1*246), clusters/index # block 1, serial number 06c407e78407e493a ; contains bootstrap # BOOTMGR # s2.dd: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS ", # Media descriptor 0xf8, sectors/track 63, heads 255, hidden # sectors 25173855, dos < 4.0 BootSector (0x80), FAT (1Y bit # by descriptor) ; NTFS, sectors/track 63, sectors 208844, # $MFT start cluster 69615, $MFTMirror start cluster 104422, # clusters/RecordSegment 2, clusters/index block 8, serial # number 022dc7ebcdc7e89b5 ; contains bootstrap BOOTMGR # s3.dd: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS ", # sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, # heads 255, hidden sectors 25382700, dos < 4.0 BootSector # (0x80), FAT (1Y bit by descriptor) ; NTFS, sectors/track 63, # sectors 599757699, $MFT start cluster 786432, $MFTMirror # start cluster 37484665, bytes/RecordSegment 2^(-1*246), # clusters/index block 1, serial number 01e087f96087f6c21 ; # contains bootstrap BOOTMGR # s4.dd: data # Ports & Pkg: # /usr/ports/sysutils/fusefs-ntfs ntfsfix ntfs-3g fusefs-ntfs-2017.3.23 # /usr/ports/sysutils/ntfsprogs ntfsfix # Data mount: # mdconfig -a -t vnode s1.dd # md2 # mdconfig -a -t vnode s2.dd # md3 # mdconfig -a -t vnode s3.dd # md4 # apropos ntfs # ntfsfix /dev/md2 # ntfsfix /dev/md3 # ntfsfix /dev/md4 # Mounting volume... OK # Processing of $MFT and $MFTMirr completed successfully. # Checking the alternate boot sector... FAILED # Error: Failed to fix the alternate boot sector # kldload fusefs # ntfs-3g -o ro /dev/md2 /acertree/1 # ntfs-3g -o ro /dev/md3 /acertree/2 # ntfs-3g -o ro /dev/md4 /acertree/3 # ntfs-3g /dev/md2 /acertree/1 # ntfs-3g /dev/md3 /acertree/2 # ntfs-3g /dev/md4 /acertree/3 # /bin/df -m | grep /dev/fuse # /bin/df -m | head -1 ; # /bin/df -m | grep /dev/fuse # Filesystem 1M-blocks Used Avail Capacity Mounted on # /dev/fuse 12291 10237 2054 83% /acertree/1 # /dev/fuse 101 24 77 24% /acertree/2 # /dev/fuse 292850 59194 233655 20% /acertree/3 # cd /acertree/1 ; find -s . > /500g/s1.names # cd /acertree/2 ; find -s . > /500g/s2.names # cd /acertree/3 ; find -s . > /500g/s3.names # cd /acertree/1 ; du -m > /500g/s1.du-m # cd /acertree/2 ; du -m > /500g/s2.du-m # cd /acertree/3 ; du -m > /500g/s3.du-m # ----------------------------------------------------------------------------- # # Larger (with PSU) LogiLink SATA HDD Adapter & Docking System # attach 1000 { # # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:123456789012 # match "devclass" "0x00" ; # match "devsubclass" "0x00" ; # match "sernum" "123456789012" ; # match "release" "0x0100" ; # # match "intclass" "0x08" ; # # match "intsubclass" "0x06" ; # # match "intprotocol" "0x50" ; # # intclass & subclass & protocol not seen on 12.3-RELEASE # # This section for disk with 4 MBR slices rescuing from laptop host=lapr # action "touch /tmp/devd.logilinkadapt.1 ;\ # rm -f /devusb/lapr* ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/` /devusb/lapr ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 /devusb/lapr.s1 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 /devusb/lapr.s2 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 /devusb/lapr.s3 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 /devusb/lapr.s4 ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a /devusb/lapr.s1a ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1b /devusb/lapr.s1b ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1d /devusb/lapr.s1d ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1e /devusb/lapr.s1e ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2a /devusb/lapr.s2a ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2b /devusb/lapr.s2b ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2d /devusb/lapr.s2d ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2e /devusb/lapr.s2e ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2f /devusb/lapr.s2f ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3a /devusb/lapr.s3a ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3b /devusb/lapr.s3b ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3d /devusb/lapr.s3d ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3e /devusb/lapr.s3e ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4a /devusb/lapr.s4a ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4b /devusb/lapr.s4b ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4d /devusb/lapr.s4d ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4e /devusb/lapr.s4e ;\ # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4f /devusb/lapr.s4f ;\ # ln -s /site/etc/devd/warning.txt /devusb/lapr.warning ;\ # touch /tmp/devd.logilinkadapt.2 ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s1a ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s1d ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s1e ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s2a ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s2d ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s2e ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s2f ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s3a ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s3d ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s3e ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s4a ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s4d ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s4e ;\ # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/lapr.s4f ;\ # touch /tmp/devd.logilinkadapt.3 ;\ # mkdir /media/lapr.s1a ;\ # mkdir /media/lapr.s1d ;\ # mkdir /media/lapr.s1e ;\ # mkdir /media/lapr.s2a ;\ # mkdir /media/lapr.s2d ;\ # mkdir /media/lapr.s2e ;\ # mkdir /media/lapr.s2f ;\ # mkdir /media/lapr.s3a ;\ # mkdir /media/lapr.s3d ;\ # mkdir /media/lapr.s3e ;\ # mkdir /media/lapr.s4a ;\ # mkdir /media/lapr.s4d ;\ # mkdir /media/lapr.s4e ;\ # mkdir /media/lapr.s4f ;\ # touch /tmp/devd.logilinkadapt.4 ;\ # mount -t ufs /devusb/lapr.s1a /media/lapr.s1a ;\ # mount -t ufs /devusb/lapr.s1d /media/lapr.s1d ;\ # mount -t ufs /devusb/lapr.s1e /media/lapr.s1e ;\ # mount -t ufs /devusb/lapr.s2a /media/lapr.s2a ;\ # mount -t ufs /devusb/lapr.s2d /media/lapr.s2d ;\ # mount -t ufs /devusb/lapr.s2e /media/lapr.s2e ;\ # mount -t ufs /devusb/lapr.s2f /media/lapr.s2f ;\ # mount -t ufs /devusb/lapr.s3a /media/lapr.s3a ;\ # mount -t ufs /devusb/lapr.s3d /media/lapr.s3d ;\ # mount -t ufs /devusb/lapr.s3e /media/lapr.s3e ;\ # mount -t ufs /devusb/lapr.s4a /media/lapr.s4a ;\ # mount -t ufs /devusb/lapr.s4d /media/lapr.s4d ;\ # mount -t ufs /devusb/lapr.s4e /media/lapr.s4e ;\ # mount -t ufs /devusb/lapr.s4f /media/lapr.s4f ;\ # chmod 777 /media/lapr.s[1-4][a-f] ;\ # touch /tmp/devd.logilinkadapt.5" ; # # This section for a generic disk with 4 MBR slices. # # action "\ # # rm -f /devusb/logilink300* ;\ # # mkdir -p /media/logilink300.s1 ;\ # # mkdir -p /media/logilink300.s2 ;\ # # mkdir -p /media/logilink300.s3 ;\ # # mkdir -p /media/logilink300.s4 ;\ # # chmod 777 /media/logilink300.s[1-4] ;\ # # chown jhs:staff /media/logilink300* ;\ # # sleep 10 ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ # # /devusb/logilink300 ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ # # /devusb/logilink300.s1 ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s2 \ # # /devusb/logilink300.s2 ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s3 \ # # /devusb/logilink300.s3 ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s4 \ # # /devusb/logilink300.s4 ;\ # # ln -s /site/etc/devd/warning.txt /devusb/logilink300.warning ;\ # # ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1a \ # # /devusb/logilink300.s1 ;\ # # `/site/usr/local/bin/fsck.sh` -t ufs /devusb/logilink300.s1 ;\ # # mount -t ufs /devusb/logilink300.s1 /media/logilink300.s1" ; # } ; # detach 1000 { # # match "device-name" "umass[0-9]+" ; # match "vendor" "0x174c" ; # match "product" "0x55aa" ; # # Caution, there are other entries with vendor:product 0x174c:0x55aa:123456789012 # # match "devclass" "0x00" ; # # match "devsubclass" "0x00" ; # # match "sernum" "123456789012" ; # # match "release" "0x0100" ; # # match "intclass" "0x08" ; # # match "intsubclass" "0x06" ; # # match "intprotocol" "0x50" ; # # rm fails to happen # # This section for disk with 4 MBR slices rescuing from laptop host=lapr # # action "rm -f /devusb/lapr /devusb/lapr.s[1-4] /devusb/lapr.s[1-4][a-f]\ # # /devusb/lapr.warning" ; # # # Too late for this: hope a person did it: # # # umount /media/logilink300.s1 ; umount /media/logilink300.s2 # # # umount /media/logilink300.s3 ; umount /media/logilink300.s4 # # This section for a generic disk with 4 MBR slices. # # action "rm -f \ # # /devusb/logilink300 \ # # /devusb/logilink300.s1 \ # # /devusb/logilink300.s2 \ # # /devusb/logilink300.s3 \ # # /devusb/logilink300.s4 \ # # /devusb/logilink300.warning" ; # # # Too late for this: hope a person did it: # # # umount /media/logilink300.s1 ; umount /media/logilink300.s2 # # # umount /media/logilink300.s3 ; umount /media/logilink300.s4 # } ; # ----------------------------------------------------------------------------- # 500G SATA 2.5"" disk & enclosure from Gary 2023-02-09 # WD Scorpio Blue 5000 BEVT # Power: # disk paper label says about 0.55 Amp # plugged direct into laptop dell right usb2 socket, runs OK, # What are dell laptop sockets rated at ? (They are all black not blue). # dmesg: # da1: Fixed Direct Access SPC-4 SCSI device # da1: Serial Number 00000000000000000000 # da1: 40.000MB/s transfers # da1: 476940MB (976773168 512 byte sectors) # Speed test: # date ; testblock -v -n -w -b 1m /dev/da1 ; date # Block size 1048576 (0x100000). # Writing (with no subsequent Reading). Writing /dev/da1. # Wrote 24576 (0x6000) bytes, # after previous 500,107,837,440 (0x7470c00000) # (476940 blocks * 1048576 bytes). # Tue Feb 21 15:52:45 CET 2023 # Tue Feb 21 20:13:12 CET 2023 # 15 s + 7 m + 4h 13 m 12 s = 27 s 20 m 4 h # dc: 4 60 * 20 + 60 * 27 + p # 15627 # dc: 500107837440 15627 / p # 32,002,805 bytes/sec # date ; testblock -v -n -r -b 1m /dev/da1 ; date # Block size 1048576 (0x100000). # Reading (no prior writing). Reading /dev/da1. # Read 24576 (0x6000) bytes, # after previous 500,107,837,440 (0x7470c00000) # (476940 blocks * 1048576 bytes). # Wed Feb 22 11:24:27 CET 2023 # Wed Feb 22 15:41:58 CET 2023 attach 1000 { match "vendor" = "0x174c" ; match "product" = "0x55aa" ; # Caution, there are other entries with vendor:product 0x174c:0x55aa:not123456789012 # However the other entries all have sernum != 0 match "devclass" = "0x00" ; match "devsubclass" = "0x00" ; match "sernum" = "00000000000000000000" ; match "release" = "0x0100" ; # match "intclass" # match "intsubclass" # match "intprotocol" # intclass & intsubclass & intprotocol not seen on 12.3-RELEASE action "sleep 4 ;\ rm -f /devusb/500g ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`a /devusb/500g ;\ `/site/usr/local/bin/fsck.sh` -t ufs /devusb/500g ;\ mkdir /media/500g ;\ mount -t ufs /devusb/500g /media/500g" ; } ; # ----------------------------------------------------------------------------- # SATA / USB adapter # Label: Sharkoon SATA QUICKPORT PRO FOR 2.5" & 3.5" SATA HARD DISKs # https://en.sharkoon.com/product//08209 # big rectangular sits on desk. # Has 2 USB sockets on front. # In a dvd drive plugged into right, & left left empty, & a disk # plugged in to, with UFS it shows: /dev/da0 /dev/da1 /dev/da1a, attach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x05e3" ; match "product" "0x0608" ; match "devclass" "0x09" ; match "devsubclass" "0x00" ; # match "release" "0x0901" ; # match "intclass" "0x09" ; # match "intsubclass" "0x00" ; # match "intprotocol" "0x00" ; # ls -l /dev/diskid /dev/da0 /dev/pass[0-9]* /dev/ugen[0-9].[0-9] /dev/ufsid action "\ rm -f /devusb/sharkoon* ;\ date > /devusb/sharkoon.log ;\ echo ================================= >> /devusb/sharkoon.log ;\ ls -lR /dev >> /devusb/sharkoon.log ;\ echo ================================= >> /devusb/sharkoon.log ;\ echo >> /devusb/sharkoon.log ;\ sleep 30 ;\ echo ================================= >> /devusb/sharkoon.log ;\ ls -lR /dev >> /devusb/sharkoon.log ;\ echo ================================= >> /devusb/sharkoon.log ;\ echo >> /devusb/sharkoon.log ;\ mkdir /media/sharkoon.card ;\ mkdir /media/sharkoon.disk ;\ echo device-name_first_shows_as_uhub6_then_later_as_da \ >> /devusb/sharkoon.log ;\ echo beyond_may_fail_if_other_disk_with_different_partitions_in_adapter \ >> /devusb/sharkoon.log ;\ ln -s /dev/`echo $device-name` /devusb/sharkoon.base ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`\ /devusb/sharkoon.card ;\ ln -s /dev/`echo $device-name|sed -e s/umass//`\ /devusb/sharkoon.disk.da-number ;\ ln -s /dev/`echo $device-name|sed -e s/umass// 1 + p | dc`\ /devusb/sharkoon.disk.da-number-up ;\ ln -s /dev/`echo $device-name|sed -e s/umass// 1 + p | dc`s1a \ /devusb/sharkoon.disk.da-number-up.s1a ;\ `/site/usr/local/bin/fsck.sh` -t ufs \ /devusb/sharkoon.disk.da-number-up.s1 ;\ mount -t ufs /devusb/sharkoon.disk.da-number-up.s1 \ /media/sharkoon.disk ;\ echo >> /devusb/sharkoon.log ;\ ls -l /dev >> /devusb/sharkoon.log ;\ echo >> /devusb/sharkoon.log ;\ ls -l /devusb/sharkoon* >> /devusb/sharkoon.log ;\ date >> /devusb/sharkoon.log" ; } ; # JJLATER Problem, this doesnt mount, gets $device-name uhub4 # devd -d shows: # ln -s /dev/`echo $'uhub4'|sed -e s/umass/da/`s1a /devusb/sharkoon # /devusb/sharkoon -> /dev/uhub4s1a # /dev/da0 /dev/da1 /dev/da1s1 /dev/da1s1a detach 1000 { # match device-name "umass[0-9]+" ; match "vendor" "0x05e3" ; match "product" "0x0608" ; match "devclass" "0x09" ; match "devsubclass" "0x00" ; match "release" "0x0901" ; action "rmdir /media/sharkoon ; rm -f /devusb/sharkoon" ; } ; # ----------------------------------------------------------------------------- # Gareth ext black sub3 ntfs disk 2017 attach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x357d" ; match "product" "0x7788" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "5002627259056517" ; match "release" "0x0114" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "sleep 10 ;\ rm -f /devusb/gareth ;\ ln -s /dev/`echo $device-name|sed -e s/umass/da/`s1 \ /devusb/gareth.s1 ;\ mkdir -p /media/gareth.s1 ;\ chmod 777 /media/gareth.s1 ;\ chown jhs:staff /media/gareth.s1 ;\ ntfsfix /devusb/gareth.s1 ;\ ntfs-3g -o ro /devusb/gareth.s1 /media/gareth.s1" ; } ; detach 1000 { # match "device-name" "umass[0-9]+" ; match "vendor" "0x357d" ; match "product" "0x7788" ; match "devclass" "0x00" ; match "devsubclass" "0x00" ; match "sernum" "5002627259056517" ; match "release" "0x0114" ; match "intclass" "0x08" ; match "intsubclass" "0x06" ; match "intprotocol" "0x50" ; action "umount /media/gareth.s1" ; } ; # ----------------------------------------------------------------------------- # webcamd -l # webcamd [-d ugen0.3] -N XPA2535XY-1-3M-WebCam -S unknown -M 0 # usbconfig -d 0.3 dump_device_desc # bLength = 0x0012 # bDescriptorType = 0x0001 # bcdUSB = 0x0200 # bDeviceClass = 0x00ef # bDeviceSubClass = 0x0002 # bDeviceProtocol = 0x0001 # bMaxPacketSize0 = 0x0040 # idVendor = 0x0402 # idProduct = 0x9665 # bcdDevice = 0x0009 # iManufacturer = 0x0003 # iProduct = 0x0001 # iSerialNumber = 0x0000 # bNumConfigurations = 0x0001 # # > Then search for the .idVendor and .idProduct values in the internet. # > Maybe a driver needs those values patches to be able to attach. # # Searching with: # Vendor 0x0402 Product 0x9665 Acer Aspire 5741 Cam # # http://www.linux-usb.org/usb.ids # 0402 9665 Gateway Webcam # # https://www.acer.com/ac/en/GB/content/support-product/2057?b=1 # # Camera driver 2012/02/21 # 9799405 Apr 28 03:25 Camera_liteon_1.0.4.0_W7x86W7x64_A.zip # -rw-r--r-- 1 jhs staff 82248 Jul 14 2010 ./Install.exe # -rw-r--r-- 1 jhs staff 636 May 4 2009 ./inf/2.inf # -rw-r--r-- 1 jhs staff 11428872 Aug 3 2010 ./setup.exe # # Last BIOS they list: Date: 2011/05/23 Version: 1.23 # Latest in my PC: 1.23 # } End of DEVICE_TYPE OTHER # ----------------------------------------------------------------------------- # End Of File