LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2005, 11:24 PM   #1
headrush0r
LQ Newbie
 
Registered: May 2005
Posts: 28

Rep: Reputation: 15
usb stick


I'm having trouble trying to read/write from my usb stick. (128 meg) I've recently started using linux knowing absolutely nothing so bare with me if im a little slow to grasp some things

I've read similiar posts about usb storage but none have seemed to help me. I'm running slackware 10.1, and everything works (mouse,sound,network,video,reading off windows drive) except for mounting the usb stick.

Heres what i get with #lsusb

Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 045e:0047 Microsoft Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

It can pick up my usb mouse fine, and dmesg shows some other usb activity but it sais something about usb.c not accepting new address = 4 (error=- 71) ???

Is there some sort of installation process which i need to do before i can mount the usb? Currently i have no idea on what to do.

thanks in advance.
 
Old 05-11-2005, 02:37 AM   #2
erraticassassin
Member
 
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131

Rep: Reputation: 18
As root, type fdisk -l with your memory stick plugged in. If it has been recognised, it should be shown in the output as a SCSI device like sda1, sda2 etc.

This assumes you're using a stock 2.4.* kernel. I currently have two Slack 9.1 setups, both of which can detect my USB memory doobries without problems, as all the necessary kernel bits and bobs are present by default.

Assuming the device is recognised, you should be able to mount it. I add an entry to /etc/fstab to simplify the mounting procedure, though I understand this isn't strictly necessary. I'm not at a Linux box at present so I can't give you the exact details.
 
Old 05-11-2005, 06:18 PM   #3
andresv
LQ Newbie
 
Registered: Apr 2005
Location: Colombia
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
This is a line from my /etc/fstab
Code:
/dev/sda1        /mnt/usb         vfat                 noauto,user,owner    0   0
I mount the memory stick with

mount /mnt/usb

Andres V.
 
Old 05-11-2005, 10:32 PM   #4
android1654
Member
 
Registered: Jan 2003
Location: Baltimore
Distribution: Slackware,peanut linux
Posts: 30

Rep: Reputation: 15
why don't you try narrowing down any problem by cutting fstab out of the loop by running this from the command line with your drive plugged in:

(first make sure you have created the /mnt/usb directory and given access: mkdir /mnt/usb, then chmod -R 777 /mnt/usb [that isn't the most secure way to do it but it works])

mount -t vfat /dev/sda1 /mnt/usb


then "cd" to the mnt/usb directory and see if the files on your usb drive exist there with "ls"
if any of this outputs any errors let us know.

you can try replacing /dev/sda1 above with /dev/sda2
 
Old 05-13-2005, 01:51 AM   #5
headrush0r
LQ Newbie
 
Registered: May 2005
Posts: 28

Original Poster
Rep: Reputation: 15
i tried fdisk -l with the stick plugged in and there is no reference to any sda, sda1 or sda2 in it.

and i get 'invalid block device' after making the dir /mnt/usb and trying to mount it there.

Last edited by headrush0r; 05-13-2005 at 01:54 AM.
 
Old 05-13-2005, 02:02 AM   #6
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Unplug your usb disk. Make sure you have the usb-storage module loaded ('modprobe usb-storage'). Depending on your system, the disk will register on a different device. On my desktop 3 of mine register on sda and another on sda1. On my laptop three register on sdb and the the other one on sdb1. Therefore; you cannot always use the same fstab line(s) as other people.

Plug in your usb disk then type 'tail /var/log/messages'. There should be a few lines at the end saying a new device was registered and what /dev it was assigned to. If it doesn't say which device it was assigned to, by process of elimination try this:
Code:
mount -t vfat /dev/sda /mnt/<your mount point>
mount -t vfat /dev/sda1 /mnt/<your mount point>
mount -t vfat /dev/sdb /mnt/<your mount point>
mount -t vfat /dev/sdb1 /mnt/<your mount point>
Just stop when you find one that works, then add a line to your fstab. Just remember that the device name may be different if you use a different usb disk. I have the following lines in my fstab:
Code:
/dev/sdb1        /mnt/usbdisk     vfat        noauto,user      0   0
/dev/sdb         /mnt/usbdisk     vfat        noauto,user      0   0
I know which ones use sdb and which one uses sdb1 and mount accordingly. Also, if you change disks, you may need to unload usb-storage ('modprobe -r usb-storage') then reload it to reset it.
ta0kira

PS If you use the same mount point for more than one device, mount using the device name; not the mount point.

PPS When trying to figure out (by process of elimination) what device it is on, you can type 'tail /var/log/messages' and it will say why it was not mounted. This is how I found out one of my usb disks was on a different device; I did 'mount /dev/sdb' and the message log basically said that it wasn't on sdb; it was on sdb1. Doesn't always work, but sometimes.

Last edited by ta0kira; 05-13-2005 at 02:08 AM.
 
Old 05-13-2005, 02:57 AM   #7
headrush0r
LQ Newbie
 
Registered: May 2005
Posts: 28

Original Poster
Rep: Reputation: 15
thank you very much ta0kira it worked

it was on sda1.
 
Old 05-23-2005, 12:44 AM   #8
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
This also worked for my digital camera. /var/log/messages told me it was on sdc1, and it was a vfat format as well.
ta0kira
 
Old 05-23-2005, 03:16 PM   #9
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
Sometimes it's /dev/uba1 instead of /dev/sda1.
Eg, on Slackware 10.1 with kernel 2.6.10.
But in 2.6.11.9 it's /dev/sda1 again.


gargamel
 
  


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
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
usb stick jwijesundra Linux - Newbie 2 02-03-2005 11:51 PM
USB stick bardia_amir Linux - Hardware 3 08-29-2004 11:30 PM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 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 07: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