[mythtv] scsi, firewire drive and usb drive

Joseph A. Caputo jcaputo1 at comcast.net
Wed Jul 14 16:50:30 EDT 2004


On Wednesday 14 July 2004 15:57, Xavier Hervy wrote:
> Joseph A. Caputo wrote:
> > On Wednesday 14 July 2004 15:00, Xavier Hervy wrote:
> >>If someone have an scsi drive or cdrom and a removable drive on
> >>firewire or on usb, I would know :
> >>In which /dev/sd? are scsi drive or cdrom
> >>In which /dev/sd? are  removable drive.
> >>For firewire user a file are create when you plug your firewire
> >> drive in /proc/scsi/sbp2/* can i know the name (it should be a
> >> number) For usb user, a file are create when you plug your usb
> >> drive in /proc/scsi/usb-storage-?/* can i know the name too
> >>
> >>I would like implement mediamonitor for firewire/usb drive. I have
> >>notice that the file create when you plug the drive give the
> >> /dev/sd? That mean if the file is "0", device is /dev/sda, if the
> >> file is "1", device is /dev/sdb. But i don't know if it's true
> >> even if you have cdrom / drive on scsi
> >>Xavier
> >
> > I have an external firewire drive, plus a CD burner using ide-scsi
> > emulation.  The CD burner is /dev/scd0 (really IDE/ATAPI on
> > /dev/hdc). The FireWire drive is /dev/sda.  Sorry, I don't have any
> > 'real' SCSI drives.  Hope this helps...
> >
> > 'ls /proc/scsi/sbp_2' gives me '0'.
> > 'ls /proc/scsi/ide-scsi' gives me '1'.
>
> Thx for your help. I don't think about ide-scsi emulation.
> Can you tell if you plug before nooting your computer ? if so, try
> the same thing without plug the external firewire drive. boot your
> computer and then plug the firewire.
> Did you have the same result ?

Yes, my drive is plugged in before booting.

I *think* that the FireWire drive gets /dev/sda even if I plug it in 
after booting.  I will try to remember to test that when I get home.

-JAC


More information about the mythtv-dev mailing list