USB Flash Disk Configuration on Linux box

General discussion about Linux, Linux distribution, using Linux etc.

USB Flash Disk Configuration on Linux box

Postby torvalds » Mon Oct 18, 2004 6:28 am

Configuration of USB Memory Stick

All you need is a USB controller, kernel 2.4.x or later and this article.To configure the usb device you should know that whether your linux kernel has detected the usb or not.To check this type login as root:
#lspci
you can also use this command:
#cat /proc/pci
there you will some entries about the usb controller.This is the result of cat /proc/pci of my computer:

"PCI devices found:
Bus 0, device 0, function 0:
Host bridge: Intel Corp. 82810 GMCH [Graphics Memory Controller Hub].
Bus 0, device 1, function 0:
VGA compatible controller: Intel Corp. 82810 CGC [Chipset Graphics
Controller] (rev 3).
IRQ 10.
Prefetchable 32 bit memory at 0xf8000000 [0xfbffffff].
Non-prefetchable 32 bit memory at 0xffa80000 [0xffafffff].
Bus 0, device 30, function 0:
PCI bridge: Intel Corp. 82801AB PCI Bridge (rev 1).
Master Capable. Min Gnt=2.
Bus 0, device 31, function 0:
ISA bridge: Intel Corp. 82801AB ISA Bridge (LPC) (rev 1).
Bus 0, device 31, function 1:
IDE interface: Intel Corp. 82801AB IDE (rev 1).
I/O at 0xf000 [0xf00f].
Bus 0, device 31, function 2:
USB Controller: Intel Corp. 82801AB USB (rev 1).
IRQ 11.
I/O at 0xdc00 [0xdc1f].
Bus 0, device 31, function 3:
SMBus: Intel Corp. 82801AB SMBus (rev 1).
I/O at 0x540 [0x54f].
Bus 1, device 0, function 0:
Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 5).
IRQ 10.
Master Capable. Latency=64. Min Gnt=8.Max Lat=56.
Prefetchable 32 bit memory at 0xf72ff000 [0xf72fffff].
I/O at 0xcc00 [0xcc1f].
Non-prefetchable 32 bit memory at 0xff800000 [0xff8fffff].
Bus 1, device 4, function 0:
Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 16).
IRQ 9.
Master Capable. Latency=64. Min Gnt=2.Max Lat=24.
I/O at 0xc400 [0xc4ff].
Bus 1, device 4, function 1:
Communication controller: C-Media Electronics Inc CM8738 (rev 16).
IRQ 11. ”

This shows that usb port of the system has detected by kernel. Now plug your memory stick to the available usb port and note the screen you will recieve
some lines this ....




Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10
Type: Direct-Access ANSI SCSI revision: 02


At this point if you shell screen remains blank means no messeges appears then issue this command from the shell:
#cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Kingston Model: DataTraveler 2.0 Rev: 4.10
Type: Direct-Access ANSI SCSI revision: 02


Now Create a folder in where you will mount the device after configuration #mkdir /mnt/directoryname

now add some entries in the fstab file like this:

/dev/sda /mnt/directoryname auto noauto,user 0 0

(try to use the same spaces by using tab key)

you've almost done and you can mount by using simple mount command:

#mount /mnt/directoryname

Note: Dont forget to flush the buffer of usb by unmounting the disk.
you can also use the graphical mount tool for this purpose it in
start > system tools > Disk management.

For furthur Assistance : faisalusuf@gmail.com

Linux Pakistan ID: Torvalds
Treat your password like your toothbrush. Don't let anybody else use it, and get a new one every six months.
torvalds
Lance Naik
 
Posts: 25
Joined: Fri Oct 08, 2004 9:15 pm
WLM: faisalusuf@msn.com
Yahoo Messenger: faisalusuf
Location: Pakistan

Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron