How to mount a disk on Debian

  1. 找到 UUID 和磁盘格式:lsblk -f 查磁盘分区结构和磁盘类型。sudo blkid 找到 UUID。
  2. 创建挂载目录:mkdir some
  3. 打开 /etc/fstab 按以下格式写入:UUID=39c71dc4-5576-4660-9f0d-150d8c6c93c2 /home/to/some ext4 defaults,noatime 0 2
  4. sudo mount -a,无报错后检查一遍,才可以重启