lost and found ( for me ? )

Fedora 18 : how to burn an ISO image with CLI ( wodim )

small tips.
You can burn an ISO image into CD / DVD media with CLI by using wodim command.

[root@localhost ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)

[root@localhost ~]# uname -ri
3.7.2-204.fc18.x86_64 x86_64

install wodim via yum
[root@localhost ~]# yum install -y wodim

[root@localhost ~]# wodim --version
Cdrecord-yelling-line-to-tell-frontends-to-use-it-like-version 2.01.01a03-dvd
Wodim 1.1.11
Copyright (C) 2006 Cdrkit suite contributors
Based on works from Joerg Schilling, Copyright (C) 1995-2006, J. Schilling

check your CD/DVD drive path. nn , can’t find the location.
[root@localhost ~]# wodim --devices
wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try 'wodim --devices' or 'wodim -scanbus'.
For possible transport specifiers try 'wodim dev=help'.
For IDE/ATAPI devices configuration, see the file README.ATAPI.setup from
the wodim documentation.

check the device name from dmesg.
Seen from the output , my CD/DVD-ROM drive path seems to be /dev/sr0
[root@localhost ~]# dmesg | egrep -i "cd-rom|dvd-rom"
[    1.609196] ohci_hcd 0000:00:14.5: irq 18, io mem 0xfe7f6000
[    1.663828] usb usb7: Manufacturer: Linux 3.7.2-204.fc18.x86_64 ohci_hcd
[    1.664011] uhci_hcd: USB Universal Host Controller Interface driver
[    1.735715] usb 1-4: new high-speed USB device number 3 using ehci_hcd
[    1.838744] ata2.00: ATAPI: hp        DDVDW TS-H653R, 0E00, max UDMA/100
[    1.842532] scsi 1:0:0:0: CD-ROM            hp       CDDVDW TS-H653R  0E00 PQ: 0 ANSI: 5
[    1.846239] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.846246] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.846586] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    2.076998] usb 3-3: new low-speed USB device number 2 using ohci_hcd
[    2.593983] usb 2-6: new high-speed USB device number 4 using ehci_hcd
[   13.020578] usb 5-1: new low-speed USB device number 2 using ohci_hcd
[   13.426786] usb 5-2: new full-speed USB device number 3 using ohci_hcd

check the device info with udevadm
[root@localhost ~]# udevadm info --query=all --name=/dev/sr0
P: /devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sr0
N: sr0
L: -100
S: cdrom
S: disk/by-id/ata-hp_DDVDW_TS-H653R_R3786GBZ414203
E: DEVLINKS=/dev/cdrom /dev/disk/by-id/ata-hp_DDVDW_TS-H653R_R3786GBZ414203
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:11.0/ata2/host1/target1:0:0/1:0:0:0/block/sr0
E: DEVTYPE=disk
E: ID_ATA=1
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_BUS=ata
E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MEDIA=1
E: ID_CDROM_MEDIA_DVD_R=1
E: ID_CDROM_MEDIA_SESSION_COUNT=1
E: ID_CDROM_MEDIA_SESSION_NEXT=1
E: ID_CDROM_MEDIA_STATE=blank
E: ID_CDROM_MEDIA_TRACK_COUNT=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_MODEL=hp_DDVDW_TS-H653R
E: ID_MODEL_ENC=hp\x20\x20\x20\x20\x20\x20\x20\x20DDVDW\x20TS-H653R\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_REVISION=0E00
E: ID_SERIAL=hp_DDVDW_TS-H653R_R3786GBZ414203
E: ID_SERIAL_SHORT=R3786GBZ414203
E: ID_TYPE=cd
E: MAJOR=11
E: MINOR=0
E: MPATH_SBIN_PATH=/sbin
E: SUBSYSTEM=block
E: TAGS=:seat:systemd:uaccess:
E: USEC_INITIALIZED=117573

/dev/cdrom is a symbolic link to /dev/sr0
[root@localhost hattori]# ls -l /dev/cdrom
lrwxrwxrwx. 1 root root 3 Jan 24 00:02 /dev/cdrom -> sr0

insert a blank DVD media and burn the ISO into that media.
[root@localhost ~]# wodim -v dev=/dev/cdrom speed=8 -eject /home/hattori/Fedora-18-x86_64-DVD/Fedora-18-x86_64-DVD.iso
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 1 = CD-ROM
scsidev: '/dev/cdrom'
devname: '/dev/cdrom'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
SCSI buffer size: 64512
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : 'hp      '
Identification : 'CDDVDW TS-H653R '
Revision       : '0E00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0011 (DVD-R sequential recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0016 (DVD-R/DL layer jump recording)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording) (current)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Drive buf size : 1081344 = 1056 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size      : 4194304 = 4096 KB
Track 01: data  4362 MB        
Total size:     5009 MB (496:17.92) = 2233344 sectors
Lout start:     5009 MB (496:19/69) = 2233344 sectors
Current Secsize: 2048
HINT: use dvd+rw-mediainfo from dvd+rw-tools for information extraction.
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 65152
Speed set to 11080 KB/s
Starting to write CD/DVD at speed   8.0 in real unknown mode for single session.
Last chance to quit, starting real write in    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 4362 of 4362 MB written (fifo 100%) [buf  99%]   8.1x.
Track 01: Total bytes read/written: 4573888512/4573888512 (2233344 sectors).
Writing  time:  527.256s
Average write speed   6.4x.
Min drive buffer fill was 99%
Fixating...
Fixating time:   13.773s
wodim: fifo had 72044 puts and 72044 gets.
wodim: fifo was 0 times empty and 23074 times full, min fill was 73%.
[root@localhost ~]#

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.