Hi, all I attempt to mount an external HDD, on my OBSD 6.0 stable. For this, i use 'hotplug-diskmount' in version 1.0.2 downloaded on this url:
https://bitbucket.org/alex_vatchenko/hotplug-diskmount/get/HOTPLUG_DISKMOUNT_1_0_2_RELEASE.tar.gz Because, this version seems to support NTFS. (see, official info on the webpage project: http://www.bsdua.org/hotplug-diskmount.html) I configured /etc/rc.conf.local as: $ egrep "hotplug" /etc/rc.conf.local hotplugd_flags= After adding Fuse package, i make and install: $ pkg_info -Q fuse enblend-enfuse-4.0p4 exfat-fuse-1.2.4 (installed) fuse-1.1.1p0 (installed) fuse-utils-1.1.1p1 (installed) fuse-zip-0.4.0 (installed) libconfuse-2.7p3 py-defusedxml-0.4.1p0 sshfs-fuse-2.5 (installed) $ make cc -O2 -pipe -c hotplug-diskmount.c hotplug-diskmount.c: In function 'do_mount': hotplug-diskmount.c:355: warning: passing argument 2 of 'execv' from incompatible pointer type hotplug-diskmount.c: In function 'do_fsck': hotplug-diskmount.c:388: warning: passing argument 2 of 'execv' from incompatible pointer type hotplug-diskmount.c: In function 'do_ntfs3g': hotplug-diskmount.c:434: warning: passing argument 2 of 'execv' from incompatible pointer type hotplug-diskmount.c: In function 'get_ntfs3g_label': hotplug-diskmount.c:469: warning: passing argument 2 of 'execv' from incompatible pointer type cc -o hotplug-diskmount hotplug-diskmount.o # make install install -c -S -s -o root -g bin -m 555 hotplug-diskmount /usr/local/libexec/hotplug-diskmount install -c -o root -g bin -m 444 hotplug-diskmount.8 /usr/share/man/man8/hotplug-diskmount.8 I initialize hotplug-diskmount: # /usr/local/libexec/hotplug-diskmount init And, set enable and active this: # rcctl enable hotplugd # rcctl start hotplugd The file /etc/hotplug/attach contains: #!/bin/sh # # /etc/hotplug/{attach,detach} DEVCLASS=$1 DEVNAME=$2 LOGIN="my_user" case "${DEVCLASS}" in 2) /usr/local/libexec/hotplug-diskmount attach -u "$LOGIN" -m 0700 "$DEVNAME" ;; esac Thoses rights are: $ ls -al /etc/hotplug/attach -rwxr-xr-x 1 root wheel 212 Nov 6 12:52 /etc/hotplug/attach* OK?! When i attempt to mount NTFS USB HDD, it fails. # dmesg (...) umass0 at uhub0 port 2 configuration 1 interface 0 "JMicron USB to ATA/ATAPI bridge" 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: <ST932042, 3AS, > SCSI2 0/direct fixed serial.152d232951A8FFFFFFFF sd1: 305245MB, 512 bytes/sector, 625142448 sectors $ disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: 3AS duid: 0000000000000000 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 38913 total sectors: 625142448 boundstart: 0 boundend: 625142448 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 625142448 0 unused i: 625139712 2048 MSDOS $ mount | egrep "sd1" $ $ ls -al /vol/ total 16 drwxr-xr-x 4 root wheel 512 Nov 13 16:05 ./ drwxr-xr-x 14 root wheel 512 Nov 6 18:19 ../ drwx------ 2 root wheel 512 Nov 13 16:05 .db/ drwx------ 2 my_userid wheel 512 Nov 13 16:05 3AS/ $ ls -al /vol/3AS/ total 8 drwx------ 2 zou wheel 512 Nov 13 16:05 ./ drwxr-xr-x 4 root wheel 512 Nov 13 16:05 ../ Nothing, it's displaying. If, i wrote: # mount /dev/sd1i usb/ mount_msdos: /dev/sd1i on /home/zou/usb: not an MSDOS filesystem Normal, it's really NTFS! When i use mount_ntfs: # mount_ntfs /dev/sd1i usb/ $ ls -al usb/ total 150472 -rwxr-xr-x 1 my_userid my_userid 2560 Jan 1 1601 $AttrDef* -rwxr-xr-x 1 my_userid my_userid 0 Mar 16 2015 $BadClus* -rwxr-xr-x 1 my_userid my_userid 9767808 Jan 1 1601 $Bitmap* -rwxr-xr-x 1 my_userid my_userid 8192 Mar 16 2015 $Boot* drwxr-xr-x 1 my_userid my_userid 0 Mar 16 2015 $Extend/ -rwxr-xr-x 1 my_userid my_userid 67108864 Mar 16 2015 $LogFile* -rwxr-xr-x 1 my_userid my_userid 4096 Mar 16 2015 $MFTMirr* drwxr-xr-x 1 my_userid my_userid 0 Nov 9 09:49 $RECYCLE.BIN/ -rwxr-xr-x 1 my_userid my_userid 0 Mar 16 2015 $Secure* -rwxr-xr-x 1 my_userid my_userid 131072 Jan 1 1601 $UpCase* -rwxr-xr-x 1 my_userid my_userid 0 Mar 16 2015 $Volume* drwxr-xr-x 1 my_userid my_userid 0 Jan 1 1601 ./ drwxr-xr-x 37 my_userid my_userid 1536 Nov 13 15:48 ../ -rwxr-xr-x 1 my_userid my_userid 21 Nov 2 05:50 .cm0013* drwxr-xr-x 1 my_userid my_userid 0 Oct 18 10:36 Data/ -rwxr-xr-x 1 my_userid my_userid 7260 Nov 2 05:50 DataMigrationScript Sirius to Sirius.bat* drwxr-xr-x 1 my_userid my_userid 0 Oct 28 13:01 Documentation/ drwxr-xr-x 1 my_userid my_userid 0 Oct 21 12:59 Drivers/ drwxr-xr-x 1 my_userid my_userid 0 Nov 2 05:00 FBSD/ -rwxr-xr-x 1 my_userid my_userid 1488 Nov 2 05:50 Licence Evaluation.spi* drwxr-xr-x 1 my_userid my_userid 0 Mar 22 2015 Scripts/ drwxr-xr-x 1 my_userid my_userid 0 Jul 26 14:23 Softs/ drwxr-xr-x 1 my_userid my_userid 0 Nov 9 09:58 System Volume Information/ drwxr-xr-x 1 my_userid my_userid 0 May 21 12:14 Téléchargements/ drwxr-xr-x 1 my_userid my_userid 0 Aug 15 17:35 Videos/ drwxr-xr-x 1 my_userid my_userid 0 Apr 16 2015 Xiaomi/ drwxr-xr-x 1 my_userid my_userid 0 Jul 21 08:44 cld/ drwxr-xr-x 1 my_userid my_userid 0 Sep 30 2015 SVG/ Why or what's wrong?! Hotplug-diskmount seems to fail in the fstype detection... Yes, i know the mount_ntfs(8) manpage says: Only read support is enabled. This is the reason? PS: Hi, Alex Vatchenko. For an external EXT3 USB HDD, it's run correctly... but thunar hang ;) I'm using it with mc into console :p. -- ~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<< ---- <me>Stephane HUC as PengouinPdt or CIOTBSD</me> <mail>b...@stephane-huc.net</mail>