View previous topic :: View next topic |
Author |
Message |
crouse Site Admin

Joined: 17 Apr 2025 Posts: 8985 Location: Iowa
|
Posted: Tue Apr 22, 2025 4:54 pm Post subject: Linux - Burning ISO's -- Via The Command Line |
|
|
Well after messing with X-CD-Roast for awhile I decided it was time to delv into the command line for a simple solution. I was wanting to burn my iso files of Mandrake into usable disks. I did a quick search here on Techimo and didn't find a reference to the actual command line commands. So here's what I did, for those of you interested........ if anyone can comment on a better faster way..... I'm all for it
Open a terminal window
su to gain root privileges
cd to the directory containing the iso file(s)
for my system .......at the command line I typed
cdrecord dev=0,2,0 -v Mandrake90-cd1-inst.i586.iso
Your system might be slightly different.....but you can gain some useful information by (as root) running the following commands:
cdrecord -help list of commands
cdrecord -scanbus shows you what the (x,y,z) number of your cdr is........example mine above was :
cdrecord dev=0,2,0 -v Mandrake90-cd1-inst.i586.iso
After starting the cd writer in command line mode... it took approx 6 1/2 minutes to burn my iso to disk. This is an easy way for me to burn my iso files into usable disks. I actually saved a text file that I can cut and paste the entire command.......... for any particular iso file I have downloaded and in my iso directory ............ quickly.
cdrecord dev=0,2,0 -v -eject Mandrake90-cd2-ext.i586.iso
Adding the -eject in the command ejects the cd when the burning process is done.~~~cool
Just thought I'd share this with anyone that was interested. Like I said........... if there is a quicker command line way... I'd like to know.
---------------------------------------------------------
Now.......... to burn a bunch of .wav files from a directory to a cd via the command line.
cd to the directory where your .wav files are located.
Type the command:
cdrecord -v -pad speed=1 dev=0,2,0 -dao -audio -swab *.wav
Your DEV setting might need to be changed from 0,2,0 to whatever yours is. All the .wav files will be in alphabetical order too
Last edited by crouse on Fri Jan 02, 2025 6:24 pm; edited 2 times in total |
|
Back to top |
|
crouse Site Admin

Joined: 17 Apr 2025 Posts: 8985 Location: Iowa
|
|
Back to top |
|
mmmna . . . . . . .

Joined: 21 Apr 2025 Posts: 5100 Location: Centah Bahnstead Nuh Ham-shuh
|
Posted: Sat Jun 14, 2025 3:14 am Post subject: |
|
|
Speed = 1 What are you thinking, crouse??? Gaaaaaa! brbrbrbrbrbr! Burn at speed = 4 minimum, please!
Just kidding!
I just burned from the cli, as you posted really easy: Code: | user@Solomon:~$ cdrecord dev=0,0,0 speed=32 fs=2048000 distro_name_here.iso |
The fs option spells out the drives fifo size, in my case 2 meg.
_________________ Slackware 10.2 with stock kernel
|
|
Back to top |
|
cunokyle Member

Joined: 09 May 2025 Posts: 479 Location: Iowa
|
Posted: Sat Jun 14, 2025 3:46 am Post subject: |
|
|
it is cool...but I really need the graphical interface to even attempt to use something. Still wondering why people would use the command line verses a front end program for the same thing. Does it burn faster? Most likely not so is there an advantage?
|
|
Back to top |
|
crouse Site Admin

Joined: 17 Apr 2025 Posts: 8985 Location: Iowa
|
Posted: Sat Jun 14, 2025 4:35 am Post subject: |
|
|
I have a list of iso's and the command line commands it takes to burn them....... all in a text file. I can open it, highlight the command......... and burn any of 20+ iso's.........and repeat the process quickly. It's quicker than using the GUI frontends for cdrecord. Plus, IF you wanted to you could specify what TYPE of file you want to burn out of a directory. You could pick all the jpeg files out of the directory, instead of doing it manually one at a time. (If you have several hundred, mixed in the directory with gifs, pngs etc......... it is very useful).
|
|
Back to top |
|
cunokyle Member

Joined: 09 May 2025 Posts: 479 Location: Iowa
|
Posted: Sat Jun 14, 2025 4:01 pm Post subject: |
|
|
Cool, that is a nice little feature and could be very useful!
|
|
Back to top |
|
crouse Site Admin

Joined: 17 Apr 2025 Posts: 8985 Location: Iowa
|
|
Back to top |
|
mmmna . . . . . . .

Joined: 21 Apr 2025 Posts: 5100 Location: Centah Bahnstead Nuh Ham-shuh
|
Posted: Sun Jul 20, 2025 12:43 am Post subject: |
|
|
Thanks!
_________________ Slackware 10.2 with stock kernel
|
|
Back to top |
|
mr_ed Moderator

Joined: 28 Aug 2025 Posts: 3306 Location: 42 miles north of Ogdensburg, NY
|
Posted: Fri Aug 29, 2025 6:35 pm Post subject: |
|
|
Great post! I'll be testing that out for sure.
You have to set up SCSI emulation on an IDE burner first, I assume?
|
|
Back to top |
|
mmmna . . . . . . .

Joined: 21 Apr 2025 Posts: 5100 Location: Centah Bahnstead Nuh Ham-shuh
|
Posted: Fri Aug 29, 2025 7:48 pm Post subject: |
|
|
Yes.... definitely put hdx=ide-scsi in a config file somewhere (ummm, /etc/lilo.conf? /etc/fstab? I hate having to run Windows when I'm posting here).
Replace hdx with the proper device which represents your burner. Don't forget to change information in /etc/fstab for users which can burn and also make certain that fstab has proper filesystem types, then add a group for users who are allowed to burn, add yourself, etc.
_________________ Slackware 10.2 with stock kernel
|
|
Back to top |
|
mr_ed Moderator

Joined: 28 Aug 2025 Posts: 3306 Location: 42 miles north of Ogdensburg, NY
|
Posted: Sun Aug 31, 2025 12:35 pm Post subject: |
|
|
Duh question time:
My /etc/fstab CDRW line looks like this:
none /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,--,user,unhide 0 0
This should be fine, should it not? It just means that everyone can burn.
I really don't know anything about groups.
So I could make a group, call it "burn," say, and then add myself to that group. My fstab would look like this?
none /mnt/cdrom supermount dev=/dev/scd0,fs=iso9660,--,burn,unhide 0 0
|
|
Back to top |
|
nukes Linux Guru

Joined: 29 Aug 2025 Posts: 3935 Location: Somewhere just off the M62
|
Posted: Sat Sep 13, 2025 8:18 am Post subject: |
|
|
I don't see how that means that everyone can burn. Burning a CD just accesses the device diretly, not through the Linux filesystem.
The user bit just means that normal users can mount/unmount the CDrom, which you need as you're using supermount.
The chances are that there is already a group set up for the CDRW permissions. do:
or the device name of your writer. There should already be a group other than root. If not, then you'll have to mess about with devfsd, which isn't nice. I'd reckon that Mandrake already give you the groups for this reason, them being one of the only major distros to pick up devfs.
_________________ Gentoo; 2.6.11 2.6.17.7 + patches
Debian sid 2.6.13
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 9605 Location: Planet Earth
|
Posted: Sat Sep 13, 2025 11:43 am Post subject: |
|
|
mr_ed...
Take a look at /etc/group
Code: | cdrom:x:22:germ
cdwriter:x:80:germ |
user is fine in your fstab. I usually su to root when burning from the CLI.
|
|
Back to top |
|
lynch Sr. Member

Joined: 15 Nov 2025 Posts: 1946 Location: The Diamond State
|
|
Back to top |
|
jbsnake Moderator

Joined: 02 Dec 2025 Posts: 1551 Location: Georgia
|
|
Back to top |
|
|