Redhat Linux Mount command mount

Source: Internet
Author: User

 

Command format:

  Mount [-t vfstype] [-O options] Device dir

which

1.-t vfstype Specifies the type of file system that is not normally specified. Mount will automatically select the correct type. Common types are:

Disc or disc Image: iso9660

DOS FAT16 file system: MSDOS

Windows 9x FAT32 file system: VFAT

Windows NT NTFS file system: NTFS

Mount Windows file network share: SMBFS

UNIX (LINUX) file network share: NFS

The 2.-o options are primarily used to describe the way devices or files are hooked up. The commonly used parameters are:

Loop: Used to attach a file as a hard disk partition on the system

RO: Hook device with read-only method

RW: Mount device with read-write mode

Iocharset: Specifies the character set used to access the file system

3.device the device to mount (Mount).

Mount point of the 4.dir device on the system.

1. CD mount

 Callout: disc automatically mounts to default path/media directory


If you want to make a CD mount point do the following:


Make a disc image of the CD in the current CD-ROM/home/mydisk.iso

#cp/media/home/mydisk.iso

Set up a directory to use as a mount point, the general default mount point is established under the/MNT directory

#mkdir/mnt/dvd

Mydisk.iso made to Mount

#mount-O loop-t Iso9660/home/mydisk.iso/mnt/dvd

Un-mount
#umount/mnt/dvd

2. Mount USB Drive


Use Fdisk-l to view system hard disk and USB stick partition condition

[Root at Pldyrouter root]# fdisk-l
disk/dev/sda:73 Dot 4 GB, 73407820800 bytes
255 heads, Sectors/track, 8924 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 1 4 32098+ de Dell Utility
/DEV/SDA2 * 5 2554 20482875 7 Hpfs/ntfs
/dev/sda3 2555 7904 42973875-up Linux
/DEV/SDA4 7905 8924 8193150 f Win95 Ext ' d (LBA)
/dev/sda5 7905 8924 8193118+, Linux swap
disk/dev/sdd:131 MB, 131072000 bytes
9 Heads, Sectors/track, 888 cylinders
Units = Cylinders of 288 * 147456 bytes
Device Boot Start End Blocks Id System
/DEV/SDD1 * 1 889 127983+ b Win95 FAT32
Partition 1 has different physical/logical endings:
phys= (+, 8, logical=) (888, 7, 31)


Set up a directory to use as a mount point, the general default mount point is established under the/MNT directory

#mkdir/mnt/usb

mount a USB flash drive using mount

#mount-T Vfat/dev/sdd1/mnt/usb

If the kanji file name is displayed as garbled or not displayed, you can use the following command

#mount-T Vfat-o iocharset=cp936/dev/sdd1/mnt/usb

Un-mount
#umount/mnt/usb

3. Mount Windows File Share

  Callout: first set up a shared folder under Windows Backup, set up a user ABC, password set to 123, the Backup folder access rights assigned to the ABC users


Set up a directory to use as a mount point, the general default mount point is established under the/MNT directory

#mkdir/mnt/file

Mount the Windows shared folder to the Linux directory using Mount/mnt/file

Mount-t cifs-o username=abc,password= "123"//10.8.9.11/backup/mnt/file

Un-mount
#umount/mnt/dvd

Redhat Linux Mount command mount

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.