unixadmin.free.fr just another IBM blog and technotes backup

5oct/12

Graver un DVD-RAM sur DEBIAN LINUX

Installer dvd+rw-tools

root@GSE:~# apt-get install dvd+rw-tools

Lister le type de DVD ainsi que son fichier spécial

root@GSE:~# egrep '(CD|DVD)' /var/log/dmesg
[    1.572312] ata2.00: ATAPI: HL-DT-ST DVDRAM GSA-4082B, A206, max UDMA/66
[    1.681985] scsi 1:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-4082B A206 PQ: 0 ANSI: 5
[    1.740407] Uniform CD-ROM driver Revision: 3.20
[    1.740525] sr 1:0:0:0: Attached scsi CD-ROM sr0

root@GSE:~# grep sr0 /var/log/dmesg
[    1.740401] sr0: scsi3-mmc drive: 32x/32x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.740525] sr 1:0:0:0: Attached scsi CD-ROM sr0

Formater un DVD-RW et DVD-RAM

root@GSE:~# dvd+rw-format /dev/sr0
* BD/DVD±RW/-RAM format utility by <appro@fy.chalmers.se>, version 7.1.
* 4.6GB DVD-RAM media detected.
- media is already formatted, lead-out is currently at
  4473408 KiB which is 100.0% of total capacity.
- you have the option to re-run dvd+rw-format with:
  -format=full  to perform full (lengthy) reformat;
  -ssa[=none|default|max]
                to grow, eliminate, reset to default or
                maximize Supplementary Spare Area.


root@GSE:~# dvd+rw-format -format=full /dev/sr0
* BD/DVD±RW/-RAM format utility by <appro@fy.chalmers.se>, version 7.1.
* 4.6GB DVD-RAM media detected.
* formatting 74% ....

Informations

root@GSE:~# dvd+rw-mediainfo /dev/sr0
INQUIRY:                [HL-DT-ST][DVDRAM GSA-4082B][A206]
GET [CURRENT] CONFIGURATION:
 Mounted Media:         12h, DVD-RAM
 Current Write Speed:   3.0x1385=4155KB/s
 Write Speed #0:        3.0x1385=4155KB/s
GET [CURRENT] PERFORMANCE:
 Write Performance:     3.0x1385=4155KB/s@[0 -> 2236703]
 Speed Descriptor#0:    02/2236703 R@3.0x1385=4155KB/s W@3.0x1385=4155KB/s
READ DVD STRUCTURE[#0h]:
 Media Book Type:       00h, DVD-ROM book [revision 0]
 Legacy lead-out at:    2314080*2KB=4739235840
DVD-RAM SPARE AREA INFORMATION:
 Primary SA:            12800/12800=100.0% free
 Supplementary SA:      58368/58368=100.0% free
DVD-RAM WRITE PROTECTION STATUS:
 Persistent Write Protection is off
READ DISC INFORMATION:
 Disc status:           other
 Number of Sessions:    1
 State of Last Session: complete
 "Next" Track:          1
 Number of Tracks:      1
READ FORMAT CAPACITIES:
 formatted:             2236704*2048=4580769792
 00h(800):              2236704*2048=4580769792
 00h(800):              2295072*2048=4700307456
 01h(800):              2226976*2048=4560846848
 01h(800):              2217248*2048=4540923904
FABRICATED TOC:
 Track#1  :             14@0
 Track#AA :             14@2236704
 Multi-session Info:    #1@0
READ CAPACITY:          2236704*2048=4580769792

Protection

root@GSE:~# dvd-ram-control -rdonly /dev/sr0
Persistent Write Protection is on

root@GSE:~# dvd-ram-control -rdwr /dev/sr0
Persistent Write Protection is off

Graver le contenu d'un répertoire

root@GSE:/# growisofs -Z /dev/sr0 -R -J /tmp/dir1

Ajouter au DVD le contenu d'un autre répertoire

root@GSE:/# growisofs -M /dev/sr0 -R -J /tmp/dir2

Graver une image ISO

root@GSE:~# growisofs -Z /dev/sr0=stresslinux_64bit_11.4.x86_64-0.7.106.iso
Commentaires () Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant