How to mount a USB flash drive in Linux

Source: Internet
Author: User

Look at the disk first recognized by the system:

If not recognized, load the module

Then mount:

# Mount-t vfat/dev/sdax/mnt/flash_memory

Look at the disk first recognized by the system:

Check the system partition status, mainly to see whether the USB disk is recognized by the system. Generally, it is considered as a sda * (scsi disk)

# Cat/proc/partitions

If not recognized, load the module

Enter the Module Directory. The module is a component for the kernel and needs to be loaded because it consumes resources.

# Cd/lib/modules/2.4.x-x/kernel/drivers

# Insmod./scsi/scsi_mod.o

# Insmod./scsi/sd_mod.o -- this is generally a USB hard drive) Driver

# Insmod./scsi/ide_scsi.o

# Insmod./usb/usbcore. o

# Insmod./usb/usb_uhci.o

# Insmod./usb/usb_ohci.o

Let's look at the disks recognized by the system:

# Cat/proc/partitions

Then mount:

# Mount-t vfat/dev/sdax/mnt/flash_memory

Unmount usb after use

# Umount/mnt/flash_memory

Uninstall the module to release the resources of the kernel.

# Rmmod./scsi/sd_mod.o
 

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.