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

Re: How to tell if mounted media is CD-R, CD-RW or CD-ROM?



Hi,

>>>> Looks like Joerg is not amused by some bug-or-feature of
>>>> your Linux.
>>>
>>> Take out the "your" part :-)
>>
>> Ok. Neither mine nor yours.
> 
> I meant Joerg has problems with linux in general (and I tend to agree
> with him as regards to linux scsi infrastructure), not any specific
> distributions (mine or yours).

It is often about certain kernel versions and certain
intermediate states of the infrastructure.
After all, the "botch" text was new to me.


> However, i found out that even if I don't get the "erasable" strings,
> if I add "-v" I get the same info in another way (the "current
> profile" stuff)
> 
> So immediate problem is solved.

My self compiled cdrecord reports about my burner holding a CD-RW :

  $ cdrecord -v dev=0,0,0 -atip
  Cdrecord-Clone 2.01.01a04 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
  ...
  Vendor_info    : 'HL-DT-ST'
  Identifikation : 'DVDRAM GSA-4082B'
  ...
  Current: 0x000A
  ...
  Profile: 0x0009
  Profile: 0x000A (current)
  Profile: 0x0008 (current)
  Profile: 0x0002

whereas the ProDVD binary reports for the same situation

  $ /usr/bin/cdrecord-prodvd.sh -v dev=0,0,0 -atip
  Cdrecord-ProDVD-Clone 2.01.01b03 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
  ...
  Current: CD-RW
  ...
  Profile: CD-R
  Profile: CD-RW (current)
  Profile: CD-ROM (current)
  Profile: Removable Disk 

Google makes me believe that the hex values are drive independend:
  http://cvs.opensolaris.org/source/xref/on/usr/src/cmd/cdrw/mmc.c
  Function print_profile_name()   
So probably one should count 
  Current: 0x000A 
as alias of 
  Current: CD-RW


Have a nice day :)

Thomas



Reply to: