User Tools

Site Tools


linux:burning_from_console

BURNING CD/DVD FROM CONSOLE

  • CREATING ISO IMAGE
FROM SOME FOLDERS

mkisofs -A disc1 -r -o /tmp/example.iso /folders/to/be/included

-A application_id Specifies a text string that will be written into the volume header. This should describe the application that will be on the disc. There is space on the disc for 128 characters of information. This parameter can also be set in the file .mkisofsrc with APPI=id. If specified in both places, the command line version is used.

-r This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author's system, and not useful to the client. All the file read bits are set true, so that files and directories are globally readable on the client. If any execute bit is set for a file, set all of the execute bits, so that executables are globally executable on the client. If any search bit is set for a directory, set all of the search bits, so that directories are globally searchable on the client. All write bits are cleared, because the CD-Rom will be mounted read-only in any case. If any of the special mode bits are set, clear them, because file locks are not useful on a read-only file system, and set-id bits are not desirable for uid 0 or gid 0. When used on Win32, the execute bit is set on all files. This is a result of the lack of file permissions on Win32 and the Cygwin POSIX emulation layer. See also -uid -gid, -dir-mode, -file-mode and -new-dir-mode.

-R Generate SUSP and RR records using the Rock Ridge protocol to further describe the files on the iso9660 filesystem. The Rock Ridge protocol is needed in order to add POSIX like file meta data like permissions, extended time stamps, user/group is'd, link counts, inode numbers and symbolic links. The Rock Ridge protocol allows to archive hierarchy trees with unlimited depth.

FROM DISCS DIRECTLY

dd if=/dev/dvd of=dvd.iso

  • BURNING DVD

growisofs -speed=4 -dvd-compat -Z /dev/dvd=image.iso # burning ISO image
growisofs -dvd-compat -speed=4 -Z /dev/dvd -R -J -pad /dirpath1 /dirpath2 # burning folders

-R Rock Ridge extension (ISO-9660 extension to allow long file names, UNIX symlinks and file protection (rwx). Windows readable.)
-J Microsoft extension to ISO-9660. Creates MS/Windows 95 like 8.3 file names with translation to 64 character names.
DAO Burn entire audio CD at once in a single burn. It's the only way to avoid delays between tracks
TAO Burn a track at a time. Results in 2 second delay between audio tracks.

  • BURNING CD

cdrecord -v -eject speed=16 dev=/dev/cdwriter image.iso

For audio cd's

cdrecord -v -eject speed=16 dev=/dev/cdwriter -audio -pad *.wav

linux/burning_from_console.txt · Last modified: 2013/03/16 17:40 (external edit)