LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   OpenSUSE 10.1 32/64 - Make 1 DVD from 5 CDs on any Linux distribution (https://www.linuxquestions.org/questions/suse-opensuse-60/opensuse-10-1-32-64-make-1-dvd-from-5-cds-on-any-linux-distribution-444040/)

mtmorphosis 05-12-2006 03:42 AM

OpenSUSE 10.1 32/64 - Make 1 DVD from 5 CDs on any Linux distribution
 
Hi,

I found somewhere a script "suse10iso2dvd.sh" for dumping all 5 CD images into 1 DVD image. I tweaked it a bit and adjusted it to work so that you may use it from any Linux distro to create 1 DVD iso image for OpenSuse 10.1 32bit & 64bit. Find the two scripts bellow:

1. suse101_32iso2dvd.sh

#######################################################
#!/bin/bash

# Uncomment this section if you have physical cds and want to convert them to
# ISOs first. You need to have the ISOs, named as in this script, for this
# script to work predictably.
#------------------------------------------------------------------------------
#echo Please insert disk 1 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-i386-CD1.iso
#echo Please insert disk 2 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-i386-CD2.iso
#echo Please insert disk 3 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-i386-CD3.iso
#echo Please insert disk 4 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-i386-CD4.iso
#echo Please insert disk 5 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-i386-CD5.iso
#------------------------------------------------------------------------------


#Mount the CDs in loopback mode:
mkdir CD1 CD2 CD3 CD4 CD5

mount SUSE-Linux-10.1-GM-i386-CD1.iso CD1 -o loop
mount SUSE-Linux-10.1-GM-i386-CD2.iso CD2 -o loop
mount SUSE-Linux-10.1-GM-i386-CD3.iso CD3 -o loop
mount SUSE-Linux-10.1-GM-i386-CD4.iso CD4 -o loop
mount SUSE-Linux-10.1-GM-i386-CD5.iso CD5 -o loop

# Create a basic structure to overwrite files we need to modify for the CD (the checksums and boot files).
cp -a CD1/boot .
mkdir i586 i686 noarch

# Create the NEW MD5SUMS as one file in order to allow SuSE to validate (thus install) all of the files from every CD and not just CD #1
# For the i586 directory:
cat CD1/suse/i586/MD5SUMS CD2/suse/i586/MD5SUMS CD3/suse/i586/MD5SUMS CD4/suse/i586/MD5SUMS CD5/suse/i586/MD5SUMS > i586/MD5SUMS
# For the i686 directory:
cat CD1/suse/i686/MD5SUMS CD2/suse/i686/MD5SUMS > i686/MD5SUMS
# For the noarch directory:
cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS

# Now, type the bellow all in one line to create the ISO:
mkisofs -o SuSE_10.1.iso -b boot/i386/loader/isolinux.bin -c boot/i386/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -publisher SuSE -r -T -V SuSE_10.1 -x CD1/boot -x CD1/suse/i586/MD5SUMS -x CD1/suse/noarch/MD5SUMS -x CD1/suse/i686/MD5SUMS -x CD2/suse/i686/MD5SUMS -x CD2/suse/i586/MD5SUMS -x CD2/suse/noarch/MD5SUMS -x CD3/suse/i586/MD5SUMS -x CD3/suse/noarch/MD5SUMS -x CD4/suse/i586/MD5SUMS -x CD4/suse/noarch/MD5SUMS -x CD5/suse/i586/MD5SUMS -x CD5/suse/noarch/MD5SUMS -graft-points CD1 boot/=boot suse/i586/MD5SUMS=i586/MD5SUMS suse/noarch/MD5SUMS=noarch/MD5SUMS suse/i686/MD5SUMS=i686/MD5SUMS suse/=CD2/suse suse/=CD3/suse suse/=CD4/suse suse/=CD5/suse media.2/=CD2/media.2 media.3/=CD3/media.3 media.4/=CD4/media.4 media.5/=CD5/media.5
# Now just burn the ISO to a DVD (hint: use 'growisofs' or your favorite GUI-frontend to 'growisofs'). Optionally, you can mount this ISO like you did #above to verify it will work correctly, or if you don't want to actually burn it. Just call:
#mkdir DVD
##############################################################


2. suse101_64iso2dvd.sh

##############################################
#!/bin/bash

# Uncomment this section if you have physical cds and want to convert them to
# ISOs first. You need to have the ISOs, named as in this script, for this
# script to work predictably.
#------------------------------------------------------------------------------
#echo Please insert disk 1 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-x86_64-CD1.iso
#echo Please insert disk 2 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-x86_64-CD2.iso
#echo Please insert disk 3 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-x86_64-CD3.iso
#echo Please insert disk 4 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-x86_64-CD4.iso
#echo Please insert disk 5 of 5 and hit any key to continue.
#read key
#dd if=/dev/cdrom of=SUSE-Linux-10.1-GM-x86_64-CD5.iso
#------------------------------------------------------------------------------


#Mount the CDs in loopback mode:
mkdir CD1 CD2 CD3 CD4 CD5

mount SUSE-Linux-10.1-GM-x86_64-CD1.iso CD1 -o loop
mount SUSE-Linux-10.1-GM-x86_64-CD2.iso CD2 -o loop
mount SUSE-Linux-10.1-GM-x86_64-CD3.iso CD3 -o loop
mount SUSE-Linux-10.1-GM-x86_64-CD4.iso CD4 -o loop
mount SUSE-Linux-10.1-GM-x86_64-CD5.iso CD5 -o loop

# Create a basic structure to overwrite files we need to modify for the CD (the checksums and boot files).
cp -a CD1/boot .
mkdir x86_64 i586 noarch

# Create the NEW MD5SUMS as one file in order to allow SuSE to validate (thus install) all of the files from every CD and not just CD #1
# For the i586 directory:
cat CD1/suse/i586/MD5SUMS CD2/suse/i586/MD5SUMS CD3/suse/i586/MD5SUMS CD4/suse/i586/MD5SUMS CD5/suse/i586/MD5SUMS > i586/MD5SUMS
# For the x86_64 directory:
cat CD1/suse/x86_64/MD5SUMS CD2/suse/x86_64/MD5SUMS CD3/suse/x86_64/MD5SUMS CD4/suse/x86_64/MD5SUMS CD5/suse/x86_64/MD5SUMS > x86_64/MD5SUMS
# For the noarch directory:
cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS

# Now, type in one line to create the ISO:
mkisofs -o SuSE_10.1_64.iso -b boot/x86_64/loader/isolinux.bin -c boot/x86_64/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -publisher SuSE -r -T -V SuSE_10.1_64 -x CD1/boot -x CD1/suse/i586/MD5SUMS -x CD1/suse/x86_64/MD5SUMS -x CD1/suse/noarch/MD5SUMS -x CD2/suse/i586/MD5SUMS -x CD2/suse/x86_64/MD5SUMS -x CD2/suse/noarch/MD5SUMS -x CD3/suse/i586/MD5SUMS -x CD3/suse/x86_64/MD5SUMS -x CD3/suse/noarch/MD5SUMS -x CD4/suse/i586/MD5SUMS -x CD4/suse/x86_64/MD5SUMS -x CD4/suse/noarch/MD5SUMS -x CD5/suse/i586/MD5SUMS -x CD5/suse/x86_64/MD5SUMS -x CD5/suse/noarch/MD5SUMS -graft-points CD1 boot/=boot suse/i586/MD5SUMS=i586/MD5SUMS suse/x86_64/MD5SUMS=x86_64/MD5SUMS suse/noarch/MD5SUMS=noarch/MD5SUMS suse/=CD2/suse suse/=CD3/suse suse/=CD4/suse suse/=CD5/suse media.2/=CD2/media.2 media.3/=CD3/media.3 media.4/=CD4/media.4 media.5/=CD5/media.5
# Now just burn the ISO to a DVD (hint: use 'growisofs' or your favorite GUI-frontend to 'growisofs'). Optionally, you can mount this ISO like you did #above to verify it will work correctly, or if you don't want to actually burn it. Just call:
#mkdir DVD
############################################################




enjoy!

sniper_pro 05-12-2006 12:31 PM

makeSUSEdvd -i -o /$path
OR makeSUSEdvd --help

yum makeSUSEdvd or http://sourceforge.net/ find makeSUSEdvd

OldAl 12-10-2006 05:03 AM

Outdated by "progress"
 
"Progress is the root of all evil, progress is the root of it all!"

According to the OpenSuSE site, this type of generic program won't produce an installable system from 10.1 onwards, because SuSE have introduced pgp signing for media. The amalgamated CD need to have the signing replaced. The OpenSuSE site does explain the CLI, but there is a makeSUSEdvd script (Perl?) to do it, anyway.

Progress from 10.0 to 10.1 ?

HTH,

OldAl.


All times are GMT -5. The time now is 08:23 PM.