ubuntu 如何以我為所有者掛載 ntfs

ubuntu 如何以我為所有者掛載 ntfs

迄今為止:

sudo mount -t ntfs -o rw,auto,user,fmask=0000,dmask=0000 /dev/sdc1 /media/BB

工作正常,每個權限都設定為讀取和寫入,現在我需要的是所有者不要成為“root”

我該怎麼做才能以我的身分掛載 ntfs?

我可以對上述命令進行任何修改嗎?

像用戶=“我”?或者是什麼?我搜尋了很遠很遠但找不到那麼多東西

掛載幫助不是很有幫助

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點之前,透過輸入terminal檢查uid和gid是否為1000 id

D、保存文件;

E. sudo mount -a- 這將掛載您的 ntfs 分割區;

F. 完成

*在 Ubuntu 14.04 上以這種方式測試和使用我的 ntfs 分割區。

對於舊版本,請檢查此 -如何自動掛載NTFS分割區?

相關內容