PDA

View Full Version : USB stick (Canyon & SanDisk)



stealth.us
02-13-2006, 12:34 AM
Hello.

I am trying to connect my USB sticks on computer, but I have no luck. I have tried to run it with editing /etc/fstab (/dev/sda1 /mnt/usbstick vfat defaults, user, noauto, showexec, umask=022 0 0) but it did not want to mount.Here is info I get with kinfocenter:




Cruzer Mini

Manufacturer: SanDisk Corporation
Serial #: SNDK417DA405B1F00707


Class
0
((Defined at Interface level))
Subclass
0
Protocol
0
USB Version
2.00

Vendor ID
0x781
(SanDisk Corp.)
Product ID
0x5150
(SDCZ2 Cruzer Mini Flash Drive (thin))
Revision
0.10

Speed
480 Mbit/s
Channels
0
Max. Packet Size
0


And this is the info if I run: lsusb:


Bus 001 Device 019: ID 0781:5150 SanDisk Corp. SDCZ2 Cruzer Mini Flash Drive (thin)



Is there any way of fixing this problem?

Thank you very much!

Kowood
02-13-2006, 12:46 AM
I never use fstab. I usually just mount stuff manually. Try
# mount -t vfat /dev/sda1 /mnt/usbstick instead of messing with fstab and just typing mount /dev/sda1. Also, post any errors mount gives you.

stealth.us
02-13-2006, 12:48 AM
It gives me this error: mount: /dev/sda1 is not a valid block device.

I have also noticed that when I plug it in, light flashes 2times, something familiar happens with processor status light.

Kowood
02-13-2006, 12:49 AM
Then the usb stick is not at /dev/sda1.
#ls /dev/sd* and post it. While you're at it, post the entire output of lsusb as well.

stealth.us
02-13-2006, 12:52 AM
tim@tim_box:~$ ls /dev/sd*
/dev/sda /dev/sdb14 /dev/sdc6 /dev/sde10 /dev/sdf2 /dev/sdg8
/dev/sda1 /dev/sdb15 /dev/sdc7 /dev/sde11 /dev/sdf3 /dev/sdg9
/dev/sda10 /dev/sdb2 /dev/sdc8 /dev/sde12 /dev/sdf4 /dev/sdh
/dev/sda11 /dev/sdb3 /dev/sdc9 /dev/sde13 /dev/sdf5 /dev/sdh1
/dev/sda12 /dev/sdb4 /dev/sdd /dev/sde14 /dev/sdf6 /dev/sdh10
/dev/sda13 /dev/sdb5 /dev/sdd1 /dev/sde15 /dev/sdf7 /dev/sdh11
/dev/sda14 /dev/sdb6 /dev/sdd10 /dev/sde2 /dev/sdf8 /dev/sdh12
/dev/sda15 /dev/sdb7 /dev/sdd11 /dev/sde3 /dev/sdf9 /dev/sdh13
/dev/sda2 /dev/sdb8 /dev/sdd12 /dev/sde4 /dev/sdg /dev/sdh14
/dev/sda3 /dev/sdb9 /dev/sdd13 /dev/sde5 /dev/sdg1 /dev/sdh15
/dev/sda4 /dev/sdc /dev/sdd14 /dev/sde6 /dev/sdg10 /dev/sdh2
/dev/sda5 /dev/sdc1 /dev/sdd15 /dev/sde7 /dev/sdg11 /dev/sdh3
/dev/sda6 /dev/sdc10 /dev/sdd2 /dev/sde8 /dev/sdg12 /dev/sdh4
/dev/sda7 /dev/sdc11 /dev/sdd3 /dev/sde9 /dev/sdg13 /dev/sdh5
/dev/sda8 /dev/sdc12 /dev/sdd4 /dev/sdf /dev/sdg14 /dev/sdh6
/dev/sda9 /dev/sdc13 /dev/sdd5 /dev/sdf1 /dev/sdg15 /dev/sdh7
/dev/sdb /dev/sdc14 /dev/sdd6 /dev/sdf10 /dev/sdg2 /dev/sdh8
/dev/sdb1 /dev/sdc15 /dev/sdd7 /dev/sdf11 /dev/sdg3 /dev/sdh9
/dev/sdb10 /dev/sdc2 /dev/sdd8 /dev/sdf12 /dev/sdg4
/dev/sdb11 /dev/sdc3 /dev/sdd9 /dev/sdf13 /dev/sdg5
/dev/sdb12 /dev/sdc4 /dev/sde /dev/sdf14 /dev/sdg6
/dev/sdb13 /dev/sdc5 /dev/sde1 /dev/sdf15 /dev/sdg7

tim@tim_box:~$ lsusb -v

Bus 003 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x046d Logitech, Inc.
idProduct 0xc03e Premium Optical Wheel Mouse
bcdDevice 20.00
iManufacturer 1 Logitech
iProduct 2 USB-PS/2 Optical Mouse
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 50
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.11 uhci_hcd
iProduct 2 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
iSerial 1 0000:00:0b.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0x00
Hub Port Status:
Port 1: 0000.0303 lowspeed power enable connect
Port 2: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.11 uhci_hcd
iProduct 2 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
iSerial 1 0000:00:0b.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0x00
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Device Status: 0x0001
Self Powered

