Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.....
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.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,489
Rep:
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.