[Unix] commande pour obtenir les propriétés d'un CD ou DVD

commande pour obtenir les propriétés d'un CD ou DVD [Unix] - Codes et scripts - Linux et OS Alternatifs

Marsh Posté le 18-07-2008 à 17:05:55    

Bonjour,
 
Pour obtenir l'information qui m'intéresse à savoir si un CD est réinscriptible ou pas j'utilise la commande : cdrecord dev=1,0,0 -atip qui me donne quelquechose du style :
ATIP info from disk:
[...]
  Is not unrestricted
  Is erasable
  Disk sub type: High speed Rewritable (CAV) media (1)
[...]

 
Par contre pour un DVD, cette commande retourne :
 ATIP start of lead in:  -150 (00:00/00)
Disk type:    unknown dye (reserved id code)

 
Ce qui ne m'aide pas...  :??:  
Quelqu'un connaîtrait-il une commande qui permet de savoir si un DVD est réinscriptible ?
 

Reply

Marsh Posté le 18-07-2008 à 17:05:55   

Reply

Marsh Posté le 18-07-2008 à 17:55:40    

wodim me dit d'utiliser : dvd+rw-mediainfo  et effectivement


[jules@tue-amour ~]$ wodim -atip
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/cdrw
Using /dev/cdrom of unknown capabilities
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : '_NEC    '
Identification : 'DVD_RW ND-3500AG'
Revision       : '2.16'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.

 

[jules@tue-amour ~]$ dvd+rw-mediainfo /dev/cdrom
INQUIRY:                [_NEC    ][DVD_RW ND-3500AG][2.16]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         1Ah, DVD+RW
 Media ID:              PHILIPS/041
 Current Write Speed:   6.1x1385=8467KB/s
 Write Speed #0:        6.1x1385=8467KB/s
 Write Speed #1:        5.1x1385=7056KB/s
 Write Speed #2:        4.1x1385=5645KB/s
 Write Speed #3:        3.1x1385=4234KB/s
 Write Speed #4:        2.0x1385=2822KB/s
 Write Speed #5:        1.0x1385=1411KB/s
GET [CURRENT] PERFORMANCE:
 Write Performance:     4.0x1385=5540KB/s@[0 -> 2295104]
 Speed Descriptor#0:    00/2295104 R@5.0x1385=6925KB/s W@4.0x1385=5540KB/s
 Speed Descriptor#1:    00/2295104 R@5.0x1385=6925KB/s W@2.4x1385=3324KB/s
READ DVD STRUCTURE[#0h]:
 Media Book Type:       00h, DVD-ROM book [revision 0]
 Legacy lead-out at:    2295104*2KB=4700372992
READ DISC INFORMATION:
 Disc status:           complete
 Number of Sessions:    1
 State of Last Session: complete
 Number of Tracks:      1
 BG Format Status:      suspended
READ FORMAT CAPACITIES:
 formatted:  2295104*2048=4700372992
 26h(0):  2295104*2048=4700372992
READ TRACK INFORMATION[#1]:
 Track State:           complete
 Track Start Address:   0*2KB
 Free Blocks:           0*2KB
 Track Size:            2295104*2KB
FABRICATED TOC:
 Track#1  :             14@0
 Track#AA :             14@2295104[jules@tue-amour ~]$ dvd+rw-mediainfo /dev/cdrom
INQUIRY:                [_NEC    ][DVD_RW ND-3500AG][2.16]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         1Ah, DVD+RW
 Media ID:              PHILIPS/041
 Current Write Speed:   6.1x1385=8467KB/s
 Write Speed #0:        6.1x1385=8467KB/s
 Write Speed #1:        5.1x1385=7056KB/s
 Write Speed #2:        4.1x1385=5645KB/s
 Write Speed #3:        3.1x1385=4234KB/s
 Write Speed #4:        2.0x1385=2822KB/s
 Write Speed #5:        1.0x1385=1411KB/s
GET [CURRENT] PERFORMANCE:
 Write Performance:     4.0x1385=5540KB/s@[0 -> 2295104]
 Speed Descriptor#0:    00/2295104 R@5.0x1385=6925KB/s W@4.0x1385=5540KB/s
 Speed Descriptor#1:    00/2295104 R@5.0x1385=6925KB/s W@2.4x1385=3324KB/s
READ DVD STRUCTURE[#0h]:
 Media Book Type:       00h, DVD-ROM book [revision 0]
 Legacy lead-out at:    2295104*2KB=4700372992
READ DISC INFORMATION:
 Disc status:           complete
 Number of Sessions:    1
 State of Last Session: complete
 Number of Tracks:      1
 BG Format Status:      suspended
READ FORMAT CAPACITIES:
 formatted:  2295104*2048=4700372992
 26h(0):  2295104*2048=4700372992
READ TRACK INFORMATION[#1]:
 Track State:           complete
 Track Start Address:   0*2KB
 Free Blocks:           0*2KB
 Track Size:            2295104*2KB
FABRICATED TOC:
 Track#1  :             14@0
 Track#AA :             14@2295104
 Multi-session Info:    #1@0
READ CAPACITY:          2295104*2048=4700372992

 

Multi-session Info:    #1@0
READ CAPACITY:          2295104*2048=4700372992


Message édité par Mjules le 18-07-2008 à 17:56:53

---------------
Celui qui pose une question est idiot 5 minutes. Celui qui n'en pose pas le reste toute sa vie. |  Membre du grand complot pharmaceutico-médico-scientifico-judéo-maçonnique.
Reply

Marsh Posté le 21-07-2008 à 11:05:36    

Merci, c'est bien ce que je cherchais !

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed