USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Linux - Burning ISO's -- Via The Command Line
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software.
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 8985
Location: Iowa

PostPosted: Tue Apr 22, 2024 4:54 pm    Post subject: Linux - Burning ISO's -- Via The Command Line Reply with quote

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, 2024 6:24 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 8985
Location: Iowa

PostPosted: Sat Apr 26, 2024 4:00 pm    Post subject: Reply with quote

http://www-106.ibm.com/developerworks/linux/library/l-cdburn.html?ca=dgr-lnxw75BurnCDs

Another great link on burning with linux using the command line Smile


Back to top
View user's profile Send private message Visit poster's website
mmmna
. . . . . . .


Joined: 21 Apr 2024
Posts: 5100
Location: Centah Bahnstead Nuh Ham-shuh

PostPosted: Sat Jun 14, 2024 3:14 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
cunokyle
Member


Joined: 09 May 2024
Posts: 479
Location: Iowa

PostPosted: Sat Jun 14, 2024 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 8985
Location: Iowa

PostPosted: Sat Jun 14, 2024 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
cunokyle
Member


Joined: 09 May 2024
Posts: 479
Location: Iowa

PostPosted: Sat Jun 14, 2024 4:01 pm    Post subject: Reply with quote

Cool, that is a nice little feature and could be very useful!


Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 8985
Location: Iowa

PostPosted: Sat Jul 19, 2024 6:54 am    Post subject: Reply with quote

http://plus24.com/mp3-howto/mp3-howto-23.html

Using ogg123 you can convert an .ogg file to wav like so:

[me@megajukebox assorted]$ ogg123 -d wav -o file:mysong.wav mysong.ogg

-----------------------------------

Using cdrecord we convert the wav to CDDA and burn it onto the disk.

[me@megajukebox assorted]$ cdrecord -pad -v dev=1,0 -dao speed=12 *.wav


Just for future reference Smile


Back to top
View user's profile Send private message Visit poster's website
mmmna
. . . . . . .


Joined: 21 Apr 2024
Posts: 5100
Location: Centah Bahnstead Nuh Ham-shuh

PostPosted: Sun Jul 20, 2024 12:43 am    Post subject: Reply with quote

Thanks!



_________________
Slackware 10.2 with stock kernel
Back to top
View user's profile Send private message Visit poster's website
mr_ed
Moderator


Joined: 28 Aug 2024
Posts: 3306
Location: 42 miles north of Ogdensburg, NY

PostPosted: Fri Aug 29, 2024 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mmmna
. . . . . . .


Joined: 21 Apr 2024
Posts: 5100
Location: Centah Bahnstead Nuh Ham-shuh

PostPosted: Fri Aug 29, 2024 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
mr_ed
Moderator


Joined: 28 Aug 2024
Posts: 3306
Location: 42 miles north of Ogdensburg, NY

PostPosted: Sun Aug 31, 2024 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
nukes
Linux Guru


Joined: 29 Aug 2024
Posts: 3935
Location: Somewhere just off the M62

PostPosted: Sat Sep 13, 2024 8:18 am    Post subject: Reply with quote

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:
Code:

ls -l /dev/cdrom

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
View user's profile Send private message AIM Address MSN Messenger
Germ
Keeper of the BIG STICK


Joined: 30 Apr 2024
Posts: 9605
Location: Planet Earth

PostPosted: Sat Sep 13, 2024 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
lynch
Sr. Member


Joined: 15 Nov 2024
Posts: 1946
Location: The Diamond State

PostPosted: Thu Jan 08, 2024 10:43 am    Post subject: Reply with quote

Quote:
BashBurn (Previously Magma) is a shell script to make cd burning in the console easier. It supports data, audio and multisession cds. It can burn iso and bin files, read in xmms playlists to burn and much more. In short, almost everything you'll need.

I have'nt tried this yet. Just thought someone would be interested in it. Smile
lynch


Back to top
View user's profile Send private message
jbsnake
Moderator


Joined: 02 Dec 2024
Posts: 1551
Location: Georgia

PostPosted: Tue Feb 03, 2024 7:50 pm    Post subject: Reply with quote

this is a pretty neat thing i found
how to make an iso using command line
<edit> (removed dead link) here </edit>
Smile




Last edited by jbsnake on Fri May 27, 2024 9:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » All other software. All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2006 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse