LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-26-2003, 02:38 AM   #1
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
Angry USB flash pen/stick/card cannot access


Sorry to post ANOTHER usb memory card stick question ...

I have a TOPBAND 256 mg usb Flash memory pen/stick running RedHat 8. I know the system can see it but I cannot figure out how to access it ... please can someone advise me further.



The usb pen was sold as Linux Compatable (yes my kernal version supports it).

Heres lots of config stuff...

I have a USB Controller installed

running cat /proc/pci | grep -i usb returns:-

USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 1).

my modules.conf file also contains:-

alias usb-controller usb-uhci
alias ieee1394-controller ohci1394


running mount yields (amongst other things):-

usbdevfs on /proc/bus/usb type usbdevfs (rw)


I tried running DMESG and it said it had initialised the USB mass storage driver, registered usb.c, and also that a new USB device was connected on bus1/2, assigned device number 3.

I have HotPlug installed too.

I know the system can see the USB pen and i'm fairly sure its happy with it. I just cannot figure out what steps I need to take in order to be able to mount the drive in the usual fashion --- Any Ideas ... its driving me nuts.
 
Old 09-26-2003, 04:19 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
Check to see if you have any scsi drives available?
ls -l /dev/sd*
If you do, then one of them will be your memory stick.
Mount it with (as root, firstly):
mount -t vfat /dev/sda1 /mnt/flash
(make sure the directory /mnt/flash exists first).

If this works, then you can go and edit your /etc/fstab file to make the options permanent.
 
Old 09-26-2003, 04:35 AM   #3
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Original Poster
Rep: Reputation: 15
Ok I tried running ls -l /dev/sd*

and the output was HUGE --- which one am I looking for?

02


I know its there somewhere, I just cannot figure out how to FIND or learn where the device might be?

I looked in /proc/scsi too and there are directories for usb-storage-0 (which is empty) and a file named scsi which when I run

cat/proc/scsi/scsi yields:-

Attached Devices:
Host: scsi0 CHannel: 00 Id: 00 Lun: 00
Vender: USB Model: Flash Drive Rev: 1.11
Type Direct-Access ANSI SCSI revision:
 
Old 09-26-2003, 05:33 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
D'oh! Sorry, I am so used to using devfs that I forget that this can happen. On my system it only shows up the devices actually present - yours will show all the possible devices! Sorry.

Do you have any scsi disks? If not, then it is likely to be /dev/sda. And the partition you want is likely to be /dev/sda1.

You can check by (as root) type in fdisk -l (that was a lowercase L by the way). Oh, and do this after you have plugged in the pen/flash disk.

Make sense?

Do:
Plug in pendrive.
As root type fdisk -l and look at output - look for anything that say /dev/sdXX.
As root, make a directory onto which you'll be mounting your drive mkdir /mnt/flashdrive
As root, mount that disk - likely to be mount -t vfat /dev/sda1 /mnt/flashdrive
Presuming you get no error messages, check to see if you have any files there!
If you can see files, then you need to edit your fstab so that you can mount your pendrive easily rather than using this method. But we'll cover that later...

Good luck.
 
Old 09-26-2003, 05:44 AM   #5
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Original Poster
Rep: Reputation: 15
First up thanks for that amazingly clear information!

Second --- no luck yet

running fdsik -l yielded:-

(left a few bits blank to prevent clutter)

/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 6 FAT16
/dev/hda3 275 83 Linux
/dev/hda4 1403 f Win 95 Ext'd (lba)
/dev/hda5 1403 82 Linux Swap

I know its there --- dmesg says it is and also KDE has this app which shows USB devices which I found, its pretty useless too but it does say that a USB flash drive is present and gives a long serial number (but nothing seemingly useful)

Dont Stop Yet!!!!!!! Almost there !
 
Old 09-26-2003, 05:58 AM   #6
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Original Poster
Rep: Reputation: 15
Got it!

Urg! Sorry --- was on sda4 !!!!!!!

Was not reading all of the output from fdisk (silly me)

Thank You!!!!!
 
  


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 Flash Pen Not Working wisdom Linux - Hardware 13 01-07-2005 06:47 PM
Help - USB flash memory stick and hard drive munkus.agb Suse/Novell 3 12-15-2004 05:51 AM
Can't mount USB FLASH (Pen driver) vador Linux - Software 5 10-09-2004 01:49 PM
Can't mount USB memory stick/pen drive wellmt Slackware 11 06-25-2004 02:10 AM
How do I mount a USB flash memory stick? brian Linux - Newbie 3 02-07-2004 02:49 PM


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