MOUNT command Description:
Use the mount command when mount:
Format: Mount [- Parameter] [Device Name] [Mount Point]
Where commonly used parameters are
-T
MINIX Linux earliest file system
EXT2 Linux currently commonly used file system
MSDOS MS-DOS's FAT is FAT16
Vfat windows98 commonly used FAT32
NFS network file system
ISO9660 CD-ROM CD standard file system
NTFS WINDOWS NT 2000 file system
HPFS OS / 2 file system
Auto automatic detection file system
-o
CodePage = xxx code page
Iocharset = xxx character set
RO is mounted in a read-only mode
RW mounts in reading and writing
Nouser makes general users can't mount
User allows general users to mount equipment
The CodePage IoCharset option in the -o parameter. CodePage Specifies the code page of the file system, the Simplified Chinese Chinese code is 936; IOCHARSET specifies the character set, and Simplified Chinese generally uses CP936 or GB2312.
MOUNT Example:
Handling FAT file system
Mount / dev / hda6 / mnt / d -o code = 936, octharset = cp936
Mount -t vfat / dev / hda6 / mnt / d -o codepage = 936, iocharset = cp936
Note: CP936 refers to Simplified Chinese, and CP950 refers to traditional Chinese.
2. Hand up NTFS file system
Install NTFS Driver
If you need access to NT file systems you'll probably want to download the Linux ntfs driver. There is a site that maintains pre-built modules for all released Fedora kernels at http://linux-ntfs.sourceforge.net/rpm/ . fedora3.html A pre-built ntfs module usually appears just a few days after a new Fedora kernel gets released Be sure to match your kernel version and processor type If you're not sure what version you're running do this..:
# uname -r -p
For example if you're using the latest kernel (as of this writing) which is 2.6.9-1.667 and the i686 (even if it's an AMD) processor then you will want to download it to a local directory and install it as such :
# rpm -ihv kernel-module-ntfs-2.6.9-1.667-2.1.20-0.fc.1.2.i686.rpm
More detailed instructions on determining which RPM you need can be found at http://linux-ntfs.sourceforge.net/rpm/instructions.html. Once installed the ntfs driver will be a dynamically loadable module and you can mount NT file systems with Mount -T NTFS -O NLS = UTF8 / DEV / HDXX / MNT .3. Handling USB USB
Linux has good support for USB devices. After you insert U disk, the U disk is identified as an SCSI disk, usually you can add file system on the U disk with the following command.
Mount / DEV / SDA1 / USB
The same problem with the Chinese file name and catalog name will specify the character set, the command is similar to the above pair of FAT32:
Mount / dev / sda1 / usb -o pagecode = 936, octharset = cp936
4. Hand up the Linux system through the directory shared by Samba
The directory that uses Samba is actually hard to say which file system is original, but this is not important, as long as it is transparent to the user. When you hang, we specify the type SMBFS. When you hang the partitions shared by the Samba, there will be Chinese file names and catalog names, and you can use the following command to add:
Mount -t smbfs -o
UserName = Terry, Password = Terry, CodePage = 936, IOCHARSET = CP936
// Terry-Linux / Terry / MP3 /
Mount -t smbfs -o
UserName = Terry, Password = Terry, CodePage = 936, IOCHARSET = CP936
//192.168.100.228/terry / mp3 /
Note: You can write password = Terry this parameters directly, you will want you to enter your password when the system is used, so you can prevent someone from seeing your password directly. Depending on the situation, the parameters behind -O can be correspondingly or decreased.
5. Hand up the directory shared by the WINDOW system
In the local area network, you often need to access the shared directory shared by other Windows systems. Under Linux, you can use the commands in Samba to access the commands of the Windows machine to share resources.
Use SMBClient to list shared resources for Windows machines
SMBCLIENT -L 192.168.100.111
After the shared resources listed above, you can choose to hang a shared resource that needs to be resided in the local Linux, and then use SMBMount or Mount to add, please refer to the following commands:
SMBMount //192.168.100.111/public / public /
Mount //192.168.100.111/d / mnt / cdrom -o usrname = Terry (this is required to enter a password on the command line)
Mount //192.168.100.111/d / mnt / cdrom -o username = Terry $ 1234 (so do not need to enter a password on the command line)
Note: In addition to the command line methods described above, the best way to use other clients, such as Linneighborhood, NetworkNeighbours, Ksmbshare, etc., please refer to other articles.
Mount automatically hangs in the file system:
There are usually two ways:
method 1.
Place the hanging command in /etc/rc.d/rc.local.
Method 2.
Modify the partition configuration file / etc / fstab, and the file system is added at startup.