Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 23-02-2007, 09:14 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2007
Posts: 1
Default How to create RHEL dvd from cds


Hi,
Can anyone tell me how to make RHEL dvds from cds, preferable in windows?

Thanks
nikhilrao123 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 23-02-2007, 10:10 PM   #2 (permalink)
Apprentice
 
Fighter's Avatar
 
Join Date: Jul 2006
Location: Bangalore
Posts: 59
Default Re: How to create RHEL dvd from cds

You can use this script to build the DVD ISO image, warning some editing may be required but unlikely. If wanted you can create the CD ISO images for whatever reason(s). In either case requires a lot of hard drive space (the size of the 5 CD ISO images times 3 or about 2 times the space of all the files on the 5 CD's)

To build the CD ISO images, insert each CD and do not mount then do something like;

dd if=/dev/cdrom of=cd#.iso ; note: replace # with the number of the CD (1 to 5)

The script is as follows ::

#/bin/bash

# by Chris Kloiber <ckloiber@redhat.com>

# A quick hack that will create a bootable DVD iso of a Red Hat Linux
# Distribution. Feed it either a directory containing the downloaded
# iso files of a distribution, or point it at a directory containing
# the "RedHat", "isolinux", and "images" directories.

# This version only works with "isolinux" based Red Hat Linux versions.

# 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:=~/mkrhdvd} = "/" ] && 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..."
rsync -avP --exclude SRPMS $1/* $DVD
# 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

# My thanks to Mubashir Cheema for suggesting this fix.
# cd $DVD
mkisofs -J -R -v -T -o $2 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table $DVD

/usr/lib/anaconda-runtime/implantisomd5 --force $2
# Don't like forced mediacheck? Try this instead.
# /usr/lib/anaconda-runtime/implantisomd5 --supported-iso --force $2

cleanup
echo ""
echo "Process Complete!"
echo ""
Fighter is offline  
Old 28-02-2007, 03:07 PM   #3 (permalink)
Alpha Geek
 
caleb's Avatar
 
Join Date: Sep 2006
Location: Mumbai
Posts: 581
Default Re: How to create RHEL dvd from cds

Nice one
__________________
Intel D805 on D101Ggc/XFX8600GT/Transcend 2GB DDR /250+160GB SATA+WD250GB External/Epson StylusCX5500/LG DVDRW/Acer19" LCD/ VISTA HP & Sabayon 3.3/Compaq Presario V6112AU 2GB Ram/nVIDIA6150/VISTA HP
caleb is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Piyush
- by icebags
- by clinton
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2