LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2005, 09:12 AM   #1
iarebob
LQ Newbie
 
Registered: Jan 2005
Location: miami florida
Distribution: ubuntu
Posts: 18

Rep: Reputation: 0
thumb drive


i have a thumb drive that use for pretty much everything. the problem is that it does not seem to see it. how do i mount a thmb drive? whatr is it's name(like partion 1 is hda1 ect).
 
Old 01-31-2005, 09:35 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
If you have Hotplug enabled, it makes life easier..

Plug in your thumbdrive, and then type
dmesg
You should see some information like

Code:
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
  Vendor: Flash/SM  Model: Super Talent 2.0  Rev: 2040
  Type:   Direct-Access                      ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 /dev/scsi/host1/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Here, i notice that my pen drive is called sda. To mount, create a folder in your /mnt directory,
Code:
cd /mnt
mkdir pendrive
And then, mount your pendrive
Code:
mount /dev/sda1 /mnt/pendrive
That should do the trick.

EDIT: Make sure your pendrive is not formatted as NTFS, otherwise you won't be able to write anything to it.

EDIT: To automate the proccess, assuming your pendrive is formatted as fat or fat32, edit your fstab
Code:
pico /etc/fstab
add the following line

Code:
/dev/sda1       /mnt/pendrive    vfat            defaults        1  0
and save
Code:
ctrl + x
Now all you have to type is
Code:
mount /mnt/pendrive

Last edited by xushi; 01-31-2005 at 09:40 AM.
 
Old 01-31-2005, 02:04 PM   #3
iarebob
LQ Newbie
 
Registered: Jan 2005
Location: miami florida
Distribution: ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
nope didn't work i did it exactly as you said(and several otherways) and when ever i go to mount it says that the special device does not exist. i have tryed sda and sda1.
 
Old 01-31-2005, 03:00 PM   #4
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
If you're running a stock kernel, you may have to do
Code:
modprobe usb-storage
Then, plug in the thumb drive. Run dmesg, and at the end you should see the lines referred to above, from the previous poster's tips.
At that point, mount /mnt/whatever should work just fine

--Shade
 
Old 02-01-2005, 06:34 AM   #5
iarebob
LQ Newbie
 
Registered: Jan 2005
Location: miami florida
Distribution: ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
worked like a charm. thx
 
Old 02-01-2005, 03:33 PM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Cool.

Now add modprobe usb-storage to /etc/rc.d/rc.modules and it'll load on boot everytime.

--Shade
 
  


Reply



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
Thumb Drive dudeman41465 Linux - Hardware 2 11-20-2005 01:02 AM
USB Thumb Drive superdude_876 Slackware 2 10-18-2005 07:42 PM
USB Thumb Drive WolfCub Linux - Hardware 18 03-01-2005 09:06 AM
Cannot mount thumb drive moxieman99 Linux - Newbie 4 10-09-2004 02:33 PM
Usb Thumb Drive Crippledzero Linux - Hardware 1 10-07-2004 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:30 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
Open Source Consulting | Domain Registration