Date: Sun, 03 Feb 2019 11:10:28 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 204464] sysutils/fusefs-ntfs: No automount with HAL of ntfs-volumes since FreeBSD 10.x Message-ID: <bug-204464-7788-LusYlRAn0w@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204464-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-204464-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204464 Serge Volkov <sv@ulstu.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sv@ulstu.ru --- Comment #18 from Serge Volkov <sv@ulstu.ru> --- I think I understand what Werner Lehmann is writing. In my project ulbsd.ru, I have been using the following trick for many years since the FreeBSD 10.x with KDE4. Now I use this trick in FreeBSD 12.0 with KDE5. And it works for me. Step 1: I use patch for /usr/src/sbin/mount/mount.c: --- mount.c.orig 2016-10-15 17:03:43.284479000 +0300 +++ mount.c 2016-04-15 19:38:59.761871000 +0300 @@ -143,7 +143,7 @@ */ unsigned int i; const char *fs[] =3D { - "cd9660", "mfs", "msdosfs", "nfs", + "cd9660", "mfs", "msdosfs", "nfs", "ntfs", "nullfs", "smbfs", "udf", "unionfs", NULL }; cd /usr/src/sbin/mount/ make all install clean Step 2: Install fusefs-ntfs and create mount_ntfs link: pkg install -r latest fusefs-ntfs ln -s /usr/local/share/hal/mount-fuse /sbin/mount_ntfs chmod 555 /usr/local/share/hal/mount-fuse Step 3: Add to /boot/loader.conf: fuse_load=3D"YES" Step 4: Add to /etc/sysctl.conf: vfs.usermount=3D1 Step 5: Add to /etc/devfs.rules: [localrules=3D10] # IDE/SATA Hard disks add path 'ad[0-9]*' mode 0660 group operator add path 'ada[0-9]*' mode 0660 group operator # SCSI/USB Hard disks add path 'da[0-9]*' mode 0660 group operator Step 6: Add to /etc/rc.conf: devfs_system_ruleset=3D"localrules" Step 7: Change /usr/local/etc/PolicyKit/PolicyKit.conf: <config version=3D"0.1"> <match user=3D"root"> <return result=3D"yes"/> </match> <define_admin_auth group=3D"operator"/> <match action=3D"org.freedesktop.hal.storage.mount-removable"> <return result=3D"yes"/> </match> <match action=3D"org.freedesktop.hal.storage.mount-fixed"> <return result=3D"yes"/> </match> <match action=3D"org.freedesktop.hal.storage.eject"> <return result=3D"yes"/> </match> </config> After that, removable drives with the NTFS file system can be mounted on KD= E4/5 in the usual way by root and users from the operator group. In KDE5 there is a small glitch (not critical) that can be fixed by changing the string "Exec=3D..." in file /usr/local/share/solid/actions/test-predicate-openwindow.desktop: Exec=3D/bin/sleep 0.5; [ ! -z "%f" ] && kde-open5 "%f" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204464-7788-LusYlRAn0w>