[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cdrecord again



2006/2/11, Alexandr O. Potapov <alexandr.potapov@gmail.com>:
> Проблема с cdrecord не разрешена ведь :( Им может пользоваться только root
> По порядку:
>
> #ls -l /usr/bin/cdrecord
> -rwsr-xr--  1 root cdrom 133 2005-01-09 19:55 /usr/bin/cdrecord
>
> #ls -l /dev/hdd /dev/cdrw
> lrwxrwxrwx  1 root cdrom      8 2006-02-08 20:39 /dev/cdrw -> /dev/hdd
> brw-rw----  1 root cdrom 22, 64 2005-02-26 09:38 /dev/hdd
>
> #grep cdrom /etc/group
> cdrom:x:24:user
>
>
> Далее залогинившись под user:
> #cdrecord dev=ATAPI:0,1,0 --blank=fast
> Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
> Jörg Schilling
> NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
>       and thus may have bugs that are not present in the original version.
>       Please send bug reports and support requests to
> <cdrtools@packages.debian.org>.
>       The original author should not be bothered with problems of this version.
>
> cdrecord: Warning: Running on Linux-2.6.8-2-686
> cdrecord: There are unsettled issues with Linux-2.5 and newer.
> cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
> cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
> cdrecord: Warning: SCSI transport does no longer work for suid root programs.
> cdrecord: Warning: if cdrecord fails, try to run it from a root account.
> scsidev: 'ATAPI:0,1,0'
> devname: 'ATAPI'
> scsibus: 0 target: 0 lun: 0
> Warning: Using ATA Packet interface.
> Warning: The related Linux kernel interface code seems to be unmaintained.
> Warning: There is absolutely NO DMA, operations thus are slow.
> Using libscg version 'schily-0.8'.
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 1
> Vendor_info    : 'SONY    '
> Identifikation : 'DVD RW DRU-530A '
> Revision       : '1.0d'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW.
> cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support code.
> cdrecord: See /usr/share/doc/cdrecord/README.DVD.Debian for details on
> DVD support.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE
> Supported modes:
> cdrecord: Operation not permitted. prevent/allow medium removal: scsi
> sendcmd: no error
> CDB:  1E 00 00 00 01 00
> status: 0x0 (GOOD STATUS)
> cmd finished after 0.000s timeout 40s
> cdrecord: Cannot init drive.
> ###############
> Пока решил так - кому надо разрешено с помощью sudo.
> P.s. Как нужно понимать
> "Warning: There is absolutely NO DMA, operations thus are slow."
> ведь
> #hdparm /dev/hdc
>
> /dev/hdc:
>  IO_support   =  0 (default 16-bit)
>  unmaskirq    =  0 (off)
>  using_dma    =  1 (on)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  HDIO_GETGEO failed: Invalid argument
>
> говорит что он вклчен.
> ###############
> Спасибо.
> --
> С уважением
> Александр Олегович Потапов
> e-mail: Alexandr.Potapov@gmail.com
> icq: 237361050
> JabberID: Alexandr.Potapov@volgograd.ru
>

_Снимаем_ suid биты
# ls -l /usr/bin/cdrecord*
-rwxr-xr-x  1 root root    133 2005-01-09 19:55 /usr/bin/cdrecord
-rwxr-xr-x  1 root root 348556 2005-01-09 19:55 /usr/bin/cdrecord.mmap
-rwxr-xr-x  1 root root 351404 2005-01-09 19:55 /usr/bin/cdrecord.shm

$cdrecord dev=ATA:1,1,0 --blank=fast
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
J�g Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to
<cdrtools@packages.debian.org>.
      The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.11.7
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: 'ATA:1,1,0'
devname: 'ATA'
scsibus: 1 target: 1 lun: 0
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'MITSUMI '
Identifikation : 'CR-48X9TE       '
Revision       : '1.0F'
Device seems to be: Philips CDD-522.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96R
Starting to write CD/DVD at speed 12 in real BLANK mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.

Это, судя по /usr/share/doc/cdrecord/README.Debian.gz

cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().

нормально

с DMA ничего не подскажу.

--
Regards,
Yuri Kozlov

Reply to: