LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-27-2005, 03:27 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,416

Rep: Reputation: 53
Cdrecord - flag question


Hi folks,

In running command line to burn a group of directories including their files on the fly what flag shall be used to check the total size of directories/files added to determine the size of the CD is sufficient for burning. On running K3b/cdroast GUI indicates the total size of the files added to the project.

TIA

B.R.
satimis
 
Old 05-27-2005, 03:49 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I would first check how much room the directory uses:

# How much used drive space in a directory
du -sh /path/to/directory

Make the iso and check the resulting size. cdrecord should warn you it is too big to fit to the cd and refuse to do it if too large.

Here are some notes I have collected about CD and iso stuff.

How about CD copying, ripping and burning? I can't figure it out.
# CD burning copying ripping info
Is it configured and what is the device? Command this to find out:
cdrecord -scanbus

# Recomended GUI front ends for CD burner
XCDRoast
K3b - CD/DVD Kreator for KDE
Adding an IDE CD-Writer to Linux
Linux DVD HOWTO
CD Writing HOWTO
Burning CDs on Linux
# Burn an ISO to disk
cdrecord -v speed=<burning speed> dev=<your device> /path/to/foo.iso ; eject

cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/Win2KUpgrade.iso;eject

cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/gnuwinII_August_12_2004.iso;eject

cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/gnuwinII_bonus_August_12_2004.iso;eject

# New command for kernel 2-6?
cdrecord -v speed=8 dev=ATAPI:1,1,0 /home/fancy/gnuwinII_August_12_2004.iso ; eject

# Burn from disk to disk
cdrecord -v dev=<your device> speed=<burning speed> -isosize /dev/cdrom ; eject
# ISO information
isoinfo -i -d /dev/cdrom
# Generate an ISO from a directory.
mkisofs -vrTJUV "Label" -o foo.iso /path/to/directory

mkisofs -vrTJUV "Games" -o Games.iso /pub/downloads/WindowsStuff/Games

mkisofs -vrTJUV "Downloads" -o downloads.iso /pub/dlcd

# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# cdparanoia - search for a drive with reporting of autosense:
cdparanoia -vsQ
# Rip a complete audio CD with cdparanoia
cdparanoia -B "1-";eject
# Convert wav files to oggvorbis
oggenc somefile.wav
Linux MP3 CD Burning mini-HOWTO
# Convert mp3 to wav with lame
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
# Burn a CD from wav files
cdrecord -v -audio -pad speed=<burning speed> dev=<your device> /path/to/*.wav;eject

cdrecord -v -audio -pad speed=8 dev=0,0,0 /home/fancy/recordings/*.wav;eject

# Copy CD using cdrdao
cdrdao read-cd --device <your device> --read-raw --datafile mydata.bin -v 99 mydata.cue
cdrdao write --device <your device> --overburn -v 99 --speed <burning speed> mydata.cue
# Erase a CDRW
cdrecord -v dev=<your device> speed=<burning speed> blank=fast
# Mount CD iso images as a filesystem
mount /path/to/foo.iso /mnt/<directory> -t iso9660 -o ro,loop=/dev/loop0
Example:
mount /home/fancy/iso/distros/Mandrake92-cd1-inst.i586.iso /mnt/cdrom -t iso9660 -o ro,loop=/dev/loop0
See man <command> or info <command> for full list of available flags and examples.

Last edited by fancypiper; 05-27-2005 at 03:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mkisofs - flag question satimis Linux - Software 2 10-08-2005 08:38 AM
Flag question of Tar command satimis Linux - General 8 06-28-2005 09:59 AM
cdrecord Question dollaz Linux - Software 2 12-30-2004 03:44 PM
Cdrecord question satimis Linux - Software 6 10-22-2004 08:46 PM
cdrecord question Lleb_KCir Linux - Software 7 04-13-2004 03:02 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration