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 05-05-2005, 11:00 AM   #1
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
USB Storage


Hello,

I just got a new USB-Stick and wanted to try it out. As I never needed USB before I recompiled my kernel, but now cannot mount the stick.
Here is the output of lsmod:
Code:
 # lsmod
Module                  Size  Used by
usb_storage            29696  0 
scsi_mod               80072  1 usb_storage
[....nvida and printer modules]
ohci_hcd               19336  0 
uhci_hcd               30480  0 
ehci_hcd               29576  0 
usbcore               106744  5 usb_storage,ohci_hcd,uhci_hcd,ehci_hcd
[....sound modules]
ntfs                  106480  1 
vfat                   11648  1 
fat                    36252  1 vfat
So I think all modules I need are loaded.

I can even see the stick in proc/scsi/usb-storage/
Code:
# cat /proc/scsi/usb-storage/1 
   Host scsi1: usb-storage
       Vendor: USB     
      Product: Flash Disk      
Serial Number: None
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
Also lsusb shows it:
Code:
# lsusb
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 007: ID 045e:0038 Microsoft Corp. SideWinder Precision 2
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 009: ID 0ea0:2168 Ours Technology, Inc. Transcend JetFlash 2.0
Bus 001 Device 001: ID 0000:0000
dmesg looks ok too:
Code:
[...]
usb 1-1: new high speed USB device using ehci_hcd and address 9
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
  Vendor: OTi       Model: Flash Disk        Rev: 2.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: device scan complete
[...]
However, if I try to mount it, it says /dev/sda* is not a valid block device:
Code:
# mount -t vfat /dev/sda /mnt/hd/
mount: /dev/sda is not a valid block device
Thank you for your time!
 
Old 05-05-2005, 11:16 AM   #2
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389

Rep: Reputation: 30
try sda1 instead of sda or

ls -l /dev/sda* right after you plug in the usb stick..

Last edited by xgreen; 05-05-2005 at 11:20 AM.
 
Old 05-05-2005, 11:33 AM   #3
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
I tryed that, but it did not help. Even if no USB device is plugged in and the modules are not loaded (and a reboot), ls -l /dev/sda* gives me devices numbered form 1-15 and sda. I will now try all the 15 devices and see if one of them is the correct one

Edit: None of the 15 devices is a "valid block device"

Last edited by cccc828; 05-05-2005 at 11:34 AM.
 
Old 05-05-2005, 11:44 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I don't see sd_mod module loaded in your output, it is needed for /dev/sda* devices
 
Old 05-05-2005, 11:45 AM   #5
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Arch
Posts: 389

Rep: Reputation: 30
just try without "-t vfat" mount /dev/sda* /mnt/hd
 
Old 05-05-2005, 11:55 AM   #6
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
Ah I found the error: I forgot to compile SCSI-Disk support (sd_mod.ko)....
(Edit: Thx keefaz, I overlooked you reply sorry)

However now I could mount the stick, but the filesystem is "bad":
Code:
# mount -t vfat /dev/sda /mnt/hd/
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
I am fairly sure that the stick is formatted with FAT, because as far as I know all new sticks are formated with it. Maybe the factory uses a "nonstandard FAT". Can I simply make a FAT filesystem with mkdosfs?
Just when I try I get this output:
Code:
 # mkdosfs /dev/sda
mkdosfs 2.10 (22 Sep 2003)
mkdosfs: Will not try to make filesystem on full-disk device '/dev/sda' (use -I if wanted)
Could mkdosfs -I in anyway harm the stick and render it useless?
 
Old 05-05-2005, 01:04 PM   #7
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
Just to answer my own question: it workd very well.

Thank you all for the help!
 
Old 05-05-2005, 02:06 PM   #8
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
My flash disk uses a partition in /dev/sda1. Did you try using the flashdisk under windows, after the whole thing has been formatted?
 
Old 05-05-2005, 04:37 PM   #9
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Or use cfdisk on /dev/sda to create partitions on it maybe ?
 
Old 05-06-2005, 01:38 AM   #10
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Original Poster
Rep: Reputation: 15
mkdosfs -I gives me "one big disk" (as I read this is called "Superfloppy"). Windows has no problems with a stick formatted that way. Also I win one more cylinder of disk space, because I do not need it for the partition table.
Maybe I will try to play with cfdisk later, but for now I just need the stick to "work".
 
  


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
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
forcing a USB device to use usb-storage eantoranz Linux - Hardware 1 11-13-2004 07:44 AM
usb storage Jouni Linux - Laptop and Netbook 9 09-26-2004 05:56 PM
USB Drive \ Mp3 + USB Storage imonfya Linux - Hardware 2 07-09-2004 10:54 PM
USB-Stick/usb-storage JC_at_LQ Linux - General 2 07-14-2003 06:56 AM

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

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