主机有两个盘,一个用来安装Ubuntu,一个盘用来存放代码
修改/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/nvme0n1p2 during installation
UUID=4f123b5d-d092-4268-8c8e-41d9681688f6 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=2AED-06EB /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=62ca2977-4de5-4c92-b287-fdfbd5571142 /media/extern_sda ext4 defaults 0 0
sudo blkid命令查看所有的存储介质的UUID