View previous topic :: View next topic |
Author |
Message |
contextswitch n00b
Joined: 08 Oct 2004 Posts: 61 Location: Darwen
|
Posted: Tue Jan 11, 2005 4:05 pm Post subject: |
|
|
agnitio wrote: | Yes my hdc is user writeable. For some reason it sets my user as the owner, don't know if I put that in some udev rule or something. |
It's probably PAM setting the owner when you log in.
--
Geoff |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Tue Jan 11, 2005 6:34 pm Post subject: |
|
|
It is a PAM setting. Delete the line Code: | #<console> 0600 <cdrom> 0660 root.cdrom | in /etc/security/console.perms, if you don't want this. _________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
tcbounce Tux's lil' helper
Joined: 18 Nov 2003 Posts: 86 Location: South Korea
|
Posted: Wed Jan 12, 2005 6:32 am Post subject: thanks for the info :) |
|
|
Hello,
Thanks for the info on this problem. I hit is as well and my cdrom burner (a Korean LG) hang and reported similar messages. I'll upgrade from 2.6.10-r1 and make the appropriate changes.
I saw some debian forums have a winge about this same issue. The people here generally take a DIY approach fixing problems and then share their knowledge with the gentoo userbase, rather than doing the former.
For number hours saved finding resolutions to problems on this forum, I'll try and contribute back more!!
"ide-scsi is and always has been a dirty, dirty hack, and its death is appreciated by many, myself included.
Jörg's an asshole and Linus is stubborn, but stubbornly right, imho."
Last question: Which is the best way to use my ATAPI device. I read if you enable ide-scsi in the kernel and use a boot time argument I heard it turns of DMA. Should I use atapi or ide-scsi module (does the latter work with DMA). I want to use modules, because it's reconmended to DMA when watching DVDs for example with xine, so I'd like to switch between the two.
Cheers,
Luke |
|
Back to top |
|
|
bwins46 n00b
Joined: 10 Dec 2003 Posts: 9 Location: Massachusetts
|
Posted: Tue Jan 18, 2005 9:16 pm Post subject: mishandled SCSI response to OPC |
|
|
I have a LITE-ON DVD/CDRW drive that fails when attempting power calibration (OPC). It seems like the drive actually does the proper thing but cdrecord is mishandling the returned status.
Code: |
Performing OPC...
/usr/bin/cdrecord: Success. send opc: scsi sendcmd: no error
CDB: 54 01 00 00 00 00 00 00 00 00
status: 0x4 (CONDITION MET/GOOD)
cmd finished after 60.041s timeout 60s
/usr/bin/cdrecord: OPC failed.
|
I've not worked in SCSI for a while but if I remember, a normal GOOD status was a 0x0, my drive appears to be returning a 0x4 (CONDITION MET/GOOD). I'm going to guess that the manufacturer believes that CONDITION MET/GOOD should be interpreted as power calibration succeeded. It looks like cdrtools is treating the return code as an error and hence aborts without writing the CD.
cdrtools is treating the drive as generic..
Code: |
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
|
|
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
|
Back to top |
|
|
beu Retired Dev
Joined: 03 Mar 2004 Posts: 22 Location: London, UK
|
Posted: Sun Feb 06, 2005 10:46 pm Post subject: |
|
|
Got another report of command '1e' being filtered. This is while attempting to burn a CD-R (using k3b and cdrtools only) on a CyberDrv CW088D/Generic MMC 3, though. I've patched cdrtools to open the device read/write, too.
Ahem, last edit:
This is all on g-d-s-2.6.10-r7 with cdrtools-2.01.01_alpha1 and k3b-0.11.20. _________________ "The only people touting pkgcore are the ones who've never used it." |
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Mon Feb 07, 2005 1:25 pm Post subject: |
|
|
I've just noticed something interesting:
If you try to burn a CDR as non-root with cdrecord dev=ATAPI:0,0,0 it will not work, as we well know. But if you try to burn with cdrecord dev=/dev/cdrom after that, it will not work anymore.
Code: | bash-2.05b$ cdrecord -v dev=/dev/cdrom blank=fast
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.10
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
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: '/dev/cdrom'
devname: '/dev/cdrom'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
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 : 'TOSHIBA '
Identifikation : 'DVD-ROM SD-R2512'
Revision : '1720'
Device seems to be: Generic mmc2 DVD-ROM.
Current: 0x000A
Profile: 0x0010
Profile: 0x0008
Profile: 0x0009
Profile: 0x000A (current)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes:
Drive buf size : 1791936 = 1749 KB
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
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: -11596 (97:27/29)
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: 4
A1 values: 24 1A C8
A2 values: 26 B2 4A
Disk type: Phase change
Manuf. index: 20
Manufacturer: Princo Corporation
cdrecord: Cannot init drive. |
dmesg output:
Code: | scsi: unknown opcode 0x01
scsi: unknown opcode 0x55
scsi: unknown opcode 0x1e
scsi: unknown opcode 0x35
scsi: unknown opcode 0xbb |
_________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
|
Back to top |
|
|
mrsteven Veteran
Joined: 04 Jul 2003 Posts: 1938
|
Posted: Mon Feb 07, 2005 10:25 pm Post subject: |
|
|
Ok, clear answer, thank you. I think it will also be fixed in vanilla-2.6.11, right? _________________ Unix philosophy: "Do one thing and do it well."
systemd: "Do everything and do it wrong." |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
|
Back to top |
|
|
robet l33t
Joined: 06 Sep 2004 Posts: 807 Location: Earth/NorthAmerica/USA/NY
|
Posted: Tue Feb 08, 2005 5:28 pm Post subject: |
|
|
Simple question here:
To burn a bootable CD, must it be burned -dao? I burned an .iso with "cdrecord dev=/dev/hda /path/to/iso" (which I think assumes tao) and... no boot.
If dao IS required, is there any way I can reburn that same CD dao (i.e... without using another). _________________ no software patents in europe! | adopt an unanswered post. |
|
Back to top |
|
|
AgenT Apprentice
Joined: 18 May 2003 Posts: 280
|
Posted: Wed Feb 09, 2005 1:27 am Post subject: |
|
|
robet wrote: | Simple question here:
To burn a bootable CD, must it be burned -dao? I burned an .iso with "cdrecord dev=/dev/hda /path/to/iso" (which I think assumes tao) and... no boot.
If dao IS required, is there any way I can reburn that same CD dao (i.e... without using another). |
I could be wrong but... if the iso itself is bootable (that is, the iso itself has files that let it boot) then if you burn the iso in a regular fashion it should be bootable. If the iso is not bootable, then you will not be able to boot the iso cd regardless I think. You would have to remake the iso with a boot option and then burn it. |
|
Back to top |
|
|
louman n00b
Joined: 02 Jan 2005 Posts: 31
|
Posted: Thu Feb 24, 2005 8:04 am Post subject: |
|
|
First off, I'm pretty sure it's not a problem with the hardware, or medium, considering I've successfully used both to burn the gentoo liveCD under wind0ws.
I've been having lots of problems burning... I've only been using 2.6.9, and now I have 2.6.10 (gentoo-sources). I tried using bashburn, here are the nice messages:
(ran as root, same problem if ran as user)
Code: | Not enabling overburn...
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent default s.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J\uffffrg Schilling
cdrecord: Warning: Running on Linux-2.6.10-gentoo-r5
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 1 = CD-ROM
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'TDK '
Identifikation : 'CDRW121032A '
Revision : '1.00'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
Drive buf size : 1359872 = 1328 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 687 MB
Total size: 789 MB (78:12.21) = 351916 sectors
Lout start: 789 MB (78:14/16) = 351916 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 4
Is unrestricted
Is not erasable
Disk sub type: Medium Type A, low Beta category (A-) (2)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359849 (79:59/74)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 7933
Starting to write CD/DVD at speed 12 in real TAO mode for single 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: 9 of 687 MB written (fifo 100%) [buf 4%] 9.3x.cdrecord: Succes s. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 00 12 2A 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 05 00 00 12 2D 0C 00 00 00 00 10 02 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x10 Qual 0x02 (id crc or ecc error) [No matching qualifier] Fru 0x0
Sense flags: Blk 4653 (valid)
cmd finished after 0.032s timeout 40s
write track data: error after 9523200 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
Writing time: 16.362s
Average write speed 371.5x.
Min drive buffer fill was 4%
Total of 1 possible drive buffer underruns predicted.
Fixating...
Fixating time: 21.872s
cdrecord: fifo had 214 puts and 151 gets.
cdrecord: fifo was 0 times empty and 128 times full, min fill was 90%.
Burning failed. Check docs for info.
Press [ENTER] to return to main menu.
|
after that, dmesg still didn't show anything.
then I tried running a simulation with cdrdao (since i've created around 10 coasters so far.)
Code: | bash-2.05b$ cdrdao simulate --device /dev/hdc --driver generic-mmc-raw /tmp/burn
/iso.toc
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
SCSI interface library - (C) Joerg Schilling
Paranoia DAE library - (C) Monty
Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
/dev/hdc: TDK CDRW121032A Rev: 1.00
Using driver: Generic SCSI-3/MMC (raw writing) - Version 2.0 (options 0x0000)
Burning entire 79 mins disc.
Starting write simulation at speed 12...
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Using 96 byte raw P-W sub-channel data mode.
WARNING: No super user permission to setup real time scheduling.
Writing lead-in and gap...
Writing track 01 (mode MODE1/AUDIO )...
ERROR: Write data failed.s 100% 6%).
ERROR: Writing failed - buffer under run?
ERROR: Simulation failed.
|
again... nothing from dmesg. i think i might have a problem with that even -_-
any insight whatsoever would be appreciated
EDIT: I just successfully blanked a CD-RW using cdrecord -v -dev=/dev/hdc blank=fast... o_0 and testing another......... works again! now let me see if i can write... eh i'll come back in the morning. (burner max rw speed is 4x ><, its 3am) |
|
Back to top |
|
|
|