LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 03: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, 03:42 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 02: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, 02: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, 02:55 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 11:46 AM   #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, 08:46 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 04: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, 06:27 PM   #9
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

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

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

All times are GMT -5. The time now is 08:31 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