LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB jump drive (https://www.linuxquestions.org/questions/linux-hardware-18/usb-jump-drive-333659/)

dink27 06-14-2005 09:50 PM

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

Thorium 06-14-2005 11:16 PM

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.

dink27 06-15-2005 06:09 AM

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

bullwinkle 06-15-2005 08:41 AM

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) :D
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........

pintooo15 06-15-2005 01:44 PM

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

dink27 06-15-2005 02:38 PM

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

pintooo15 06-15-2005 03:12 PM

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?

Thorium 06-15-2005 03:44 PM

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? :study:

edong23 06-16-2005 12:44 AM

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. :)

edong23 06-16-2005 12:47 AM

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.

pintooo15 06-16-2005 04:05 AM

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

dink27 06-16-2005 07:09 AM

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

edong23 06-16-2005 11:19 PM

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.

dink27 06-17-2005 10:35 PM

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

dink27 06-17-2005 10:46 PM

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


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