Solution to unreadable USB flash drive data in Linux

Source: Internet
Author: User
Solution for reading data from a USB flash drive in Linux-General Linux technology-Linux technology and application information. for details, see the following. This problem occurs only in earlier Linux versions.

Because older Linux systems are not like Windows systems, they can be automatically identified after new hardware is connected. in Linux, new hardware cannot be automatically identified and must be manually identified. USB mobile storage devices are generally identified as sda1, which can be queried by the fdisk-l command.

Before using a USB flash drive, we need to create a new sub-directory for the external mount point. Generally, the subdirectories of the external mount point are created in/mnt, and we also created there, of course, you can also create a directory in the/directory and set the name by yourself. we will name it usb. The Command under the terminal is as follows:

Mkdir/mnt/usb

Then we can connect to my USB flash drive, and then Enter the command at the terminal and press Enter:

Mount/dev/sda1/mnt/usb

In Windows, when the USB flash drive is used up, we need to delete it before removing the USB flash drive. in Linux, we also need to delete the mount point by using the following methods:

Umount/dev/sda1/mnt/usb or umount/dev/sda1

If you do not detach a USB flash drive to umount, data may be lost.
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.