LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   mounting a usb flash drive (https://www.linuxquestions.org/questions/linux-hardware-18/mounting-a-usb-flash-drive-413437/)

chodeman07 02-09-2006 08:52 AM

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

Azhrarn 02-09-2006 08:59 AM

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.



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