fstab visudo throws errors, but the system works fine
by aagaag from LinuxQuestions.org on (#5JSNM)
Hello, when I do visudo /etc/fstab, I get this:
# /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> <pas
# / was on /dev/sda2 during installation
UUID=1e33a025-970d-436c-ab7a-e8864c846403 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=B220-D963 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw -1 0
However, when I try to exit, I get this:
>>> /etc/fstab: syntax error near line 9 <<<
>>> /etc/fstab: syntax error near line 11 <<<
>>> /etc/fstab: syntax error near line 12 <<<
What now? e
The system runs normally. Also, I don't think that I have ever modified fstab since setting up the machine. What might be going on here?
# /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> <pas
# / was on /dev/sda2 during installation
UUID=1e33a025-970d-436c-ab7a-e8864c846403 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=B220-D963 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw -1 0
However, when I try to exit, I get this:
>>> /etc/fstab: syntax error near line 9 <<<
>>> /etc/fstab: syntax error near line 11 <<<
>>> /etc/fstab: syntax error near line 12 <<<
What now? e
The system runs normally. Also, I don't think that I have ever modified fstab since setting up the machine. What might be going on here?