El blog de Julián :-)!

Información para compartir :-)!

Posts Tagged ‘dvd

Clonar un CD/DVD desde la consola de GNU/Linux

leave a comment »

Con ‘clonar un CD/DVD’ se quiere decir realizar una o más copias de uno de estos discos partiendo de un original.

Para ello primero se debe hacer la imagen del disco original con el comando ‘dd’

root@mini:# dd if=/dev/cdrom of=imagen.iso

Por supuesto, el dispositivo de entrada (indicado con ‘if’ en el comando de arriba) puede ser también ‘/dev/dvd’ sí se está copiando un DVD.

Sí la imagen que se está copiando es de un DVD se la puede grabar con el comando

root@mini:# growisofs -dvd-compat -Z /dev/dvd=imagen.iso

Y sí se trata de un CD, se puede usar el comando

root@mini:# wodim -v dev=/dev/sg1 imagen.iso

Por supuesto, se debe adaptar el dispositivo de escritura (en este caso ‘/dev/sg1’) al que esté presente en cada máquina en particular.

Más información sobre growisofs en esta página  .

Sobre ‘wodim’ es interesante este extracto del README.ATAPI.setup que viene con el paquete

Howto setup an ATAPI CD-RW/DVD+-RW recorder on Debian/Ubuntu
============================================================

This guide should be applicable to most kernel 2.6 using distributions of
GNU/Linux. For installations with kernel 2.4, continue reading below.

Kernel 2.6.*
============

If you have just one CD writer in your computer, CD-writing should work out of
the box. There should be a symbolic link /dev/cdrw which points to your actual
CD-Writer’s device (e. g. /dev/hdb). If the link is not present (eg. the
system is not using udev/devfs) or if you want to use a different device as
default, you can configure the device in /etc/wodim.conf:

CDR_DEVICE=/dev/hdd

would configure the default device to be /dev/hdd, i. e. the slave
device on the secondary IDE bus.

You can always override this default setting with wodim’s «dev»
option:

wodim dev=/dev/hdc …

Only users part of the system group «cdrom» are able to write CDs.
If you wish to allow non-root users to write CDs then add your users to the
cdrom group («adduser user cdrom») and let the user completely logout and
re-login.
Note: with certain kernel versions wodim can fail with this message:
«wodim: Operation not permitted. Cannot send SCSI cmd via ioctl»
In this case it still does need the suid bit – please send patches if you have
identified the reason of that problem.

 

Written by jrpk

septiembre 4, 2017 at 12:31 am