[리눅스 마운트] Is it possible to mount an ext4 partition with designating "owner and group" at the mounting point?
source: http://askubuntu.com/questions/159992/how-to-mount-ext4-partition
Question:
You don't. The files in the fs are owned by whoever owns them, and you can not change that at mount time. Instead you need to change the permissions to give yourself access with
Question:
How do I mount an ext4 partition as my user account so I wouldn't require root access to r/w on it? I used
-o uid=flint,gid=flint
on the mount
command but I keep gettingmount: wrong fs type, bad option, bad superblock on /dev/sda7,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Another thing, I want avoid using
Answer:udisks
for now as it doesn't let me mount to my specified mount point name.You don't. The files in the fs are owned by whoever owns them, and you can not change that at mount time. Instead you need to change the permissions to give yourself access with
sudo chown yourname.yourname /path/to/mount
. On a freshly formatted filesystem, the root directory is owned by root, so you will need to change it and from then on, you will be able to create new files which will be owned by you.
댓글
댓글 쓰기