Linux USB stick Mount

Source: Internet
Author: User

Linux Mounted USB Drive

A. Linux Mount USB drive:
1, insert the U disk to the computer, if the current only inserted a U disk and your hard disk is not a SCSI hard disk interface, then its hardware name is: SDA1, you can use "fdisk-l" to view the current hardware name, and then see the hardware name under/dev.
2, in the MNT directory first set up a USB directory (such as: [[email protected] root]# MKDIR/MNT/USB)
3. Mount USB stick: mount-t Vfat/dev/sda1/mnt/usb
4. Uninstalling U disk: Umount/mnt/usb
5. Delete USB directory: Rm-rf/mnt/usb

Two. Linux mounted HDD:
1. Add-on FAT32 file system
The simplest usage
Mount/dev/hda6/mnt/wine
/dev/hda6 is the e-disk of Windows,/mnt/wine is the directory plus hang point. Linux recognizes what the file system type of the/DEV/HDA6 partition is and then hangs it. Of course, you can also specify the file system type of the partition, with the following command:
Mount-t Vfat/dev/hda6/mnt/wine
In the actual operation, directly with a Windows partition, the Chinese file name and directory name will be garbled, in order to avoid this situation can specify the character set, the command is as follows:
MOUNT/DEV/HDA6/MNT/D-O codepage=936,iocharset=cp936
Mount-t vfat/dev/hda6/mnt/d-O codepage=936,iocharset=cp936
Mount-t vfat-o iocharset=cp936,codepage=936/dev/hda6/mnt/wine (commonly used by authors)
Note: cp936 refers to Simplified Chinese, cp950 refers to traditional Chinese.
Unmount the mounted hard drive Umount/mnt/wine
Remove the mounted hard drive Rm-rf/mnt/wine

2. Attach the NTFS file system
On most Linux versions today, you will need to recompile your Linux kernel to mount NTFS partitions (see other articles for compiling methods). After the core supports NTFS, you can mount it with the following command:
Mount-t ntfs/dev/hda2/mnt/c
Also for the Chinese file name and directory name will be garbled problem can specify a character set, but unlike the VFAT partition, the actual use of the command is feasible:
Mount-t Ntfs-o iocharset=cp936/dev/hda2/mnt/c-R
Mount-t Ntfs-o iocharset=cp936,rw/dev/hda2/mnt/c
Note: cp936 refers to Simplified Chinese, cp950 refers to traditional Chinese.
Uninstall Delete ditto!


Three. Linux Auto Mount HDD
Open/etc to find the inside of the Fstab file for editing, if you are logged in as an administrator, you can directly right--open mode--gedit, you can directly append the following line:
/dev/hda6/mnt/wine vfat codepage=936,iocharset=cp936,defaults,umask=0 0 0
/dev/hda5/mnt/wind vfat codepage=936,iocharset=cp936 0 0
<umask=0 means that ordinary users can also read > write
Four. Linux Mounted optical drive:
Command: Mount-t iso9660/dev/hdc/mnt/cdrom
Uninstall Delete ditto!

Linux USB stick 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.