LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-03-2004, 04:27 PM   #1
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Rep: Reputation: 16
Problem with USB Key and creating the /dev/sda1 block device


Hi

I'm trying to get my USB key to work with slack 10, linux 2.6.

when I type (as root)

Code:
mount -tvfat -oumask=0000 /dev/sda1 /mnt/cle
it answers :

Code:
/dev/sda1 is not a valid block device
Yet I have created /dev/sda1 with mknod and here's the output of "ls -l /dev/sda1" :

Code:
brw-rw----  1 root disk 8, 1 2004-08-03 23:11 /dev/sda1
By the way : I have usb-storage and SCSI support in my kernel ; I have done "modprobe usb-storage", and dmesg then says

Code:
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: Flash R/W         Rev: 2002
  Type:   Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 3
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: IBEAD     Model: Multi Player      Rev: 0100
  Type:   Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 4
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
Can you help me ? Why can't I mount my USB key ?
 
Old 08-03-2004, 06:13 PM   #2
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
well I am toying with a usb stick myself at the moment.
I just got some success using
'modprobe sd-mod'
a glance at /dev shows sda and sda1 block devices were created at the same time.
then the mount command worked.

now to add something to fstab....

edit: sorry, that should read

modprobe sd_mod

Last edited by tobyl; 08-03-2004 at 06:28 PM.
 
Old 08-03-2004, 06:17 PM   #3
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
Try replacing /dev/sda1 with /dev/scsi0 or /dev/scsi1 when using the mount command.
 
Old 08-03-2004, 07:36 PM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Some new pendrive are not partition as /dev/sda1
you can try mounting it as /dev/sda


I have come across this before (Apacer especially).

To be very sure:
fdisk -l /dev/sda

If there is no partition and the drive is still empty, I advice you to use fdisk to create a partition and format it again. It helps in compatibality across platforms (especially) Mac Os X.

Last edited by carboncopy; 08-03-2004 at 07:41 PM.
 
Old 08-04-2004, 02:26 AM   #5
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
thank you all for your replies !!

now it works !
the thing that got it to work was "modprobe sd-mod"
it's funny, but the SCSI device it creates is "/dev/sdb1" on my computer .... and I don't have a /dev/sda.... don't know how to explain this

so, for future newbies, here's a "HOWTO USB-KEY" :

0) create a mounting directory :
for instance, you might want to call it /mnt/usbkey
cd /mnt
mkdir usbkey

1) check that you've got the required modules in your kernel.
you need :
the USB&SCSI stuff
usb-storage
sd-mod
the FAT/VFAT filesystem

2) load the modules :
modprobe usb-storage
modprobe sd-mod

3) plug your USB key
as root, type "tail /var/log/messages" to check that the SCSI device has been created.
Code:
Aug  4 09:05:18 darkstar udev[4572]: creating device node '/dev/sdb1'
Aug  4 09:05:19 darkstar udev[4564]: creating device node '/dev/sdb'
note down the name of the device representing your partition on your USB key : here, it's /dev/sdb1.

4) mount your USB key. Of course, this can later be automatized by adding an entry to your /etc/fstab
assuming the previous step has given you /dev/sdb1, and your mounting point is /mnt/usbkey, type, as root :
Code:
mount -tauto -oumask=0000 /dev/sdb1 /mnt/usbkey
5) finished !
 
Old 08-04-2004, 02:42 AM   #6
Ben2210
Member
 
Registered: Feb 2004
Location: Toronto
Distribution: Arch
Posts: 146

Original Poster
Rep: Reputation: 16
If it says "mount: you must specify the filesystem type
", try replacing -tauto by -tvfat in the mounting command.

It looks like the flash memory of a USB DSL modem can count as a mass storage device.
 
  


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
/dev/sda1 NOT a valid block device ??? mack4evr SUSE / openSUSE 5 10-15-2004 01:06 PM
USB Pen Drive, /dev/sda1 is not a valid block device Aeiri Linux - Hardware 3 08-13-2004 10:32 AM
/dev/sda1 not valid block device pcpinkerton Linux - Hardware 19 02-29-2004 07:48 AM
USB - /dev/sda1 is not a block device rstebbins Linux - Hardware 4 08-14-2003 05:16 AM
/dev/sda1 is not a valid block device adenardo Linux - General 6 10-17-2001 10:07 PM

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

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