LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to directly burn a list of files to a CDROM or DVD disc? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-directly-burn-a-list-of-files-to-a-cdrom-or-dvd-disc-887924/)

Xeratul 06-23-2011 07:24 AM

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

MTK358 06-23-2011 09:24 AM

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"


Xeratul 06-23-2011 12:47 PM

Quote:

Originally Posted by MTK358 (Post 4393744)
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

MTK358 06-23-2011 01:03 PM

Quote:

Originally Posted by Xeratul (Post 4393889)
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.

Xeratul 06-23-2011 03:04 PM

Quote:

Originally Posted by MTK358 (Post 4393911)
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... :(


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