2008/07/25

The Labs.Com System Lab CDROM
Last update 2001/03/31
The Labs - Design & Functionality For The Net

CDROM, Burning CDs, Copying Music CDs

  1. Introduction
  2. Packages
  3. ISO-9960
  4. Hybrid
  5. ISO-9660/HFS/JOLIET
  6. Bootable CDs
  7. Music CD to MP3
  8. Music CD to Music CD
CDROM
1. Introduction
CDROM is a media which roughly takes 650MB data, either music or data (pictures, text, music, video). Here some resources how to read, copy and write CDs under UNIX.

CDROM
2. Packages

Some programs you might to use first:

CD Record
The must program
MkISOFS
The original which doesn't support HFS or Joliet (include by cd-record)
CD PARANOIA
Read music CDs
MkHybrid
Make an ISO9660/HFS/JOLIET shared hybrid CD volume

FreeBSD Ports
 
  • /usr/ports/sysutils/cdrecord
  • /usr/ports/sysutils/mkisofs

CDROM
3. ISO-9960

mkisofs (is part of cd-record) allows you to create a monolithic filesystem containing files (MP3, or general data):

 mkisofs -R -o cdimage.raw /home/joerg/master/tree 

cdimage.raw contains the data.

ISO-9660 isn't really state-of-the-art, since it's only allows filenames with 8.3 (DOS), therefore following enhancements are possible: Rock Ridge extension: uses still 8.3 filenames, but handles files which properly and reduces filenames without overwriting filename-reduced files. Therefore use -R always when using mkisofs.

CDROM
4. Hybrid: ISO-9660/HFS/JOLIET

MkHybrid allows to write data-CDs (ie. with MP3, or whatever) to be used on UNIX (ISO-9660 + Rock-Ridge ext.), Windowz (ISO-9660 + Joliet ext.), and MAC platform (HFS). Please check the documentation about variants of it.

To make a data-CD for UNIX/Win95/Mac:

 mkhybrid -R -J -hfs -l -o cdimage.raw /home/joerg/master/tree 

CDROM
5. Bootable CDs

 mkisofs -R -b images/boot.img -c images/boot.cat -o dump.iso <dir> 
 cdrecord -eject -v speed=4 dev=4,0 dump.iso 

CDROM
6. Music CD to MP3

A Music-CD contains about 75-76 minutes of music (16bit, 44.1kHz, 650MB), but since MP3 was invented music can be compressed 10:1 without loss of quality at 16 bit quality. Many people started to converted their Music-CDs to MPEG3 and put them back on CD-ROM, ie. 10 Music-CDs on one CD-ROM in MPEG3 format.

MP3 Lab
Our section with hints and description
MP3.Com
Main hub to get resources on mp3's (players, converters etc)
MPEG.Org
MPEG related stuff (video & music)

Make sure your CD-ROM (reader or writer) supports CDDA, read your technical manual you have of your drive, look with CD-Paranoia documentation.

Convert it to WAV (or raw 16bit without header) and then to MP3 (several encoders are available) and finally CDRECORD to burn the data CD (which cannot be played by an ordianary CD-Player).

A program doing all this in one is called record_cd2mp3 or xcdroast, it requires a lot of programs as mentioned above already, best place to find these look at freshmeat.net.

CDROM
7. Music CD to Music CD

We recommend the XCDRoast (search within freshmeat to find download), which uses CD-Record and CD-Paranoia.

                                                                                                                                   

SCSI Lab System LabPDA Lab

Last update 2001/03/31

All Rights Reserved - (C) 1997 - 2008 by The Labs.Com

Top of Page

The Labs.Com