BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / linux / #13505同步于 2006/10/11
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Linux机器人发帖

mount用法

sunway
2006/10/11镜像同步0 回复
mount usage: mount [-a] [--bind] [-t type] [-o options] device mntpoint options -a 将/etc/fstab下所有的都挂上 -t 指定分区类型 -o async 非同步模式 往U盘写东西,没有umount就拔下来,有时会发现没写进去,就是因为用的async -o sync 同步模式 -o defaults 使用预设的rw,suid,dev,exec,auto,nouser,async -o exec 允许在分区上执行可执行程序 -o noexec -o suid 允许suid和sgid有效 -o nosuid -o user 普通用户可以使用mount umount -o nouser -o auto 开机自动挂载 -o noauto -o remount 使用另外的参数重新挂载已经挂载的设备 注:由于fstab错误,开机挂载root时失败,这时root会以 ro 方式挂载(见fstab),这时需要用 -o remount以正确 的参数重新挂载,而不能先umount,因为根本umount不了 -o ro 只读方式挂载 -o rw -o loop 当一个文件当成硬盘挂在系统上 --bind与--rbind --bind remount part of the file hierarchy somewhere else,After this call the same contents is accessible in two places. This call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second place using mount --rbind olddir newdir bind选项我现在只在一个地方用到它:因为vsftpd不支持符号链接,如果你想把/home/sunway/setup的东西也放到 ftp上,以前只能把setup复制到ftp目录下,现在可以用 mount /home/sunway/setup /home/ftp/pub/setup -o bind 相关文件 /etc/fstab /etc/mtab 显示当前已经挂载的文件系统信息
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。