LinuxQuestions.org
Help answer threads with 0 replies.
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 09-22-2003, 06:50 PM   #1
sutho1
LQ Newbie
 
Registered: Sep 2003
Location: Townsville Australia
Distribution: redhat 9
Posts: 10

Rep: Reputation: 0
Flash Drive Mounting


I have a 256 MB Mittoni usb flash drive that I cant seem to get to work using redhat 9. I have looked at a lot of information on the web but still to no avail. Could someone please explain to me in reasonably simple terms how to go about setting this up.
 
Old 09-22-2003, 07:18 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,202

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
well, i'm not sure about usb, as i've never used it, but i do know that you will have to compile it into your kenel
(cd /usr/src/linux, make menuconfig, make dep clean bzImage moules, make install modules_install) and make sure to edit your /etc/lilo.conf (or /etc/grub.conf) to point to your new (and old if you can) kernel
 
Old 09-22-2003, 07:28 PM   #3
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Rep: Reputation: 15
There is a post in the hardware section that i used...."Using a USB flash drive with Linux". Do a search for it. It worked fine for me on redhat 9. basically in terminal as root type 'modprobe usb-storage' to lode the necessary module into the kernel. Then make a directory to mount to eg 'cd /' then 'mkdir usbstick' next edit the file /etc/fstab...add a line '/dev/sda1 /usbstick vfat user,noauto,umask=0 0 0'. Next plug in the usb device and mount it 'cd /' then 'mount usbstick'. The device will then be accessible via the directory /usbstick.
 
Old 09-22-2003, 07:38 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Eh? Recompile kernel to get a USB flashdrive working?

Boot into Linux.
Plug in the pendrive.
Check that it has been found by typing dmesg
If it says something about USB mass storage, then onto the next step.
Really verify that the SCSI bus is reading it nicely by typing cdrecord -scanbus
It should tell you a device number.
Check to see if there is a new SCSI 'harddrive' ls /dev/sd*
Make a mountpoint for the device (as root - only do once) mkdir /mnt/flashdrive
Mount (as root) the drive mount -t vfat /dev/sda1 /mnt/flashdrive
Obviously, the /dev/sda1 is whatever you found your new device was.
Also, obviously if you made an alternative mountpoint, mount it there instead of /mnt/flashdrive.
You can now read and write to your flash drive as root. In order to make things easier, you need to create an entry for it in /etc/fstab, but that's another story, and one that's been covered a few times already.

Hope this helps.
 
Old 09-22-2003, 11:17 PM   #5
sutho1
LQ Newbie
 
Registered: Sep 2003
Location: Townsville Australia
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
I have finally managed to mount my flash drive, however when I double click on the icon on the desktop no files are displayed in the window even though I know there is files on the drive. I have also tried saving to the drive and the system just hangs.
 
Old 09-23-2003, 12:04 AM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
What mount command do you use - do you mount it from the shell or have you put an entry in fstab yet?
 
Old 09-23-2003, 09:34 AM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
I seem to remember that if you're using the KDE desktop (I don't know about Gnome), you may need to right-click on the icon and select 'mount'. You could possible get around this by using something called supermount, but that (I believe) requires you to patch your kernel and reconfigure...

If you can cope with it, try just right-clicking and mounting.

Alternatively, if you're running GKrellM, you can add some funky buttons to mount/umount/eject your devices.
 
  


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 10:41 AM
USB flash drive mounting problem guillaume31 Linux - Hardware 4 05-23-2005 12:47 PM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 09:59 AM
Mounting a USB Flash Drive Garibaldi3489 Slackware 3 01-04-2005 10:09 PM
Trouble mounting usb flash drive alpha1906 Slackware 6 08-20-2004 03:59 PM


All times are GMT -5. The time now is 01:59 PM.

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