LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-16-2006, 08:30 PM   #1
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Rep: Reputation: 30
Mounting a thumb drive


How do I connect a usb thumb drive to Linux?
What device name does it have?
Thanks
Jack
 
Old 02-16-2006, 08:38 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
id say plug it in then look at dmesg | top and see if it lists the new device connected
 
Old 02-16-2006, 08:44 PM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Different distributions handle this differently. Most recent mainstream distributions automount the device, and place an icon on your destop.

Since you're asking the question, I assume that either you are not running a mainstream distribution, or you are running an older version. In any case, let folks know what distribution and distribution version (as well as the kernel version) you are running, and they can be more effective at answering.

Usually, when you plug in the device, a set of messages are generated in dmesg or /var/log/messages. Check for something like:

Code:
kernel: sde: assuming drive cache: write through
kernel: SCSI device sde: 1984000 512-byte hdwr sectors (1016 MB)
kernel: sde: Write Protect is off
kernel: sde: assuming drive cache: write through
kernel:  sde: sde1
kernel: Attached scsi removable disk sde at scsi13, channel 0, id 0, lun 3
kernel: SELinux: initialized (dev sde1, type vfat), uses genfs_contexts
The exact text of the messages will change based on the kernel version, and on the patches applied by your distribution. The general information should be there though.

Last edited by macemoneta; 02-16-2006 at 08:46 PM.
 
Old 02-16-2006, 09:00 PM   #4
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Sorry this is quite dumb... I couldn't see any related messages. I'm new to Linux


Jan 29 23:34:28 vulcan rpc.statd[851]: Version 1.0.7 Starting
Jan 29 23:34:28 vulcan rpc.statd[851]: statd running as root. chown /var/lib/nfs

Jan 29 23:34:28 vulcan rpc.statd[851]: gethostbyname error for vulcan
Jan 29 23:34:31 vulcan cardmgr[948]: watching 1 socket
Jan 29 23:34:31 vulcan cardmgr[949]: socket 0: CompactWLAN Card 802.11b
Jan 29 23:34:32 vulcan thttpd[969]: logfile is not within the chroot tree, you w

