您的位置:首页 > 服装鞋帽 > 休闲装 > mount

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)


MSN空间完美搬家到新浪博客!

图文资讯
广告赞助商