LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB-Storage Camera recognized but no /dev/sda (https://www.linuxquestions.org/questions/linux-hardware-18/usb-storage-camera-recognized-but-no-dev-sda-307969/)

nwhite 03-30-2005 05:29 PM

USB-Storage Camera recognized but no /dev/sda
 
Hi,

I recently aquired a battered little usb-storage camera going by the name of Afga EasyPixSG. I was thrilled to find http://article.gmane.org/gmane.linux...a50x.devel/762 which informed me that it would work on my linux system as usb-storage and a webcam :)

I have USB-Storage support built into my 2.6.9 kernel, so when I plugged the camera in dmesg gave:
usb 2-2: new full speed USB device using address 4
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: USB Model: Device Rev: 3.00
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 4

However, trying to mount the device using "mount -t auto /dev/sda1 /media/camera" gives the response:
mount: /dev/sda1 is not a valid block device

The same is true of all other sd devices, indeed "fdisk -l /dev/sd*" returns no filesystems at all.

I saw on another post that following the " Type: Direct-Access ANSI SCSI revision: 02" line dmesg gives there should be another line similar to:
SCSI device sda: 1983495 512-byte hdwr sectors (1016 MB)
which I am evidently missing.

I'm using Slackware 10.0

Any ideas as to why the usb-storage doesn't seem to be binding to anywhere?

I am still relatively new to this world, so it's quite possible I've missed something obvious.

Many thanks.

jspenguin 03-30-2005 05:48 PM

Do you have module "sd_mod" loaded? This is necessary for SCSI (and USB) hard drives.

nwhite 03-30-2005 06:44 PM

Hey, that worked perfectly.

I love you!

Thank you so much.

mrossm 04-02-2005 05:15 PM

Hello, I have a problem similar to this. I'm new to Linux; how would I go about loading the module sd_mod ? I'm runing Mandrake 10.1.

Michael

the_clown 04-02-2005 11:13 PM

As root (su -)

Code:

modprobe sd_mod

mrossm 04-03-2005 02:01 PM

Ok, I've followed a mixture of everyone's advice. Now I have an icon on my desktop but when I click it, I get this error:

[mntent]: warning: no final newline at the end of /etc/fstab
mount: special device /dev/sda1 does not exist
Please make sure disk is entered correctly.

I went to the /dev directory and tried to make a new device, but it wants root privileges. How do I go about switching to root?

the_clown 04-05-2005 10:52 AM

What it wants is for you to open up /etc/fstab, and put a blank line at the bottom of the document. That will fix the 'no final newline..' problem. Now as for /dev/sda1 not being valid, you can't just go and create a new device and call it /dev/sda1, that won't work. When you plug your camera in, type in 'dmesg' (in a terminal) and somewhere on there should be something listed as an external device, usb, etc, and it will say /dev/sd*1 (could range from a-g, or farther, depending on your usb ports).

mrossm 04-05-2005 06:32 PM

dmesg shows nothing about sd* ... I read it line by line the whole way down and nothing.

Charlie_Chaplin 04-10-2005 10:14 AM

OK
 
i have followed all these steps u ppl gave but here is another one

when i mount the camera using

mkdir camera
mount -t fvat /dev/sda0/camera

ok i have done this the first time and it worked then i got a boot virus formated and the virus is still on ?????:scratch:

but it doesn't bother me that much only that i have 10min to use the pc then i have to restart (because of virus)

but now i use the same code to mount the camera and my pc freezez can it be of the virus or something and when i am lucky the pc doesn't freez the icon doesn't show

if some one understand what i have typed and can help me it would be cool

thnx

The Charlie_Chaplin:confused:

the_clown 04-10-2005 10:52 AM

If it is a boot virus, just re-write your MBR, that should fix it.

Charlie_Chaplin 04-11-2005 09:15 AM

by re-writing u mean format

Aryuna 04-22-2005 12:21 PM

With format you will loose all data on your hard drive or partition. You can rewrite the master boot record, the first sector of your hard drive, without formating the rest of your hd.

If I'm not mistaken you should be able to rewrite and restore your mbr with your distro installation-cd. Boot from cd and in the opening screen select “more options” or something similar. Then select something like “rescue”. There should be an option like “restore bootloader”. Assuming your bootloader is located in the mbr this will overwrite everything in the mbr, including your virus.

Good luck

Charlie_Chaplin 04-23-2005 07:33 AM

Thanx
 
:jawa: from know on all hail yoda

Thnx alot


All times are GMT -5. The time now is 03:33 AM.