插入usb驱动器时,fstab无法启动

分享于 

1分钟阅读

ubuntu

  繁體

问题:

我注意到,当插入USB,Fstab失败,系统无法启动。


sudo blkid | grep /dev/sdf1 | sed -e 's/:.* UUID/;UUID/' -e 's/ TYPE.*//' | while read re; do sed -i "s;$re;" /etc/fstab; done



我不确定文件之前的内容,但这是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/sda2 during curtin installation


/dev/disk/by-uuid/c2713101-d0be-4d04-bab5-30046766b610 / ext4 defaults 0 0


/swap.img none swap sw 0 0




答案1:

如果你想在UUID中使用fstab,这是正确的表示法:


UUID=38dc1d34-6291-4230-a38f-710069bb825f / ext4 errors=remount-ro 0 1




答案2:

检查BIOS启动顺序。

 
sudo parted -l





SYS  BOO  系统  引导  Drive  USB  
相关文章