LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-30-2005, 05:29 PM   #1
nwhite
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 10.0, 2.6.9 Custom Kernel
Posts: 23

Rep: Reputation: 15
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.

Last edited by nwhite; 03-30-2005 at 05:35 PM.
 
Old 03-30-2005, 05:48 PM   #2
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
Do you have module "sd_mod" loaded? This is necessary for SCSI (and USB) hard drives.
 
Old 03-30-2005, 06:44 PM   #3
nwhite
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 10.0, 2.6.9 Custom Kernel
Posts: 23

Original Poster
Rep: Reputation: 15
Hey, that worked perfectly.

I love you!

Thank you so much.
 
Old 04-02-2005, 05:15 PM   #4
mrossm
LQ Newbie
 
Registered: Mar 2005
Location: Houston TX
Distribution: Mandrake 10.0
Posts: 10

Rep: Reputation: 0
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
 
Old 04-02-2005, 11:13 PM   #5
the_clown
Member
 
Registered: Mar 2005
Posts: 33

Rep: Reputation: 15
As root (su -)

Code:
modprobe sd_mod
 
Old 04-03-2005, 02:01 PM   #6
mrossm
LQ Newbie
 
Registered: Mar 2005
Location: Houston TX
Distribution: Mandrake 10.0
Posts: 10

Rep: Reputation: 0
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?
 
Old 04-05-2005, 10:52 AM   #7
the_clown
Member
 
Registered: Mar 2005
Posts: 33

Rep: Reputation: 15
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).
 
Old 04-05-2005, 06:32 PM   #8
mrossm
LQ Newbie
 
Registered: Mar 2005
Location: Houston TX
Distribution: Mandrake 10.0
Posts: 10

Rep: Reputation: 0
dmesg shows nothing about sd* ... I read it line by line the whole way down and nothing.
 
Old 04-10-2005, 10:14 AM   #9
Charlie_Chaplin
LQ Newbie
 
Registered: Apr 2005
Location: South-Africa
Distribution: mandrake 10.1
Posts: 7

Rep: Reputation: 0
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 ?????

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
 
Old 04-10-2005, 10:52 AM   #10
the_clown
Member
 
Registered: Mar 2005
Posts: 33

Rep: Reputation: 15
If it is a boot virus, just re-write your MBR, that should fix it.
 
Old 04-11-2005, 09:15 AM   #11
Charlie_Chaplin
LQ Newbie
 
Registered: Apr 2005
Location: South-Africa
Distribution: mandrake 10.1
Posts: 7

Rep: Reputation: 0
by re-writing u mean format
 
Old 04-22-2005, 12:21 PM   #12
Aryuna
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 04-23-2005, 07:33 AM   #13
Charlie_Chaplin
LQ Newbie
 
Registered: Apr 2005
Location: South-Africa
Distribution: mandrake 10.1
Posts: 7

Rep: Reputation: 0
Thanx

from know on all hail yoda

Thnx alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iPod, Camera, USB Storage Devices-Help Stat! electronblue019 Linux - Distributions 1 06-08-2005 02:17 AM
USB storage/camera device fstab help munkie_poo Linux - Hardware 1 03-15-2005 10:22 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
USB mass storage (camera) vexer Linux - General 4 05-24-2004 11:16 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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