USB ntfs disk don't mount in guest

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
User avatar
PaulBy
Contributor
Contributor
Posts: 266
Joined: 14 Feb 2012, 13:14
Distribution: Porteus 3.2 KDE
Location: Belarus

USB ntfs disk don't mount in guest

Post#1 by PaulBy » 13 Aug 2013, 21:22

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
REPO with my Porteus packages - http://yadi.sk/d/wJFyFih_4v48w

User avatar
PaulBy
Contributor
Contributor
Posts: 266
Joined: 14 Feb 2012, 13:14
Distribution: Porteus 3.2 KDE
Location: Belarus

Re: USB ntfs disk don't mount in guest

Post#2 by PaulBy » 13 Aug 2013, 21:44

setuid bit
# chmod u+s /bin/ntfs-3g
# chmod u+s /sbin/mount.ntfs-3g

don't solve problem :(
REPO with my Porteus packages - http://yadi.sk/d/wJFyFih_4v48w

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: USB ntfs disk don't mount in guest

Post#3 by brokenman » 14 Aug 2013, 01:50

Please try this. Install a package called udevil (perhaps in slackyd) and then try udevil mount /path/to/source /path/to/target
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
PaulBy
Contributor
Contributor
Posts: 266
Joined: 14 Feb 2012, 13:14
Distribution: Porteus 3.2 KDE
Location: Belarus

Re: USB ntfs disk don't mount in guest

Post#4 by PaulBy » 14 Aug 2013, 06:48

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:
REPO with my Porteus packages - http://yadi.sk/d/wJFyFih_4v48w

User avatar
fanthom
Site Admin
Site Admin
Posts: 4613
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: USB ntfs disk don't mount in guest

Post#5 by fanthom » 14 Aug 2013, 12:15

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
PaulBy
Contributor
Contributor
Posts: 266
Joined: 14 Feb 2012, 13:14
Distribution: Porteus 3.2 KDE
Location: Belarus

Re: USB ntfs disk don't mount in guest

Post#6 by PaulBy » 14 Aug 2013, 18:37

I tried Porteus-MATE-x64. All work on all users, the problem, seems, only KDE Desktop :o
REPO with my Porteus packages - http://yadi.sk/d/wJFyFih_4v48w

User avatar
fanthom
Site Admin
Site Admin
Posts: 4613
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: USB ntfs disk don't mount in guest

Post#7 by fanthom » 14 Aug 2013, 18:52

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.
Please add [Solved] to your thread title if the solution was found.

User avatar
PaulBy
Contributor
Contributor
Posts: 266
Joined: 14 Feb 2012, 13:14
Distribution: Porteus 3.2 KDE
Location: Belarus

Re: USB ntfs disk don't mount in guest

Post#8 by PaulBy » 14 Aug 2013, 18:59

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:
REPO with my Porteus packages - http://yadi.sk/d/wJFyFih_4v48w

Post Reply