As time passes by, technology is developing rapidly. With the increasingly mature and stable linux system and its unique advantages of open source code, linux has been widely used in the world. The problem also arises. Today we will mainly discuss the problem of mounting a USB flash drive on a Linux system.
Mount a USB flash drive
Like a USB-based mobile hard drive, USB flash drives are also treated as SCSI devices for linux systems. The usage is exactly the same as that of a mobile hard disk. Before inserting a USB flash drive, use fdisk-l or more/proc/partitions to view the hard disk and hard disk partition of the system.
- [root at pldyrouter root]# fdisk -l
- Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
- 255 heads, 63 sectors/track, 8924 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 1 4 32098+ de Dell Utility
- /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
- /dev/sda3 2555 7904 42973875 83 Linux
- /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
- /dev/sda5 7905 8924 8193118+ 82 Linux swap
After the USB flash drive is inserted, use fdisk-l or more/proc/partitions to view the hard disk and hard disk partition of the system.
- [root at pldyrouter root]# fdisk -l
- Disk /dev/sda: 73 dot 4 GB, 73407820800 bytes
- 255 heads, 63 sectors/track, 8924 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 1 4 32098+ de Dell Utility
- /dev/sda2 * 5 2554 20482875 7 HPFS/NTFS
- /dev/sda3 2555 7904 42973875 83 Linux
- /dev/sda4 7905 8924 8193150 f Win95 Ext'd (LBA)
- /dev/sda5 7905 8924 8193118+ 82 Linux swap
- Disk /dev/sdd: 131 MB, 131072000 bytes
- 9 heads, 32 sectors/track, 888 cylinders
- Units = cylinders of 288 * 512 = 147456 bytes
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 1 889 127983+ b Win95 FAT32
- Partition 1 has different physical/logical endings:
- phys=(1000, 8, 32) logical=(888, 7, 31)
The system has a SCSI hard disk/dev/sdd and a disk partition/dev/sdd1./dev/sdd1 is the USB flash drive to be attached.
# Mkdir-p/mnt/usb
Note: create a directory for mount point)
# Mount-t vfat/dev/sdd1/mnt/usb
Note: You can now access the usb flash drive through/mnt/usb. If the Chinese character file name is garbled or not displayed, use the following command.
# Mount-t vfat-o iocharset = cp936/dev/sdd1/mnt/usb
After reading this article, you should be able to learn how to mount a USB flash drive on a Linux system.
- Analysis on Suse Linux under vm
- Preschool guidance: SUSE Linux
- Abbreviations in SUSE Linux
- Operation Manual: Install the RDAC driver in SUSE
- Your Chameleon: Open Suse