linux win 双系统挂载 win 分区

需求:因 linux 分区不够大,需要 linux 开机自动挂载 win 分区。
环境:Debian 12

mount 命令可以挂载分区,通过 mount man部分中文#The files /etc/fstab, /etc/mtab and /proc/mounts 得知:

  • fstab(5) 描述了哪些设备通常安装在何处、使用哪些选项
  • mtab 维护当前已挂载的文件系统的列表

查看 /etc/fstab,有

<file system> <mount point> <type> <options> <dump> <pass>

dump 和 pass 可以通过 man fstab 得到。因此在 /etc/fstab 最后添加一行:
UUID=xxxxxxxxxxxxxxxx /media/user/mountpoint ntfs-3g defaults,uid=1000,gid=1000 0 0

posted @ 2023-07-21 05:43  cliter  阅读(82)  评论(0编辑  收藏  举报