迄今为止:
sudo mount -t ntfs -o rw,auto,user,fmask=0000,dmask=0000 /dev/sdc1 /media/BB
工作正常,每个权限都设置为读写,现在我需要的只是所有者不是“root”
我该怎么做才能以我为所有者挂载 ntfs?
我可以对上述命令进行任何修改吗?
比如 user="me" ?或者其他什么?我找了好久也没找到什么
安装帮助不是很有帮助
mount --help
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
答案1
A.-sudo mkdir /media/ntfsPartition
这将在您的媒体目录,你可以添加任何你想要的名字;
B.-sudo blkid
找到您要挂载的 ntfs 分区的 UUID;
C. sudo gedit /etc/fstab
- 在底部添加一行新行,其中包含您想要挂载的 ntfs 分区(例如:应该看起来像这样)
#ntfs_partition
UUID=xxxxxxxxxxxxxxxx /media/ntfsPartition ntfs defauls,uid=1000,gid=1000,noatime 0 0
(在点 D 之前,通过在终端中输入来检查 uid 和 gid 是否为 1000 id
)
D.保存文件;
E.-sudo mount -a
这将挂载您的 ntfs 分区;
F. 完成
*在 Ubuntu 14.04 上以这种方式测试和使用我的 ntfs 分区。
对于旧版本,请检查此 -如何自动挂载 NTFS 分区?