LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-25-2006, 04:45 PM   #1
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30

I found a script somewere and I cant rember were.

Here it is but it dosn't wook with Mandriva 2007. I have a Modified one for 2007.

#### Start Here #######

#/bin/bash

# by Chris Kloiber <ckloiber@redhat.com>
# Slight adaptation for Mandrake by Sergei Zuyev <sergei@stams.strath.ac.uk>

# A quick hack that will create a bootable DVD iso of a Mandrake Linux
# Distribution. Feed it either a directory containing the downloaded
# iso files of a distribution, or point it at a directory containing
# the "Mandrake", "isolinux", and "images" directories.
#It creates /destination/dvd.iso and also the complete dvd structure in ./mkmdkdvd directory. If your dvd.iso creation is successful
#(check with
#mount dvd.iso -r -t iso9660 -o loop /mnt/loop
#ls /mnt/loop )
#then you can safely remove
#/bin/rm -r ./mkmdkdvd

# Usage:
# mkdvdiso.sh /path/to/the/cd/isos /destination/dvd.iso
# Burning :
# /usr/bin/growisofs -Z /dev/<yourDVDwriter>=/destination/dvd.iso

# Lots of disk space required to work, 3X the distribution size at least.

# GPL version 2 applies. No warranties, yadda, yadda. Have fun.


if [ $# -lt 2 ]; then
echo "Usage: `basename $0` source /destination/DVD.iso"
echo ""
echo " The 'source' can be either a directory containing a single"
echo " set of isos, or an exploded tree like an ftp site."
exit 1
fi

cleanup() {
[ ${LOOP:=/tmp/loop} = "/" ] && echo "LOOP mount point = \/, dying!" && exit
[ -d $LOOP ] && rm -rf $LOOP
[ ${DVD:=`pwd`/mkmdkdvd} = "/" ] && echo "DVD data location is \/, dying!" && exit
[ -d $DVD ] && rm -rf $DVD
}


cleanup
mkdir -p $LOOP
mkdir -p $DVD

if [ !`ls $1/*.iso 2>&1>/dev/null ; echo $?` ]; then
echo "Found ISO CD images..."
CDS=`expr 0`
DISKS="1"

for f in `ls $1/*.iso`; do
mount -o loop $f $LOOP
cp -av $LOOP/* $DVD
if [ -f $LOOP/.discinfo ]; then
cp -av $LOOP/.discinfo $DVD
CDS=`expr $CDS + 1`
if [ $CDS != 1 ] ; then
DISKS=`echo ${DISKS},${CDS}`
fi
fi
umount $LOOP
done
if [ -e $DVD/.discinfo ]; then
awk '{ if ( NR == 4 ) { print disks } else { print ; } }' disks="$DISKS" $DVD/.discinfo > $DVD/.discinfo.new
mv $DVD/.discinfo.new $DVD/.discinfo
fi
else
echo "Found FTP-like tree..."
cp -av $1/* $DVD
[ -e $1/.discinfo ] && cp -av $1/.discinfo $DVD
fi

rm -rf $DVD/isolinux/boot.cat
find $DVD -name TRANS.TBL | xargs rm -f

cd $DVD
mkisofs -J -R -v -T -o $2 -b isolinux/isolinux.bin -c Boot/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .

# cleanup # uncomment to remove ./mkmdkdvd directory
echo ""
echo "Process Complete!"
echo ""

####### Cut Here #########

Name the resulting file mkdvdiso.sh

And here is the howto

is a bash script to make dvd.iso from multiple cd.iso files. Use it like this:

mkdvdiso.sh /path/to/the/cd/isos /destination/dvd.iso

It creates /destination/dvd.iso and also the complete dvd structure in ./mkmdkdvd directory. If your dvd.iso creation is successful
(check with
mount dvd.iso -r -t iso9660 -o loop /mnt/loop
ls /mnt/loop )
then you can safely remove
/bin/rm -r ./mkmdkdvd
If not, you at least have a complete system in this directory to use as a source or to see manually why the iso-image creation hasn't worked for you.

Enjoy, but do not blame me if smth goes wrong
(Checked on MDK2006, ML10.0-community, official, 10.0.2)
 
Old 08-26-2006, 02:39 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Thanks!
Maybe you could post a diff -ru for 2007 script in bracket code bracket
Do you mind If I ask a mod to split the thread so the topic
get more exposure
 
Old 08-26-2006, 08:22 AM   #3
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Original Poster
Rep: Reputation: 30
Yep change the following line--

mkisofs -J -R -v -T -o $2 -b x86_64/isolinux/isolinux.bin -c i586/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .

Keep in mind that this work for the betas. Don't know if it will work with the final release.
 
  


Reply



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
Creating a bootable DVD w/ multi ISOs starfire83 Linux - General 1 11-17-2005 07:35 PM
How to create a Fedora bootable DVD? mrk1500man Linux - Newbie 2 10-17-2005 06:59 PM
How 2 create an OpenBSD bootable DVD gentisle *BSD 5 06-24-2005 05:10 AM
How to create a SuSE 9.1 bootable dvd with Nero? ticker Linux - General 2 06-30-2004 06:30 PM
mutiple bootable ISOs on one CD/DVD pe2338 Programming 3 10-23-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:37 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
Open Source Consulting | Domain Registration