Use USB memory in Linux

Source: Internet
Author: User


In Linux, how does one use USB storage devices? This is a problem that occurs frequently on major computer forums. It can be seen that this is also a problem for many computer players. This article provides you with a perfect solution. The following methods allow you to easily use USB flash drives and USB hard disk boxes in Linux environments, in addition, digital cameras can be used as USB large-capacity memory. Here, we will take Red Hat Linux 7.2 as an example to describe how to use USB memory in a Linux environment step by step.

1. in X-Windows, open "Control Center" and expand the "Information → USB device" console tree to check whether Linux has correctly identified your USB memory. If no information about the USB device is displayed, then you should check whether the USB port is enabled in BIOS, or whether the physical connection between the USB memory and the computer is established. Figure 1 shows the author's FinePix digital camera information.

2. Enter the following command in the console:

Fdisk-l/dev/sda

Note: Do not add the wildcard "*" or "?" to the sda. Otherwise, the information returned after running the command is abnormal. If you have multiple USB devices, the device names are sda, sdb, and sdc in Linux.

After running the above command, the author's computer returns the information shown in 2, indicating that the system has found the author's USB device, the device name is/dev/sda1. It can be started (the "*" under the Boot indicates an active partition). The size is 8 MB and the file system name is FAT12.

3. Create a mounted USB memory directory under the/mnt directory:

Mkdir/mnt/usb

4. Then run the mount device command to mount the USB device to the/mnt/usb directory:

Mount-t msdos/dev/sda1/mnt/usb

Note: If the file system of your USB device is FAT32 shown in figure 2, use the mount-t vfat/dev/sda1/mnt/usb command to mount the USB device.

5. Run the following command to view the file information in the USB memory:

Ls/mnt/usb

Then you can copy, delete, and perform other operations on the data in the USB memory just like the hard disk.

If you are not used to playing in the console, you can also create a shortcut pointing to USB memory on the KDE Desktop to complete all file operations with the mouse, just as easy as in Windows, creating a shortcut is simple: Click the blank area of the desktop, select "New/Hard Disk" from the shortcut menu, and right-click the newly created shortcut, select the "properties" menu command, switch to the "devices" tab, and enter the device name, Installation Point, and file system type of the USB memory, as shown in 3. In the future, you only need to click this shortcut to conveniently access the USB memory.

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.