Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount: /dev/sg0 is not a block device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Wed Mar 02, 2005 8:34 pm    Post subject: mount: /dev/sg0 is not a block device Reply with quote

I'm trying to mount my camera but I get the following error:
Code:
mount -t vfat /dev/sg0 /mnt/camera/
mount: /dev/sg0 is not a block device

I think I compiled all the needed options into my kernel:
CONFIG_USB_STORAGE
CONFIG_CHR_DEV_SG

What could be the problem?
Back to top
View user's profile Send private message
wdreinhart
Guru
Guru


Joined: 11 Jun 2003
Posts: 569
Location: 4QFJ12345678

PostPosted: Wed Mar 02, 2005 9:20 pm    Post subject: Re: mount: /dev/sg0 is not a block device Reply with quote

bassvandijk wrote:
What could be the problem?


I'm going to go way out on a limb here and guess that sg0 isn't a block device. :D

Sorry, I couldn't resist... Anyway, /dev/sg* are generic scsi devices. USB-storage stuff (like your camera), should show up as a scsi disk device, /dev/sd*. Try mounting /dev/sda (or sda1) instead of sg0.
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Wed Mar 02, 2005 9:44 pm    Post subject: Re: mount: /dev/sg0 is not a block device Reply with quote

wdreinhart wrote:
...Try mounting /dev/sda (or sda1) instead of sg0.

I dont't have /dev/sda*

When I hook my camera to my laptop than dmesg | tail looks like this:
Code:
...
usb 4-1: new full speed USB device using ohci_hcd and address 2
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
  Vendor: MEDION__  Model: DigitalCamera511  Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Wed Mar 02, 2005 9:48 pm    Post subject: Re: mount: /dev/sg0 is not a block device Reply with quote

wdreinhart wrote:
...USB-storage stuff (like your camera), should show up as a scsi disk device, /dev/sd*...

Maybe I have to compile in SCSI disk support. Compiling kernel right now...
Back to top
View user's profile Send private message
bassvandijk
Guru
Guru


Joined: 13 Sep 2002
Posts: 306
Location: Haps, Netherlands

PostPosted: Wed Mar 02, 2005 10:06 pm    Post subject: Reply with quote

Great, now it works!!! Thanks wdreinhart
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum