LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   USB stick not recognized (https://www.linuxquestions.org/questions/debian-26/usb-stick-not-recognized-857311/)

DeBeeNeeBus 01-19-2011 11:09 AM

USB stick not recognized
 
Debian GNU/Linux Kernel 2.4.33.7-rt13.2
My PC does not beep when I plug in the USB stick.
The stick is formated to vfat.
The mount point is established in the fstab.
The reply is:
"/dev/sda1 is not a valid block device"

catkin 01-19-2011 11:59 AM

What is the line for the USB stick in fstab? Where does the reply appear?

DeBeeNeeBus 01-19-2011 01:13 PM

/dev/sda1 /lascon/usb-stick auto defaults,users,noauto,uid=1000,gid=1000 00

the reply is displayed at the prompt in the xterm (logged in as su)

vikrang 01-24-2011 05:45 AM

I think /dev/sda1 may not be your USB drive at all..Use blkid to find out the correct device name

DeBeeNeeBus 01-24-2011 08:16 AM

lpc:/# blkid
/dev/hda1: UUID="d1a15138-5afb-11d8-bfba-b527c36169ca" TYPE="reiserfs"
/dev/hda2: TYPE="swap" UUID="d9f05668-5afb-11d8-93b7-6fe391a1becb"
/dev/hda3: UUID="d9f0d57a-5afb-11d8-ba82-91c923be6495" TYPE="reiserfs"

TobiSGD 01-24-2011 09:03 AM

Please post the output of
Code:

fdisk -l
with the stick attached to your system. You must be root to do that.
What messages do you get from
Code:

tail -f /var/log/messages
when you attach the stick?

DeBeeNeeBus 01-24-2011 10:34 AM

lpc:/# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 128 1028259+ 83 Linux
/dev/hda2 129 145 136552+ 82 Linux swap / Solaris
/dev/hda3 146 2695 20482875 83 Linux
lpc:/#tail -f /var/log/messages
tail: cannot open '/var/log/messages' for reading: No such file or directory
tail: no files remaining

TobiSGD 01-24-2011 10:41 AM

The fdisk output shows that your USB-key is not recognized as a storage device. We need the contents of your /var/log/messages, I wonder why it isn't there, it should be.
May be it helps to plugin the stick and type
Code:

dmesg
in your terminal (as root), and posting the last lines of the output (regarding USB) here.

DeBeeNeeBus 01-24-2011 11:02 AM

Please bear with me, the system in question is not online and I cannot export anything, no floppy or rw cdrom, (or usb).
the lines from the dmesg that start with usb:

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver hiddenv
usb.c: registered new driver hid

usb.c: registered new driver mouse usbmouse

usbmouse.c: v1.6:USB HID Boot Protocol mouse driver

TobiSGD 01-24-2011 12:25 PM

DO you have the USB-key attached to that machine? If so, test it on another machine. It seems to me that it is not working.

DeBeeNeeBus 01-24-2011 12:58 PM

I have 2 that I've tried so far. Each work fine with my other work pc (winXP).
Number 1 is a LEXAR 128MB formatted to FAT.
Number 2 is a ScanDisk Cruzer 4GB formatted to FAT32.

Each are detected in the bios.

It seems that there is something else that inhibits detection after the Debian OS is loaded.

TobiSGD 01-24-2011 01:08 PM

Quote:

Debian GNU/Linux Kernel 2.4.33.7-rt13.2
May it be that your kernel just doesn't support USB-storage?

DeBeeNeeBus 01-24-2011 01:20 PM

Is there somewhere that I can determine that and if so, can you recommend a kernel that does support the USB-storage?

TobiSGD 01-24-2011 01:34 PM

I don't know about the first question, but I wondered already, why you are using a 2.4-kernel in a realtime-version. What is this for a machine? What is it's purpose. And which Debian version are you running? To find out your Debian version you can try
Code:

cat /etc/issue

DeBeeNeeBus 01-24-2011 01:53 PM

I did check the 1st item, apparently - "USB is supported in all 2.4.x kernels" however, this issue should be addressed by my vendor.

The system that I'm using is for the temperature control of a laser. I would like to be able to retrieve stored temperature records (through the USB) without having to use another pc and a lan connection.

btw, the version is : Debian GNU/Linux 4.0 \n\l


All times are GMT -5. The time now is 05:58 AM.