fstabを使用してユーザー権限で外部SSDをマウントする

fstabを使用してユーザー権限で外部SSDをマウントする

次のコマンドを入力しました。

sudo mount UUID=17F30CD71ED138A1  -o gid=1000,uid=1000 ~/sandisk_external_drive

うまくいきましたが、起動時にインストールしたいので、テーブルにエントリを追加しました。/etc/fstab。次の項目は次のとおりです。

UUID=17F30CD71ED138A1             /home/<my-user>/sandisk_external_drive nfs uid=1000,gid=1000,defaults 0 0

ただし、次のような結果が表示されます。

> mount.nfs: no mount point provided usage: mount.nfs remotetarget dir
> [-rvVwfnsh] [-o nfsoptions] options:
>         -r              Mount file system readonly
>         -v              Verbose
>         -V              Print version
>         -w              Mount file system read-write
>         -f              Fake mount, do not actually mount
>         -n              Do not update /etc/mtab
>         -s              Tolerate sloppy mount options rather than fail
>         -h              Print this help
>         nfsoptions      Refer to mount.nfs(8) or nfs(5)

この行に問題がありますか? ?何度も試してみましたが失敗しました。私が考える問題の原因はオプション4番目の列は何らかの理由で正しく構成されていません。

ベストアンサー1

何らかの理由でnfs代わりにntfs-3g

LinuxでNTFSパーティションをマウントする方法は次のとおりです。

UUID=0123456789ABCDEF /mnt/win ntfs-3g defaults,noatime,nofail,uid=1000,fmask=0133,dmask=0022,nls=utf8
noatime     - to disable updating last access time on reading files
nofail      - in case the device is not present on boot
nls=utf8    - to properly convert NTFS filenames to Linux
fmask/dmask - to prevent other users from modifying files/folders

おすすめ記事