![[mntent]:sudo mount -oを実行すると、/ etc / fstabの15行目でエラーが発生します。](https://linux33.com/image/85664/%5Bmntent%5D%EF%BC%9Asudo%20mount%20-o%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%2F%20etc%20%2F%20fstab%E3%81%AE15%E8%A1%8C%E7%9B%AE%E3%81%A7%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82.png)
sudo mount -o rw,remount /mnt/Data を実行すると、上記のエラーが報告されます。これはfstabファイルです
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda7 during installation
UUID=c8fd3429-3454-41df-ae9c-0f98615bc314 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
#UUID=1EF0-739E /boot/efi vfat defaults 0 1
# swap was on /dev/sda10 during installation
UUID=47da3636-057c-4fb5-ab12-383d13d914c6 none swap sw 0 0
#Data
UUID=C06EDC746EDC6526 /mnt/Data ntfs-3g defaults auto umask=7770 0 1
UUID=1EF0-739E /boot/efi vfat defaults 0 1
答え1
/etc/fstabファイルの各行には、スペースまたはタブで区切られた次のフィールドが含まれています。
file_system dir type options dump pass
options
カンマで区切る必要があります。
また、auto
ファイルシステムの種類も参照していますので、ntfs-3gの代わりにautoを使用または削除してください。
答え2
15号線は
UUID=C06EDC746EDC6526 /mnt/Data ntfs-3g defaults auto umask=7770 0 1
/ etc / fstabの他の列(あなたの場合はスペースで区切られています)は次のとおりです。
file_system dir type options dump pass
したがって、2つの列が必要なようです。オプションの場合は、デフォルトまたは自動から選択してumask = 7770を削除してみてください。だから試してみてください:
UUID=C06EDC746EDC6526 /mnt/Data ntfs-3g defaults 0 1
または
UUID=C06EDC746EDC6526 /mnt/Data ntfs-3g auto 0 1
上記の方法で問題が解決しない場合は、ファイル内の他のUIDと同様に、「-」を使用してUIDを区切る必要があります。