LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-14-2005, 09:50 PM   #1
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Rep: Reputation: 15
USB jump drive


I just got a generic USB jump drive/mp3 player, downside is it was design for windows XP, could sombody point me to a good tutorial or whatnot, for how to get it to work in linx. I assume I need to mount but I'm not really sure how.
Thanks,
DINK
 
Old 06-14-2005, 11:16 PM   #2
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
To mount stuff on linux, you first need to have a place setup to mount it too, so it just needs to be a blank directory, you can make this on your desktop or wherever you want. I'll pretend mine is

/home/user/mp3player

So to do that you can use kde or gnome to make the folder, or mkdir /home/user/mp3player in the terminal. Then you need to find what device the usb drive is, I use fdisk -l from the console (thats a lowercase L after the dash) This lists your drives and some info about them (need to do it as root I think as well) Look for one that looks about the right size, mine jumpdrive is usually /dev/sda1 or something like that. Once you find it, you can (as root I think again) do this from the console:

mount /dev/sda1 /home/user/mp3player

(using whatever device name and directory you are going to mount it to)

And then you said be able to write to it as long as its not NTFS formatted I believe.
 
Old 06-15-2005, 06:09 AM   #3
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Original Poster
Rep: Reputation: 15
thanks, but I discovered somthing else I need to solve first
when I plug the device in it gives me a message that the sytem is disableing IRQ21, tus I can't se the fdisk -l comand to find the device, because the USB IRQ is dissabled. How would I go about reinabling it?
o and btw when the machine boots, if the jump drive is plugged in, the mandrake loader hangs at detecting new hardware
 
Old 06-15-2005, 08:41 AM   #4
bullwinkle
Member
 
Registered: Jul 2004
Location: USA
Distribution: FC5
Posts: 46

Rep: Reputation: 15
alright
i had the same problem.......
i dont use windows machines anywhere so this solution worked for me....if its same with u then go ahead
what i did was to reformat the usb key to ext2 file system
mkfs /dev/sda1 .....that is all i did........
i mounted it like thorium suggested and i am happily using it (also ext2 gives an MB space more than fat16)
if u need cross platform compatibilty then format ur usb drive for usbfs. but i am not sure if mp3 would still work.....sowatch out.........usbfs and fat16 are the only 2 fs i know that have cross platform compatibily wrt usb keys........
 
Old 06-15-2005, 01:44 PM   #5
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Rep: Reputation: 21
i too use the lexar usb jump drive and all i need to do is create the entry for /dev/sda1 (1 might be variable), it is better to keep the filesystem vfat to let you store files from either OS
 
Old 06-15-2005, 02:38 PM   #6
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Original Poster
Rep: Reputation: 15
ok, I fallow what u fellas are saying about the mounting and formating bit, and I do need to be able to have it talk to the winbloze machines @ school so the ext2 FS is out.
But the problem is when I plug it in to the computer (running mandrake 10.1) I get a message tht pops up saying that IRQ 21 has been disabled, and I'm pretty sure IRQ 21 is my USB IRQ because "fdisk -l", in console only lists my 2 IDE hard drives and thier partitions. So how would I go about accessing the jump drive?
Thanks,
DINK
 
Old 06-15-2005, 03:12 PM   #7
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Rep: Reputation: 21
me too uses usb jump drive on mandrake 10.1 but there wasn't any IRQ issue. does it have anything to do with how you have set up your OS or your hardware?
 
Old 06-15-2005, 03:44 PM   #8
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
Hmm, I have heard of similar problems with lost of usb stuff hanging systems and, and hanging at boot, I believe it has something to do with acpi hardware detecting like you said when it boots. I'll look around and see if I find anything else, mandrake 10.1 working with acpi had a few problems with my stuff too that I never got resolved. Anyone got an ideas, can you even disable that on boot?
 
Old 06-16-2005, 12:44 AM   #9
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
i dont use mandrake, just throwing something out there. is the usb jumpdrive supported in the kernel. also is the mandrake kde automounting and not mounting it right. maybe you should start up a minimalist window manager like flux or blackbox so there will be no automounter then mount it by hand with the mount -t <filesystem-of-usb-thingy> /dev/sda1 /mnt/sda1
and see what kinda sounds your system makes if it beeps it might explode. sorry just alittle humor. just seems wierd. i am betting that the kernel doesnt have the modules or isnt loading them. look in /lib/modules/2.whatever/kernel/drivers/usb and i really dont know where to go from there as i am not on my usual desktop, of course. but you get the jist of what i am trying to say. the irq thing is wierd, but kde has an irq handler that i think is linked to the automounter, i could be wrong too though. that happens on extremely rare occasions.
 
Old 06-16-2005, 12:47 AM   #10
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
hm also the fact that it happens on boot kinda tells me something like hotplug is having a hard time identifying it. i would check that the module is there, and check the menuconfig and see if the actual jumpdrive support is either compiled in or modularized.
 
Old 06-16-2005, 04:05 AM   #11
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Rep: Reputation: 21
i use icewm on my mandrake 10.1 so i open up a konsole window (coz kde is also installed) and type
Code:
$mount /dev/sda1
the first time i might have used kde to help with automounting and adding entries to fstab, so a /mnt/removable directory had got created, else you can create one manually and specify it in fstab
 
Old 06-16-2005, 07:09 AM   #12
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Original Poster
Rep: Reputation: 15
is the module edong 23 is talking about "hotplug", I installed that wwhen I installed mandrake. How do I check the menuconfig to find wether or not a usb jumpdrive is being supported?
Is there a way to disable this IRQ handler, if thats whats causing my problem?

