mount
luyued 发布于 2011-04-05 19:13 浏览 N 次
mount选项:The programs mount and umount maintain a list of currently mounted filesystems in the file /etc/mtab. If no arguments are given to mount, this list is printed.
The mount program does not read the /etc/fstab file if device (or LABEL/UUID) and dir are specified. For example:
mount /dev/foo /dir
If you want to override mount options from /etc/fstab you have to use:
mount device|dir -o
-t 指定文件系统的类型-o 指定与文件系统相关的选项 iocharset=utf8采用utf8字符集挂载分区 remount Attempt to remount an already-mounted filesystem. This is com- monly used to change the mount flags for a filesystem, espe- cially to make a readonly filesystem writeable. It does not change device or mount point.
The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount com- mand doesn’t read fstab (or mtab) only when a device and dir are fully specified.
mount -o remount,rw /dev/foo /dir
After this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop= option which is internally generated and maintained by the mount command.
mount -o remount,rw /dir
After this call mount reads fstab (or mtab) and merges these options with options from command line ( -o ).
[root@RedHat mnt]# pwd/mnt[root@RedHat mnt]# mount /dev/sda5 /mnt/fat[root@RedHat mnt]# ls fat[?????].[APTX4869][CONAN][546][RV10_AAC][GB](4C00F8E5).rmvb[?????].[APTX4869][CONAN][MOVIE13][THE_RAVEN_CHASER][TRAILER][BDRIP][AVC_AC3](17DAC3C2).mkv[?????].[APTX4869][CONAN][MOVIE14][THE_LOST_SHIP_IN_THE_SKY][PREVIEW][BD-LIVE][1080P][AVC_AAC](189787AD).mkvimagesinitrd.img?? Microsoft Word ??.docOS.jpg$RECYCLE.BINrhel-server-6.0-i386-dvd.isovmlinuzwindows boot loader.txt
[root@RedHat mnt]# umount /dev/sda5[root@RedHat mnt]# mount -o iocharset=utf8 /dev/sda5 /mnt/fat[root@RedHat mnt]# ls fatimagesinitrd.imgOS.jpg$RECYCLE.BINrhel-server-6.0-i386-dvd.isovmlinuzwindows boot loader.txt[名侦探柯南].[APTX4869][CONAN][546][RV10_AAC][GB](4C00F8E5).rmvb[名侦探柯南].[APTX4869][CONAN][MOVIE13][THE_RAVEN_CHASER][TRAILER][BDRIP][AVC_AC3](17DAC3C2).mkv[名侦探柯南].[APTX4869][CONAN][MOVIE14][THE_LOST_SHIP_IN_THE_SKY][PREVIEW][BD-LIVE][1080P][AVC_AAC](189787AD).mkv新建 Microsoft Word 文档.doc
[root@RedHat mnt]# mount/dev/mapper/vg_redhat-root on / type ext4 (rw)proc on /proc type proc (rw)sysfs on /sys type sysfs (rw)devpts on /dev/pts type devpts (rw,gid=5,mode=620)tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")/dev/sda13 on /boot type ext4 (rw)/dev/mapper/vg_redhat-home on /home type ext4 (rw)/dev/mapper/vg_redhat-tmp on /tmp type ext4 (rw)/dev/mapper/vg_redhat-var on /var type ext4 (rw)none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)/dev/sda5 on /mnt/fat type vfat (rw,iocharset=utf8)
The mount program does not read the /etc/fstab file if device (or LABEL/UUID) and dir are specified. For example:
mount /dev/foo /dir
If you want to override mount options from /etc/fstab you have to use:
mount device|dir -o
-t 指定文件系统的类型-o 指定与文件系统相关的选项 iocharset=utf8采用utf8字符集挂载分区 remount Attempt to remount an already-mounted filesystem. This is com- monly used to change the mount flags for a filesystem, espe- cially to make a readonly filesystem writeable. It does not change device or mount point.
The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount com- mand doesn’t read fstab (or mtab) only when a device and dir are fully specified.
mount -o remount,rw /dev/foo /dir
After this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop= option which is internally generated and maintained by the mount command.
mount -o remount,rw /dir
After this call mount reads fstab (or mtab) and merges these options with options from command line ( -o ).
[root@RedHat mnt]# pwd/mnt[root@RedHat mnt]# mount /dev/sda5 /mnt/fat[root@RedHat mnt]# ls fat[?????].[APTX4869][CONAN][546][RV10_AAC][GB](4C00F8E5).rmvb[?????].[APTX4869][CONAN][MOVIE13][THE_RAVEN_CHASER][TRAILER][BDRIP][AVC_AC3](17DAC3C2).mkv[?????].[APTX4869][CONAN][MOVIE14][THE_LOST_SHIP_IN_THE_SKY][PREVIEW][BD-LIVE][1080P][AVC_AAC](189787AD).mkvimagesinitrd.img?? Microsoft Word ??.docOS.jpg$RECYCLE.BINrhel-server-6.0-i386-dvd.isovmlinuzwindows boot loader.txt
[root@RedHat mnt]# umount /dev/sda5[root@RedHat mnt]# mount -o iocharset=utf8 /dev/sda5 /mnt/fat[root@RedHat mnt]# ls fatimagesinitrd.imgOS.jpg$RECYCLE.BINrhel-server-6.0-i386-dvd.isovmlinuzwindows boot loader.txt[名侦探柯南].[APTX4869][CONAN][546][RV10_AAC][GB](4C00F8E5).rmvb[名侦探柯南].[APTX4869][CONAN][MOVIE13][THE_RAVEN_CHASER][TRAILER][BDRIP][AVC_AC3](17DAC3C2).mkv[名侦探柯南].[APTX4869][CONAN][MOVIE14][THE_LOST_SHIP_IN_THE_SKY][PREVIEW][BD-LIVE][1080P][AVC_AAC](189787AD).mkv新建 Microsoft Word 文档.doc
[root@RedHat mnt]# mount/dev/mapper/vg_redhat-root on / type ext4 (rw)proc on /proc type proc (rw)sysfs on /sys type sysfs (rw)devpts on /dev/pts type devpts (rw,gid=5,mode=620)tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")/dev/sda13 on /boot type ext4 (rw)/dev/mapper/vg_redhat-home on /home type ext4 (rw)/dev/mapper/vg_redhat-tmp on /tmp type ext4 (rw)/dev/mapper/vg_redhat-var on /var type ext4 (rw)none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)/dev/sda5 on /mnt/fat type vfat (rw,iocharset=utf8)
MSN空间完美搬家到新浪博客!
相关资讯
- 07-01· 埃古RI&G:中国第三代休闲
- 07-01· 潇洒男士 Perry Ellis闲适生
- 07-01· 全明星阵容点亮CFDA颁奖红
- 07-01· 第十届中国休闲服装博览
- 07-01· tough jeans挎包 - 淘宝网商城
- 07-01· 钱包英语英文T开头的钱包
- 07-01· Toughjeans-散发着青春的活力
- 07-01· 平湖服装以“外”养“内
- 07-01· 护理液 海昌隐形眼镜护理
- 07-01· 潮流趋势 Red Carter 08春夏迈
图文资讯
最新资讯
- 07-01· 【中国服装面料行业投资
- 07-01· [转载]少年户外-2009中国户
- 07-01· 衡阳4s 衡阳nokia5320 nokia5
- 07-01· 挽春踏青 欢享夏风组图
- 07-01· Linux的硬链接(Hard Link)与
- 07-01· 共享精美边框和代码
- 07-01· Skyscraper Annual 航模比赛_
- 07-01· 小池一夫天涯孤客日文版
- 07-01· 绿竹与青萝
- 07-01· 四川水田惊现2亿年前生物