LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-29-2005, 11:31 AM   #1
R++
LQ Newbie
 
Registered: Jan 2004
Posts: 10

Rep: Reputation: 0
usb storage device


hello, how can i access files stored in a usb storage device???
i'm on red hat 9, i already sticked it in the usb port but nothing happens
it is formatted in fat32 (i think) because the files were stored using windows xp

can you help me with this please??, i have to work on this files and haven't a lot of time

thanks a lot
 
Old 03-29-2005, 11:40 AM   #2
the_clown
Member
 
Registered: Mar 2005
Posts: 33

Rep: Reputation: 15
Typing in 'dmesg' in a terminal will show you something like

Code:
scsi2 : SCSI emulation for USB Mass Storage devices
  Vendor: LEXAR     Model: JUMPDRIVE SECURE  Rev: 2000
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 502880 512-byte hdwr sectors (257 MB)
sda: assuming drive cache: write through
 /dev/scsi/host2/bus0/target0/lun0: p1
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0,  type 0
USB Mass Storage device found at 2

The line "SCSI device sda: 502880 512-byte hdwr sectors (257 MB)
sda: assuming drive cache: write through
" lets you know it is mounted as device /dev/sda, so you can then mount it as /dev/sda1 (1 being the first partition).

As root (su -) type

Code:
mkdir /mnt/usb
mount /dev/sda1 /mnt/usb
Your device is now mounted. If you want to enable write access, using your favorite text editor (I'm using vi in this example) open up /etc/fstab (as root) and add the following line:

Code:
/dev/sda1  /mnt/usb  vfat  noauto,users,owner,exec,umask=000   0 0
Save and exit. Now anytime you want to mount your device you can do so simply by typing "mount /dev/sda1". Hope that helps.
-the_clown
 
Old 03-31-2005, 10:58 AM   #3
bship
LQ Newbie
 
Registered: Mar 2005
Location: NC
Distribution: Red Hat and Novell OES (formerly SUSE), LPI 101 and Net+
Posts: 25

Rep: Reputation: 15
Thumbs up Thank you!!! USB Lexar Jumpdrive is now mounted in RedHat Enterprise, too.

This place is great!!! I mean LinuxQuestions.org

I am still 10 mos. new to Linux, but old to networking and information technology.
I have gotten 2 very big painful questions answered here!

Please keep up the great job!!!

Using the info. that "the_clown" posted, I was able to mount and use my USB Lexar Jumpdrive in RedHat Enterprise.
Now I have backed up all my Linux info and config files!

Thanks, guys!

Last edited by bship; 03-31-2005 at 11:00 AM.
 
Old 03-31-2005, 01:24 PM   #4
the_clown
Member
 
Registered: Mar 2005
Posts: 33

Rep: Reputation: 15
Glad it helped someone.
 
Old 03-31-2005, 03:00 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Congrats on solving the problem and thanks for posting back with the solution bship. Likewise, thanks the_clown for providing that advice. Welcome to LQ, both of you! -- J.W.
 
Old 03-31-2005, 06:23 PM   #6
mrossm
LQ Newbie
 
Registered: Mar 2005
Location: Houston TX
Distribution: Mandrake 10.0
Posts: 10

Rep: Reputation: 0
Hello, I have the same issue with the USB harddrive (using Mandrake 10.0), and I have a thread a couple pages down. My problem is that when I use dmesg, there is no reference to any sda. If you view my post "Autodetect", I placed the dmesg output relevant to USB. Thanks.
 
Old 04-11-2005, 02:08 PM   #7
sacerdoti
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
Discovering the device name for a usb drive

Hello,

Is there a way to programmatically determine what device (/dev/sdxx) a usb drive is mapped to? Specifically, I do not want to rely on dmsg: a script will be doing this, not a human. My question is for Linux 2.6.

Thank you,
Federico Sacerdoti
 
Old 04-11-2005, 02:38 PM   #8
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Well the physical devices count up from a in the order they are detected, i.e. the order they are plugged in, or if plugged in at boot, the order the kernel sees them. the 1,2,3... just refers to the physical partitions you have on the device. If you have udev installed on your system they are statically mapped until you unplug them. If heard someone tried to do this by parsing the output of dmesg. I don't think he ever got it to work.

Last edited by Valhalla; 04-11-2005 at 02:39 PM.
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
USB storage device TazLinux Linux - General 2 11-15-2003 09:52 PM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM
USB Storage device uttamsaxena Linux - Newbie 2 07-07-2002 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:35 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
Open Source Consulting | Domain Registration