LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2011, 08:24 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,666

Rep: Reputation: 127Reputation: 127
How to directly burn a list of files to a CDROM or DVD disc?


Hello,

"List.lst" is my file containing my files. How may I burn them onto my blank disc with either growisofs or cdrecord?

Usually it is based on a copy of a folder to a temp folder, and burn this folder. but I would like to use a file as input. man growisofs is not so widely full of explanations.. .

thanks in advance
 
Old 06-23-2011, 10:24 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
How about something like this?

Code:
tmpdir="/tmp/${RANDOM}-$(date %s)"
mkdir "$tmpdir"

while read file
do
    cp "$file" "$tmpdir"
done < List.lst

mkisofs -r -o image.iso "$tmpdir"

rm -r "$tmpdir"
 
Old 06-23-2011, 01:47 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,666

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by MTK358 View Post
How about something like this?

Code:
tmpdir="/tmp/${RANDOM}-$(date %s)"
mkdir "$tmpdir"

while read file
do
    cp "$file" "$tmpdir"
done < List.lst

mkisofs -r -o image.iso "$tmpdir"

rm -r "$tmpdir"

this method you have been given, is not directly a burning way technqiue. you create an ISO then you burn... thank you anyhow. thx

You know the reason why this thread, I know that K3B has a very well advanced way to burn the DVD-roms using growisofs
If you could, could you do a ps aux and report me the command K3B uses to burn directly ? It uses as well a < input file ... temporally created in the /tmp (unfornutately I have not K3B installed at work)


this one, but i am sure that k3b does better
Quote:
growisofs -dvd-compat -speed=4 -Z /dev/cdrom -R -J -pad $FILE.TXT

Last edited by Xeratul; 06-23-2011 at 02:04 PM.
 
Old 06-23-2011, 02:03 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by Xeratul View Post
this method you have been given, is not directly a burning way technqiue. you create an ISO then you burn...

You know the reason why this thread, I know that K3B has a very well advanced way to burn the DVD-roms using growisofs
If you could, could you do a ps aux and report me the command K3B uses to burn directly ? It uses as well a < input file ... temporally created in the /tmp (unfornutately I have not K3B installed at work)
I don't know about K3B, but this is the usual way to burn discs from the command line is with cdrecord.
 
Old 06-23-2011, 04:04 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,666

Original Poster
Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by MTK358 View Post
I don't know about K3B, but this is the usual way to burn discs from the command line is with cdrecord.
but I would be surely wishing to burn without creating a temp ISO, direclty, like does K3B. I guess that might be possible,... would be cool but does not states on boards ...

Growisofs works too, I tried but it failed sometimes for x obscur reasons...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot burn iso image with k3b: cdrom doesn't realize blank dvd is inserted fritz_p Linux - Newbie 2 05-08-2009 12:35 AM
Playing video files directly from a DVD (avi, mpeg, etc.) rm_-rf_windows Linux - Software 3 06-26-2007 12:12 AM
burn 2 iso files to 1 CDrom richjoh Linux - Newbie 5 01-23-2006 07:42 PM
k3b hangs when trying to burn dvd+rw disc but not cd rw disc laiboonh Slackware 0 11-06-2004 12:22 PM
DVD/CDRW Everything works except I can't burn to a blank disc Nick1104 Linux - Hardware 4 04-03-2004 11:43 AM


All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration