/etc/fstab 修改问题

/etc/fstab 修改问题

这就是我的文件的样子,每次我尝试通过输入重新挂载时 sudo mount -o remount /tmp/mnt2都会出现相同的错误line 13 in /etc/fstab is bad

# /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/sda1 during installation
UUID=dc3c8918-9c1e-4706-ab05-be5d24888e60 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e5298614-4ffc-48ff-beaa-6cc8287de1cc none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
/dev/sdb2 /tmp/mnt2 ext3 defaults usrquota,grpquota 0 2

答案1

挂载选项应以逗号分隔。在您的例子中,defaults和之间有一个空格usrquota,grpquota

/dev/sdb2 /tmp/mnt2 ext3 defaults,usrquota,grpquota 0 2

相关内容