Hi. On my SuSE 8.1 I have mount problem. I have a DVD drive and a CD-RW drive. I can mount a SuSE DVD in the DVD drive, but I cannot mount an audio CD in the same drive. In my CD-RW drive I cannot mount at all. I have used the KSCD to try to play audio, but so far no luck. Here's my symbolic links: ************************* eurit:~ # ls -al /dev/cdr* lrwxrwxrwx 1 root root 8 Dec 25 21:25 /dev/cdrecorder -> /dev/sr1 lrwxrwxrwx 1 root root 8 Dec 25 21:25 /dev/cdrom -> /dev/sr0 Here's the /etc/fstab file: *************************** /dev/hda3 / reiserfs defaults 1 1 /dev/hda1 /windows/C vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0 /dev/hda2 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbdevfs /proc/bus/usb usbdevfs noauto 0 0 /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 # /dev/sda4 /zip auto noauto,user 0 0 Here's the /media drives: ************************* eurit:~ # ls -al /media total 1 drwxr-xr-x 5 root root 128 Dec 25 21:07 . drwxr-xr-x 24 root root 568 Dec 25 2002 .. drwxr-xr-x 2 root root 48 Nov 6 14:18 cdrecorder drwxr-xr-x 2 root root 48 Sep 13 01:14 cdrom drwxr-xr-x 2 root root 48 Sep 13 01:14 floppy eurit:~ # ls -al /media/cdrecorder total 0 drwxr-xr-x 2 root root 48 Nov 6 14:18 . drwxr-xr-x 5 root root 128 Dec 25 21:07 .. eurit:~ # ls -al /media/cdrom total 0 drwxr-xr-x 2 root root 48 Sep 13 01:14 . drwxr-xr-x 5 root root 128 Dec 25 21:07 .. What could be the possible reasons for my problems ?. -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
More infos from /var/log/messages: Dec 25 21:54:37 eurit kernel: ISO 9660 Extensions: Microsoft Joliet Level 3 Dec 25 21:54:37 eurit kernel: ISO 9660 Extensions: RRIP_1991A Dec 25 21:55:08 eurit kernel: cdrom: open failed. Dec 25 21:55:08 eurit kernel: cdrom: open failed. Dec 25 21:56:30 eurit kernel: I/O error: dev 0b:00, sector 0 Dec 25 21:56:30 eurit kernel: I/O error: dev 0b:00, sector 0 Dec 25 21:56:30 eurit kernel: FAT: unable to read boot sector -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
I can mount a SuSE DVD in the DVD drive, but I cannot mount an audio CD in the same drive.
IMHO audio CDs can be played by e.g. kscd but cannot be mounted - there is no filesystem like ISO9660 there, just a list of audio tracks. Why do you want to mount them?
In my CD-RW drive I cannot mount at all.
Find a section in /var/log/boot.msg which deals with CDs: <4>hdc: SAMSUNG CD-ROM SC-148C, ATAPI CD/DVD-ROM drive <4>hdd: _NEC CD-RW NR-7900A, ATAPI CD/DVD-ROM drive ... <6>scsi1 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: SAMSUNG Model: CD-ROM SC-148C Rev: B100 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: _NEC Model: NR-7900A Rev: 1.08 <4> Type: CD-ROM ANSI SCSI revision: 02 run "cdrecord --scanbus" and "hwinfo --cdrom". The following is from my system (8.1): # cdrecord --scanbus ... scsibus1: 1,0,0 100) 'SAMSUNG ' 'CD-ROM SC-148C ' 'B100' Removable CD-ROM 1,1,0 101) '_NEC ' 'NR-7900A ' '1.08' Removable CD-ROM # hwinfo --cdrom 20: SCSI 100.0: 10602 CD-ROM [Created at scsi.229] Unique ID: zyP1.4Iw+DKRfziA Hardware Class: cdrom Model: "SAMSUNG _NEC CD-RW NR-7900A" Vendor: "SAMSUNG" Device: "_NEC CD-RW NR-7900A" Revision: "1.08" Serial ID: "" Driver: "ide-scsi" Device File: /dev/sr0 Drive status: no medium Config Status: cfg=no, avail=yes, need=no Drive Speed: 48 21: SCSI 101.0: 10602 CD-ROM (CD-RW) [Created at scsi.229] Unique ID: Q8g5.Ml40WtqK9xC Hardware Class: cdrom Model: "_NEC NR-7900A" Vendor: "_NEC" Device: "NR-7900A" Revision: "1.08" Driver: "ide-scsi" Device File: /dev/sr1 Drive status: no medium Config Status: cfg=no, avail=yes, need=no Drive Speed: 40 Your /etc/fstab and and the directory /media are OK. -- Alexandr.Malusek@imv.liu.se
On 25 Dec 2002 22:27:11 +0100
Alexandr Malusek
IMHO audio CDs can be played by e.g. kscd but cannot be mounted - there is no filesystem like ISO9660 there, just a list of audio tracks. Why do you want to mount them?
Not indeed necessary, but if I click on the drive, the kscd comes up too. That way I thought, that my playing could start, but I might be wrong there.
In my CD-RW drive I cannot mount at all.
Find a section in /var/log/boot.msg which deals with CDs:
<4>hdc: SAMSUNG CD-ROM SC-148C, ATAPI CD/DVD-ROM drive <4>hdd: _NEC CD-RW NR-7900A, ATAPI CD/DVD-ROM drive ... <6>scsi1 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: SAMSUNG Model: CD-ROM SC-148C Rev: B100 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: _NEC Model: NR-7900A Rev: 1.08 <4> Type: CD-ROM ANSI SCSI revision: 02
Here is mine: ************* <4>hdc: SAMSUNG DVD-ROM SD-612F, ATAPI CD/DVD-ROM drive <4>hdd: HL-DT-ST GCE-8160B, ATAPI CD/DVD-ROM drive **** <6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices <4> Vendor: SAMSUNG Model: DVD-ROM SD-612F Rev: FS03 <4> Type: CD-ROM ANSI SCSI revision: 02 <4> Vendor: HL-DT-ST Model: CD-RW GCE-8160B Rev: 2.01 <4> Type: CD-ROM ANSI SCSI revision: 02 # cdrecord --scanbus: ********************* Cdrecord 1.11a40 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling Linux sg driver version: 3.2.0 Using libscg version 'schily-0.7' scsibus0: 0,0,0 0) 'SAMSUNG ' 'DVD-ROM SD-612F ' 'FS03' Removable CD-ROM 0,1,0 1) 'HL-DT-ST' 'CD-RW GCE-8160B ' '2.01' 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) * cdrecord --scanbus" and "hwinfo --cdrom". The following is
from my system (8.1): # cdrecord --scanbus ... scsibus1: 1,0,0 100) 'SAMSUNG ' 'CD-ROM SC-148C ' 'B100' Removable CD-ROM 1,1,0 101) '_NEC ' 'NR-7900A ' '1.08' Removable CD-ROM
# hwinfo --cdrom: ***************** 14: SCSI 00.0: 10602 CD-ROM (DVD) [Created at scsi.229] Unique ID: zyP1.kQz52lSZYA0 Hardware Class: cdrom Model: "SAMSUNG HL-DT-ST GCE-8160B" Vendor: "SAMSUNG" Device: "HL-DT-ST GCE-8160B" Revision: "2.01" Serial ID: "" Driver: "ide-scsi" Device File: /dev/sr0 Config Status: cfg=no, avail=yes, need=no Drive Speed: 40 15: SCSI 01.0: 10602 CD-ROM (CD-RW) [Created at scsi.229] Unique ID: Q8g5.QLzHs955Ov1 Hardware Class: cdrom Model: "HL-DT-ST CD-RW GCE-8160B" Vendor: "HL-DT-ST" Device: "CD-RW GCE-8160B" Revision: "2.01" Driver: "ide-scsi" Device File: /dev/sr1 Drive status: no medium Config Status: cfg=no, avail=yes, need=no Drive Speed: 40 This is as I can see it not correct. The SAMSUNG is not a HL -DT-ST GCE-8160B. The HL is the LG CD-RW drive.
20: SCSI 100.0: 10602 CD-ROM [Created at scsi.229] Unique ID: zyP1.4Iw+DKRfziA Hardware Class: cdrom Model: "SAMSUNG _NEC CD-RW NR-7900A" Vendor: "SAMSUNG" Device: "_NEC CD-RW NR-7900A" Revision: "1.08" Serial ID: "" Driver: "ide-scsi" Device File: /dev/sr0 Drive status: no medium Config Status: cfg=no, avail=yes, need=no Drive Speed: 48
21: SCSI 101.0: 10602 CD-ROM (CD-RW) [Created at scsi.229] Unique ID: Q8g5.Ml40WtqK9xC Hardware Class: cdrom Model: "_NEC NR-7900A" Vendor: "_NEC" Device: "NR-7900A" Revision: "1.08" Driver: "ide-scsi" Device File: /dev/sr1 Drive status: no medium Config Status: cfg=no, avail=yes, need=no Drive Speed: 40
Your /etc/fstab and and the directory /media are OK.
Oh nice. A thing that is correct :-).
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
More infos: Terminator found Dec 26 09:11:55 eurit kernel: UDF-fs: No VRS found Dec 26 09:12:00 eurit kernel: ISO 9660 Extensions: Microsoft Joliet Level 3 Dec 26 09:12:00 eurit kernel: ISO 9660 Extensions: RRIP_1991A Dec 26 09:13:13 eurit kernel: cdrom: open failed. Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 64 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 66 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 68 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 70 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 72 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 74 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 76 Dec 26 09:13:13 eurit kernel: ide-scsi: hdd: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:40 (hdd), sector 78 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 64 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 66 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 68 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 70 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 72 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 74 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 76 Dec 26 09:13:13 eurit kernel: ide-scsi: hdc: unsupported command in request queue (0) Dec 26 09:13:13 eurit kernel: end_request: I/O error, dev 16:00 (hdc), sector 78 Dec 26 09:14:34 eurit kernel: UDF-fs DEBUG lowlevel.c:57:udf_get_last_session: XA disk: no, -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
On Thu, 26 Dec 2002 09:25:36 +0100
Erik Jakobsen
My cd-burning works. I have just copied a CD from my DVD drive to my CD-RW drive. -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
A data DVD in the DVD drive: **************************** ... Dec 26 09:40:45 eurit kernel: cdrom: Use count for "/dev/sr0" now 1
A data cd in the CD-RW drive: ***************************** ... Dec 26 09:44:49 eurit kernel: cdrom: Use count for "/dev/sr1" now 1
So your symbolic links should be /dev/dvd -> /dev/sr0 /dev/cdrecorder -> /dev/sr1
An audio-cd in both drives gave no debugging results, but I could not start it using kscd.
If you want to investigate the problem then you can run strace -o strace.out kscd and search the produced file strace.out for the file descriptor used for accessing the device: open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = 8 select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout) ioctl(8, 0x5305, 0xbfffebba) = 0 ioctl(8, 0x5306, 0xbfffebb0) = 0 It's 8 in my case. The CD unit is controlled via ioctl calls (e.g. 0x5305), their values are described in ioctl_list(2) and /usr/include/linux/cdrom.h. -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 16:47:26 +0100
Alexandr Malusek
So your symbolic links should be
/dev/dvd -> /dev/sr0 /dev/cdrecorder -> /dev/sr1
Yes right. Done now :-).
An audio-cd in both drives gave no debugging results, but I could not start it using kscd.
If you want to investigate the problem then you can run
strace -o strace.out kscd
Oh fine. Now I can see the trace result.
and search the produced file strace.out for the file descriptor used for accessing the device:
open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = 8 select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout) ioctl(8, 0x5305, 0xbfffebba) = 0 ioctl(8, 0x5306, 0xbfffebb0) = 0
It's 8 in my case. The CD unit is controlled via ioctl calls (e.g. 0x5305), their values are described in ioctl_list(2) and /usr/include/linux/cdrom.h.
I had a brief view on the 2 options. Here is my result: open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory) open("/opt/kde3/share/icons/crystal/32x32/actions/button_ok.png", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 11 open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory) open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory) open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory) open("/home/erik/.kde/share/config/kscdrc", O_RDONLY) = 11 open("/home/erik/.kde/share/config/kscdrceiNQ0a.new", O_RDWR|O_CREAT|O_EXCL, 0600) = 11 This is with an audio cd in the dvd drive. But so far I am not quite able to read whats wrong. I can see, that a file or directory has not been found, and its -1 here, where yours were 8.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
On 26 Dec 2002 17:58:11 +0100
Alexandr Malusek
open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
IMHO the symbolic link /dev/cdrom doesn't point to anything useful.
Well I could open a data cd in the dvd write using the symbolic link /dev/cdrom.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
On 26 Dec 2002 17:58:11 +0100 Alexandr Malusek
wrote: open("/dev/cdrom", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
IMHO the symbolic link /dev/cdrom doesn't point to anything useful.
Well I could open a data cd in the dvd write using the symbolic link /dev/cdrom.
How did you do it? Your system is really puzzling because you says the basic system call open(2) doesn't work as it should have. It returns ENOENT which means: : ENOENT A directory component in pathname does not exist or is a : dangling symbolic link. (A dangling symbolic link points to a non-existent file). You can mount a data CD via "mount /dev/cdrom" but /dev/cdrom points to a non existent file for kscd when an audio CD is inserted. Strange. -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 19:02:24 +0100
Alexandr Malusek
How did you do it? Your system is really puzzling because you says the basic system call open(2) doesn't work as it should have. It returns ENOENT which means. : ENOENT A directory component in pathname does not exist or is a : dangling symbolic link.
I did click on the dvd drive icon on the desktop and had a data_cd in the drive.
(A dangling symbolic link points to a non-existent file).
Yes I can see what you writes, and strange it is.
You can mount a data CD via "mount /dev/cdrom" but /dev/cdrom points to a non existent file for kscd when an audio CD is inserted. Strange.
Yes, BUT was WHEN I had the symbolic link that pointed to the cdrom.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Still the same is: erik@eurit:~> less strace.out | grep open open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/opt/kde3/share/icons/crystal/32x32/actions/button_ok.png", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 11 open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/home/erik/.kde/share/config/kscdrc", O_RDONLY) = 11 open("/home/erik/.kde/share/config/kscdrcVMF0Ab.new", O_RDWR|O_CREAT|O_EXCL, 0600) = 11 -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
On 26 Dec 2002 16:47:26 +0100 A new strace log. Its for the DVD drive, as I did setup with a symbolic link: open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/opt/kde3/share/icons/crystal/32x32/actions/button_ok.png", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 11 open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 11 open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied) open("/home/erik/.kde/share/config/kscdrc", O_RDONLY) = 11 open("/home/erik/.kde/share/config/kscdrcAqpCfa.new", O_RDWR|O_CREAT|O_EXCL, 0600) = 11 -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied)
kscd doesn't have the read permission for /dev/dvd and therefore it cannot start playing the audio CD via an ioctl call. "ls -lL /dev/dvd" lists permissions and "id -a" lists details about the user. The ownership of /dev/dvd (and thus access rights) may depend on who uses KDE. Don't post information about permissions for the root user - he can do anything no matter what the permissions are. Anyway, I'm confused since according to your info a user can mount a data CD in the dvd and cdrecorder but cannot play audio CDs there. Either it's a "low level" problem or there is something inconsistent with these statements. -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 18:21:02 +0100
Alexandr Malusek
Erik Jakobsen
writes: open("/dev/dvd", O_RDONLY|O_NONBLOCK) = -1 EACCES (Permission denied)
kscd doesn't have the read permission for /dev/dvd and therefore it cannot start playing the audio CD via an ioctl call. "ls -lL /dev/dvd" lists permissions and "id -a" lists details about the user.
brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd erik@eurit:~> id -a uid=500(erik) gid=100(users) groups=100(users),7(lp),14(uucp),16(dialout),17(audio),33(video) id -a" lists details about the user.
The ownership of /dev/dvd (and thus access rights) may depend on who uses KDE. Don't post information about permissions for the root user - he can do anything no matter what the permissions are.
Both cases mentioned is right.
Anyway, I'm confused since according to your info a user can mount a data CD in the dvd and cdrecorder but cannot play audio CDs there. Either it's a "low level" problem or there is something inconsistent with these statements.
But its right what I have written about it. I COULD mount cd's in the dvd and cdrecorder drives. Now I cannot do it in the dvd drive, but still no problems in the cdrecorder.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Well I have forgotten to make a dvd line in the /etc/fstab. Now I can mount the dvd drive from a prompt, but not from the desktop by clicking on the dvd icon. Still the cdrecorder can be mounted from the icon on the desktop. -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Puzzling with the mount in the dvd by right clicking the dvd icon on the desktop did able me to again to could mount a data_cd in the dvd drive. -- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
Puzzling with the mount in the dvd by right clicking the dvd icon on the desktop did able me to again to could mount a data_cd in the dvd drive.
brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd
If I understand it right, data CD mounting works both for the cdrecorder and dvd now. /bin/mount is a suid root program so any user can mount and access the device /dev/dvd even when root is its owner. The problem with audio CDs is that kscd is not suid root and therefore the device /dev/dvd must be owned by the user who invokes kscd (or the group permissions and ownership must be changed). On my system, the ownership of /dev/cdrom changes when I log in: $ ls -lL /dev/cdrom brw------- 1 malusek malusek 11, 0 Sep 24 2001 /dev/cdrom But I don't know how to force this change for /dev/dvd too. I know a workaround but it may be better to wait if someone knows a "recommended" solution. -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 19:46:03 +0100
Alexandr Malusek
Erik Jakobsen
writes: Puzzling with the mount in the dvd by right clicking the dvd icon on the desktop did able me to again to could mount a data_cd in the dvd drive.
brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd
If I understand it right, data CD mounting works both for the cdrecorder and dvd now. /bin/mount is a suid root program so any user can mount and access the device /dev/dvd even when root is its owner.
Ok.
The problem with audio CDs is that kscd is not suid root and therefore the device /dev/dvd must be owned by the user who invokes kscd (or the group permissions and ownership must be changed). On my system, the ownership of /dev/cdrom changes when I log in:
$ ls -lL /dev/cdrom brw------- 1 malusek malusek 11, 0 Sep 24 2001 /dev/cdrom
But how did you make that changing possible ?.
But I don't know how to force this change for /dev/dvd too. I know a workaround but it may be better to wait if someone knows a "recommended" solution.
Well there has been sujects on the SDB, and I think I have gone through them all, but as you know, so far no luck. They were all a sort of workaround I think :-) Are there anyone here on the list that have followed the writing ?. I would be most happy to hear a solution to my problem.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Alexandr Malusek
On my system, the ownership of /dev/cdrom changes when I log in:
$ ls -lL /dev/cdrom brw------- 1 malusek malusek 11, 0 Sep 24 2001 /dev/cdrom
But I don't know how to force this change for /dev/dvd too.
It seems the PAM's pam_devperm module is responsible for the ownership change. But /dev/dvd is listed in the file /dev/logindevperm: :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3 so I think you should automatically become the owner of /dev/dvd when you log in. Did you log out and log in after the symbolic link change? If not do it and check the ownership via "ls -lL /dev/dvd /dev/cdrecorder". -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 20:12:07 +0100
Alexandr Malusek
Alexandr Malusek
writes: On my system, the ownership of /dev/cdrom changes when I log in:
$ ls -lL /dev/cdrom brw------- 1 malusek malusek 11, 0 Sep 24 2001 /dev/cdrom
But I don't know how to force this change for /dev/dvd too.
And here the owenership is root disk.
It seems the PAM's pam_devperm module is responsible for the ownership change. But /dev/dvd is listed in the file :0 0600 /dev/cdrom:/dev/cdrom1:/dev/cdrom2:/dev/cdrom3 /dev/logindevperm:
:0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3
Here the logindevperm is in /etc: :0 0600 /dev/cdrecorder:/dev/cdrecorder1:/dev/cdrecorder2:/dev/cdrecorder3 :0 0600 /dev/dvd:/dev/dvd1:/dev/dvd2:/dev/dvd3
so I think you should automatically become the owner of /dev/dvd when you log in.
Sounds reliable :-)
Did you log out and log in after the symbolic link change? If not do it and check the ownership via "ls -lL /dev/dvd /dev/cdrecorder".
Yes I did log out and log in. erik@eurit:~> ls -lL /dev/dvd /dev/cdrecorder brw-r----- 1 root disk 11, 1 2002-09-09 22:24 /dev/cdrecorder brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Erik Jakobsen
erik@eurit:~> ls -lL /dev/dvd /dev/cdrecorder brw-r----- 1 root disk 11, 1 2002-09-09 22:24 /dev/cdrecorder brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd
It's not OK. Do you use kdm (runlevel 5) to log in? Run the following command to check that pam_devperm.so is used: $ lsof /lib/security/pam_devperm.so COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME kdm 1029 root mem REG 3,6 11856 62060 /lib/security/pam_devperm.so -- Alexandr.Malusek@imv.liu.se
On 26 Dec 2002 20:54:38 +0100
Alexandr Malusek
Erik Jakobsen
writes: erik@eurit:~> ls -lL /dev/dvd /dev/cdrecorder brw-r----- 1 root disk 11, 1 2002-09-09 22:24 /dev/cdrecorder brw-r----- 1 root disk 11, 0 2002-09-09 22:24 /dev/dvd
It's not OK. Do you use kdm (runlevel 5) to log in?
Ooopps :-). What is kdm, I never can remember it ? :-(.
Run the following command to check that pam_devperm.so is used:
$ lsof /lib/security/pam_devperm.so COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME kdm 1029 root mem REG 3,6 11856 62060 /lib/security/pam_devperm.so
lsof /lib/security/pam_devperm.so: eurit:~ # lsof /lib/security/pam_devperm.so eurit:~ # No the file is NOT open.
-- Alexandr.Malusek@imv.liu.se
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
On 26 Dec 2002 20:54:38 +0100
Alexandr Malusek
On Thursday 26 December 2002 22:02, Erik Jakobsen wrote:
On 26 Dec 2002 20:54:38 +0100 Alexandr Malusek
wrote: WORKING !!!!!!!!!!!
Hello Alexandr. Its working now. I did run in runlevel 3.
<snip> I have been following this thread closely. A special thanks to Alexandr Malusek for sorting out a problem involving a lot of effort and understanding. Once again, well done Alexandr.
On Thu, 26 Dec 2002 22:14:22 +0000
Linux World 999
On Thursday 26 December 2002 22:02, Erik Jakobsen wrote:
On 26 Dec 2002 20:54:38 +0100 Alexandr Malusek
wrote: WORKING !!!!!!!!!!!
Hello Alexandr. Its working now. I did run in runlevel 3.
<snip>
I have been following this thread closely. A special thanks to Alexandr Malusek for sorting out a problem involving a lot of effort and understanding.
Once again, well done Alexandr.
You also had the same problem ?.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
Last message: eurit:~ # lsof /lib/security/pam_devperm.so COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME kdm 1467 root mem REG 3,3 11856 63615 /lib/security/pam_devperm.so Med venlig hilsen - Best regards - vy73 de OZ4KK. Erik Jakobsen - eja@urbakken.dk Registered Linux user #114875 - http://counter.li.org SuSE linux 8.1 - VMware 3.2 - WIN98SE.
participants (3)
-
Alexandr Malusek
-
Erik Jakobsen
-
Linux World 999