Bus 001 Device 011: ID 0781:5150 SanDisk Corp. SDCZ2 Cruzer Mini Flash Drive (thin)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0781 SanDisk Corp.
idProduct 0x5150 SDCZ2 Cruzer Mini Flash Drive (thin)
bcdDevice 0.10
iManufacturer 1 SanDisk Corporation
iProduct 2 Cruzer Mini
iSerial 3 SNDK417DA405B1F00707
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0600
(Bus Powered)

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.11 ehci_hcd
iProduct 2 VIA Technologies, Inc. USB 2.0
iSerial 1 0000:00:0b.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 4
wHubCharacteristic 0x0008
Ganged power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0x00
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0001.0000 C_CONNECT
Port 4: 0000.0503 highspeed power enable connect
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
tim@tim_box:~$

Kowood
02-13-2006, 01:23 AM
What I'm thinking is that it might not be at /dev/sda1. You might try sdb1, sdc1, etc.

stealth.us
02-13-2006, 09:05 AM
I have tried to mount /dev/sda1 -> /dev/sdh1 and I always get this reply: mount: /dev/sd(a->h)1 is not a valid block device
All others /dev/sdi1 -> say: mount: special device /dev/sdj1 does not exist

Here is info I got with tail - f /var/log/messages :
Feb 14 08:49:58 tim_box kernel: usb 1-4: new high speed USB device using ehci_hcd and address 7

nad
02-13-2006, 10:57 PM
Your messages should include a device that the filesystem has been assigned to (usually /dev/sda1, possibly /dev/uba1 depending on your version of knoppix and how you are running it) as well as the actual bus address, unless, the boot sector of the devices is not recognized or uninitialized (no partitions or filesystems).

Please post your exact mount command and any other particulars.

stealth.us
02-14-2006, 04:17 PM
nad: Thank you very much! It worked. I hade to mount /dev/uba1.

stealth.us
02-14-2006, 06:54 PM
nad: Thank you very much! It worked. I had to mount /dev/uba1. But this only works once. If if unplug the key and plug in again it stops working and when I try to cd /mnt/usbkljuc it say: Segmentation fault.

In /etc/fstab I add: dev/sda1 /mnt/usbkljuc vfat defaults, user, noauto, showexec, umask=022 0 0

nad
02-14-2006, 08:26 PM
Did you unmount the filesystem before removing it?

We still do not know how or what version of knoppix you are using. Version # please as well as live or installed.

The line in fstab is meaningless as it does not refer to your referenced device and no spaces are allowed in the _options_ section.

stealth.us
02-14-2006, 09:54 PM
I haven't unmount it before unplug. But if I want to unmount it first it says that device is busy (but only if I have opened it with Konqueror). I have installed the latest version of Knoppix with kernel version 2.6.11.

nad
02-15-2006, 12:50 AM
Well... You can't just remove part of a filesystem and not expect an error message.

All modern desktops should include the -l switch in their unmouint scripts. The -l switch detaches a filesystem and allows processes time to clean up before an error is sent.

Even so, you should be certain that no active processes are using the filesystem before you attempt an unmount. Close any open graphical file viewer and cd out of any terminal session that is in the filesystem, then issue the command; umount /mount/point -l .

iclubs
03-02-2006, 02:13 AM
hi i have just installed a live version of knoppix live which was spechally made with pre installed biology and genetics software on to my pc,, the live version has all the stuff working including usb date storage flash drive support as well as internet and otheres..

whe i managed to install, i lost the internet connection but iu found how to restore this , however i still know nothing of how to get the usb flash drive working, i plug one in and nothing happens?

i try to look at the drive by clicking on the icon and i get this message:-

Could not mount device.
The reported error was:
mount: only root can mount /dev/sda1 on /mnt/flash

any i deas?... i tryed the manual mountm but i could have got that wrong!.. i dont under sand why on the live edition it worked but after installation it stops working.. please could some body help with making by flash drive to work.

i have looked round the site i thin kthat this data may be help full

root@box:/home/user# sudo cat /etc/fstab
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda1 / reiserfs defaults 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,users,noexec,noauto 0 0
/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0
root@box:/home/user#

oot@box:/home/user# sudo fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 1044 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 662 5317483+ 83 Linux
/dev/hda2 663 917 2048287+ 82 Linux swap
root@box:/home/user#

nad
03-02-2006, 07:39 AM
Try:

/dev/sda1 /mnt/flash vfat noauto,users,exec,umask=000 0 0

instead of your line:

/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0

iclubs
03-04-2006, 09:11 PM
the same warnnig biox came up:-

Could not mount device.
The reported error was:
mount: mount point /mnt/flash does not exist..

help

OErjan
03-04-2006, 10:26 PM
do (in a console)
sudo mkdir /mnt/flash
then
sudo mount /dev/sda1 /mnt/flash vfat noauto,users,exec,umask=000 0 0
you need the directory /mnt/flash first.

iclubs
03-05-2006, 04:18 AM
i did as you asked, (thanks for you help by the way), i made the directory..

then i entered your mount command and i got this reply telling me how to use the mount command, but since i have all ready put the command in fstab, i dint think i need it, so io tryed to askcess the usb and i got this new error message come up:---


Could not mount device.
The reported error was:
mount: /dev/sda1 is not a valid block device

help!!

I simply dont understand why a distro that works as a live, when put onto the hard drive now magically looses things?..

Im willing to try any thing at this stage,, so please kepp the surgestions comming...

thanks every body for your time and help, its appreciated..