我刚刚检测到我的 windows (ntfs) 分区总是挂载但在 fstab 中没有任何记录。
ubuntu 如何以及为什么这样做?是不是太晦涩难懂了,为什么不给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/nvme0n1p5 during installation
UUID=24ec45af-0daf-4c51-ae97-c6eb09c9b3bc / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=5C0E-7502 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
blkid
windows记录输出
/dev/nvme0n1p3: LABEL="Windows" BLOCK_SIZE="512" UUID="82A210E9A210E387" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f89ba644-4f63-497a-9af1-4e01daa9958f"