Score:-1

Cannot change the ownership mounting ntfs drive

mx flag
xpt

Why I cannot change the ownership on mounting ntfs drive?

I give uid=1000,gid=1000, etc in my /etc/fstab file, but found it is not working. So I'm testing it out on command line:

root@host:~# mount | grep /mnt/tmp1 | wc
      0       0       0

root@host:~# mount -o uid=1000 /dev/nvme0n1p4 /mnt/tmp1/

root@host:~# mount | grep /mnt/tmp1
/dev/nvme0n1p4 on /mnt/tmp1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

root@host:~# umount /mnt/tmp1

root@host:~# mount -o user_id=1000 /dev/nvme0n1p4 /mnt/tmp1/

root@host:~# mount | grep /mnt/tmp1
/dev/nvme0n1p4 on /mnt/tmp1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish

$ apt-cache policy mount
mount:
  Installed: 2.36.1-8ubuntu1
  Candidate: 2.36.1-8ubuntu2
  Version table:
     2.36.1-8ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 Packages
 *** 2.36.1-8ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu impish/main amd64 Packages
        100 /var/lib/dpkg/status

Am I missing something? (This is Ubuntu 21.10 impish)
Why I cannot change the ownership on mounting ntfs drive?

in flag
Linux and Microsoft have very different approaches to how access permissions are managed. This is like using Disney Bucks at Caesar’s Palace. Does the mounted device need to be NTFS?
muru avatar
us flag
You've shown that `/mnt/tmp1` didn't have anything mounted on it, but didn't show that `/dev/nvme0n1p4` isn't already mounted elsewhere. Is it?
waltinator avatar
it flag
You didn't show the `/etc/fstab` line, either.
mx flag
xpt
No @muru, /dev/nvme0n1p4 isn't already mounted elsewhere. I didn't show but it isn't. Else, I'll get the error of `Mount is denied because the NTFS volume is already exclusively opened. The volume may be already mounted`
mx flag
xpt
Does it matter @waltinator? and why?
Nmath avatar
ng flag
Can you edit your question and include the output of each command that you are attempting? If you are just trying to mount a NTFS file system it should not be so complicated that you need to "change the ownership". When you originally tried to mount the file system, before you tried to make these changes, what steps did you take and what was the exact problem that you encountered? Include all commands and errors so we can get a better understanding of the history of this problem and actions that have been taken in case any need to be undone
mx flag
xpt
Have you tried the steps that I posted in OP @Nmath? Try them then you'll know what you are asking are as irrelevant as posting what the content of my NTFS file system are.
Nmath avatar
ng flag
Multiple people have asked you for clarification and instead of helping us to help you, you have chosen to spurn that assistance and balk at reasonable requests, calling them irrelevant. We obviously can't try the steps you posted because we don't have that hardware and you are also refusing to provide essential diagnostic information like the contents of your `/etc/fstab` and the history of your actions that may have caused the very problem you want solved. If you can't be helped, then you can't be helped...
mx flag
xpt
Interesting, what type of "hardware" that you don't have to repeat the steps that I posted in OP? So you don't have NTFS file system at all? Then how come you are able to help on something that you have no experience of? The problem is not me refusing anything but you refusing to read and try what I posed. Once again, _"you're all correct and what I'm asking is impossible"_. I'll stop responding to further conversations. End of discussion.
Nmath avatar
ng flag
Obviously we don't have possession of **your hard drive** to be able to investigate what's wrong. What you are describing is not a typical problem. What would I do if I had this problem? First, I would review `/etc/fstab` and I would make sure that the commands that I ran were accurate and appropriate. Apparently you think you don't need to do these things and would rather insult the people trying to help you than provide that essential diagnostic information. I feel sorry for you that you would rather argue than take 5 seconds to provide the info that would probably illuminate what's wrong
Nmath avatar
ng flag
If I were you I would take the device somewhere and pay someone else to fix it for you since you're not willing or capable of helping yourself and you're not willing to work with other people who need to collaborate with you to investigate the cause of your device since we don't have possession of it. You will need someone to fix it who you can give physical access to your device since you refuse to provide us with the info we need to know to help
Score:0
ng flag

NTFS is simply not capable of POSIX ownership and permissions, which is how permissions and ownership is handled in Ubuntu.

If you have a task that needs to store data on a file system with POSIX ownership or permissions, you cannot use a NTFS file system.

mx flag
xpt
What do you say to https://askubuntu.com/questions/43570/?
Nmath avatar
ng flag
I'm answering specifically how you ask about changing ownership under NTFS. To clarify, only the mount point is going to be on your root file system under Ubuntu. That's because the mount point itself is actually a file. But everything that is beyond that is stored within the NTFS file system and is not really located in your Ubuntu file system, even though the path is under /mnt/... For this reason, none of the files or directories in stored on a NTFS volume can contain the type of ownership and permission information that is used by Ubuntu.
mx flag
xpt
Oh, my, oh my, I think it is wise for me to stop our conversation right here, and let you believe that you're right, and what I'm asking is impossible.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.