在 Linux 下选择 mount 的文件系统格式(type),主要取决于你要挂载的是什么设备/镜像/网络存储,以及用途和兼容性。下面按常见场景给你一个清晰的选择指南。
lsblk
fdisk -l
blkid
看设备是:
| 场景 | 推荐格式 | mount 示例 |
|---|---|---|
| Linux 专用 | ext4 | mount /dev/sdb1 /mnt |
| U 盘(跨平台) | vfat / exfat | mount -t vfat /dev/sdb1 /mnt |
| 大文件 / Win+Linux | exfat | mount -t exfat /dev/sdb1 /mnt |
| 旧 Windows | ntfs | mount -t ntfs-3g /dev/sdb1 /mnt |
✅ 建议:
mount -o loop -t iso9660 image.iso /mnt
或自动识别:
mount -o loop image.iso /mnt
mount -t nfs server:/path /mnt
mount -t cifs //ip/share /mnt -o user=xxx
| 类型 | 用途 |
|---|---|
| tmpfs | 内存盘 |
| proc | 进程信息 |
| sysfs | 设备信息 |
mount -t tmpfs tmpfs /mnt
大多数情况可以让系统自动识别:
mount /dev/sdb1 /mnt
内核会根据 blkid 自动选择格式。
cat /proc/filesystems
ls /lib/modules/$(uname -r)/kernel/fs
✅ Linux 用 ext4
✅ U 盘用 exfat
✅ Windows 用 ntfs
✅ 不确定就省略 -t
如果你愿意,可以告诉我:
我可以直接给你准确的 mount 命令。