Forum Home
Press F1
 
Thread ID: 47237 2004-07-20 08:23:00 USB Pen Drive on Linux Ashley Matthews (550) Press F1
Post ID Timestamp Content User
253754 2004-07-20 08:23:00 Hey,

I've got a Legend 128mb Pen Drive, that works fine under Windows. As many of you may know from my barrage of linux posts lately I've switched over.

The last important thing I need to get working is my USB key. I cannot for the life of me, despite extensive googling... changing auto.removable scripts etc, get it to work. It is definately detected in the hardware browser but just wont let me mount it. Its not partitoned for linux, although I did that on a friend's machine with a different usb key and it worked well....

Any ideas appreciated.
Ashley Matthews (550)
253755 2004-07-20 08:57:00 Have you made a mount point for the device under /mnt ?
mkdir /mnt/usbpenPlug in in the USB pen, then issue as root:
mount -t vfat /dev/sda1 /mnt/usbpenNow go to /mnt/usbpen with Nautilus or Konqueror and see if you can view the data on the device. This is of course if your USB pen was detected as sda, and the -t vfat is specifying the file format (fat if that is what you have used). Have a look at dmesg for the sd? for your USB pen after plugging it in. If this doesn't work, some of the suggestions given in the links below.
Don't forget to umount when finished. I have an embedded USB cardreader and this is how I access it.

I think you are running Fedora Core 2 now? Have a look at these articles as well:
Reading and writing files to USB-key (fedoranews.org)

To use a USB drive in your Fedora box (fedoranews.org)

Automount the usb drive (fedoranews.org).
Jen C (20)
253756 2004-07-20 10:38:00 When you have tested that the above works, make the whole thing a bit more permanent by adding a line to your /etc/fstab file. With this in place you should be able to right click your desktop (at least in GNOME) and mount the drive very easily. The line would be:

/dev/sda1 /mnt/usbpen auto noauto,owner 0 0
JohnD (509)
253757 2004-07-20 10:42:00 > /dev/sda1 /mnt/usbpen auto noauto,owner 0 0

Do you not need 'user,noauto' or does 'owner' do something similar? Apparently 'nohide' is good too.....


Chill.
Chilling_Silence (9)
253758 2004-07-20 10:45:00 An easier way to detect what the device name is:

cdrecord -scanbus

USB is emulated SCSI on Linux and this command will reveal any devices connected.
JohnD (509)
253759 2004-07-20 10:49:00 >Do you not need 'user,noauto' or does 'owner' do something similar? Apparently 'nohide' is good too.....

As used on my PC ... but come to think of it I did change the ower of the device to be the current user.
JohnD (509)
253760 2004-07-20 11:41:00 anyone else's brain hurt just reading that?

:D
Jester (13)
253761 2004-07-20 13:26:00 > anyone else's brain hurt just reading that?

If you're running Xandros it picks it up and adds it to the File-Manager automatically without intervention :-)
Chilling_Silence (9)
253762 2004-07-21 04:49:00 You don't need to make it a linux partition, though I have just for fun made half of my DSE MP3 thingy into ext2. vfat is jusr fine.

With Mandrake 9.2, the first time I plugged it in a mount point /mnt/removable appeared, with the unit mounted.
Graham L (2)
253763 2004-07-21 05:10:00 > anyone else's brain hurt just reading that?

Go on, Jester, do it. You know you really want to. ;-) :D
Susan B (19)
1 2