歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Linux mount命令系統掛載與鏡像處理

Linux mount命令系統掛載與鏡像處理

日期:2017/3/2 9:59:51   编辑:關於Linux

向大家介紹Linux mount命令的使用方法與應用很有學習價值,這裡我主要講解Linux mount命令的應用,包括介紹Linux mount命令知識等方面。Linux mount命令(用來掛載硬盤或鏡像等)。
用法:Linux mount命令 [-t vfstype] [-o options] device dir1.-t vfstype 指定文件系統的類型,通常不必指定。Linux mount命令 會自動選擇正確的類型。常用類型有:
光盤或光盤鏡像:iso9660
DOS fat16文件系統:msdos
Windows 9x fat32文件系統:vfat
Windows NT ntfs文件系統:ntfs
Mount Windows文件網絡共享:smbfs
UNIX(LINUX) 文件網絡共享:nfs
2.-o options 主要用來描述設備或檔案的掛接方式。常用的參數有:
loop:用來把一個文件當成硬盤分區掛接上系統
ro:采用只讀方式掛接設備
rw:采用讀寫方式掛接設備
iocharset:指定訪問文件系統所用字符集
3.device 要掛接Linux mount命令的設備。
4.dir設備在系統上的掛接點(mount point)。 3 monut 遠程或本機的windows分區之NTFS格式支持:
1)根據內核安裝ntfs支持模塊:
linux-ntfs/files/">http://sourceforge.net/projects/linux-ntfs/files/
實例:sudo mount -t cifs //remotehostname/shared /mnt/myshared -o
username=XXX,password=XXX
2)安裝ntfs-3g----- yum install ntfs-3g(fuse-ntfs-3g)
實例:mount -t ntfs-3g /dev/sda1 /mnt/windows(umount /mnt/windows)
3 實例:
Linux mount命令掛載本機的iso:mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom掛載遠程的fat32的共享目錄:mount //10.167.20.20/shared /mnt/mywinshareWindows 的C分區掛到Liunx的/mnt/winc目錄下: mount -t vfat /dev/hda1 /mnt/winc ,如果中文顯示有問題:#mount -t vfat -o iocharset=cp936 /dev/hda1 /mnt/winc.(要掛載本地的windows分區,在ubuntu下使用命令sudo fdisk -l 來查看磁盤分區情況。)當插入閃盤後,閃盤被識別為一個SCSI盤,通常輸入以下命令:mount /dev/sda1 /usb

Copyright © Linux教程網 All Rights Reserved