Gentoo Archives: gentoo-user-de

From: Thomas Schweikle <tps@××××××.de>
To: gentoo-user-de@l.g.o
Subject: [gentoo-user-de] K3B und normale user
Date: Sun, 27 Nov 2005 20:16:18
Message-Id: 1133122309.807103@hazel
1 Hi!
2
3 Es will mir nicht gelingen eine CDR oder CDRW mit k3b zu brennen. k3b
4 moniert entweder, das cdrecord suid installiert ist und möchte das
5 ändern, oder, wenn cdrecord nicht suid installiert ist, stellt es fest,
6 das der Benutzer keinen zurgiff auf das CDRW-Laufwerk hat. Hier das Setup:
7
8 -rwxr-x--- 1 root cdrom 407812 Jun 2 12:52 /usr/bin/cdrecord*
9
10 der Benutzer ist in der Gruppe "cdrom" eingetragen und hat Schreibrechte
11 auf das Laufwerk:
12
13 lrwxrwxrwx 1 root root 3 Nov 27 09:14 /dev/cdrw -> sr1
14 brw-rw---- 1 root cdrom 11, 1 Nov 27 09:14 /dev/sr1
15 crw-rw---- 1 root cdrom 21, 2 Aug 14 16:39 /dev/sg2
16
17 Fehlermeldung von cdrecord, wenn es von k3b aufgerufen wird:
18 - Cdrecord has no permission to open the device.
19 - You may use K3bsetup2 to solve this problem.
20
21 Leider nutzt ein Aufruf von k3bsetup2 nichts. Die Fehlermeldung bleibt.
22 Im Debug-Output steht:
23
24 TOSHIBA DVD-ROM SD-M1201 1011 (/dev/sr0, /dev/sg2) at /mnt/cdrom
25 [CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM] [None]
26
27 cdrecord erkennt also das Device korrekt. Der abgesetzte cdrecore-Aufruf
28 ist:
29
30 /usr/bin/cdrecord -v gracetime=2 dev=1,2,0 speed=4 -dao \
31 -eject -data /home/tps/vmware/pecd/pebuilder.iso
32
33 Rufe ich cdrecord mit diesem Befehl in der Benutzerumgebung auf, dann
34 gibt es zurück:
35 ---------------------------------------------------
36 Cdrecord-Clone 2.01 (i686-pc-linux-gnu)\
37 Copyright (C) 1995-2004 Jörg Schilling
38 on-the-fly encryption (version 1.0-rc1) built-in,\
39 (C) 2004,2005 Maximilian Decker
40
41 NOTE: this version of cdrecord is an inofficial (modified)\
42 release of cdrecord and thus may have bugs that are not\
43 present in the original version. Please send bug reports\
44 and support requests to <burbon04 at gmx.de>.
45 For more information please see\
46 http://burbon04.gmxhome.de/linux/CDREncryption.html.
47 The original author should not be bothered with problems\
48 of this version.
49
50 Warning: Running on Linux-2.6.13-gentoo-r5
51 There are unsettled issues with Linux-2.5 and newer.
52 If you have unexpected problems, please try Linux-2.4 or Solaris.
53 TOC Type: 1 = CD-ROM
54 Cannot allocate memory. WARNING: Cannot do mlockall(2).
55 WARNING: This causes a high risk for buffer underruns.
56 Operation not permitted. WARNING: Cannot set RR-scheduler
57 Permission denied. WARNING: Cannot set priority using setpriority().
58 WARNING: This causes a high risk for buffer underruns.
59 scsidev: '1,2,0'
60 scsibus: 1 target: 2 lun: 0
61 Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
62 For possible targets try 'cdrecord -scanbus'. Make sure you are root.
63 For possible transport specifiers try 'cdrecord dev=help'.
64 ---------------------------------------------------
65
66 Wenn ich denselben Befehl als "root" absetze, dann funktioniert es:
67 ---------------------------------------------------
68 Cdrecord-Clone 2.01 (i686-pc-linux-gnu)\
69 Copyright (C) 1995-2004 Jörg Schilling
70 on-the-fly encryption (version 1.0-rc1) built-in,\
71 (C) 2004,2005 Maximilian Decker
72
73 NOTE: this version of cdrecord is an inofficial (modified)\
74 release of cdrecord and thus may have bugs that are not\
75 present in the original version. Please send bug reports\
76 and support requests to <burbon04 at gmx.de>.
77 For more information please see
78 http://burbon04.gmxhome.de/linux/CDREncryption.html.
79 The original author should not be bothered with problems\
80 of this version.
81
82 Warning: Running on Linux-2.6.13-gentoo-r5
83 There are unsettled issues with Linux-2.5 and newer.
84 If you have unexpected problems, please try Linux-2.4 or Solaris.
85 TOC Type: 1 = CD-ROM
86 scsidev: '1,2,0'
87 scsibus: 1 target: 2 lun: 0
88 Linux sg driver version: 3.5.33
89 Using libscg version 'schily-0.8'.
90 SCSI buffer size: 64512
91 atapi: 0
92 Device type : Removable CD-ROM
93 Version : 2
94 Response Format: 2
95 Capabilities : SYNC
96 Vendor_info : 'YAMAHA '
97 Identifikation : 'CRW8424S '
98 Revision : '1.0j'
99 Device seems to be: Generic mmc CD-RW.
100 Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
101 Driver flags : MMC SWABAUDIO
102 Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
103 Drive buf size : 3172848 = 3098 KB
104 FIFO size : 4194304 = 4096 KB
105 Track 01: data 434 MB
106 Total size: 499 MB (49:28.70) = 222653 sectors
107 Lout start: 499 MB (49:30/53) = 222653 sectors
108 Current Secsize: 2048
109 ATIP info from disk:
110 Indicated writing power: 2
111 Reference speed: 2
112 Is not unrestricted
113 Is erasable
114 ATIP start of lead in: -11625 (97:27/00)
115 ATIP start of lead out: 336225 (74:45/00)
116 1T speed low: 0 (reserved val 0) 1T speed high: 4
117 power mult factor: 6 6
118 recommended erase/write power: 4
119 A1 values: 02 6C C0
120 Disk type: Phase change
121 Manuf. index: 0
122 Manufacturer: Illegal Manufacturer code
123 Blocks total: 336225 Blocks current: 336225 Blocks remaining: 113572
124 Starting to write CD/DVD at speed 4 in real SAO mode for single session.
125 Last chance to quit, starting real write 0 seconds. Operation starts.
126 Waiting for reader process to fill input buffer ... input buffer ready.
127 ...
128 ---------------------------------------------------
129
130 At least it seems cdrecord not being able to scan the scsi-bus or does
131 address it wrong. Run from a user account it finds the cd writer being
132 "/dev/sg0", while run from root it finds it being "/dev/sg2".
133
134 Any idea what is wrong here?
135
136 --
137 Thomas
138
139 --
140 gentoo-user-de@g.o mailing list

Replies

Subject Author
Re: [gentoo-user-de] K3B und normale user "replica-solutions.de" <sourcecode@×××××××××××××××××.de>
Re: [gentoo-user-de] K3B und normale user Till Schwalbe <gentoo@×××××××.de>