![我如何知道使用什么参数来安装](https://linux22.com/image/536226/%E6%88%91%E5%A6%82%E4%BD%95%E7%9F%A5%E9%81%93%E4%BD%BF%E7%94%A8%E4%BB%80%E4%B9%88%E5%8F%82%E6%95%B0%E6%9D%A5%E5%AE%89%E8%A3%85.png)
我有一个 Linux 系统,其中某个东西挂载到了 /dev/sdb1。我如何知道使用了什么命令来挂载它?
答案1
该mount
命令本身会告诉您用于挂载所有已挂载文件系统的选项。例如:
# mount
/dev/mapper/vg00-rootlv on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/mapper/vg00-applv on /app type ext3 (rw)
/dev/mapper/vg00-homelv on /home type ext3 (rw)