修改之前一定记得备份,有可能进不去系统
如果进入了emergency mode,/etc/fstab是改不了的
在紧急模式下,根文件系统通常是以只读方式挂载的,需要手动重新挂载它为可写。使用以下命令:
mount -o remount,rw /
wcc@zxcv:~/source/led_drv$ cat /etc/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/sda1 during installation
UUID=236dfbb7-0da7-41b3-bfa9-e47f1a56b522 / ext4 errors=remount-ro 0 2
/swapfile none swap sw 0 0
/dev/fd0 /media/chh3213/MECHREVO auto rw,user,noauto,exec,utf8 0 2
按照这个格式改回来就好了