Mount a usb device In Debian

Source: Internet
Author: User
Mount a usb device In Debian-Debian information in the Linux release. For more information, see the following. Run fdisk-l to check whether the usb flash disk is identified as sdb1. Run the mount command to mount the disk. Create a new folder in/mnt:

Mount-t vfat/dev/sdb1/mnt/usb

Mount a USB flash drive
Mount windows partitions roughly the same as above

(1) create a directory to be mounted
Mkdir/mnt/winC

// Create the winC directory. The C disk of the Windows system will be mounted to the winC directory under the/mnt directory.

(2) Load Windows partitions
Mount-t vfat-o iocharset = utf8/dev/hda1/mnt/winC

// Load the Windows partition command. vfat refers to the FAT32 file system. If it is a FAT16 file system, it is msdos. The iocharset parameter = utf8 is used to display Chinese characters. If not, the Chinese directory and files cannot be displayed. /Dev/hda1 indicates that the first partition of the first hard disk is located in the Device directory/dev, and a indicates the first hard disk. If there are multiple hard disks, It is B, c, d ,...... and so on. For example, the second hard disk is hdb. 1 refers to the first partition of Windows, which is generally a C disk of Windows, and a D disk corresponds to 5. You can use the command fdisk-l as the root to view the partition of the entire hard disk.

If locale is GB2312 or GBK, The iocharset parameter is cp936 or gb2312, that is:

Mount-t vfat-o iocharset = cp936/dev/hda1/mnt/winC

Allow the system to automatically load Windows partitions
In the first three steps, the Windows partition is loaded, but after the system is restarted, the system will automatically unmount the Windows partition that has been loaded. To enable the system to automatically load Windows partitions, modify the/etc/fstab file.

Add the following parameters to the fstab file:

If locale is UTF8, the parameter is:
/Dev/hda1/mnt/winC vfat defaults, iocharset = utf8 0 0

If locale is GB2312, the parameter is:
/Dev/hda1/mnt/winC vfat defaults, iocharset = cp936, codepage = 936 0 0

// Parameter 0 0 indicates that the system does not back up Windows disks, and parameter 1 indicates that the system does not back up Windowsp disks.

Then save the fstab file.
Related Article

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.