Click to See Complete Forum and Search --> : How to set up Backpack CD-RW using USB?


Calle
05-08-2002, 09:25 PM
Hi there.

I have a Toshiba 2610CDT running a dual-boot with Win2K and Mandrake
8.2. My problem is that I cannot seem to be able to get the external
Backpack CD-RW to work under Mandrake. I tried the LPT interface, but
could not figure that out (even after getting help from a Google
list). Then I have been trying to get the USB interface to work, but
am not sure if I do it correctly. Some source suggested the following:

(plug drive in)
modprobe usb-storage
mount /dev/scd0 /mnt/cdrom
(mounts a data CD in the drive)

When I do according to the above, then the mount command complained
that there is no /dev/scd0, which is true.

The command 'mount' gives me the following line related to the usb:
none on /proc/bus/usb type usbdevfs (rw,devmode=0664,devgid=43)

I do have an internal CD-R also, which is mounted as follows:
/mnt/cdrom on /mnt/cdrom .....

Can anyone suggest what I should do? What should I substitute for the
missing /scd0?

Thanks for help.
Carl

mdwatts
05-09-2002, 05:37 AM
I'm not that knowledgeable on usb devices though I do know www.linux-usb.org (http://www.linux-usb.org) to be a good reference site for Linux and usb.

Do you have scsi emulation enabled?

lsmod should show scsi_mod and sr_mod among others.

Again since I know very little about usb especially usb cdrw's, I really don't know if scd0 would be correct for a usb device.

Have you tried Google searching for i.e. backpack usb as you should be able to find something that list the requirements to get it working. The Linux usb site should help also.

Calle
05-09-2002, 07:04 AM
Thanks for your reply.

I am aware of the linux-usb site, but unfortunately it seems that the country I am in does not allow me to connect to that site! I have tried a week now, and every time I get this "cannot find the server or DNS error". Other sites are ok, but this one is out of bonds for me. :-( Everyone is telling me about this site, but what can I do?

Well, I will contine searching, or go back to trying the paralell port instead.

Thanks,
Carl

stingray72
05-09-2002, 08:56 AM
If you do a

cdrecord -scanbus

it should show your usb devices if everything is working well.

I'm going to copy the parts of the USB site that might help you since you can't look at it


Basic USB Configuration

You need to configure USB into your kernel. Use of make menuconfig is recommended. Under USB support, you need to select Support for USB. You also need to select either UHCI (Intel PIIX4, VIA, ...) support, UHCI Alternate Driver (JE) support or OHCI-HCD (Compaq, iMacs, OPTi, SiS, ALi, ...) support. Which one you select is dependent on what kind of motherboard or adapter you have. Intel and Via motherboards, and Via-based adapters are UHCI, and you can use either of the two UHCI drivers - there seems to be little user visible difference between them. Ali and SiS chipsets, Compaq and NEC motherboards, iMacs and any adapter using Opti chips (just about all of them) are OHCI, and you should use OHCI-HCD. If you do not know what kind of controller to choose, check your motherboard documentation. You can also look at /proc/pci for a hint - if the USB entry is of the form 0xHHHH, where HHHH are hex digits (e.g. something like I/O at 0xe400), then it is UHCI. If it is of the form 32 bit memory at 0xHH000000, where HH are hex digits (e.g. something like 32 bit memory at 0xee000000), then it is OHCI. Failing that, just try both.

Always build in the Preliminary USB device filesystem. Leaving this out will make resolving problems almost impossible, and is essential if you need to check that your kernel is configured correctly, and your USB devices are being recognised correctly.

You also need to select whichever devices you want to use, for example USB Human Interface Device (HID) support for a USB keyboard, mouse, joystick, tablet or gamepad, USB Scanner support for certain scanners, USB Audio support for USB speakers, USB Modem (CDC ACM) support for a POTS or ISDN modem, USB Printer support for a USB printer, USB Serial Converter support (with the appropriate subordinate options) for some serial port type devices, USB CPiA Camera support for cameras based on the Vision CPiA chipset, USB IBM (Xirlink) C-it Camera support for camera based on the IBM camera chipset, USB OV511 Camera support for cameras based on OmniVision's OV511 chipset, USB Kodak DC-2xx Camera support for downloading images from Kodak's DC-200 series cameras, USB Mass Storage support for mass storage devices, USS720 parport driver for certain parallel port adapters, DABUSB driver for an experimental Digital Audio Broadcast receiver and PLUSB Prolific USB-Network driver for certain USB to USB type connections. You should be able to use modules, kernel only, or split modules and kernel code.

USB hubs are automatically supported. Some devices may stop and start working between kernel versions. Remember that you are using experimental code. Devices not listed in this document are not working at the time of writing, although developers are always welcome to contribute to the current codebase.

Rebuild the kernel and the modules (if you configured to build as modules), and install the new kernel and the new modules. Reboot the system. If you need instruction on how to do this, refer to the Linux Kernel HOWTO.

If you are using modules, you need to load the following modules:


usbcore.o

usb-uhci.o, uhci.o or usb-ohci.o

and any driver modules, such as scanner.o or printer.o.

Inspect the kernel logs. If there isn't anything that could be USB related, likely causes are use of the wrong driver (UHCI when you needed OHCI or OHCI when you needed UHCI), not physically installing the hardware, a BIOS configuration that disables USB or stuffing up the configuration or installation of the kernel.



I think you're going to need the USB mass storage so I'll include that section also.


Mass Storage Devices
The mass storage device driver can potentially be used with a wide a wide range of USB devices, not all of which would normally be considered to be mass storage. This is because the driver is really an interface between the USB stack and the SCSI layer. Despite this, the instructions in this section are oriented around devices like USB floppy drives, Zip drives, LS120 drives and USB CDROMs.

Since the mass storage driver presents the USB device as a SCSI device, you need to turn on SCSI support, which is under SCSI support in the configuration script. You should also turn on subordinate options as appropriate to your mass storage device - usually one or more of SCSI disk support, SCSI tape support, SCSI CD-ROM support and SCSI generic support.

After you have compiled the kernel and rebooted (or added the relevant modules, which is usb-storage.o), you should check /proc/scsi/scsi. Information about your device should be listed.

You can now mount your device. The exact syntax depends on the device type. The best way is to make suitable entries in /etc/fstab. A suitable entry for a floppy disk would be: /dev/sda /mnt/usbfd auto noauto,user 0 0



A suitable entry for a Zip disk would be: /dev/sda4 /mnt/usbzip vfat noauto,user 0 0



A suitable entry for a CDROM disk would be: /dev/scd0 /mnt/usbcdrom iso9660 ro,noauto,user 0 0



A suitable entry for a hard disk with a single partition would be: /dev/sda1 /mnt/usbhd ext2 defaults 1 2



Note that the above entries assume you have no other SCSI devices. If you do have other devices, then the USB disk may not be /dev/sda, but could instead be /dev/sdb, /dev/sdc or some other device. You would then need to substitute the right device entry for /dev/sda or /dev/scd0 in the entries above.

Having created the entr[y/ies] in /etc/fstab, you need to create matching mount point[s] in the actual filesystem. So if you made an entry as shown above for the USB floppy disk, then the mount point would be made (as root) by: mkdir /mnt/usbfd



You should now be able to mount your floppy disk with a command like: mount /mnt/usbfd

or like: mount /dev/sda





Maybe this will help you out.

mdwatts
05-09-2002, 05:45 PM
Very nice of you stingray72.

I'm sure Calle will be most appreciative of your extra effort.

Calle
05-10-2002, 05:12 AM
Originally posted by stingray72:
<STRONG>If you do a

cdrecord -scanbus

it should show your usb devices if everything is working well.

I'm going to copy the parts of the USB site that might help you since you can't look at it

Maybe this will help you out.</STRONG>


Thank you so much for your help. Before I try that which was on the long "Mass storage Devices" section, I need to ask one more question:

How do I know what to use as entry for my CD-RW when mounting it? I mean, in the USB-Help file they mention floppies, Zip disks and CDROM disk, but not a CD-RW. Or is that info somewhere on mys system?

For the CDROM it suggests:
/dev/scd0 /mnt/usbcdrom iso9960 ro, noauto, user 0 0
But surely a CD-RW would need to be read-write?

Thanks,
Calle

mdwatts
05-10-2002, 05:33 AM
You still mount the cdrw as ro since you will just be reading from the cd after mounting.

It's the cd recording software that takes care of mounting the cdrw as rw to it can write to a cdr/cdrw.

Calle
05-10-2002, 05:40 AM
Hi, and thanks.

This is what I get vis-a-vis the USB when I type 'mount':

none on /proc/bus/usb type usbdevfs (rw,devmode=0664,devgid=43)

Does that change anything about how I set it up?

Carl

stingray72
05-10-2002, 06:34 AM
Calle:

After I got everything compiled into my kernel (side note: this is for a digital camera, not a CDRW) all I had to do was


mount -t vfat /dev/sdb1 /mnt/camera


When that worked, I created an fstab entry like the USB docs suggested.

FWIW, when I try usbview it tells me there is nothing in /proc/bus/usb/devices. I don't know why that is though.

I guess when you try to mount a CD you would do the same thing

mount -t iso9660 /dev/sdxx /mnt/cdrom

where xx is which usb ports you are using. For me it's b1 or b2.

Good luck.

-stingray72

[ 10 May 2002: Message edited by: stingray72 ]

stingray72
05-10-2002, 06:38 AM
Oh yeah, my cdrecord -scanbus looks like this:


cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'IOMEGA ' 'ZIP 100 ' '13.A' Removable Disk
0,1,0 1) 'HP ' 'CD-Writer+ 9500 ' '1.0e' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) '' '' '' Removable not present Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *


My camera is not plugged in, but if you have everything compiled into the kernel properly you should have the scsibus1 section.

Calle
05-12-2002, 09:59 PM
Thanks for your help.

I read the stuff from the HOW-TO-USB, but unfortunately it seems that it cannot be applied to my system, or I do not understand enough of how to set it up. :-(

Well, I looked at the Microsystems home page, and they say that the support for using a USB interface is "under development".

But the support for using a Paralel port should be included with the latest Linux'es. So I will just try to go back to trying to get the Paralell port interface to work then.
Sorry to have bothered you with this.

Carl

mdwatts
05-13-2002, 05:51 AM
Originally posted by Calle:
<STRONG>
Sorry to have bothered you with this.

Carl</STRONG>

Not a bother at all. We all try to help IF we possibly can. Unfortunately not one of us knows enough about everything in Linux to be able to answer to certain questions.

Did you try Google searches ( www.google.com/linux (http://www.google.com/linux) ) for the Backpack USB? I'm sure there would something to help to tell what is required to get it working.

Calle
05-13-2002, 06:03 AM
Dear WattsMD.

Thanks for your encouraging words.

I got help for setting the Backpack up using the Paralell Port (I had tried that before, but gave up). Now this time I got some more detailed help, and got it working.
I think the USB should work also, but the Backpack home site says that the support for the USB is being developed. I think it would be more conveinent to use the USB, but I think I will be happy with the LPT as well.

Carl

mdwatts
05-13-2002, 04:45 PM
Is that document on the Backpack site up to date?

The 2.4 kernel has quite good usb support.

I was thinking a Google search might find just what you need to get the Backpack to work via usb.

Calle
05-13-2002, 08:41 PM
I was thinking the same thing, that the Backpack site document is not up-to-date. But there is no email addresses/user forum on that site, where I could check. And I do not want to call from overseas to check. :-(

Anyway, if the Paralell port works, then that is good enough for me.

Thanks for your help and concern,
Have a good day!
Carl

mdwatts
05-14-2002, 05:47 AM
Your welcome. Glad we could help.