john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Burn cd dvd blu ray from commandline cdrecord or k3b

read access to a dvd drive:

mkdir /mnt/dvdwr

mount /dev/dvdrw /mnt/dvdrw


k3b is the best blu-ray burning software, lot of KDE dependencies (brasero gnome's default was buggy - failed with unknown error)

apt-get update apt-get install k3b

that's it!

growisofs is a front-end to mkisofs!

mkisofs -o test.iso -Jrv -V test_disk /home/carla/

-o names the new .iso image file (test.iso) -J uses Joliet naming records, for Windows compatibility -r uses Rock Ridge naming conventions for UNIX/Linux compatibility, and makes all files publicly readable -v sets verbose mode, for a running commentary as the image is created -V provides a volume ID (test_disk); this is the disk name that shows up in Windows Explorer Last in the list are the files selected for packaging into the .iso (everything in /home/carla/)

mkdir /mnt/test_iso mount -t iso9660 -o ro,loop=/dev/loop0 test.iso /mnt/test_iso

cdrecord -scanbus

this should tell you where your DVD burner is located e.g.

scsibus1: 1,0,0 100) 'HL-DT-ST' 'DVD-RAM GH40L ' 'LA00' Removable CD-ROM

cdrecord -eject //will push the tray out, nice!


cdrecord -v -eject dev=1,0,0 CentOS-5.3-x86_64-bin-DVD.iso

Above will default to speed in global settings or max drive speed BUT it also defaults to TAO (tracks at once) which is generally bad (unless you have a specific reason that you need gaps?)

cdrecord -v -eject -dao dev=1,0,0 CentOS-5.3-x86_64-bin-DVD.iso

This gives you a 10 second count down to chicken out... and then you're burning at 17x!

start at 16:21 with 4.3GB iso... finished before 16:31 (wasn't looking)


cdrecord -v -eject speed=8 dev=0,1,0 test.iso

-v is verbose -eject ejects the disk when finished -speed specifies write speed (8) -dev is the device number (0,1,0) obtained from cdrecord -scanbus Last is the name of the image being burned (test.iso)

To directly copy from the source disk to the recordable disk (but can cause errors!)

cdrecord -v dev=0,1,0 speed=4 -isosize /dev/scd0

the contents of the CD-ROM, /dev/scd0, to the CD recorder, dev=0,1,0.

IT'S BETTER to copy the contents to a the hard drive and then burn

mount /cdrom $ dd if=/dev/scd0 of=/tmp/diskfile.iso $ cdrecord dev=0,1,0 speed=8 fs=8m -v -eject -dummy /tmp/diskfile.iso


mkisofs -r -o /tmp/var-www-disk1.iso /var/www

dvd+rw-mediainfo /dev/dvd


  • « Recover buffalo raid drive mdadm gpt xfs
  • Squid proxy ubuntu java jvm client configuration »

Published

Sep 9, 2012

Category

linux

~347 words

Tags

  • blu 1
  • burn 1
  • cd 3
  • cdrecord 1
  • commandline 12
  • dvd 1
  • from 24
  • k3b 1
  • linux 249
  • or 7
  • ray 1