Other automount is not completely working on fresh install 12.1

ext4 usb automount, this fresh bsd install it mounts it opens fm and sees files, but files are dir and it is not opening them. Like that last install of fbsd. I got the two fuse ext pkg installed
Code:
[userx@FreeBSD ~]$  cat /usr/local/etc/automount.conf
USERUMOUNT=YES
ATIME=NO
REMOVEDIRS=YES
FM="pcmanfm"
USER=userx
ENCODING=pl_PL.UTF-8
CODEPAGE=cp852

#ENCODING=pl_PL.ISO8859-2
#CODEPAGE=cp852
Code:
[userx@FreeBSD ~]$ cat /etc/rc.conf
clear_tmp_enable="YES"
sendmail_enable="NONE"
hostname="FreeBSD.efi.net"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
create_args_wlan0="country US regdomain FCC"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="/boot/modules/i915kms.ko"
dbus_enable="YES"
slim_enable="YES"
ifconfig_em0="DHCP"
devd_enable="YES"
devfs_system_ruleset="devfsrules_common"
linux_enable="YES"
clean_tmp_X="YES"
fsck_y_enable="YES"
swapexd_enable="YES"
mixer_enable="YES"
snddetect_enable="YES"
syslogd_flags="-c -ss"
/etc/devfs.rules
Code:
[devfsrules_common=7]
add path 'ad*' mode 0666 group operator
add path 'da*' mode 0666 group operator
add path 'acd*' mode 0666 group operator
add path 'cd*' mode 0666 group operator
add path 'mmcsd*' mode 0666 group operator
add path 'pass*' mode 0666 group operator
add path 'xpt*' mode 0666 group operator
add path 'ugen*' mode 0666 group operator
add path 'usbctl' mode 0666 group operator
add path 'usb*' mode 0666 group operator
add path 'lpt*' mode 0666 group operator
add path 'ulpt*' mode 0666 group operator
add path 'unlpt*' mode 0666 group operator
add path 'fd*' mode 0666 group operator
add path 'uscan*' mode 0666 group operator
add path 'video*' mode 0666 group operator
add path 'dvb/*' mode 0666 group operator
what more information needed to help trouble shoot this?
 
Code:
[root@FreeBSD /home/userx]#  tail /var/log/automount.log
2019-12-13 01:44:24 /dev/da0p2: (state) mount point '/media/da0p2' removed
2019-12-13 01:44:28 /dev/ugen0.9: attach
2019-12-13 01:44:28 /dev/ugen0.9: not a block device
2019-12-13 01:44:29 /dev/da0: attach
2019-12-13 01:44:29 /dev/da0: not a block device
2019-12-13 01:44:29 /dev/da0p2: attach
2019-12-13 01:44:29 /dev/da0p2: create '/media/da0p2' dir
2019-12-13 01:44:29 /dev/da0p2: fsck.ext4 You must have r/w access to the filesystem or be root
2019-12-13 01:44:29 /dev/da0p2: mount OK: 'ext4fuse /dev/da0p2 /media/da0p2'
2019-12-13 01:44:32 /dev/da0p2: chown '/media/da0p2' dir with 'userx:wheel' rights
need to figure out the r/w privs thing.. why is it missing this time ??

I did these

https://www.freebsd.org/doc/handbook/usb-disks.html
https://www.executionunit.com/blog/2018/01/01/freebsd-automount-usb-sticks/