Jan 29 23:34:32 vulcan thttpd[969]: socket :: - Address family not supported by
Jan 29 23:34:32 vulcan thttpd[969]: thttpd/2.25b 29dec2003 starting on port 80
Jan 29 23:34:32 vulcan inetd[955]: Online and ready (2 sockets)
Jan 29 23:34:33 vulcan sshd[1004]: Server listening on 0.0.0.0 port 22.
Jan 29 23:34:33 vulcan /usr/sbin/cron[1008]: (CRON) INFO (pidfile fd = 3)
Jan 29 23:34:34 vulcan /usr/sbin/cron[1009]: (CRON) STARTUP (fork ok)
Jan 29 23:34:34 vulcan /usr/sbin/cron[1009]: (CRON) INFO (Running @reboot jobs)
Jan 29 23:34:36 vulcan cardmgr[949]: executing: './network start wlan0 2>&1'
Jan 29 23:34:36 vulcan cardmgr[949]: + /sbin/ifup wlan0
Jan 29 23:34:36 vulcan cardmgr[949]: + route: SIOC[ADD|DEL]RT: File exists
Jan 29 23:34:56 vulcan login[1010]: root login on `ttyS0'
 
Old 02-16-2006, 09:01 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
can u post the output of:
- dmesg | tail
- lsusb
- lsmod

edit: as macemoneta said, edit your profile to include kernel and distro version information.. this will only allow others to help you more efficently
 
Old 02-16-2006, 09:03 PM   #6
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
Info, I plugged the thumb drive to the usb port provided by a SBC (Single Board computer)
(Embedded Linux)
 
Old 02-16-2006, 09:16 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
On an embedded platform, you'll have to check the manufacturers documentation. You may need to modprobe the modules manually (and they may not be standard), or you may need to build a custom kernel to enable the port. There is no standard mode of operation in this environment.
 
Old 02-16-2006, 09:26 PM   #8
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
1) dmesg | tail
wifi0: PRI: id=0x15 v1.0.7
wifi0: STA: id=0x1f v1.3.6
wifi0: defaulting to host-based encryption as a workaround for firmware bug in H

wifi0: defaulting to bogus WDS frame as a workaround for firmware bug in Host AP

wifi0: registered netdevice wlan0
prism2: wlan0: operating mode changed 3 -> 2
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44
wifi0: LinkStatus=2 (Disconnected)
wifi0: LinkStatus: BSSID=44:44:44:44:44:44

2)lsusb.txt

Bus 003 Device 002: ID 058f:9380 Alcor Micro Corp. Flash drive
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

3) lsmod
Module Size Used by
Mostap_cs 63768 3
hostap 109928 1 hostap_cs
pcmcia 18472 3 hostap_cs
yenta_socket 17864 2
rsrc_nonstatic 8928 1 yenta_socket
pcmcia_core 40132 4 hostap_cs,pcmcia,yenta_socket,rsrc_nonstatic
sd_mod 12656 0
ixp4xx_eth 18876 0
ixp400_ethMii 4768 1 ixp4xx_eth
ixp400_ethAcc 61632 2 ixp4xx_eth,ixp400_ethMii
ixp400_qmgr 41092 2 ixp4xx_eth,ixp400_ethAcc
ixp400_ethDB 441712 2 ixp4xx_eth,ixp400_ethAcc
ixp400_npeDl 21628 2 ixp4xx_eth,ixp400_ethDB
ixp400_oslinux 1728 1 ixp400_npeDl,[permanent]
firmware_class 7520 1 ixp400_oslinux
ixp400_npeMh 18428 3 ixp4xx_eth,ixp400_ethAcc,ixp400_ethDB
ixp400_featureCtrl 4340 5 ixp4xx_eth,ixp400_ethAcc,ixp400_qmgr,ixp400_ethD

ixp400_osal 45788 8 ixp4xx_eth,ixp400_ethMii,ixp400_ethAcc,ixp400_qm

usb_storage 28576 0
scsi_mod 73048 2 sd_mod,usb_storage
ohci_hcd 16584 0
ehci_hcd 2733692%--
usbcore 100604 4 usb_storage,ohci_hcd,ehci_hcd

Thx
Jack
 
Old 02-16-2006, 10:55 PM   #9
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: SimplyMEPIS 6.0, openSuSE 10.2
Posts: 90

Rep: Reputation: 15
You still haven't told us
a) what hardware you're running,
b) what linux is running on it, or
c) what kind of usb device you're trying to use with it.

Do you really believe that we are either magicians, or psychic,
or that there are no alternatives to your setup?

If this thread is typical of your more than 200 posts on this forum
how on Earth have you managed to survive?

May I suggest that you google "How to Ask Questions the Smart Way"
and actually read & think about some of the hits?

Last edited by jamuz; 02-16-2006 at 10:59 PM.
 
Old 02-16-2006, 11:01 PM   #10
lucky6969b
Member
 
Registered: Nov 2005
Posts: 337

Original Poster
Rep: Reputation: 30
IT World *MAKES* every programmer dead anyway
 
Old 02-16-2006, 11:52 PM   #11
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: SimplyMEPIS 6.0, openSuSE 10.2
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by lucky6969b
IT World *MAKES* every programmer dead anyway
Thanks for a thoroughly irrelevant response.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thumb Drive dudeman41465 Linux - Hardware 2 11-20-2005 02:02 AM
USB Thumb Drive WolfCub Linux - Hardware 18 03-01-2005 10:06 AM
thumb drive iarebob Slackware 5 02-01-2005 04:33 PM
Thumb Drive Linux gef_87 Linux - Newbie 2 10-09-2004 09:31 PM
Mounting USB Thumb Drive Issues xm0b31 Linux - Hardware 2 04-27-2004 07:04 PM


All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration