How to use the U disk under Linux? Here to introduce you:
A: Linux is not like Windows, after the new hardware can be automatically recognized, under Linux does not automatically recognize the new hardware, you need to manually identify. USB Mobile storage devices are usually identified as SDA1, which can be queried by the fdisk-l command.
Before using the USB stick, we must first create a new sub-directory for the plug-in, general plug-in sub-directories are built in the/mnt inside, we are also built there, of course, can also be built in/directory, the name can be set, we are named as USB, terminal commands as follows:
Mkdir/mnt/usb
Then we can pick up my USB stick, then enter the command under Terminal and hit ENTER:
Mount/dev/sda1/mnt/usb
Under Windows when we run out of USB stick, before we remove the USB flash drive we have to delete, also under Linux we also want to delete the hang starting point, by:
Umount/dev/sda1/mnt/usb or UMOUNT/DEV/SDA1
If you do not give the USB stick to umount off, it is easy to cause the loss of data
Two: USB support is the key driver, no drive device when mount execution is definitely not. My common approach to using a USB stick in Red Hat is as follows
1. Do not insert the U disk,/sbin/lsmod see if there is usb-storage. If not:
Cd/lib/modules/2.4.20-8/kernel/drivers/usb
For V in *.O STORAGE/*.O; Do/sbin/insmod $v; Done
2. Here again/sbin/lsmod, there should be Usbcore, USB-OHCI (or USB-UHCI, depending on the motherboard chipset and different), Usb-storage, Scsi_mod and so on. Where the status of Usb-storage should be
(unused).
3. Insert a USB stick, keep/sbin/lsmod, this period usb-storage state should be initializing, duration of about half a minute, in fact, the equivalent of windows in the lower right corner of the balloon:)
4. After the initialization is over,/sbin/fdisk-l should be able to see the/DEV/SDA1 device. At this point, execute mount/dev/sda1/mnt/udisk to succeed. If it is msdos format and want to see Chinese, you can
Mount-t Vfat/dev/sda1/mnt/udisk-o iocharset=gb2312.
(For convenience can/etc/fstab add a line, later can mount/mnt/udisk on the line).
5. It is strange that sometimes fdisk can not see SDA1, but also can mount on the use of the above steps to hang the USB flash drive is basically said to be "foolproof". Desktops, notebooks, and VMware are all the same.
Mkdir/mnt/usb
Mount/dev/sda1/mnt/usb
Install Linux usage on notebooks like desktops
Ps:
First check the Lsmod|grep usb-storage which is a USB-enabled module. If not, it is not possible to operate the USB interface device.
If not, can hand work modprobe usb-storage, general view U disk can use fdisk-l can very clearly see this hardware device name, than guess hardware name to be more accurate.