LinuxQuestions.org
Review your favorite Linux distribution.
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 12-18-2007, 04:24 PM   #1
lookup
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Question Linux-USB


Hi all,
I want to access a file(by its name)from USB memory stick without mounting it?
I tried to delve for file system in USB memory stick but was able to....
How does file addressing takes place in USB?
Thanks in advance.
 
Old 12-18-2007, 04:42 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
the name of the file is stored in the file allocation table (FAT) how could you expect to access it by name without using the file system ?

I believe USB flash drives typically use the FAT32 file system.

http://home.teleport.com/~brainy/fat32.htm
 
Old 12-19-2007, 03:50 PM   #3
lookup
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Which commands to use to access data using FAT systems..

Thanks in advance.
 
Old 12-19-2007, 03:55 PM   #4
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
http://www.linuxconfig.org/Howto_mou...drive_in_Linux
 
Old 12-19-2007, 03:55 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Mounting it would be the first step... you could mount it as read only if you are concerned about changing data on the drive itself..
 
Old 12-20-2007, 12:46 PM   #6
lookup
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
The thing is I don't want to mount USB memory stick,I want to access it without mounting it.
I suppose I can do this by accessing some FAT table in memory stick.But I am now not able to figure it out how to get hold of this table which give block/sector/or some memory location corresponding to a file's name.
Is there any command to get to "this" table.
Thanks for any hint from anyone, I am searching for it too...
 
Old 12-20-2007, 09:46 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I still don't understand your aversion to mounting the drive..

So you plan to re-write the USB mass storage driver, and SCSI emulation ? sound's like re-inventing the wheel to me
 
Old 01-04-2008, 05:19 PM   #8
lookup
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,
Is there any alternative to mount command to access usb on linux?
Thanks.
 
Old 01-04-2008, 07:27 PM   #9
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
Quote:
Originally Posted by lookup View Post
Is there any alternative to mount command to access usb on linux?
No, there isn't. If you want to read the files on a USB drive, you mount it first. That's just the way it works.

The only real alternative is to write your own program to directly access the USB device. Basically, you'd be reinventing the filesystem driver. I don't know why you'd want to do that, though. It's a lot more work than just mounting the drive and, to be honest, I can't really think of anything it would gain you.

Perhaps if you tell us what you're trying to accomplish by not mounting the drive, somebody could suggest a work-around.
 
  


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
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 03:12 AM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 6 05-27-2004 12:49 PM
linux locks up when usb mouse attached to usb port during startup. BGuy891653 Linux - Hardware 0 02-08-2004 06:26 PM
Red Hat Linux 8 hangs at initializing usb controller (usb-uhci) subaschan Linux - General 5 09-15-2003 03:49 AM
USB mouse thru a USB modem & linux support zeppelin Slackware 7 07-29-2003 04:43 PM


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