Mint本来已经自带了自动挂载功能,但是不知道搞什么东东,失效了。唯有自己实现一个
什么是fstab
文件fstab包含了你的电脑上的存储设备及其文件系统的信息。使用fstab可以实现开机自动挂载各种文件系统格式的硬盘、分区、可移动设备和远程设备等。
在这个文件里面配置了,开机就能自动挂载了哦
fstab文件示例
tony-desktop tony # 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=c9930eb0-8c98-435c-a6a7-030c49ca72d7 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=bdde5aa1-da25-4039-bfa2-995a140d3c14 /home ext4 defau