LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2005, 06:24 PM   #1
kashatn
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Struggling with a USB pen drive


Hey all,
Im strugglin with a USB pen drive. IM trying to access it. y aknow, put files on there etc, but i cant

fdisk -l gives me this

Device
/dev/hda1
/dev/hda2
/dev/hda5


and thats it. The Pen Drive is plugged in, an ive started Hotplug, but its not helping find it. i just wanna mount the pendrive and begin using it.

Any ideas???
any help will be much appreciated. thanks
 
Old 03-22-2005, 07:15 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Which distribution is this?

Right after plugging in the device, run 'dmesg', look for some mention of a USB device and see what '/dev' device it gives you.

Example, my USB card reader with a 32MB Compact Flash Card:
Code:
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
  Vendor: OTi       Model: CF CARD Reader    Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 00
usb-storage: device scan complete
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 63488 512-byte hdwr sectors (33 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 63488 512-byte hdwr sectors (33 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
 sda: sda1

[root@charon ~]# mount -t vfat /dev/sda1 /mnt/cf
[root@charon ~]# ls /mnt/cf/
Documents  misc
 
Old 03-22-2005, 07:18 PM   #3
Nis
Member
 
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
So you've plugged in the USB drive but have you mounted it? What distribution and desktop environment are you using? The latest GNOME (since 2.8) and very latest KDE (3.4) automatically mount USB drives if everything is working correctly. Otherwise you'll need to mount the USB drive before you can do anything with it. If you have an entry in your /etc/fstab for the USB key you can usually mount things with
Code:
mount /mnt/usb
where '/mnt/usb' is the directory you'd like to mount the USB drive to. It might be different, however, such as '/media/usb' or '/mnt/USB_KEY' or similar. Otherwise you'll have to do the following as root:
Code:
mount -t vfat /dev/sdXY /mnt/usb
where X is the drive letter (see below) and Y is the partition (usually 1)
The USB drive is probably detected as /dev/sda or /dev/sdb but it could be another letter.

You'd do well to search LQ for fstab, mounting USB, and so on because there are many threads dealing with this issue. You'll find some great tidbits such as how to mount the drive as a normal user.
 
Old 03-23-2005, 04:43 AM   #4
kashatn
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Original Poster
Rep: Reputation: 0
im reunning debian 3.0 r4, with
KDE version (im not sure, but its the defualt that shipped with the debian)

running dmesg just gives me a list of hardware that i know is already working (running fine, eg hard disk, ethernet card etc)

trying to mount it (pen drive), it just tells me that there is no entry in fstab for it.....

Im certain the hardware is fine, but the usb drives light doesnt flicker even once.

any ideas?

Last edited by kashatn; 03-23-2005 at 08:29 AM.
 
  


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
Usb Pen Drive vivekthemind Linux - Hardware 4 09-30-2005 05:09 AM
USB Pen Drive fuoi2 Linux - Newbie 10 09-08-2004 08:03 AM
USB Pen Drive on 2.6.x LST Linux - Hardware 1 05-02-2004 10:25 PM
USB Pen Drive rlculver Linux - Hardware 1 11-08-2003 09:30 AM
Secure USB Pen drive R@LF Linux - Security 7 08-05-2003 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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