This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10986|Reply: 2

Let me share with you the explanation of the mount command, which I am currently learning.

[Copy link]
Posted on 12/30/2014 12:24:05 AM | | |
mountOrder explained
1.usemount/umountWhat can be done?
Different operating systems use different file system formats.MS-DOSIn the tankFAT16file system,Windows98In the tankFAT16FAT32file system,WindowsNTIn the tankFAT16NTFSfile system,Windows2000Then supportFAT16FAT32NTFSthree file system formats, and LinuxAlmost all file system formats are supported, but are generally usedext2orext3File system. Many users use itWindowsoperating system, if you want to runLinuxIf you want to access resources in other file systems, you need to use itmountcommand to implement.
2.mountWhat is the basic usage?
Format:mount [-parameter] [Device name] [Mount point
Commonly used parameters are:
-aInstalled in/etc/fstabAll file systems classified in the file.
-fcamouflagemount, which looks like it checks the device and directory, but does not really mount the file system.
-nDo not record the installation in/etc/mtabin the file.
-rTalk about the file system installed as read-only.
-vDisplay installation information in detail.
-wInstall the file system as writable as the default for commands.
-t <File system type>The common file system types for specified devices are:
ext2 linuxCommonly used file systems at present
msdos  MS-DOSoffatIt isfat16
vfat  windows98commonly usedfat32
nfs  Network file system
iso9660  CD-ROMCD-ROM standard file system
ntfs  windows NT/2000/XPfile system
autoAutomatically detect file systems
-o <options>Specify options when mounting the file system, some of which can also be written to in/etc/fstabMiddle.
Commonly used are:
defaultsUse the default values for all options (autonouserrwsuid
auto/noautoAllowed/It is not allowed to aoption to install
dev/nodevRight/No explanation for special devices on the file system
exec/noexecAllowed/Binary code execution is not allowed
suid/nosuidConfirm/Not confirmedsuidandsgidbit
user /nouserAllowed/General users are not allowed to mount
codepage=XXXCode page
iocharset=XXXcharacter set
roMount in read-only fashion
rwMount in read/write mode
remountReinstall the file system that has already been installed
loopMount swivel equipment
It should be noted that the mount point must be an existing directory, which can be not empty, but the previous content in this directory will not be available after mounting.umountIt will return to normal later. Use multiple-oparameter,-oUse it only once, separated by a half-width comma between the parameters:[Copy to clipboard] CODE:# mount –oremount,rw /
For example, to mountwindowsThe file system under isFAT32ofDPlate, generally speakingLinuxThe next partition corresponds/dev/hda5, depending on the specific zoning situation, it will be different, here it ishda5For example:
[Copy to clipboard] CODE:# mkdir/mnt/hda5   //createhda5The directory is customizable as a mount point, location, and directory name//# mount -t vfat /dev/hda5 /mnt/hda5Generally speaking,LinuxThe file system of the partition is automatically probed unless you specify it-t vfatcan be omitted.
[Copy to clipboard] CODE:# mount /dev/hda5/mnt/hda5   This is how you can get in/mnt/hda5directory to access resources in the partition.
3.WhymountAfter partitioning, the Chinese file cannot be displayed as a question mark/Garbled characters?
If you see a question mark that you don't have a recognizable Chinese font in your system, install the Chinese font first. Make sure your system already displays Chinese well. Displayed as garbled is generally yesmountThe default file system encoding is inconsistent with the actual encoding of the file system Chinese part. To display Chinese files normally,mountIt is needed-oin the parameterscodepageandiocharsetoptions.codepageThe code page for the specified file system, the Chinese Simplified Chinese code is936iocharsetSpecify the character set, Chinese Simplified is generally usedcp936orgb2312
[Copy to clipboard] CODE:# mount –oiocharset=gb2312 codepage=936 /dev/hda5 /mnt/hda5
In generalmountoiocharset=cp936 /dev/hda5 /mnt/hda5It solves the problem. If you have problems later, try itUTF-8Coding:
[Copy to clipboard] CODE:# mount –oiocharset=utf8 /dev/hda5 /mnt/hda5
4.WhymountAfter going up, ordinary users cannot write partitions?
mountOccasionally added o umask=000You can:
[Copy to clipboard] CODE:# mount –oumask=000, iocharset=cp936 /dev/hda5/mnt/hda5
5.WhymountThe files in the partition after uploading have become short file names?
This is the reason why the file system hangs wrong, willFAT32MountedFAT16This situation will occur firstumount, and then use t vfatRemounting fixes the issue.
[Copy to clipboard] CODE:# mount –t vat/dev/hda5 /mnt/hda5
6.Why notmount ntfsPartition?
This is not supported by the kernelNTFSFor file system reasons, please recompile the kernel or install the kernelNTFSfile system support packages so that the kernel hasNTFSFile system support.
7.How to mountUPlate and harmonymp3
If the computer doesn't have anything elseSCSIequipment andusbIn the case of peripherals, insertedUThe device path of the disk is /dev/sda1, with the command:
[Copy to clipboard] CODE:# mkdir /mnt/u
# mount /dev/sda1 /mnt/u
Mount.




Previous:LIUNX operating system
Next:It's almost over, so let's talk about my life these days
Posted on 12/30/2014 10:42:03 AM |
The forum server is linux
 Landlord| Posted on 12/30/2014 1:11:14 PM |
admin posted on 2014-12-30 10:42
The forum server is linux

LIUNX open source technology may become a trend in the development of the Internet, and I personally think it is very good to understand LIUNX
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com