[oi-dev] cdrecord issue
Udo Grabowski (IMK)
udo.grabowski at kit.edu
Fri Apr 7 13:23:34 UTC 2017
On 07/04/2017 15:15, Alexander Pyhalov wrote:
> On 04/ 6/17 11:35 PM, Alexander Pyhalov wrote:
>> On 06.04.2017 23:10, Joerg Schilling wrote:
>>> Alexander Pyhalov <alp at rsu.ru> wrote:
>>>
>>>> I've tried to update cdrtools... To find out that they are not fully
>>>> functional.
>>>>
>>>> $ cat /etc/security/exec_attr.d/cdrtools
>>>> Basic Solaris
>>>> User:solaris:cmd:RO::/usr/bin/cdrecord:privs=file_dac_read,sys_devices,proc_lock_memory,proc_priocntl,net_privaddr
>>>>
>>>>
>>>> Basic Solaris
>>>> User:solaris:cmd:RO::/usr/bin/readcd:privs=file_dac_read,sys_devices,net_privaddr
>>>>
>>>>
>>>> Basic Solaris
>>>> User:solaris:cmd:RO::/usr/bin/cdda2wav:privs=file_dac_read,sys_devices,proc_priocntl,net_privaddr
>>>>
>>>>
>>>>
>>>> When I try to blank cd-rw device, I get with new cdrtools :
>>>>
>>>> $ cdrecord blank=all
>>>> Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright (C)
>>>> 1995-2016 Joerg Schilling
>>>> Warning: Using USCSI interface.
>>>> Using libscg version 'schily-0.9'.
>>>> No target specified, trying to find one...
>>>> Using dev=3,2,0.
>>>> Device type : Removable CD-ROM
>>>> Version : 0
>>>> Response Format: 2
>>>> Capabilities :
>>>> Vendor_info : 'Optiarc '
>>>> Identifikation : 'DVD RW AD-7170S '
>>>> Revision : '1.82'
>>>> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
>>>> Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
>>>> Driver flags : MMC-3 SWABAUDIO BURNFREE
>>>> Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
>>>> cdrecord: Warning: Cannot read drive buffer.
>>>> cdrecord: Warning: The DMA speed test has been skipped.
>>>> Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single
>>>> session.
>>>> Last chance to quit, starting real write 0 seconds. Operation starts.
>>>> cdrecord: I/O error. blank unit: scsi sendcmd: no error
>>>> CDB: A1 00 00 00 00 00 00 00 00 00 00 00
>>>> status: 0x2 (CHECK CONDITION)
>>>> Sense Bytes: F0 00 03 00 01 C0 6D 0A 00 00 00 00 0C 00 00 00 00 00
>>>> Sense Key: 0x3 Medium Error, Segment 0
>>>> Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
>>>> Sense flags: Blk 114797 (valid)
>>>> cmd finished after 425.306s timeout 9600s
>>>
>>> This may be a problem in the medium or a incompatibility between drive
>>> and
>>> medium, or just a temporary problem.
>>>
>>>> But this works with sudo
>>>
>>> Is this reproducable multiple times?
>>>
>>
>> Yes. Tomorrow I can try with other CD-RW disk (they are becoming
>> extinct...).
>> But if the matter is in medium, why does it work with sudo?
>>
>
> With other disc I didn't get these errors. I don't understand, why sudo mattered
> in the previous case...
>
>
I think you need to own the device node. We have in /etc/logindevperm:
/dev/vt/console_user 0400 /dev/removable-media/dsk/* # removable media
/dev/vt/console_user 0400 /dev/removable-media/rdsk/* # removable media
/dev/vt/console_user 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
/dev/vt/console_user 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
--
Dr.Udo Grabowski Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5285 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20170407/da8eab16/attachment-0005.bin>
More information about the oi-dev
mailing list