Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2006, 09:25:24 AM
Home Help Search Login Register
News: No News Is Good News

+  linuxfornewbies.org
|-+  HowTo's
| |-+  Bash Scripts
| | |-+  Another cd2dvd Script
« previous next »
Pages: [1] Print
Author Topic: Another cd2dvd Script  (Read 544 times)
Hawkwind
Administrator
Newbie
*****
Posts: 14



View Profile WWW
Another cd2dvd Script
« on: July 04, 2005, 01:15:32 PM »

Code:
1. Login as root
2. Change to the directory where you have saved the CD Images
3. call my makedvd.sh script
4. Wait
5. You have an DVD Image called Mandriva-DVD.iso

cd2dvd.sh script:

Code:
#!/bin/bash

mkdir -p files
mkdir -p cdrom

for IMAGE in `ls -1 Mandriva*CD*.iso` ; do
   echo Extracting $IMAGE
   mount $IMAGE cdrom -o loop,ro,noatime
   cp -a cdrom/* files
   umount cdrom
done

mkisofs -J -R -T -o Mandriva-DVD.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table -V 'Mandriva-DVD' files

echo Cleaning up...
rm -rf cdrom files

***SPECIAL THANKS*** to Rainfleet on the Mandriva Club forums for posting this lil script.  It's quite nice and is a bit smaller code than the other one we have.  And it seems to work quite well. ***SPECIAL THANKS***
Logged

The box said: Requires Windows 98 or better, so I installed Linux!
Registered Linux User #362532
HomePage: http://LinuxForDummies.org
Rpm Repository: http://SeerOfSouls.com
IRC Channel: #LFD on IRC.Freenode.net
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQLPowered by PHP linuxfornewbies.org | Powered by SMF 1.0.5.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0!Valid CSS!