From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 31 Jan 2005 00:22:14 +0800 From: Alexei Takaseev To: ALT Linux Sisyphus discussion list Subject: Re: [sisyphus] Re: /dev/cdrom cries in pain Message-Id: <20050131002214.2d7719db.taf@altlinux.ru> In-Reply-To: <20050130152826.GA6334@lks.home> References: <733f2c7305013000524bbab208@mail.gmail.com> <20050130172311.2c61a768.taf@altlinux.ru> <200501301348.25659.darkstar@altlinux.ru> <20050130205322.0d73a135.taf@altlinux.ru> <20050130135125.GA16830@lks.home> <20050130220328.200f0cb3.taf@altlinux.ru> <20050130152826.GA6334@lks.home> Organization: /dev/null X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 16:22:29 -0000 Archived-At: List-Archive: On Sun, 30 Jan 2005 18:28:26 +0300 "Konstantin A. Lepikhov" wrote: > > > > А какой тогда кошерный метод записи? Пробовал записывать через > > > > устройство dev=ATAPI:/dev/hdd (ATAPI:0,1,0), запись идет, ничего > > > > не зависает, но потом таким образом записаный диск на этом же > > > > приводе читается со скоростью 100-200 кбайт/сек. На соседнем > > > > простом CD диск вообще не читается. Привод NEC-2510A. > > > самый правильный - dev=/dev/hdd и никаких ATAPI :) > > > > Пробовал. С тем же результатом - низкая скорость чтения на том же > > приводе и полная нечитаемость на другом приводе. > показывайте лог cdrecord и что в это время в messages пишется. Также > интересно знать настройки DMA для этого привода. Лог cdrecord: ======================================================================= Cdrecord-Clone 2.01a37 (i586-alt-linux-gnu) Copyright (C) 1995-2004 JЖrg Schilling scsidev: '/dev/hdd' devname: '/dev/hdd' scsibus: -2 target: -2 lun: -2 Warning: Open by 'devname' is unintentional and not supported. Linux sg driver version: 3.5.27 cdrecord: Warning: Linux kernel version is 2.6.10 cdrecord: Enabling compatibility hack! Using libscg version 'schily-0.8'. Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities : Vendor_info : '_NEC ' Identifikation : 'DVD_RW ND-2510A ' Revision : '2.05' 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: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD. cdrecord: Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/ 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 Starting to write CD/DVD at speed 10 in real BLANK mode for single session. Last chance to quit, starting real write 0 seconds. Operation starts. cdrecord: No write mode specified. cdrecord: Asuming -tao mode. cdrecord: Future versions of cdrecord may have different drive dependent defaults. cdrecord: Continuing in 5 seconds... Cdrecord-Clone 2.01a37 (i586-alt-linux-gnu) Copyright (C) 1995-2004 JЖrg Schilling TOC Type: 3 = CD-ROM XA mode 2 scsidev: '/dev/hdd' devname: '/dev/hdd' scsibus: -2 target: -2 lun: -2 Warning: Open by 'devname' is unintentional and not supported. Linux sg driver version: 3.5.27 cdrecord: Warning: Linux kernel version is 2.6.10 cdrecord: Enabling compatibility hack! Using libscg version 'schily-0.8'. SCSI buffer size: 64512 atapi: 1 Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities : Vendor_info : '_NEC ' Identifikation : 'DVD_RW ND-2510A ' Revision : '2.05' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: 0x000A Profile: 0x002B Profile: 0x001B Profile: 0x001A Profile: 0x0014 Profile: 0x0013 Profile: 0x0011 Profile: 0x0010 Profile: 0x000A (current) Profile: 0x0009 Profile: 0x0008 (current) cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support code. cdrecord: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD. cdrecord: Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/ 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 Drive buf size : 1343488 = 1312 KB FIFO size : 4194304 = 4096 KB Track 01: data 327 MB Total size: 375 MB (37:12.45) = 167434 sectors Lout start: 375 MB (37:14/34) = 167434 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 3 Reference speed: 6 Is not unrestricted Is erasable Disk sub type: High speed Rewritable (CAV) media (1) ATIP start of lead in: -11635 (97:26/65) ATIP start of lead out: 359849 (79:59/74) 1T speed low: 4 1T speed high: 10 2T speed low: 4 2T speed high: 0 (reserved val 6) power mult factor: 1 5 recommended erase/write power: 3 A1 values: 24 1A BC A2 values: 26 B2 26 Disk type: Phase change Manuf. index: 3 Manufacturer: CMC Magnetics Corporation Blocks total: 359849 Blocks current: 359849 Blocks remaining: 192415 cdrecord: Warning: Linux kernel version is 2.6.10 cdrecord: Enabling compatibility hack! cdrecord: Warning: Linux kernel version is 2.6.10 cdrecord: Enabling compatibility hack! Starting to write CD/DVD at speed 10 in real TAO mode for multi session. Last chance to quit, starting real write 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. BURN-Free is OFF. Performing OPC... Starting new track at sector: 0 Track 01: 327 of 327 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: Total bytes read/written: 342900736/342900736 (167432 sectors). Writing time: 230.300s Average write speed 9.8x. Min drive buffer fill was 100% Fixating... Fixating time: 37.382s cdrecord: fifo had 5402 puts and 5402 gets. cdrecord: fifo was 0 times empty and 5320 times full, min fill was 87%. ===================================================================== То есть ничего особенного криминального не вижу. Во время записи и чтения в логи абсолюто ничего не сыплется. Вот что говорит hdparm: [root@metamorph log]# hdparm /dev/hdd /dev/hdd: IO_support = 1 (32-bit) unmaskirq = 1 (on) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) HDIO_GETGEO failed: Invalid argument [root@metamorph log]#