How to implement USB Mass Storage drive under LinuxVersion:v0.7How to Write Linux USB MSC (Mass Storage Class) Drivercrifan Li SummaryThis paper mainly introduces the relationship between the various protocols of USB Mass storage, and how to implement USB drive under the
. all the files in iso. For linux systems, USB-connected mobile hard disks are treated as SCSI devices. Before inserting a mobile hard disk, use fdisk-l or more/proc/partitions to view the system's hard disk and hard disk partition. [Root at pldyrouter/] # fdisk-l here we can clearly see that the system has a SCSI hard disk/dev/sda and its four disk partitions/dev/sda1 --/dev/sda4, /dev/sda5 is the logical
I. Linux USB driver levels
1. devices, configurations, interfaces, and endpointsThe logical organization of a USB device consists of four layers: device, configuration, interface, and endpoint.
A device usually has one or more configurations:
Each USB device provides different levels of configuration information,
Article Title: Use a USB flash drive to load the controller driver to install the Linux system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. Generally, we need to load some scsi
(1)Before using the optical drive, Mount: # Mount/dev/CDROM/mnt/CDROM, and then you can read the content of the disc in the/mnt/CDROM directory;(2)When you want to exit the CD, you must use the umout command. Otherwise, the CD drive will remain deadlocked: # umount/mnt/CDROM. You can also exit the CD directly: # eject
Load ISO files
Mount-o loop ISO file name destination directory
For example: # Mount-o loop/mnt/wind/FC4-i386-disc1.iso/mnt/temp/
I. Loading
Mount a USB flash disk in linux-general Linux technology-Linux technology and application information. For details, refer to the following section. The environment of this routine is in FC6 and operated through a terminal. Note that you must have the administrator privilege to mount the
Red Hat Linux mounting USB flash drives
In our Red Hat Linux installation, half of the machines are the most basic server configurations, and there is no desktop environment. It is difficult to copy files from U. You only need to check them on the Internet, so you must first load them to the/mnt directory of the Linux
Transferred from: http://blog.csdn.net/jimmy_1986/article/details/5838297Embedded Linux USB belongs to all the drivers of a very complex subsystem, want to completely conquer her, at least a few months, do not believe? That's not what you did.I have done 2 years of embedded drive development, USB accounted for more than half time. During a lot of detours, the fol
The basic idea of starting a USB flash disk Linux and WinPE is as follows: process the USB flash disk, enable it, and install GRUB4DOS. then, integrate various boot disks to enable grub4dos. Production Process: A, U disk can be started to enable processing U disk boot mode USB-HDD,
To install a Linux system from a USB stick, the basic steps are:
First of all, a 8GB USB flash drive, the larger the better, the CentOs 7.2 version of the full ISO image file has reached about 7GB.
Download the CentOs7.2 ISO image file from 163 open source Station (http://mirrors.163.com) and download the ISO file of 4GB size Centos-7-x86_64-dvd-1511.iso
driver should register on the bus, or be listed. in the USB system, each driver of a USB device has a struct usb_driver structure. The Code is as follows: Include/Linux/USB. h
485 /*--------------------------------------------------------------------------*/486487 /**488 * struct usb_driver-identifies
1, through the ISO to create a bootable U disk system.
1.0, format the U disk for FAT32 format
Linux can use the command
Mkfs.vfat u disk's device path
For example:
Mkfs.vfat/dev/sdb
where the U disk path can be viewed by command DF
1.1, the simplest method (but some cases will fail, and the U disk can not put other files, need to be formatted before use):
DD If=iso path of=u disk's device path
For example:
DD If=centos-6.5-livedvd.iso OF=/D
see what is in your USB flash drive!CD/mnt/USB
Specific commands:1. Add the FAT32 File System
Simplest usageMount/dev/hda6/mnt/d
/Dev/hda6 is the author's windows D disk,/mnt/D is the directory mount point. Linux recognizes the type of the file system in the/dev/hda6 partition, and then adds it. Of course, you can also specify the file system type of the partiti
I,LinuxLoadUSB flash drive
How about LinuxLoad(Excellent) USB flash drive
Step 1: Log On As the root userFirst load the USB Module modprobe USB-storageUse fdisk-L to check disk devicesAssume that the USB flash drive is SDA.Step 2: confirm thatFileFolder/USB. If not, ente
Today, I tried to mount a USB flash drive in RedHat5. My USB flash drive is fat32, but it has been around for a long time. I also used fdisk-l to view the disk information in linux, But it displays the sda information in linux. You cannot see the USB flash disk information.
Usb_gadget, a data member required by a Linux-defined gadget, contains sturct Usb_ep.
-> struct Mv_usb_ep, where the struct USB_EP is a member of the Linux defined endpoint, refer to the USB protocol for endpoint.
-> struct Usb_gadget_driver, the driver that should be gadget the function of the device, the following section will be described in detail.
-> void *
installed LRZSZ software package:# sudo apt-get install LrzszThen you can normally use minicom to burn the kernel through the serial port.Second, the configuration minicom:1, before using minicom, first to ensure that you have read/write permission to the serial port. We know that the Linux device corresponds to a file in the/dev/directory, the serial port COM1 corresponds to the ttys0,com2 corresponding to the ttyS1, use the following command to vie
/mnt/USB4. Open/mnt/USB and you will be able to see what is in your USB flash drive!CD/mnt/USBSpecific commands:1. Add the FAT32 File SystemSimplest usageMount/dev/hda6/mnt/d/Dev/hda6 is the author's windows D disk,/mnt/D is the directory mount point. Linux recognizes the type of the file system in the/dev/hda6 partition, and then adds it. Of course, you can also
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.