It still no working :mad::mad::mad:
changed rules to wheel
Code:
[root@FreeBSD /home/userx]# sed  -i "" 's|operator|wheel|g'  /etc/devfs.rules
[root@FreeBSD /home/userx]# cat  /etc/devfs.rules
[localrules=5]
add path 'ad*' mode 0666 group wheel
add path 'da*' mode 0666 group wheel
add path 'acd*' mode 0666 group wheel
add path 'cd*' mode 0666 group wheel
add path 'mmcsd*' mode 0666 group wheel
add path 'pass*' mode 0666 group wheel
add path 'xpt*' mode 0666 group wheel
add path 'ugen*' mode 0666 group wheel
add path 'usbctl' mode 0666 group wheel
add path 'usb*' mode 0666 group wheel
add path 'lpt*' mode 0666 group wheel
add path 'ulpt*' mode 0666 group wheel
add path 'unlpt*' mode 0666 group wheel
add path 'fd*' mode 0666 group wheel
add path 'uscan*' mode 0666 group wheel
add path 'video*' mode 0666 group wheel
add path 'dvb/*' mode 0666 group wheel
it now says OK,
Code:
[root@FreeBSD /home/userx]# tail /var/log/automount.log
2019-12-13 02:09:27 /dev/da0p2: (state) mount point '/media/da0p2' removed
2019-12-13 02:09:31 /dev/ugen0.10: attach
2019-12-13 02:09:31 /dev/ugen0.10: not a block device
2019-12-13 02:09:32 /dev/da0: attach
2019-12-13 02:09:32 /dev/da0: not a block device
2019-12-13 02:09:32 /dev/da0p2: attach
2019-12-13 02:09:32 /dev/da0p2: create '/media/da0p2' dir
2019-12-13 02:09:32 /dev/da0p2: fsck.ext4 data: clean, 115355/30531584 files, 23921764/122096384 blocks
2019-12-13 02:09:33 /dev/da0p2: mount OK: 'ext4fuse /dev/da0p2 /media/da0p2'
2019-12-13 02:09:35 /dev/da0p2: chown '/media/da0p2' dir with 'userx:wheel' rights
but still getting
Code:
Error opening directory “/media/da0p2”: Operation not permitted
dmesg no errors
Code:
umass0 on uhub4
umass0: <JMicron External Disk 3.0, class 0/0, rev 3.00/4.07, addr 11> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <JMicron Tech 0407> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number 0000000045A9
da0: 400.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
lst thing I can think of off top of head permissions on hdd is userx:users but that has never been an issue. it is the same user name and uid 1000
 
I cannot remember the last thing I did to maybe fix this but after last reboot, it is working, for how long, ?? doono ..


oh yeah.... hehe
commented these out, rebooted that might have done it

Code:
[userx@FreeBSD ~]$  cat /usr/local/etc/automount.conf
USERUMOUNT=YES
ATIME=NO
REMOVEDIRS=YES
FM="pcmanfm"
USER=userx

#ENCODING=pl_PL.UTF-8
#CODEPAGE=cp852
 
well it is back to being NOT PERMITTED AUGGGGG

Code:
[userx@FreeBSD ~]$ tail /var/log/automount.log
2019-12-13 07:26:06 /dev/ugen0.8: not a block device
2019-12-13 07:30:25 /dev/ugen0.9: attach
2019-12-13 07:30:25 /dev/ugen0.9: not a block device
2019-12-13 07:30:26 /dev/da0: attach
2019-12-13 07:30:26 /dev/da0: not a block device
2019-12-13 07:30:26 /dev/da0p2: attach
2019-12-13 07:30:27 /dev/da0p2: create '/media/da0p2' dir
2019-12-13 07:30:27 /dev/da0p2: fsck.ext4 data: clean, 115355/30531584 files, 23921764/122096384 blocks
2019-12-13 07:30:27 /dev/da0p2: mount OK: 'ext4fuse /dev/da0p2 /media/da0p2'
2019-12-13 07:30:30 /dev/da0p2: chown '/media/da0p2' dir with 'userx:wheel' rights
dmesg
Code:
ugen0.9: <JMicron External Disk 3.0> at usbus0
umass0 on uhub4
umass0: <JMicron External Disk 3.0, class 0/0, rev 3.00/4.07, addr 8> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:1:0: Attached to scbus1
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0: <JMicron Tech 0407> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number 0000000045A9
da0: 400.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors)
da0: quirks=0x2<NO_6_BYTE>
this is getting stupid... has been stupid...
 
Code:
#!/usr/bin/env bash

whichdrive=$(ls /dev/da[0-9]p*)

if [[ -n $whichdrive ]] ; then
sudo mount -t ext2fs $whichdrive /mnt/hd1
fi
ck=$?
if [[ $ck = 1 ]] ; then
    sudo umount /mnt/hd1
    echo "$? : Unmounted drive"
fi
echo $ck
[ $ck = 0 ] && ls /mnt/hd1
work around for now...not waisting all day trying to figure it out
 
Back
Top