LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-22-2004, 07:35 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
Lightbulb Pen Drives not being recognized


Hi, it's really wierd, ih ave this 256 meg Pen Drive that i heard will jsut show up as an icon on your desktop when you put it into the USB.. for some reason i'm not getting it.. do i have to mount it or something?

a pen drive are those external small usb hard drives..
 
Old 07-22-2004, 07:45 PM   #2
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
You probably do need to mount it. I would try (unless you have a SCSI drive being /dev/sda, in which case you may need to use /dev/sdb or something) "mkdir /mnt/flashdrive; mount /dev/sda1 /flashdrive".

If you have trouble knowing what device it is, you may want to look at the output of "cat /proc/scsi/scsi" and try to find it there.

I don't know why USB flash drives pretend to be SCSI devices, but every one that I've seen has.

If you still don't have it working, you may need to partition it with fdisk <device name>.

Finally, if you want it to start showing up on your desktop automatically, add a line for it to /etc/fstab that automounts it as necessary.
 
Old 07-22-2004, 09:37 PM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok i made the directory and i typed mount /dev/sda1 /flashdrive but it says i need to decide what file system it is
 
Old 07-22-2004, 09:39 PM   #4
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
i tried to get the output of cat /proc/.... but it won't let me see anything :S
 
Old 07-22-2004, 09:42 PM   #5
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
linux:/home/mark # mount /dev/sda1 /flashdrive; mount /dev/sda1/flashdrive
mount: you must specify the filesystem type
mount: can't find /dev/sda1/flashdrive in /etc/fstab or /etc/mtab
linux:/home/mark #


This is the exact error i get =\
 
Old 07-22-2004, 09:47 PM   #6
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok, i got it to work and now i get this
linux:/home/mark # cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: USB Model: Flash Drive Rev: 1.12
Type: Direct-Access ANSI SCSI revision: 02
linux:/home/mark #
 
Old 07-22-2004, 11:03 PM   #7
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
anyone?
 
Old 07-23-2004, 12:27 AM   #8
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Quote:
Originally posted by minm
linux:/home/mark # mount /dev/sda1 /flashdrive; mount /dev/sda1/flashdrive
mount: you must specify the filesystem type
mount: can't find /dev/sda1/flashdrive in /etc/fstab or /etc/mtab
linux:/home/mark #


This is the exact error i get =\
You want to mount /dev/sda1 not /dev/sda1/flashdrive

/dev/sda1 is the partition that you're trying to mount from the sda device (In this case, your flash drive)
Try editing /etc/fstab with the following line:

/dev/sda1 /mnt/flashdrive vfat noauto,user,rw 0 0

be sure to "chgrp users /mnt/flashdrive" and chmod it 775, so users can read from and write to it.
 
Old 07-23-2004, 12:58 AM   #9
oot
Member
 
Registered: Dec 2002
Distribution: Slackware 12.0
Posts: 240

Rep: Reputation: 30
If you view /dev/sda with fdisk or cfdisk (don't edit the partition table if you already have data on the drive), how many partitions are on your flash drive and what type are they?

When I got mine, I had three or four partitions of random types on there. I deleted them, and created one Windows partition (hey, I'm going back and forth between school and home, gimme a break! :-P), formatted it, and it worked. (Oddly enough, it worked with a Windows box even before I did that...)
 
Old 07-23-2004, 01:24 AM   #10
LavaDevil94
Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Try this command as root:
mount -t vfat /dev/sda1 /flashdrive
 
Old 07-24-2004, 12:50 AM   #11
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hmm it was wierd, i got it working before and it would popup saying it detected it, but would enver show a new icon...

when i type that in i get this

linux:/home/mark # mount -t vfat /dev/sda1 /flashdrive
mount: mount point /flashdrive does not exist
 
Old 07-24-2004, 01:16 AM   #12
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
whats even wierd about this is, it was recognizing it, but it won't now.. but it is still shown in suseplugger hardware manager... it's /sda
 
Old 07-24-2004, 02:10 AM   #13
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok, i seem to have gotten it ,but now it displays two flash drives icons when it's really one...
anyone know how to fix that?
 
Old 07-24-2004, 02:11 AM   #14
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
nevermind, i got it thanks
 
  


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
utopia and automatic mount pen drives mikepj Linux - Newbie 0 11-01-2004 12:21 PM
automount cdrom and pen drives mokojin Slackware 3 10-31-2004 03:56 PM
External Drives (iPod and Pen Drives) dhbiker Slackware 13 04-08-2004 07:36 AM
pen drives JROCK1980 Linux - Hardware 3 02-23-2004 01:17 PM
USB pen drives and Fedora Core 1 mrde50garfield Fedora 2 12-15-2003 03:40 PM


All times are GMT -5. The time now is 04:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration