Page 1 of 1

USB ntfs disk don't mount in guest

Posted: 13 Aug 2013, 21:22
by PaulBy
Dear, Brokenman and Fanthom :)
I noticed that usb flash disk with file system ntfs don't mount under guest-users. Mistake message:

Code: Select all

An error occurred while accessing '16G', the system responded: The requested operation has failed.: Error mounting: mount exited with exit code 1: helper failed with:
Error opening '/dev/sdd1': Permission denied
Failed to mount '/dev/sdd1': Permission denied
Please check '/dev/sdd1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged
Under root-user mount successfully
vfat filesystem successfuly mount under all users :(

What to do :cry:
Prteus-2.1 x64 KDE final

Re: USB ntfs disk don't mount in guest

Posted: 13 Aug 2013, 21:44
by PaulBy
setuid bit
# chmod u+s /bin/ntfs-3g
# chmod u+s /sbin/mount.ntfs-3g

don't solve problem :(

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 01:50
by brokenman
Please try this. Install a package called udevil (perhaps in slackyd) and then try udevil mount /path/to/source /path/to/target

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 06:48
by PaulBy
brokenman wrote:Please try this. Install a package called udevil (perhaps in slackyd) and then try udevil mount /path/to/source /path/to/target
Hello Brokenman :)
Problem dont solve :(
Mistake message : /mnt not an allowable mount directory
:cry:

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 12:15
by fanthom
in 2.1 final we have introduced an udev rule to mount everything under /mnt. seems that ntfs-3g needs extra tweaking and i'm working on it.

temporary solution:
please edit /sbin/udev/fstab/update and change line 31 to:

Code: Select all

elif [ "$FS" = ntfs ]; then echo "not working for now"
EDIT:\\
seems that the only solution may be migration to udisks2 which brings 2 extra bugs (one is strictly kde4 related):
https://bugs.kde.org/show_bug.cgi?id=310335

EDIT2:\\
recompiled udisks with a patch provided by the arch linux guys (thanks!) and everything is ok now. will push an update later today so you can download it through the PSC -> updates.

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 18:37
by PaulBy
I tried Porteus-MATE-x64. All work on all users, the problem, seems, only KDE Desktop :o

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 18:52
by fanthom
I tried Porteus-MATE-x64. All work on all users
and this is the bug i mentioned in my previous post (it breaks 'noauto' and 'nohd' cheatcodes).

KDE4 mounts ntfs removable devices without problems with the patch i pushed to updates.

Re: USB ntfs disk don't mount in guest

Posted: 14 Aug 2013, 18:59
by PaulBy
fanthom wrote: temporary solution:
please edit /sbin/udev/fstab/update and change line 31 to:

Code: Select all

elif [ "$FS" = ntfs ]; then echo "not working for now"
Dear, Fanthom :)
Thank you very much for the solution of the problem :good:
Everything worked under all users with the desktop :ROFL: