LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-27-2004, 02:50 PM   #1
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Rep: Reputation: 30
USB Flash Drive not detected


Hi. I have a 128MB Flash Disk that I used to mount on Red Hat and it worked fine. But now, after I've installed Slackware, it isn't detected. I tried a friend's USB but that doesn't work either. I have enabled UHCI support in 2.6.4. Still it doesn't work. Please help me.
 
Old 04-27-2004, 03:05 PM   #2
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
You might need to look at your fstab settings.

Cheers
Amos
 
Old 04-27-2004, 06:33 PM   #3
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Original Poster
Rep: Reputation: 30
No, its not that. Because I've tried fdisk. It used to show my USB as /dev/sda4. But now it doesn't. Even Slackware did at first. But I had to reinstall it and now it doesn't.
 
Old 04-27-2004, 09:19 PM   #4
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
try this as root of course
Code:
tail -f /var/log/messages
That should show you that a new device was connected, and where it was connected. Then you can mount it with mount /dev/sdXX /mnt/flashdrive. If this does not work then there is something missing in your kernel or your hotplug might not be running. You mentioned that you had UHCI support, that is good because you do need that, but what about SCSI. You need SCSI, and Mass Storage Device (or something like that) Mass Storage Device is under the SCSI tab in the kernel menu. Hope that helps.

-tank
 
Old 04-27-2004, 11:50 PM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
/dev/sda4 is unusual, it is normally /dev/sda1
 
Old 04-28-2004, 01:58 PM   #6
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Original Poster
Rep: Reputation: 30
That may be so. But it did. Today I tried mounting it on another system running Slackware. There it was mounted as /dev/sdb4. Anyway, yes the kernel does detect it, but still it doesn't mount it or show it as /dev/sda4. And yes, I do have Mass Storage support because dmesg does show the kernel initializing it. One thin more, I tried a friend's USB, but that didn't work either. Also, each time I plug in my USB, it is allotted a different address according to dmesg. Another thing that may be relevent is that fdisk shows a /dev/hda2. Problem is, I don't have a /dev/hda2. All my partitions are accounted for. When I try to mount it, it says error guessing file system type. Manually specifying the file system doesn't work either. I am at a total loss as to what to do.

Last edited by kamransoomro84; 04-28-2004 at 02:01 PM.
 
Old 04-28-2004, 04:38 PM   #7
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
Does your flash drive require drivers, because I have an iomega that does not and that is the reason that mine works. Did you flash drive come with a cd? Some flash drives just do not play well with linux.

-tank
 
Old 04-28-2004, 05:53 PM   #8
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
USB drives use a special usb-scsi host emulation to be recognised by the system
Try as root
cdrecord -scanbus
this dectect "pseudo" scsi device as well.
then if you get your device in the list
try
mount -t vfat /dev/sda1 /mnt/something ===== instead of vfat ,auto can also be used
"something" must be created first by
mkdir /mnt/something.
It would be very unusual your pendrive is detected as sda4 unless you have a "full"scsi system
Ciao
 
Old 04-28-2004, 06:42 PM   #9
usercsr
Member
 
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Rep: Reputation: 15
I am also having problems mounting the flash drive. This is what i did :

Code:
cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
Linux sg driver version: 3.5.30
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'Sony    ' 'MSC-U03         ' '1.00' Removable Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'USB     ' 'Flash Drive     ' '2.00' Removable Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *

mount -t vfat /dev/sda1 /mnt/flash/
mount: /dev/sda1 is not a valid block device

mount -t auto /dev/sda1 /mnt/flash/
mount: /dev/sda1 is not a valid block device
am i doing anything wrong?
 
Old 04-29-2004, 01:31 AM   #10
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Flash drives are not always shipped formatted. I have a new Apacer STENO and this was raw. Either format it on a Windows machine with FAT/FAT32 or fdisk it to ext2
 
Old 04-29-2004, 03:46 AM   #11
fasta
Member
 
Registered: Aug 2003
Location: Livorno - Italy
Distribution: Debian
Posts: 84

Rep: Reputation: 15
Same prob here.
Got myself a freecom usb stick 256mb. Under 2.4.x kernel I mounted NO PROBLEM with
Code:
mount -t auto /dev/sda /mnt/flash
NOTICE :"/dev/sda" ... NO SCSI ID... that surprised me too, yes. I perfectly could read all the stuff I wrote on it from winXP...

Since I compiled 2.6.1 (with all the usb, scsi and ub-storage supports) theres no way of making it work...

Last edited by fasta; 04-29-2004 at 03:49 AM.
 
Old 04-29-2004, 09:23 AM   #12
alekoos
Member
 
Registered: Apr 2004
Distribution: SlackWare 9.
Posts: 32

Rep: Reputation: 15
2.6.4 and i believe prior versions had some problem with the usb devices under the /sys mount point.Upgrade to 2.6.5
dmesg will show you at which sdaXX your usb drive is.But be sure to have the appropriate kernel supprort compiled.

/flame mode on
And yes Slackware can be more educational that other distros
/flame mode off

Last edited by alekoos; 04-29-2004 at 09:28 AM.
 
Old 04-29-2004, 09:49 PM   #13
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Original Poster
Rep: Reputation: 30
Guys, you still don't get it. I think you missed my earlier posts. My USB used to work fine on Slackware kernel 2.6.4. But I had to reinstall and now it doesn't. I have already upgraded to 2.6.5, and no, my USB does not need drivers. I'll try the cdrecord thingy today. Also, it may be unusual, but my USB is recognised as /dev/sda4. It was recognized as such on Red Hat, it was recognized as such on Slackware before and it was recognized as /dev/sdb4 on another system running Slackware. Oh and dmesg does tell me that a USB Mass Storage device was plugged in, and as far as the address was concerned, it changes every time I plug it in. Oh and my USB works fine on Windows.
 
Old 04-30-2004, 07:42 PM   #14
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Original Poster
Rep: Reputation: 30
Hey thanks guys. USB is working now. I hadn't compiled SCSI generic drive support. And again, its /dev/sda4. Anyway, one thing I don't understand, it didn't work in 2.4.22 either. Whereas SCSI support is enabled there. Care to comment on that?
 
Old 04-30-2004, 09:05 PM   #15
usercsr
Member
 
Registered: Sep 2003
Location: Little Rock, Arkansas
Distribution: Slackware-Current
Posts: 129

Rep: Reputation: 15
hey, how do we mount the flash drive so that it is accessible to a particular user. i am able to mount the drive and use it only as the root.
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
USB thumb drive detected by usb but not by scsi ashlock Linux - Hardware 6 06-02-2005 02:58 PM
USB drive not detected AmarAPatel Linux - Hardware 8 01-03-2005 05:26 AM
USB 2.0 Flash Drive Detected As Security Device? mtnbikerjerry Linux - Hardware 1 04-22-2004 10:54 AM
USB Hard drive not detected in Slackware 9.0 setup. landfill Slackware - Installation 3 12-25-2003 03:55 PM
usb flash drive tyiooo Linux - Hardware 11 08-09-2003 01:05 AM

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

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