You are not logged in.

#1 2012-12-03 21:40:51

Eduren
Member
Registered: 2008-09-11
Posts: 5

[Solved]Trying to mount ntfs filesytem, permissions error.

I've been trying to mount a ntfs windows partition as my home partition. That way I have access to my data on either side of a dual-boot setup. But the error that I am running into is that the filesystem is mounted read-only, despite whatever configuration I use.

# 
# /etc/fstab: static file system information
#
# <file system>		<dir>		<type>		<options>				<dump>		<pass>
tmpfs			/tmp		tmpfs		nodev,nosuid				0		0
# UUID=9dead8ad-ad35-48a0-a2d2-29981e5f2bea
/dev/sda5           	/         	ext4      	rw,relatime,data=ordered		0 		1

# UUID=77E4D60B2BCBECA4

# UUID=47159f5e-3858-43dd-82bf-905151e655c5
/dev/sda3           	none      	swap      	defaults  				0		0

/dev/sda6		none		ntfs 		rw,relatime,uid=root,gid=users			0 		2

The partition in question is sda6. Right now the options are rw, relatime, uid=root, gid =users, but I have tried things like only "defaults". No combination I have found lets me mount it read-write, not even for root.

[root@drogon /]# mount /dev/sda6 /mnt/test
[root@drogon /]# cd /mnt/test
[root@drogon test]# mkdir blah
mkdir: cannot create directory ‘blah’: Read-only file system

What I would like eventually is for my user to have read-write permission on the partition, and for "/home/<user>" to reside on it. That way, if I need to access something from windows, I have it.

Last edited by Eduren (2012-12-03 22:27:17)

Offline

#2 2012-12-03 22:09:12

codl
Member
From: France
Registered: 2009-09-19
Posts: 18

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

'ntfs' is a read-only driver, you need to change your partition type to ntfs-3g, see the wiki page on the subject.

However, I would advise against using ntfs for such an important part of your filesystem. Windows and *NIX permissions work differently, so NTFS-3G just forces every file to have the same permissions, which you specify in the mount options. As a result, things will break.

Mounting your windows partition under a directory in your home, like ~/windows, is a much saner solution.

Offline

#3 2012-12-03 22:26:52

Eduren
Member
Registered: 2008-09-11
Posts: 5

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

Thank you for the solution. As for your warning, that issue will certainly make it a less than ideal set up. I'll have to think on it.

Offline

#4 2012-12-03 23:50:13

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

I ran across this in the ntfs-3g manual which might be of some interest. It appears that adding "permissions" to the mount options for ntfs-3g might accomplish roughly what you want, but you may have to perform some work to get it operational. Likewise, the Windows ACL may interfere and a quick glance seems to me to suggest that you might have to tweak things from Windows to get the permissions working well.

I personally have all of my Windows partitions mounted under /windows, but I can see why that isn't an ideal solution if you're dabbling in Arch or have things you want to more easily share in one direction.

Hope this helps somewhat even though you've already marked the topic as solved.


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#5 2012-12-04 00:34:34

Eduren
Member
Registered: 2008-09-11
Posts: 5

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

I can see that there might be a way to get it to work. Thank you for linking me to that. If I feel adventurous one of these days I may get it to try to work.

I marked the topic solved because the main issue, writing to a ntfs partition, was solved.

Offline

#6 2012-12-04 01:34:30

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

Eduren wrote:

I marked the topic solved because the main issue, writing to a ntfs partition, was solved.

Yeah, I figured that. Additional information can be useful, but I didn't want to tread on what you felt was a better solution! smile


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#7 2012-12-04 12:57:41

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved]Trying to mount ntfs filesytem, permissions error.

Don't put $HOME on ntfs, seriously. Mount it to $HOME/stuff or similar instead. Also in fstab you are lacking the target on the entry for your ntfs partition. Also you don't want gid=root when mounting to a users home dir.

Last edited by Mr.Elendig (2012-12-04 12:58:33)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB