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 10-03-2003, 12:47 PM   #1
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Rep: Reputation: 15
Unhappy usb memory stick


hi everybody...
i've been trying to mount my usb memory stick for hours now...but I can't figure out which /dev file i have to use...
I've tried every single scd*

---
lsusb

Unknown line at line 1809
Duplicate HUT Usage Spec at line 2650
Bus 002 Device 001: ID 0000:0000 Virtual Hub
Bus 001 Device 001: ID 0000:0000 Virtual Hub
Bus 001 Device 002: ID 046d:c00c Logitech Inc. Optical Wheel Mouse
Bus 001 Device 003: ID 05dc:0080 Lexar Media, Inc.
---
cdrecord --scanbus

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'QSI ' 'DVD-ROM SDR-081 ' 'EXA7' Removable CD-ROM
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) 'LEXAR ' 'DIGITAL FILM ' '/W1.' 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) *
---
cat /proc/scsi/usb-storage-0/1

Host scsi1: usb-storage
Vendor: LEXR PLUG DRIVE?H23533113004031
Product: LEXR PLUG DRIVE?H23533113004031
Serial Number: H235331130040315AA 00000000000
Protocol: Transparent SCSI
Transport: Bulk
GUID: 05dc0080ffff900000000000
Attached: Yes
---
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: QSI Model: DVD-ROM SDR-081 Rev: EXA7
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: LEXAR Model: DIGITAL FILM Rev: /W1.
Type: Direct-Access

ideas anybody ?

Last edited by linen0ise; 10-03-2003 at 12:53 PM.
 
Old 10-03-2003, 01:52 PM   #2
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
Hello

Have you tried mount /dev/sda /mnt/flashdrive, after having created mnt/flashdrive of course? What are the error messages?

Search LinuxQuestions on these error messages, you will find a lot of information. The memory stick got me here. Now I'm stuck.

Bye

Koen Plessers
 
Old 10-03-2003, 02:09 PM   #3
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
unfortunately, doesn't work =(

Code:
root@firestarter:/# mount /dev/sda /mnt/floppy/ -t vfat
mount: /dev/sda is not a valid block device
root@firestarter:/# mount /dev/sda0 /mnt/floppy/ -t vfat
mount: special device /dev/sda0 does not exist
btw.
is there ANY method to find out which device files are beeing used ?

Last edited by linen0ise; 10-03-2003 at 02:27 PM.
 
Old 10-03-2003, 02:54 PM   #4
reclusivemonkey
Member
 
Registered: May 2003
Location: Halifax, WY, UK
Distribution: Slackware 9
Posts: 167

Rep: Reputation: 30
I have just reinstalled my system trying to get my DSL working so I can't quite remember the device, but I remember if you look in dmesg or /var/log/messages the clue is in there. Once you have it, they work like a dream :-)

Hey it was on another post here. Its commonly referred to as a "flashdrive". If you search on here for that you'll find its /dev/sda4. Which is the default spare scsi slot I think as thats what my zip drive used to use.

Last edited by reclusivemonkey; 10-03-2003 at 02:58 PM.
 
Old 10-03-2003, 02:59 PM   #5
CoryS
LQ Newbie
 
Registered: Oct 2003
Location: Illinois
Distribution: Slackware 10.1
Posts: 4

Rep: Reputation: 0
I have a flash card reader that shows up as /dev/sda1. I was able to figure out which device it was by running 'dmesg'. Here's the relevant part from my system (emphasis mine):

scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: USB Mass Model: FlashCardReader Rev:
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0

Assuming that your memory stick uses the usb-storage driver (which it should, I think), you should have an entry similar to this in your dmesg which should point you in the right direction.

Next, you need to look in the directory /proc/scsi/usb-storage-0. When you do an 'ls', you should see one (or more) files that are just numbers. Using 'more', look at each file until you find the one that describes your memory stick. Again, another example from my system:

$ more 1
Host scsi1: usb-storage
Vendor: Unknown
Product: Mass Storage Card Reader
Serial Number: FFFFFFFFFFFF
Protocol: Transparent SCSI
Transport: Bulk
GUID: 07c4a2000000ffffffffffff
Attached: Yes

Append the file name (in this case 1) to the part I highlighted above to get the location of your memory stick.

I hope this helps. Post a reply if this isn't clear.

Last edited by CoryS; 10-03-2003 at 03:14 PM.
 
Old 10-03-2003, 03:26 PM   #6
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
thanks for the reply,
but i still don't get it working...=(

sorry for the long post, but either the information from dmesg states that it wasn't attached, or I'm kind of blind...
on the other hand ... the output from `cat /proc/scsi/usb-storage-0/1` (already in my first post) states it is attached
trying to mount /dev/sr1 or dev/sda(1|4) results in a 'is not a valid block device'


---Linux version 2.4.22 (root@firestarter) (gcc version 3.2.3) #5 Mon Sep 29 23:29:21 CEST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001dff0000 (usable)
BIOS-e820: 000000001dff0000 - 000000001dffffc0 (ACPI data)
BIOS-e820: 000000001dffffc0 - 000000001e000000 (ACPI NVS)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
479MB LOWMEM available.
On node 0 totalpages: 122864
zone(0): 4096 pages.
zone(1): 118768 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=slack ro root=301 hdc=ide-scsi
ide_setup: hdc=ide-scsi
Initializing CPU#0
Detected 1263.517 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 2516.58 BogoMIPS
Memory: 482536k/491456k available (2142k kernel code, 8532k reserved, 684k data, 124k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU: Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel(R) Pentium(R) III CPU family 1266MHz stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xeb3d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router SIS [1039/0008] at 00:01.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
IA-32 Microcode Update Driver: v1.11 <tigran@veritas.com>
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
parport0: PC-style at 0x378 [PCSPP]
sisfb: Video ROM found and mapped to c00c0000
sisfb: Framebuffer at 0x40000000, mapped to 0xde811000, size 32768k
sisfb: MMIO at 0x50000000, mapped to 0xe0812000, size 128k
sisfb: Memory heap starting at 12288K
sisfb: Detected LVDS transmitter
sisfb: Detected LCD PanelDelayCompensation 32
sisfb: Mode is 800x600x8 (60Hz)
sisfb: Initial vbflags 0x1000012
sisfb: Added MTRRs
Console: switching to colour frame buffer device 100x37
sisfb: Installed SISFB_GET_INFO ioctl (80046ef8)
sisfb: 2D acceleration is enabled, scrolling mode ypan
fb0: SIS 630/730 VGA frame buffer device, Version 1.6.11
sisfb: (C) 2001-2003 Thomas Winischhofer. All rights reserved.
vesafb: abort, cannot reserve video memory at 0x40000000
vesafb: framebuffer at 0x40000000, mapped to 0xe0833000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=4
vesafb: protected mode interface info at cab2:0008
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:5:5, shift=0:10:5:0
fb1: VESA VGA frame buffer device
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
PCI: Found IRQ 11 for device 00:01.6
PCI: Sharing IRQ 11 with 00:01.1
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
sis900.c: v1.08.06 9/24/2002
PCI: Found IRQ 11 for device 00:01.1
PCI: Sharing IRQ 11 with 00:01.6
eth0: ICS LAN PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0x3000, IRQ 11, 00:e0:06:09:14:7a.
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 409M
agpgart: Detected SiS 630 chipset
agpgart: AGP aperture is 64M @ 0x30000000
[drm] AGP 0.99 on SiS @ 0x30000000 64MB
[drm] Initialized sis 1.0.0 20010503 on minor 0
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 00:00.1
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS630 ATA 100 (1st gen) controller
ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hdaMA, hdbio
ide1: BM-DMA at 0x1108-0x110f, BIOS settings: hdcMA, hddio
hda: IC25N040ATCS04-0, ATA DISK drive
blk: queue c04104a0, I/O limit 4095Mb (mask 0xffffffff)
hdc: QSI DVD-ROM SDR-081, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78140160 sectors (40008 MB) w/1768KiB Cache, CHS=4864/255/63, UDMA(33)
hdc: attached ide-scsi driver.
Partition check:
hda: hda1 hda2 < hda5 hda6 >
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: QSI Model: DVD-ROM SDR-081 Rev: EXA7
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
ohci1394: $Rev: 1010 $ Ben Collins <bcollins@debian.org>
PCI: Assigned IRQ 5 for device 00:09.0
PCI: Sharing IRQ 5 with 00:0a.0
ohci1394_0: OHCI-1394 1.0 (PCI): IRQ=[5] MMIO=[34004000-340047ff] Max Packet=[2048]
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.10h, 23:32:46 Sep 29 2003
PCI: Found IRQ 5 for device 00:01.4
trident: SiS 7018 PCI Audio found at IO 0x3100, IRQ 5
ac97_codec: AC97 Audio codec, id: ICE17 (ICE1232)
ac97_codec: AC97 Modem codec, id: SIL34 (Silicon Laboratory Si3036)
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus]
PCI: Found IRQ 5 for device 00:0a.0
PCI: Sharing IRQ 5 with 00:09.0
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Yenta IRQ list 0098, PCI irq5
Socket status: 30000007
host/usb-uhci.c: $Revision: 1.275 $ time 23:33:18 Sep 29 2003
host/usb-uhci.c: High bandwidth mode enabled
host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Found IRQ 10 for device 00:01.2
PCI: Sharing IRQ 10 with 00:01.3
host/usb-ohci.c: USB OHCI at membase 0xe0b4e000, IRQ 10
host/usb-ohci.c: usb-00:01.2, Silicon Integrated Systems [SiS] USB 1.0 Controller
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Found IRQ 10 for device 00:01.3
PCI: Sharing IRQ 10 with 00:01.2
host/usb-ohci.c: USB OHCI at membase 0xe0b50000, IRQ 10
host/usb-ohci.c: usb-00:01.3, Silicon Integrated Systems [SiS] USB 1.0 Controller (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0000000000000025]
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 124k freed
hub.c: new USB device 00:01.2-1, assigned address 2
input: USB HID v1.10 Mouse [Logitech USB Mouse] on usb1:2.0
hub.c: new USB device 00:01.2-2, assigned address 3
[scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: DIGITAL FILM Rev: /W1.
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3

Adding Swap: 971892k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
eth0: Media Link On 100mbps full-duplex
eth0: Media Link On 100mbps full-duplex
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
usbdevfs: process 10257 (lsusb) did not claim interface 0 before use
--

Last edited by linen0ise; 10-03-2003 at 03:39 PM.
 
Old 10-03-2003, 03:29 PM   #7
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
I know this is going to sound silly but it work for me.
1. In MCC make shur that hardrake runs on boot.
2. Unplug the reader from the system. Making shure that the memory stick is in.
3. Shut down the system.
4. Plug in the reader and turn on the system.
System should detect you card reader and set it up.
5. Add this line to you fstab file: /dev/sda1 (whatever path you want) auto user,iocharset=iso8859-1,kudzu,codepage=850,noauto,umask=0,exec 0 0

That should do it.
 
Old 10-03-2003, 03:38 PM   #8
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
I'm using slackware
I don't have harddrake ='(
 
Old 10-03-2003, 03:40 PM   #9
ceedeedoos
Member
 
Registered: Aug 2003
Location: Antwerp, Belgium
Distribution: Slackware 10.0, Mandrake 10.1
Posts: 174

Rep: Reputation: 36
what I did when I was looking for the device name of my USB Pen Drive, is this

fdisk -l /dev/sd*
and it showed clearly it was attached on sda1
 
Old 10-03-2003, 04:01 PM   #10
linen0ise
Member
 
Registered: Jul 2003
Distribution: slack...nothing but slack
Posts: 52

Original Poster
Rep: Reputation: 15
thanks again, but
fdisk -l /dev/sd*
gives no output
fdisk -l /dev/sr*
nothing usable (only about my cdrom)
fdisk -l only shows information about those listed in /proc/partitions

Last edited by linen0ise; 10-03-2003 at 04:25 PM.
 
  


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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
USB Memory Stick coal-fire-ice Mandriva 11 12-09-2004 11:59 PM
USB Memory Stick Link_420 Linux - Hardware 2 11-19-2004 01:09 AM
USB Memory Stick freddie_leaf Slackware 15 11-09-2004 01:41 AM
USB Memory Stick jmdlcar Linux - Hardware 1 01-09-2004 07:03 PM

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

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