Thanks,
DINK
 
Old 06-16-2005, 11:19 PM   #13
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
hotplug is a program that loads needed modules. it is installed as default on nearly all linux systems. but if you want to see if the usb key drivers or modules are there then do this:

su
password
cd /usr/src/linux
#if you have the kernel sources installed...
make menuconfig
# that will bring up a menu based kernel configuration editor
#in the menuconfig, navagation will depend on your kernel version
#make your way to the drivers section and usb section
#you should see several different usb stick type devices
#verify that they have a (*) beside the ones you need or all of them
#if they dont, you need to recompile the kernel
# i have personally posted how to do that several times on this forum

optionally you can do like i said and look in /lib/modules/2.x.xx/kernel/drivers/usb and look to see if the usb-storage module is there. if it is then you need to look in the kernel menuconfig to see if the support is there under usb mass storage support. if the usb-storage module isnt there, then you dont have support for any of them. you will have to use the menuconfig to create a new config file and build a new kernel. it might also be possible that you need a newer kernel. as i am not sure...... hell, really i am not completely sure of any of this, as i dont know exactally what is going on with your system. maybe you could post the output of dmesg? that could help.
 
Old 06-17-2005, 10:35 PM   #14
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Iall right I've tried two jump drives that both work on windows boxes. One of the drives is a plaain 128 mb jump drve the other is 1gb jump drive mp3 player.
I'm running mandrake 10.1 and kde
if I have a jump drive plugged in the system hangs when is "detects new hardware"
if the system is running an a jump drive is plugged in I get this message
(Title bar reads)"KWrited -Listening on device /dev/pts/0"
(Body reads) "Message from syslogd@localhost at Fri Jun 17 23:15:46 2005 ...
localhost kernel: Disabling IRQ #21"

I don't have the kernel source installed but, naving to /lib/modules/2.6.8.1-12mdk/kernel/drivers/usb/
I can see
class which contains audio.ko.gz, cdc-acm.ko.gz, usblp.ko.gz, usb-midi.ko.gz
core which contains usbcore.ko.gz
gadget which contains gadgetfs.ko.gz, g_ether.ko.gz, g_file_storage.ko.gz, g_serial.ko.gz, g_zero.ko.gz, net2280.ko.gz
host which contains ehci-hcd.ko.gz, ohci-hcd.ko.gz, uhci-hcd.ko.gz
image which contains hpusbscsi.ko.gz, mdc800.ko.gz, microtek.ko.gz
input which contains acecad.ko.gz, aiptek.ko.gz, ati_remote.ko.gz, kbtab.ko.gz, mtouchusb.ko.gz, powermate.ko.gz, touchkitusb.ko.gz, usbhid.ko.gz, usbkbd.ko.gz, usbmouse.ko.gz, wacom.ko.gz, xpad.ko.gz
media which contains dabusb.ko.gz, dsbr100.ko.gz, ibmcam.ko.gz, konicawc.ko.gz, ov511.ko.gz, pwc.ko.gz, se401.ko.gz, sn9c102.ko.gz, stv680.ko.gz, ultracam.ko.gz, usbvideo.ko.gz, vicam.ko.gz, w9968cf.ko.gz
misc which contains auerswald.ko.gz, cytherm.ko.gz, emi26.ko.gz, emi62.ko.gz, legousbtower.ko.gz, phidgetservo.ko.gz, rio500.ko.gz, speedtch.ko.gz, tiglusb.ko.gz, usblcd.ko.gz, usbled.ko.gz, usbtest.ko.gz, uss720.ko.gz
net which contains catc.ko.gz, kaweth.ko.gz, pegasus.ko.gz, rtl8150.ko.gz, usbnet.ko.gz
serial which contains belkin_sa.ko.gz, cyberjack.ko.gz, digi_acceleport.ko.gz, empeg.ko.gz, ftdi_sio.ko.gz, io_edgeport.ko.gz, io_ti.ko.gz, ipaq.ko.gz, ir-usb.ko.gz, keyspan.ko.gz, keyspan_pda.ko.gz, kl5kusb105.ko.gz, kobil_sct.ko.gz, mct_u232.ko.gz, omninet.ko.gz, pl2303.ko.gz, safe_serial.ko.gz, usbserial.ko.gz, visor.ko.gz,
whiteheat.ko.gz
storage which contains usb-storage.ko.gz

I hope all this makes sense to sombody, thanks for the help,
DINK
 
Old 06-17-2005, 10:46 PM   #15
dink27
Member
 
Registered: Jun 2005
Distribution: Mandriva 2007
Posts: 41

Original Poster
Rep: Reputation: 15
just an update I plugged the device in, IRQ disabled and all but I rebooted and it didn't hang. on the downside I tink the IRQ is being disabled on boot because fisk -l doesnot show the jump drive only the hard drives and thier partitions
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount AND write to USB jump drive TimmerKahuna Linux - Hardware 5 08-13-2006 01:31 PM
USB 2.0 Jump Drive mrgoodtrips Slackware 8 09-28-2005 10:12 AM
USB 2.0 jump drive in USB 1.1 slot won't work? zwyrbla Slackware 2 09-27-2004 08:26 PM
How do I get Slack 10 to see my usb jump drive? zwyrbla Linux - Newbie 8 08-23-2004 08:59 PM
USB jump drive and SUSE 9.0 mc8:36 Linux - Hardware 0 06-28-2004 10:35 AM


All times are GMT -5. The time now is 05:45 AM.

Main Menu
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