LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-09-2006, 08:52 AM   #1
chodeman07
LQ Newbie
 
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
mounting a usb flash drive


how can i mount my usb flash drive, and can i access the information(files,folders) in linux even though its a different operating system????? thank you for your help
 
Old 02-09-2006, 08:59 AM   #2
Azhrarn
Member
 
Registered: Aug 2005
Location: Europe
Posts: 63

Rep: Reputation: 15
Cool

Heya,
guess this is a little faster than you expected, but I had this handy
First of all linux will only have issues seeing NTFS (which you can solve anyway), however, as far as I know, pen drives can only be formatted in FAT by windows, so Linux should have no problems in reading this.

Here's an article I saved 'cos it worked well for me.
Sorry if I don t post the name of the author, but I didn't save it.
If you re reading this, thx man, please add you name to the post

Cheers
Azh

Quote:
Originally Posted by heroic_anonymous
Create then two directories under /media that will have more meaningfull names. e.g:

mkdir /media/usb-stick
mkdir /media/watch

Add following entries to your /etc/fstab (or change the existing ones for your usb devices /dev/sdc1 and /dev/sdg1)
/dev/sdc1_____/media/usb-stick___auto_____rw,noauto,users,exec,umask=0000,sync___0_0
/dev/sdg1_____/media/watch_____auto_____rw,noauto,users,exec,umask=0000,sync___0_0

Sorry for the "_". Since space characters get somehow messed up, I am using "_" to represent a space character.

Open your
/etc/sysconfig/hotplug

and look there for the parameter:
HOTPLUG_USE_SUBFS

I am sure it's set to yes (HOTPLUG_USE_SUBFS=yes)

You *need* to set it to no
HOTPLUG_USE_SUBFS=no

Reboot your system (the watch and the stick shall not be plugged-in, although it does not hurt if they are. It's just for testing)

After the system is up and running, plug-in your devices.

Check with
/sbin/lsusb
or usbview
whether the devices are recognized as attached or not.

Check with lsmod if the modules
usb-storage
scsi_mod
are loaded.

If not load them manually
modprobe usb-storage

Mount now your devices
mount /media/usb-stick
mount /media/watch

If this works, cd into /media/usb-stick and /media/watch and ls
to see if you can see the contens (of course you need to have some files
on those devices.)

If everything works you can delete the automatically created directories under /media
usb-storage-odd-USB-FlashDisk:0:0:0p1
usb-storage-20020509145305401:0:0:3
etc. since you do not need them anymore.
 
  


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
Auto-Mounting USB Flash Drive plehman Linux - Newbie 12 01-05-2009 09:41 AM
USB flash drive mounting android6011 Linux - Hardware 5 01-03-2006 07:45 PM
USB flash drive mounting problem guillaume31 Linux - Hardware 4 05-23-2005 11:47 AM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 08:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 09:09 PM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration