PDA

View Full Version : USB External cd-rw recognized only using knoppix cd



bilzer
06-02-2003, 03:03 AM
:?: Hi-Val external usb-2 cd-rw atapi (made by Acer) is recognized when I run from the knoppix cd if the cd-rw is turned on at startup. An icon appears on the desktop, and the kde control center usb shows it's there, and I can read a cd which is in the drive.

I have installed knoppix and tried to get it to recognize the cd-rw using the same /etc/fstab setup which appears when running knoppix cd, and several other configurations of /etc/fstab and /mnt.

The cd-rw does not appear in the usb part of the kde control center. USB ports are recognized.
I would like to be able to access the cd-rw from a desktop icon, read and burn cd's.
Any help appreciated.

aay
06-02-2003, 03:38 AM
I suspect that your writer was detected w/o any problems, but just to make sure please supply the following information.

Give the output of: "cdrecord --scanbus"

We can see if things are configured correctly if you post the contents of /etc/fstab

bilzer
06-02-2003, 03:56 AM
Thanks for the reply.

Cdrecord 1.11a34 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) 'TOSHIBA ' 'CD-ROM XM-6202BD' '1119' Removable CD-ROM
0,1,0 1) *
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) *

(I have no /mnt settings in this configuration - tried with/without -tried iso9660 too)
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hdc3 / ext2 defaults,errors=remount-ro 0 1
/dev/hdc2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 auto user,noauto,exec,ro 0 0
none /proc/bus/usb/ usbdevfs defaults 0 0
# partitions found by Knoppix
/dev/hdc1 /mnt/hdc1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
/dev/hdc3 /mnt/hdc3 ext2 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
/dev/hda5 /mnt/hda5 ext2 noauto,users,exec 0 0

bilzer
06-02-2003, 04:00 AM
One more thing - I added "none /proc.....etc as you see in /etc/fstab and the cd-rw shows under scsi devices in kde control center, but not under the usb devices, which just show the hubs

paradocs
06-02-2003, 04:12 AM
Hello all,
I agree with aay ;knoppix is great at detection.
My usb 2 CDRW (kanguru) is recognised.

At times my KDE desk top icons for
dirves need a little help.

Right click on the screen --> Create New
--> CD/DVD-ROM Device --> Device
--> click down arrow and pick or
if not listed try /dev/cdrom1
--> OK

Another trick may be to unplug it, boot,
and then pulg it in and during autodectct
the icon may be created. Sorry I have not
tested this.

A CDRW is a great addition to a KNOPPIX box.
It may be used to backup you persistent home.
I have suggeste a script for this in Tips and Tricks.

Best Wishes
paradocs

aay
06-02-2003, 05:00 AM
Try this.

Change the following line in /etc/fstab

/dev/cdrom1 /cdrom1 auto user,noauto,exec,ro 0 0

to

/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0

You should then be able do to a "mount /cdrom" and "cd /cdrom", and "ls" to see the contents of your cd.

You should then be able to follow the advice of paradocs regarding making a icon on the desktop.

bilzer
06-02-2003, 03:18 PM
Changed /etc/fstab to:
/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
mount /cdrom showed "no medium found:
Changed /etc/fstab to use /cdrom1 instaed of /cdrom
mount /cdrom1 showed "no cdrom1 in fstab......"

Also - when running from knoppix disk, the device appears in Control Center>Information>USB Devices.( and also in SCSI list)
When running from installed version, it appears only in the SCSI list.
The USB devices only show the root stuff.
I'm wondering if there isnt required modprobe or something to activate the USB?

aay
06-02-2003, 09:32 PM
I'm sorry I made a stupid mistake.

I told you to do this:


"/dev/cdrom1 /cdrom1 auto user,noauto,exec,ro 0 0

to

/dev/scd1 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0"

but I should have told you to change it to:

/dev/scd1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0

The command you should use to mount would then be mount /cdrom1.

The change is from /cdrom to /cdrom1

Sorry about the confusion. I should have read my post a little more carefully.

Also make sure you've got a cd in the drive before you try and mount it.

Hopefully it should work this time.

bilzer
06-02-2003, 11:51 PM
Sorry to say -
/dev/scd1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
doesnt get it either. It can't find mount for cdrom1.
Adding /mnt/cdrom1 doesnt work either.

If you have usb2, are your devices showing up in Control Center>Information>USB?
As mentioned earlier, mine only show when running from knoppix cd.
Also, USB hotplug shows up when running from knoppix cd, no mention of it with dmesg from the install.

Stephen
06-03-2003, 01:19 AM
Sorry to say -
/dev/scd1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
doesnt get it either. It can't find mount for cdrom1.
Adding /mnt/cdrom1 doesnt work either.

If you have usb2, are your devices showing up in Control Center>Information>USB?
As mentioned earlier, mine only show when running from knoppix cd.
Also, USB hotplug shows up when running from knoppix cd, no mention of it with dmesg from the install.

Does the mount point /cdrom1 actually exist on your system? eg have you done mkdir /cdrom1. Also have you checked lsmod on the install to see if the module for usb2 is being loaded at boot ( I believe it's ehci)?

bilzer
06-03-2003, 01:38 AM
Yes, I have tried /mnt/cdrom1

# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
rtc
apm power_off=1
usb-uhci
usb-storage - I ADDED THIS to try to solve
hid - I ADDED THIS to try to solve
serial
sb
agpgart
nls_cp437
nls_iso8859-1
ntfs
ext3
autofs4

lsmod listing:
Module Size Used by Not tainted
lvm-mod 46368 0 (autoclean)
ppp_deflate 2904 0 (autoclean)
zlib_deflate 17368 0 (autoclean) [ppp_deflate]
bsd_comp 3928 0 (autoclean)
ppp_async 7168 1 (autoclean)
ppp_generic 22784 3 (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc 4496 1 (autoclean) [ppp_generic]
parport_pc 24808 1 (autoclean)
lp 7524 0 (autoclean)
parport 22528 1 (autoclean) [parport_pc lp]
ehci-hcd 14696 0 (unused)
autofs4 8724 0 (unused)
ext3 62944 0 (unused)
jbd 45524 0 [ext3]
ntfs 50816 0 (unused)
nls_iso8859-1 2844 0 (unused)
nls_cp437 4348 0 (unused)
agpgart 34752 0 (unused)
sb 7764 0 (unused)
sb_lib 33326 0 [sb]
uart401 6020 0 [sb_lib]
sound 54572 0 [sb_lib uart401]
soundcore 3396 5 [sb_lib sound]
serial 51908 2
hid 19204 0 (unused)
input 3200 0 [hid]
usb-storage 54492 0 (unused)
usb-uhci 21836 0 (unused)
usbcore 57120 1 [ehci-hcd hid usb-storage usb-uhci]
apm 9644 1
rtc 6908 0

Stephen
06-03-2003, 02:09 AM
Yes, I have tried /mnt/cdrom1


That's not the question I asked does the device exist? If you ls /cdrom1 or ls /mnt/cdrom1 and it tells you it doesn't exist then you will not be able to mount a non-existent directory (mount point). Also you don't need the HID it is for keyboards,mice, etc.

bilzer
06-03-2003, 03:12 AM
To be more precise, I created /mnt/cdrom1
If I enter mount /cdrom1, or if I try the icon I created, I am told the mount point does not exist, yet it is listed if I ls /mnt

aay
06-03-2003, 05:16 AM
Ok, assuming that your fstab is configured the way previously said, then just do "mkdir /cdrom1" (as root).

Then do "mount /cdrom1".

It looks as if your problem was that /cdrom1 was not actually created after the hdinstall so creating the directory should fix it...let's hope.

bilzer
06-03-2003, 04:40 PM
Here is the list of mounts from ls /mnt
cdrom1 hda1 hda5 hdc1hdc3 zip
All but cdrom1 work ok
When I do mount /cdrom1 I get message mount: mount point cdrom1 does not exist

When I turn on the cd-rw (with cd inserted) the following is added in the dmesg listing:
hub.c: new USB device 00:0a.2-1, assigned address 2
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: ATAPI Model: CD-R/RW 40X12 Rev: 3.CB
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0
sr1: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usb.c: USB disconnect on device 00:0a.2-1 address 2
hub.c: new USB device 00:0a.2-1, assigned address 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb.c: USB disconnect on device 00:0a.2-1 address 3
hub.c: new USB device 00:0a.2-1, assigned address 4
usb.c: USB device not responding, giving up (error=-71)
hub.c: new USB device 00:0a.2-1, assigned address 5
usb.c: USB device not responding, giving up (error=-71)

aay
06-03-2003, 05:02 PM
That's right, but did you do a "mkdir /cdrom1" as root? If you do this, and if you have the following line mentioned above in your fstab:

/dev/scd1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0

Then it should work. Your problem right now appears that /cdrom1 does not exist. Again, if you do a "mkdir /cdrom1", you should then be able to do "mount /cdrom1" and access your files. Notice that this mount point is NOT under /mnt. If you want, you can change it to that, but since we already have things set up in your fstab for /cdrom1 then the easiest thing should be to make the directory "cdrom1" directly under /

I see the usb warnings you have included. But let us know what happens after you create this mount point.

Adam

bilzer
06-03-2003, 05:58 PM
Finally got the idea where /cdrom1 is supposed to be!
made /cdrom1 - did a mount /cdrom1 - got msg scd1 unknown device

bilzer
06-03-2003, 07:16 PM
Later shut down completely.
After turning on, tried mount /cdrom1 again, now get msg no medium found
using either icon I created, or from console. I have a cd in drive which I used when operating from the knoppix cd.

paradocs
06-03-2003, 08:26 PM
Sorry to interupt as I don"t really know to much.
Actually I swiped the stars from Knopper's
German site -- I am only entitled to two of them!

Well here is my next idea. When you do a
hard drive install of Knoppix you shold have
all peripherals connected and up, running,
and maybe even mounted.

Then when you use hard drive install all
will work --- maybe.

viele Grüße
paradocs

Stephen
06-03-2003, 08:47 PM
Finally got the idea where /cdrom1 is supposed to be!
made /cdrom1 - did a mount /cdrom1 - got msg scd1 unknown device

If this is the device you are tring to mount then it is 0.


Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0


try scd0.

aay
06-03-2003, 09:13 PM
Hmm. That's odd. I was looking at the previous output you posted from cdrecord --scanbus (scsibus1:1,0,0 100), but as Stephen has noted, try changing your entry in /etc/fstab to scd0.

Adam

bilzer
06-03-2003, 11:21 PM
I changed /dev/scd1 to /dev/scd0 in /etc/fstab shut down restarted
mount /cdrom1 mounts the cd which is in the ide-cdrom, not the usb2 cd-rw
Same result using console or icon I created.

Shouldn't I see a reference to the usb2 cd-rw when I enter
KDE Control Center > Information > USB Devices?
I only see the hubs.
I do see the usb2 cd-rw with KDE Control Center > Information > SCSI

Stephen
06-04-2003, 03:05 AM
I do see the usb2 cd-rw with KDE Control Center > Information > SCSI

It may think it's a HD can't hurt trying to mount it as /dev/sda.

bilzer
06-04-2003, 03:35 AM
Tried /dev/sda then /dev/sda1 --- msgs say not valid block device

I may try reinstall with cd-rw on, altho that requirement defeats the value of usb.

I sure would like to know if other users with usb show attached usb devices (other than root hub) when they enter:
KDE Control Center > Information > USB Devices
I do not.

bilzer
06-04-2003, 06:20 AM
Did a reinstall with the usb2 cd-rw turned on.
Didn't solve the problem.
Thanks for all your suggestions.

aay
06-04-2003, 04:04 PM
bilzer,

Sorry about this. I think we are a bit miffed also. If you were able to get this device to work from the cd, then keep trying. Perhaps it's something simple that we are overlooking. Best of luck.

bilzer
06-04-2003, 05:51 PM
:P :P SUCCESS!
I have 4 ports on the usb2 card. Thought I had tested them all but that got lost in testing various configurations of /etc/fstab - this one works now:
/dev/scd1 /mnt/cdrom1 auto defaults,ro,user,noexec,noauto 0 0
along with /mnt/cdrom1
Also, the device now shows up in KDE Control Center > Information > USB devices.
Thanks again for your help.

Stephen
06-04-2003, 05:52 PM
Good to hear you got it going good luck.

aay
06-04-2003, 08:34 PM
Congrats. Glad you got it working. In the long run this whole excersice will prove benificial because you will have learned a bit more about how Debian opperates on your system. Again, congrats and your persistance paid off.