prevent the computer system from automatically playing the USB flash drive. To do this, we can follow the steps below:
First, click "start"/"run" command in the desktop of the local computer system. In the displayed system run text box, enter the string command "gpedit. msc, click OK to open the Group Policy console window for the corresponding system;
In the left-side area of the console window, click "
Figure 1 installing Linux with a USB flash drive
Some time ago, I had a hard time installing the Linux system on a server. After I wrote the installation process below, anyone who had similar installation could complete the installation quickly, because the server's optical drive is unavailable and the External Optical
Fedora13 has been released for nearly a week. On the first day of its release, I had to cut down the ISO files of livecd and DVD, and planned to install it on my book that night.
Unfortunately, hard disk installation was frustrated. At that time, due to work-related problems, the final compromise was achieved. Today, I finally tried again and still failed...
Fortunately, today I learned a simpler installation method-self-made USB flash
development board now. Therefore, if you want to use QT to detect the insertion and removal of a USB flash drive on the arm, hotplug is the right path. Do not greedy for the functions of the q6!
In this article, we will talk about how to obtain Hal or udisks messages on a PC using the q6. If you don't talk nonsense, please check the program:
1, add in widget. h:
MATERIALS:1 NASM: Compile the Assembly source code, which is available in many places on the Internet2 winhex: As a Windows system to write U disk tools, need to be genuine (full version) to have write permissions, recommended: http://down.liangchan.net/WinHex_16.7.rarSteps:1. Compile the machine code of the boot program. Compile the Assembly source code with the command line: Name boot. ASM-O boot. bin. th
, here, the usb_class_mass_storage macro is defined in include/Linux/USB/ch9.h, and its value is 8.
Let's take 1,477th rows as an example.
1477 usual_dev (us_ SC _rb, us_pr_cb, usb_us_type_stor ),
Expand this macro, that is, define such a usb_device_id struct variable, its match_flags = struct, and binterfaceclass = usb_class_mass_storage, binterfacesubclass = us_ SC _rb, and binterfaceprotocol = us_pr_cb.
Usb_class_mass_storage does not need to be mentioned. Every device supported by this dr
1. mount a USB flash drive or disk under a VM, network configuration under Ubuntu, switching between the graphical interface and command interface, software source configuration, and mounting ubuntuZookeeper
1. Set disk mounting (the disk is mounted to the/media directory by default)
A: insert A mobile hard
Zookeeper
1. Set disk mounting (the disk is mounted to the/media directory by default)
A: insert a mobile hard drive.
B: Set the Virtual Machine (Virtual Machine-> Removable device à toshibaexternal USB 3.0 (this is shown after I inserted the mobile hard disk) à connection)
Sometimes the following phenomena occur:
C: Check the name of the storage device.
Sudofdisk-l
E: mount the storage device sdb1 to th
-2.6.22/drivers # cd usb/
Lfg1:/usr/src/linux-2.6.22/drivers/usb # ls
Kconfig Makefile README atm class core gadget host image misc mon
Serial storage usb-skeleton.c
Note that each directory contains a Kconfig file and Makefile, which is very important. We will introduce it later.
Our story is based on the drivers/usb/storage directory. In fact, the code here clearly shows how the USB flash drive we fr
getdevicetype () function to judge the drive letter.Char firstdrivefrommask (ulong unitmask){Char I;
For (I = 0; I {If (unitmask 0x1)Break;Unitmask = unitmask> 1;}
Return (I + 'A ');}
/// Register a message with the form for changing the drive letterBool doregisterdeviceinterface (Guid interfaceclassguid,Hdevnotify * hdevnotify)/*Routine description:Registers
introduce it later.
Our story is based on the drivers/usb/storage directory. In fact, the code here clearly shows how the USB flash drive we frequently access is working and how it is driven. But the code in this directory does not live in a paradise. They are always closely related to the outside world. You can continue to see:
Lfg1:/usr/src/linux-2.6.22/drivers/usb # cd storage/
Lfg1:/usr/src/linux-2.
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.