Re: External USB hard drive and cameras with Gentoo anc wrote:
> Using Gentoo 2004.2, kernel 2.4.26. I have modules usbcore,
> usb-storage, sd_mod, sg (if required) compiled as mnodules.
> First problem is I cannot access my digital camera via the
> USB port which will be accessed as /dev/sda1.
>
> Second problem is my old hard drive is connected using a
> USB to IDE connector, and I am trying to access partition 7
> (reiserfs /dev/sda7).
>
> I have created mount point of /camera and /sda7, extract
> of /etc/fstab:
>
> /dev/sda1 /camera auto noauto,users,rw 0 0
> /dev/sda7 /sda7 reiserfs noauto,users,rw 0 0
>
This is of course not right, since your harddisc will be device "sda" (as it
is connected first) and your camera will become device "sdb". But your
camera and you disc can not share the same device (sda).
>
> I get the following error when trying to mount my external hard drive:
>
> anc@orac anc $ mount /sda7
> mount: /dev/sda7 is not a valid block device
>
That means that there is no partition number seven available on /dev/sda or
it is a symbolic link and points to an invalid node.
>
> My question is what do I create under /dev/scsi and do I still use mknod
> to create the new devices?
You don't need to.
USB (and hotplug) take care of this on their own.
Your entries in /etc/fstab should therefore look like this:
/dev/sdb1 /camera auto noauto,users,rw 0 0
/dev/sda7 /sda7 reiserfs noauto,users,rw 0 0
If this doesn't work, you can try and look your up your devices under
/dev/scsi/. You can also use fdisk to show the partitions:
#> fdisk -l /dev/sda
and
#> fdisk -l /dev/sdb
or their corresponding nodes under /dev/scsi/, but I assume, you don't need
them. If that should turn up, that "sdb" is the device with seven partitions
you need to alter the corresponding line(s) in /etc/fstab.
HTH, regards
Felix |