加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Linux mount 命令

发布时间:2021-01-27 07:29:30 所属栏目:Linux 来源:网络整理
导读:device:指定要挂载的设备,比如磁盘、光驱等。dir:指定把文件系统挂载到哪个目录。type:指定挂载的文件系统类型,一般不用指定,mount 命令能够自行判断。options:指定挂载参数,比如 ro 表示以只读方式挂载文件系统。 $ -h $ /proc/filesystems fs_sp

device:指定要挂载的设备,比如磁盘、光驱等。dir:指定把文件系统挂载到哪个目录。type:指定挂载的文件系统类型,一般不用指定,mount 命令能够自行判断。options:指定挂载参数,比如 ro 表示以只读方式挂载文件系统。

$ -h

$ /proc/filesystems

Linux mount 命令

Linux mount 命令

fs_spec:挂载的块设备或远程文件系统fs_file:文件系统的挂载点fs_vfstype:文件系统的类型fs_mntopts:与文件系统相关的更多选项,不同的文件系统其选项也不太一样

$

$ -t tmpfs

$ mkfs -t ext4 /dev/sdb1

$ /dev/sdb1 /mnt

$ /dev/cdrom /mnt

Linux mount 命令

$ -o ro /dev/sdb1 /mnt

Linux mount 命令

$ / -o rw,remount

$ /mnt -o rw,remount

Linux mount 命令

$ -t cifs -o username=nick,password=Test123456

Linux mount 命令

$ -t proc none /mnt

$ -t tmpfs -o size=512m tmpfs /mnt

$ mkisofs -o test.iso projects/

$ test.iso /mnt

Linux mount 命令

$ =/dev/zero bs=1M count= of=./vdisk.img

$ apt btrfs-

$ vdisk.img /mnt

$ -o ro vdisk.img ./testdir

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读