Just for info: I have an USB Pendrive for µSDCard. This run correctly:
# dmesg | tail -n 5 umass0 at uhub0 port 2 configuration 1 interface 0 "Generic Mass Storage Device" rev 2.00/1.00 addr 6 umass0: using SCSI over Bulk-Only scsibus4 at umass0: 2 targets, initiator 0 sd1 at scsibus4 targ 1 lun 0: <Mass, Storage Device, 1.00> SCSI0 0/direct removable serial.14cd1212121220130416 sd1: 14992MB, 512 bytes/sector, 30703616 sectors $ disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: Storage Device duid: 0000000000000000 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1911 total sectors: 30703616 boundstart: 0 boundend: 30703616 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 30703616 0 unused i: 30701568 2048 NTFS $ mount /dev/sd0a on / type ffs (local, wxallowed, softdep) /dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep) /dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep) /dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep) /dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep) /dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep) /dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep) /dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep) /dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep) /dev/sd0e on /var type ffs (local, nodev, nosuid, softdep) fusefs on /vol/USBMeHM type fuse (local) $ ls -lart /vol/USBMeHM/ total 1409597 -rwx------ 1 my_userid my_userid 21 Jan 1 1970 .cm0013* drwx------ 1 my_userid my_userid 4096 Jan 1 1970 ./ -rwx------ 1 my_userid my_userid 721705484 Nov 11 11:06 jwb_F_201611_01_r720P.mp4* drwxr-xr-x 4 root wheel 512 Nov 16 12:49 ../ OK! Question: How i can "write" fstype "NTFS" on the "defective" HDD? It's really formated in NTFS - mode normal, on Win7! On 11/16/16 11:14, Stephane HUC "CIOTBSD" wrote: > Hi, Alexey > > Sorry, but it's not run! > > $ doas /usr/local/libexec/hotplug-diskmount cleanup 3AS > > $ doas /usr/local/libexec/hotplug-diskmount cleanup sd1 > > $ doas /usr/local/libexec/hotplug-diskmount attach -u my_userid -m 0700 > -F sd1 > > $ ls -al > /vol/ > > > total 16 > drwxr-xr-x 4 root wheel 512 Nov 16 11:03 ./ > drwxr-xr-x 14 root wheel 512 Nov 6 18:19 ../ > drwx------ 2 root wheel 512 Nov 16 11:03 .db/ > drwx------ 2 zou wheel 512 Nov 16 11:03 3AS/ > > $ ls -al > /vol/3AS/ > > > total 8 > drwx------ 2 zou wheel 512 Nov 16 11:03 ./ > drwxr-xr-x 4 root wheel 512 Nov 16 11:03 ../ > > $ mount > /dev/sd0a on / type ffs (local, wxallowed, softdep) > /dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep) > /dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep) > /dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep) > /dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep) > /dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep) > /dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep) > /dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep) > /dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep) > /dev/sd0e on /var type ffs (local, nodev, nosuid, softdep) > > hotplug-diskmount create the mounting point but not mount it, > apparently, is'nt-it?! > > Egual, i modified /etc/hotplug/attach, as: > > #!/bin/sh > # > # /etc/hotplug/{attach,detach} > > DEVCLASS=$1 > DEVNAME=$2 > LOGIN="my_userid" > > case "${DEVCLASS}" in > 2) > /usr/local/libexec/hotplug-diskmount attach -u "$LOGIN" -g > "$LOGIN" -m 0700 -r dirty "$DEVNAME" > ;; > esac > > Restarting hotplugd, but i've same bad result. :( > > ---- > > And, yes. i change the term "my_userid" by my real userid ;-) > > > On 11/16/16 10:52, Alexey Vatchenko wrote: >> From my attach script: >> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r >> dirty -F "$DEVNAME" >> >> As a result: >> /dev/sd2i on /vol/TransMemory type ntfs (local, nodev, nosuid, read-only) >> >> With FUSE, >> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r >> dirty "$DEVNAME" >> >> And the result: >> fusefs on /vol/EDGE type fuse (local) >> >> On Tue, Nov 15, 2016 at 9:15 AM, Stephane HUC "CIOTBSD" >> <b...@stephane-huc.net <mailto:b...@stephane-huc.net>> wrote: >> >> >> $ /usr/local/libexec/hotplug-diskmount attach -u $USER -m 0700 -F 3AS >> >> >> Try the following way: >> >> $ doas /usr/local/libexec/hotplug-diskmount attach -u zou -m 0700 -F sd1 >> >> where zou - your login name (as i understand from your letter) and sd1 >> - currently attached device. > -- ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<< ---- <me>Stephane HUC as PengouinPdt or CIOTBSD</me> <mail>b...@stephane-huc.net</mail>