stclug.sluug.org

Download Report

Transcript stclug.sluug.org

CD Creation
St Charles Linux Users Group
Carl Fitch
[email protected]
[email protected]
IDE : SCSI : ATAPI
Access to hardware is required - SCSI command
set required
IDE drives need hd(drive letter)=ide-scsi
Lilo example : append=”hdc=ide-scsi”
May have to recompile kernal with
–
Block devices -> Include IDE/ATAPI CDROM support = n
–
Block devices -> SCSI emulation support = y
–
Both SCSI support and SCSI CDROM support will be enabled. (y) not (M).
Iso9660 File system
Only 8 levels of sub-directories allowed.
Maximum length for filenames: 32 characters
640 MB capacity
Directory structure similar to DOS
Sector size of 2048 bytes
Permits only capital letters, digits and underscores in a file or
directory name or extension
Read-only
Audio vs Data CD's
Audio CDs use all 2352 bytes per block for sound samples.
Data CD-ROMs use 2048 bytes per block, with most of the rest
going to ECC (Error Correcting Code) data
Both have two lower levels of correction through CIRC (CrossInterleaved Reed-Solomon Code) encoding
Extensions
RockRidge
Extension to allow longer filenames
Deeper directory hierarchy for the ISO-9660 file system
Under Linux, known properties of files like owner, group,
permissions, symbolic links appear ("feels like a Unix file system").
These extensions are not displayed under DOS or the Windowsfamily of operating systems.
Extensions
El Torito
Used to produce bootable CD-ROMs.
The BIOS of your PC must support it.
The first 1.44 or 2.88 Mbytes of the CD-ROM contains a floppy-disk
image supplied by you.
This image is treated like a floppy by the BIOS and booted from.
While booting from this virtual floppy, your original drive A:
(/dev/fd0) may not be accessible.
Extensions
HFS
Lets a Macintosh read the CD-ROM as if it were an HFS volume (the
native file system for Mac OS).
Extensions
Joliet
Brings long filenames (among other things) to newer Windows (95+)
Use filenames up to 64 characters in length, including spaces.
Records the associated DOS-standard name for each file so that the disc
may be read on DOS systems
Extensions
VCD
Video-CDs can be directly played on DVD-devices.
Each disk contains about one hour of video. As a result most movies
come on two disks.
Highly compressed and does not have the smoothness or color of a
DVD disk.
Copying CD
Dd and Cat
Readcd
Grip
Cdda2wav
Cdparanoia
Copying CD - system
dd
if=/dev/cdrom
|
|
(device to read from)
of=/temp/iso/cd.iso
(file to write image
to)
cat
/dev/scd0
|
|
(device to read from)
/temp/iso/cd.iso
(file to write image
to)
Does not need to be run as sudo or root
Copying CD - readcd
Part of the cdrecord suite
Must be run sudo or root
[root@hickorydale carl]# readcd
0:read 1:veri 2:erase 3:read buffer 4:cache 5:ovtime 6:cap
7:wne 8:floppy 9:verify 10:checkcmds 11:read disk 12:write disk
13:scsireset 14:seektest 15: readda 16: reada 17: c2err
Enter selection: 0 (0 - 20)/<cr>:
Copying Music CD - grip
Audio CD ripper with
point and click interface to
cdparanoia
Copying Music CD
Cdda2wav
cdda2wav -D 0,4,0 -B /tmp/prefix-of-music-files
-D 0,4,0 : set the cdrom or scsi device (as Bus,Id,Lun)
-B path : record each track into a seperate file.
The files will be written out as:
/tmp/prefix-of-music-files_01.inf
/tmp/prefix-of-music-files_01.wav
/tmp/prefix-of-music-files_02.inf ...
Cdparanoia
cdparanoia -vB 1- /temp/wave/
-v
: verbose, uses emoticons to display progress/errors
-B :batch, save each file in seperate file
outputting to /temp/wave/track01.cdda.wav
(== PROGRESS == [
>
| 035129 00 ] == :^D * ==)
Rippers and Encoders
Lame
bladeenc
l3enc
mp3enc
gogo
Making an .iso Image
1. Create directory and import files.
2. Use mkisofs to make iso image.
mkisofs -rJ
-o cd_image private_collection/
'---' '------------'
'---------------------'
|
|
|
(make public & Joliet) (write output to) (take directory as input)
3. Test the image
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /mnt/iso
- and look around
or
cmp /dev/cdrom cd_image
Writing the CD with Cdrecord
Part of the cdrtools by Jorg Schilling
http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdrecord.html
cdrecord -vv speed=10 dev=0,0 -eject /home/temp/cd.iso
`--' `----------' `--------' `-----' `---------------------'
/
|
\
\
\
(verbose) (max write speed) (device) (when done) (iso image file)
cdrecord --scanbus
|
look for cd writer
XCDRoast
http://www.xcdroast.org/
Features included in new version 0.98:
Easy setup and intuitive X11 user interface
GUI based on GTK+ instead of TCL/TK
Copies most data/mixed-mode/audio-CDs (data
also on-the-fly)
Master data-CDs and rearrange audio-CDs (data
also on-the-fly)
Create your own audio-CDs (full Disk-at-Once
support)
Multisession/Bootable CD creation.
Supports SCSI/ATAPI/Parallel/Firewire/USBCD-Writers available
Supports different international languages
CDDB-Lookups and CD-Text writing
Online help
Administration mode for usage in computer
pools.
Fully themeable via GTK-Themes
Runs on most common Unix-Operation-Systems
(Primary platforms: Linux and Solaris)
Does only need root to install - then it will work
also as normal user (non-root mode)
DVD-Writing
Eroaster
http://eclipt.uni-klu.ac.at/eroaster.php
Features:
Writes data CDs, audio CDs and ISO images
on the fly
Reads data and audio CDs
Directly copy data Cds
Drag and Drop support (GNOME and KDE)
Nice user interface
Nice and informative output window
Auto-selection of files to fill CDs
Auto-conversion of mp3-files to wav-files
Normalization of wav-files
Multisession support
Support of creation of bootable CDs
Project management to save compilations of
files