LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2004, 08:20 PM   #1
fuoi2
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 2
Posts: 2

Rep: Reputation: 0
USB Pen Drive


I am a total newbie in Linux related issues.
My current distribution is Fedora 2. That's all I know but it should be quite recent.

I currently have some files that need to run on Octave from a USB Pen Drive. However, I can't access the Pen Drive because Fedora can't detect it like WinXP. (i.e as USB Mass Storage).

Can anyone help me in how to install a driver or the methods in accessing the files in the USB Pen Drive via Fedora 2?

*Thank you*
 
Old 09-01-2004, 09:01 PM   #2
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
Plug it in and see what the last few lines of $dmesg output.

If its detected, make a mount point and mount it:
I.E. (should be listed as sda1 I believe)
/dev/sda1 /mnt/thumb vfat noauto,rw,umask=000,uid=<userid> 0 0

<edit>So you have something to compare with, I get this when my pen is plugged in.
Code:
usb 4-2: new full speed USB device using address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Memorex   Model: ThumbDrive        Rev: 1.12
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 515840 512-byte hdwr sectors (264 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 2

Last edited by BrianW; 09-01-2004 at 09:03 PM.
 
Old 09-01-2004, 09:51 PM   #3
fuoi2
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 2
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you. =)
 
Old 09-02-2004, 11:54 AM   #4
FacUtSciam
LQ Newbie
 
Registered: Sep 2004
Distribution: fedoracore2
Posts: 7

Rep: Reputation: 0
---"Plug it in and see what the last few lines of $dmesg output."---

how does one go about doing this? is $dmesg a command or file or what?

you see, I also have a Lexar 128MB JumpDrive Secure and i can't mount it for the life of me...
i tried "mount /dev/sda1 /mnt/flash" with and without the -t flag followed by vfat and auto, i created a new line for it in fstab (/dev/sda1 /mnt/flash vfat noauto,owner,kudzu 0 0) and played around with so many options that i can't begin to remember them all...

every single time, i get the same message: "/dev/sda1 is not a valid block device" can anyone tell me what i'm doing wrong here?
 
Old 09-02-2004, 12:04 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
dmesg is a console command.
 
Old 09-02-2004, 01:02 PM   #6
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
add this line to /etc/fstab

/dev/sda1 /mnt/flash auto sync,noauto,user,exec 0 0

to mount it as a user:
> mount /mnt/flash

that way you have permissions to delete stuff off of the usb drive.
 
Old 09-03-2004, 01:46 PM   #7
FacUtSciam
LQ Newbie
 
Registered: Sep 2004
Distribution: fedoracore2
Posts: 7

Rep: Reputation: 0
michaelk, thanks for clearing up dmesg for me (looks like it'll be helpful someday maybe... :-) )

CD! you should just come up to 204 sometime and teach me and lance how to do this! (it's adam by the way) i put in the line you posted and got the same error message... we want to get this figured out cuz we're rebuilding the cluster and it would make data transfer easier... kind of ironic you would reply to my post :-) thanks
 
Old 09-06-2004, 10:18 PM   #8
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
holy crap,
how crazy is that. i just started this thing a week ago. word to the gang.

anyhow, i forgot to tell you to substitute the device name that the cluster uses. sometimes it's /dev/sda, /dev/sdb1, ect. my laptop always uses sda1, but the one at work uses a different one everytime. make a directory /mnt/usb or /mnt/flash, or whatever you want to mount the pen drive to for that matter. the way i used to mount it was as root

# mount /dev/sda1 /mnt/usb

you can try different device names until you find the one that works, then use that one for fstab so you can mount it as a user.

hope that helps a little. man, what are the odds. that's sweet

later dude, ill keep an eye out for your questions, probably wont be able to help, but what the hey

sir clif
 
Old 09-07-2004, 10:36 AM   #9
FacUtSciam
LQ Newbie
 
Registered: Sep 2004
Distribution: fedoracore2
Posts: 7

Rep: Reputation: 0
i can't get it to mount under any of the sd? names... i tried a through z and then tried again with a 1 at the end and always got that same error message.... "not a valid block device"

is it possible i need a different name entirely? like i know sg0, sg1, etc are generic SCSI and theres slram and ftla and millions of others.... hmmmmmm...........

anyway, thanks to everyone. it still doesn't work, but at least i've learned a pantload of stuff in the process... if anyone thinks of anything else, i'd really appreciate it (and thanks in advance), but for now i'm off to research the issue further.... lata y'all
 
Old 09-07-2004, 11:52 AM   #10
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Check out this page. It helped me to get my usb reader working.
http://www.cs.sfu.ca/%7Eggbaker/personal/cf-linux
 
Old 09-08-2004, 08:03 AM   #11
FacUtSciam
LQ Newbie
 
Registered: Sep 2004
Distribution: fedoracore2
Posts: 7

Rep: Reputation: 0
thanks, david the h. this looks like a great starting point i'll hafta wait to explore it though... need to get to class lol
 
  


Reply



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
Usb Pen Drive vivekthemind Linux - Hardware 4 09-30-2005 05:09 AM
Struggling with a USB pen drive kashatn Linux - Hardware 3 03-23-2005 04:43 AM
USB pen drive won't work anerren Linux - Newbie 7 03-03-2005 12:23 AM
USB Pen Drive on 2.6.x LST Linux - Hardware 1 05-02-2004 10:25 PM
USB Pen Drive rlculver Linux - Hardware 1 11-08-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

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
Open Source Consulting | Domain Registration