Peppermint | Linux OS Community Forum
 
It is currently Sun Sep 15, 2019 4:11 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Problems mounting ntfs partition (SOLVED)
PostPosted: Sun Nov 10, 2013 4:56 pm 
Offline

Joined: Sun May 12, 2013 9:53 pm
Posts: 64
I was trying to move the mount point of my ntfs partition, and now I get the following errors when attempting to mount it (via pcmanfm)
Code:
Error mounting: mount exited with exit code 1: helper failed with:
Error opening '/dev/sda2': Permission denied
Failed to mount '/dev/sda2': Permission denied
Please check '/dev/sda2' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

The relevant line in fstab:
Code:
UUID=1E0C79790C794D31 /media/windows ntfs  permissions,defaults,users,noauto  0  0

Permissions for /media/windows:
Code:
drwxrwxrwx  2 andy users 4096 Nov 10 15:04 windows

Permissions for the device /dev/sda2:
Code:
brw-rw---- 1 root disk 8, 2 Nov 10 15:23 /dev/sda2

Permissions for ntfs-3g:
Code:
-rwxrwxrwx 1 andy andy 392763 Nov 10 15:16 /bin/ntfs-3g

I assume this is occurring because user andy is trying to mount it. I can mount it ok with sudo mount /dev/sda2

But, I ran into another issue: using sudo mount, I can now access the partition in pcmanfm, but I do not have permission to access my windows user folder at: /media/windows/Users/Andy which is the folder I especially need to access. Prior to mucking around in fstab, I didn't have this issue. I'm uncomfortable changing the permission of a folder on the ntfs partition, so I'm not sure how to resolve this.

So, what I'd help with is: how can I mount/unmount the ntfs partition from pcmanfm, like I could before (furthermore, how I can access the Andy user folder in the windows partition)? The error indicates its a permission problem with /dev/sda2 and /bin/ntfs-3g, but afaik /dev folders can only have root access and I changed the ownership of ntfs-3g.

I was also attempting to move the mount point of my home partition, and I'm a bit afraid to reboot because it too might not mount. Of course, I was over-confident and didn't bother backing up fstab (doh!). I'll have to reboot and keep my fingers crossed that it goes OK. I'd like resolve the ntfs mounting issue before I do that, though.


Last edited by t4exanadu on Sun Nov 10, 2013 5:50 pm, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: Problems mounting ntfs partition
PostPosted: Sun Nov 10, 2013 5:34 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
run:
Code:
sudo chown root:root /bin/ntfs-3g

then
Code:
sudo chmod 755 /bin/ntfs-3g

then
Code:
sudo gedit /etc/fstab

change the line:-
Code:
UUID=1E0C79790C794D31 /media/windows ntfs  permissions,defaults,users,noauto  0  0

to:-
Code:
UUID=1E0C79790C794D31 /media/windows ntfs-3g  defaults,windows_names,locale=en_US.utf8  0  0

SAVE the ffile.

Back in the terminal run:
Code:
sudo mount -a

were there any errors ?

If not, did it get mounted where you expected, and is it available in the left hand panel of pcmanfm

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition
PostPosted: Sun Nov 10, 2013 5:50 pm 
Offline

Joined: Sun May 12, 2013 9:53 pm
Posts: 64
Looks like it works. No errors, no access problems for any of the windows folders. It seems, in an attempt to fix it, I must have made it worse (by removing the -3g from ntfs-3g) and changing the ownership of ntfs-3g from root to my user name.

Time to reboot and see if the new /home/ mount point works out (permissions are identical to the old one, so it would be odd if any problems arise).

Once again, many thanks for your assistance.


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Sun Nov 10, 2013 7:46 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
No problem :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 6:30 pm 
Offline

Joined: Sun May 12, 2013 9:53 pm
Posts: 64
A new issue has come up. It seems that all the text documents on my windows partition are being treated as executables, because when I click on them to open them in gedit (the default action for opening text files) I get a execute file dialog, asking me whether (and how) I would like to execute the file.

I'm assuming I can have fstab mount the partition in such a way that every file isn't treated as an executable. I am mainly accessing text files and media, so I don't necessarily need to execute anything on that partition.

fstab line for windows partition:
Code:
UUID=1E0C79790C794D31 /media/windows ntfs-3g  defaults,windows_names,locale=en_US.utf8  0  0


Can I modify that so everything is treated as an executable or do I have to do a sudo chmod on all the files? I'm assuming that those permissions will just reset when I reboot and the partition is mounted again.

Would removing the defaults line and replacing it with rw,user,noexec,auto do it?


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 7:36 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
most of those mount options aren't listed for ntfs-3g

I don't think this is a fault with the mount options .. I think it's an issue with pcmanfm

Can you tell me what's listed if you right-click on a txt file on the Windows partition ? .. is there an "Open with" option ?

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 7:53 pm 
Offline

Joined: Sun May 12, 2013 9:53 pm
Posts: 64
Yes, there are several options. The first is for "text editor" which is gedit. The other two are for windows notepad, both entries were apparently added there by WINE, because I didn't add them. If I do open with... text editor, the text files open fine. But double-clicking on them gives me that execute file dialog.

If I right click on a text file, and select properties, in the permissions tab "make this file executable" is checked. If I unchecked it and select OK, and then go back into the permissions tab in the file properties, it's still checked (and pcmanfm still wants to execute it).

I have text files associated with gedit, I made sure it was set in the properties dialog (there's an open with... drop down box where you can select what you want pcmanfm to always use to open that particular file type).
Image

I also checked the box for setting the chosen application as the default for that file type, but it always unchecks itself afterwards:
Image


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 9:04 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
I still think it's a pcmanfm issue (or more likely libfm) .. I had the same thing with text files on my NAS until I updated pcmanfm (and libfm)

At least that's what my unreliable memory is telling me ;)

Which version of pcmanfm are you running:
Code:
dpkg -l | grep pcmanfm

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 9:12 pm 
Offline

Joined: Sun May 12, 2013 9:53 pm
Posts: 64
0.9.10-0ubuntu2

Should I get a newer version? It looks like I can get 1.1.2 from the Lubuntu Developers Team PPA.


Top
 Profile  
 
 Post subject: Re: Problems mounting ntfs partition (SOLVED)
PostPosted: Tue Nov 12, 2013 10:05 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
0.9.10 ?

Which version of Peppermint are you using ? .. I thought the original version was 1.1.0 on Peppermint 4 :o

Anyway, if this IS Peppermint 4 .. I've already created a PCManFM PPA (for Peppermint 4):
https://launchpad.net/~mark-pcnetspec/+archive/pcmanfm

which hasn't got all the other stuff you don't need fro the Lubuntu PPA .. just add my PPA, run a dist-upgrade, then log off/on again (or reboot).

As my PPA doesn't contain the other stuff, a simple ppa-purge will get you back to where you are now.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL