LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2020, 01:15 PM   #1
Johantonissen
Member
 
Registered: Dec 2019
Posts: 36

Rep: Reputation: Disabled
Question Problems mounting ntfs drive


Hello there,

I have some problems punting my ntfs drives.

I’ve mounted my drives as the following which works fine except i cant change the user and group of my files and folders. It does mount my drive and allows me to create files on the new drive, i just don’t have permission to change files weirdly enough.

This is done with the following permissions:
Code:
cat /etc/fstab
UUID=e9fb6ad8-1bc1-4c64-aef4-401780935e3e / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,nosuid 0 0
UUID=B0561F00561EC74E /media/kist ntfs-3g defaults 0 0
I however want to be able to be able to change folders owners and groups so I’ve checked how i can change the permissions in order to do that. Ive found the following link:
https://unix.stackexchange.com/quest...-to-mount-ntfs

This way I’ve set the following permissions:
Code:
cat /etc/fstab
UUID=e9fb6ad8-1bc1-4c64-aef4-401780935e3e / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,nosuid 0 0
UUID=B0561F00561EC74E /media/kist ntfs-3g rw,auto,user,fmask=133,dmask=022,uid=1000,gid=1000 0 0
However when i apply that nu drive doesn’t mount correctly and i get an unstable system.
I can’t even access the system over ssh anymore. And when i click the drive the system crashes.

Does anyone have an idea how i can solve this ? Or where the problem lies in this what i’m doing ?

I’m running armbian system with Ubuntu bionic.

I can unfortunately not change the drive from ntfs to ext4 since the drive is 4TB and I don’t have such a large drive around to make the backup.....

Thank you in advance.
 
Old 03-27-2020, 01:41 PM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I may be wrong but I don't think it is possible to change permissions of an NTFS drive from Linux. I don't have windows or use NTFS at all so someone that has a set up similar to yours may be able to clarify.
 
Old 03-27-2020, 01:56 PM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489

Rep: Reputation: Disabled
As above, NTFS is a Microsoft file system, you can only change permissions with a Microsoft system, (from memory), they are completely different from Linux permissions.

(Your fstab line allows a user to mount it.)

Last edited by fatmac; 03-27-2020 at 01:58 PM.
 
1 members found this post helpful.
Old 03-27-2020, 02:01 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
And to add to fatmac's post: the ntfs-3g package allows Linux to mount, read and write to the NTFS file system but as mentioned, permissions can't be changed.
 
Old 03-27-2020, 02:03 PM   #5
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Johantonissen View Post
I however want to be able to be able to change folders owners and groups so I’ve checked how i can change the permissions in order to do that.
You can make all files and directories one userid/groupid, with the uid= and gid= options on the mount, but as those uid/gid's are faked BY the driver (the ntfs file system doesn't have a user and/or group field value) you cannot change them, the driver will accept but ignore the command to do so.
So all files and directories on a vfat or ntfs system are always one and the same value for owner and group.
By playing with the fmask and dmask (although I'm not quite sure they're accepted by the ntfs-3g driver) options, you may be able to change the default permission mask, but:
Code:
uid=value, gid=value and umask=value
          Set the file permission on the filesystem.  The umask value is given in octal.
          By default, the files are owned by root and not readable by somebody else.
(from man mount, for the ntfs entry).

Note that THIS man page doesn't mention fmask (umask for files only) or dmask (directories only), which are supported for vfat. But ntfs-3g may be different.

Last edited by ehartman; 03-27-2020 at 05:07 PM.
 
Old 03-27-2020, 03:23 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
https://wiki.epfl.ch/icit/kb/linux-m...th-permissions
 
Old 03-27-2020, 05:09 PM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by jefro View Post
Covid-19 doesn't seem to kill children.
But can make them very ill TOO!
There was this case of a 16-year old who landed in intensive care!

Last edited by ehartman; 03-27-2020 at 05:10 PM.
 
Old 03-28-2020, 05:29 AM   #8
Johantonissen
Member
 
Registered: Dec 2019
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi all, I’ve decides to format the drive to ext4 for 50% and move the files over. The ntfs-3g drivers seems to cause to much problems and flags don’t deem to be working correctly. I’d figure its better to install an ext4 driver on windows then have a windows compatible disk on linux since i use it for linux like 99,9% of the time.

And jefro, thanx for the comment but please stay to programming and don’t try to have a opinion to something you clearly don’t have an clue about. Programmers can have opinions about programming, I’m a renewable energy professor and can have a opinion about renewable energy. Please listen to healthcare professions and obey their opinions, they know more about it than you they have a valid opinion while yours is based on opinion. You sound like a anti-van mom. Please don’t spread false information, ever.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: mounting ntfs in CentOS 5 using ntfs-3g brianmcgee Linux - Enterprise 4 12-27-2007 09:55 AM
Mounting NTFS w/ fuse & ntfs-3g Elguapo Linux - Software 1 07-07-2007 06:13 PM
NTFS-3g isn't mounting my NTFS partition... Necronomicom Slackware 4 03-02-2007 03:04 PM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 03:13 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration