I have Dev board having LPC2129, ha but the work has not been started, I m clueless that what should I do. Need a little assistance..
Work Hard Good Luck..
This Blog is for my ARM and linux work
Sunday, February 22, 2009
Thursday, February 19, 2009
The Command which wrote the ISO image
mkisofs -J -v -T -o /media/IFREEAGENT/i386-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL /root/mkrhdvd
*
-o /media/IFREEAGENT/i386-dvd.iso = -o is the output file name switch, we provide the output filename here
/root/mkrhdvd = is the path where we have copy and merged all the CDs, this is the out put of script in my previous posts, in next post i will give the edited version of that script, the exact you need to run from the cmd prompt.
Sunday, February 8, 2009
Ahhaaa !!! At last I got RH9 in DVD...
This was not an easy job, There was series of Hits and Trails..
And at last I was able to combine all three CDs of RedHat 9, and make its DVD version..
My this Tute about this problem, is not copy and paste, it is just hybrid of the earlier tutorials and
my fix to it, As in my earlier post you got a complete fix, two method on is complete manual ans another is complete automatic by script.
But both has their own limitation, the automatic need some extra package install on your system, which is usually not there in your system.
And in the manual, obvious higher level of knowledge...
My way in the the mid way of both. It does not ask you to install some package, means No dependency
I use some certain part of script to get copied as one single folder somewhere in the file system.
But before using the following script, you need make some arrangement as following
#############################################################
#!/bin/bash
# Originally by Chris Kloiber
# Modified by Alok Choudhary
#
# 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..."
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 isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
/usr/lib/anaconda-runtime/implantisomd5 --force $2
cleanup
echo ""
echo "Process Complete!"
echo ""
########################SCRIPTS ENDS HERE######################
And at last I was able to combine all three CDs of RedHat 9, and make its DVD version..
My this Tute about this problem, is not copy and paste, it is just hybrid of the earlier tutorials and
my fix to it, As in my earlier post you got a complete fix, two method on is complete manual ans another is complete automatic by script.
But both has their own limitation, the automatic need some extra package install on your system, which is usually not there in your system.
And in the manual, obvious higher level of knowledge...
My way in the the mid way of both. It does not ask you to install some package, means No dependency
I use some certain part of script to get copied as one single folder somewhere in the file system.
But before using the following script, you need make some arrangement as following
- Have ISO image for all the CDs you need to include in Distro
- Have 3x Space free on the current Filesystem.
- Keep the script and all ISO images in the same directory
- Size of Distro+500 MB space free, where your Home Directory resides, as it creates the single folder Named mkrhdvd in the Home Directry.
#############################################################
#!/bin/bash
# Originally by Chris Kloiber
# Modified by Alok Choudhary
#
# 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..."
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 isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
/usr/lib/anaconda-runtime/implantisomd5 --force $2
cleanup
echo ""
echo "Process Complete!"
echo ""
########################SCRIPTS ENDS HERE######################
My struggle to make ISO dvd
past two hours I m struggling with the this point to create the DVD from the 3 install disk
everything is fine i m able to understand the last the far most thing is to mkisofs (cmd which makes the iso format )
as form my previous post you can get the script, but in the straight away it will work for you, I m not sure(still i have not installed anaconda-runtime, may be that is the reason)
in the script it looks for the boot catalog in isolinux dir, I am seeing the directory right now but now able to find, I think should be script flaw..
I study and made my own cmd on cmd prompt, but i dont know that it is not able to see the isolinux.bin (the boot image) ..
Edited the script, I have given the source, in previous post..
it is running dont know what will happen...
DAMN !!!!!!!!!!!!!!!!!!
everything is fine i m able to understand the last the far most thing is to mkisofs (cmd which makes the iso format )
as form my previous post you can get the script, but in the straight away it will work for you, I m not sure(still i have not installed anaconda-runtime, may be that is the reason)
in the script it looks for the boot catalog in isolinux dir, I am seeing the directory right now but now able to find, I think should be script flaw..
I study and made my own cmd on cmd prompt, but i dont know that it is not able to see the isolinux.bin (the boot image) ..
Edited the script, I have given the source, in previous post..
it is running dont know what will happen...
DAMN !!!!!!!!!!!!!!!!!!
My struggle to make ISO dvd
past two hours I m struggling with the this point to create the DVD from the 3 install disk
everything is fine i m able to understand the last the far most thing is to mkisofs (cmd which makes the iso format )
as form my previous post you can get the script, but in the straight away it will work for you, I m not sure(still i have not installed anaconda-runtime, may be that is the reason)
in the script it looks for the boot catalog in isolinux dir, I am seeing the directory right now but now able to find, I think should be script flaw..
I study and made my own cmd on cmd prompt, but i dont know that it is not able to see the isolinux.bin (the boot image) ..
AND the HELL..
not about write the DVD ISO from the linux..
came back on linux ..
and try to use my own mind generated way..
as I have studied 2nd and 3rd CD, there are having not much info, except that there are 2nd and 3rd CD and the pack of RPM...
I have downloaded the magicISO, which is able to make bootable CD/DVD even when we are able to pass the bott image from external side..
still there are 50-50 chances, but I have some hope, now either it will work or not, that will be decided after I m able to complete this process
still extracting the data from all the CDs..
Say me Good Luck... :)
everything is fine i m able to understand the last the far most thing is to mkisofs (cmd which makes the iso format )
as form my previous post you can get the script, but in the straight away it will work for you, I m not sure(still i have not installed anaconda-runtime, may be that is the reason)
in the script it looks for the boot catalog in isolinux dir, I am seeing the directory right now but now able to find, I think should be script flaw..
I study and made my own cmd on cmd prompt, but i dont know that it is not able to see the isolinux.bin (the boot image) ..
AND the HELL..
not about write the DVD ISO from the linux..
came back on linux ..
and try to use my own mind generated way..
as I have studied 2nd and 3rd CD, there are having not much info, except that there are 2nd and 3rd CD and the pack of RPM...
I have downloaded the magicISO, which is able to make bootable CD/DVD even when we are able to pass the bott image from external side..
still there are 50-50 chances, but I have some hope, now either it will work or not, that will be decided after I m able to complete this process
still extracting the data from all the CDs..
Say me Good Luck... :)
Creating a RHEL bootable DVD ISO with script code at the last...
Creating a RHEL bootable DVD ISO
As of this writing, the current RHEL release (4) is only available on CDs, not DVD. It is possible to create a bootable DVD ISO from these CDs using Chris Kloiber's mkdvdiso.sh script.
1. Download mkdvdiso.sh.
http://mirror.centos.org/centos/build/mkdvdiso.sh
2. Install the anaconda-runtime prerequisite package and its dependencies.
# rpm -q anaconda-runtime || yum -y install anaconda-runtime
3. Place the CD ISO files and mkdvdiso.sh in a directory, and run the mkdvdiso.sh script.
# ls -1
mkdvdiso.sh
RHEL4-U4-i386-AS-disc1.iso
RHEL4-U4-i386-AS-disc2.iso
RHEL4-U4-i386-AS-disc3.iso
RHEL4-U4-i386-AS-disc4.iso
RHEL4-U4-i386-AS-disc5.iso
The following command creates a RHEL bootable DVD ISO named RHEL-U4-i386-AS-dvd.iso.
# ./mkdvdiso.sh . $(pwd)/RHEL-U4-i386-AS-dvd.iso
______________________________________________
### Many many thanks to Chris Kloiber
##source of mkdvdiso.sh
###
#!/bin/bash
# by Chris Kloiber
# 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..."
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 isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
/usr/lib/anaconda-runtime/implantisomd5 --force $2
cleanup
echo ""
echo "Process Complete!"
echo ""
As of this writing, the current RHEL release (4) is only available on CDs, not DVD. It is possible to create a bootable DVD ISO from these CDs using Chris Kloiber's mkdvdiso.sh script.
1. Download mkdvdiso.sh.
http://mirror.centos.org/centos/build/mkdvdiso.sh
2. Install the anaconda-runtime prerequisite package and its dependencies.
# rpm -q anaconda-runtime || yum -y install anaconda-runtime
3. Place the CD ISO files and mkdvdiso.sh in a directory, and run the mkdvdiso.sh script.
# ls -1
mkdvdiso.sh
RHEL4-U4-i386-AS-disc1.iso
RHEL4-U4-i386-AS-disc2.iso
RHEL4-U4-i386-AS-disc3.iso
RHEL4-U4-i386-AS-disc4.iso
RHEL4-U4-i386-AS-disc5.iso
The following command creates a RHEL bootable DVD ISO named RHEL-U4-i386-AS-dvd.iso.
# ./mkdvdiso.sh . $(pwd)/RHEL-U4-i386-AS-dvd.iso
______________________________________________
### Many many thanks to Chris Kloiber
##source of mkdvdiso.sh
###
#!/bin/bash
# by Chris Kloiber
# 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..."
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 isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
/usr/lib/anaconda-runtime/implantisomd5 --force $2
cleanup
echo ""
echo "Process Complete!"
echo ""
Subscribe to:
Posts (Atom)