Preciso che io avevo chiesto la stessa cosa in
questo topic, il merito di questo script non é certo mio.
Quote:
#!/bin/bash
# los geht's
# creating directories (just called "CD1 - CD5"), and mounting the iso´s:
mkdir CD1 CD2 CD3 CD4 CD5
mount SUSE-10.0-CD-OSS-i386-RC1-CD1.iso CD1 -o loop
mount SUSE-10.0-CD-OSS-i386-RC1-CD2.iso CD2 -o loop
mount SUSE-10.0-CD-OSS-i386-RC1-CD3.iso CD3 -o loop
mount SUSE-10.0-CD-OSS-i386-RC1-CD4.iso CD4 -o loop
mount SUSE-10.0-CD-OSS-i386-RC1-CD5.iso CD5 -o loop
# don´t forget the lonesome dot at the end of the following line...:
cp -a CD1/boot .
mkdir i586 i686 noarch
# some strange md5things
# for the directory i586:
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 directory i686:
cat CD1/suse/i686/MD5SUMS CD2/suse/i686/MD5SUMS > i686/MD5SUMS
# and for the directory noarch:
cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS
# an extremely verrrry long long single line (without dot at the end now)...
# building the dvd-iso now:
mkisofs -o SUSE-10.0-CD-OSS-i386-RC1.iso -b boot/loader/isolinux.bin -c boot/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -publisher SuSE -r -T -V SUSE-10.0-CD-OSS-i386-RC1 -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/i686/MD5SUMS -x CD3/suse/i586/MD5SUMS -x CD3/suse/noarch/MD5SUMS -x CD4/suse/i586/MD5SUMS -x CD4/suse/i686/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
# umounten
echo unmounting...
umount CD1 CD2 CD3 CD4 CD5
# removing trash...
echo removing trash...
echo
echo deltree windows...
echo
echo
rm -v -r CD1 CD2 CD3 CD4 CD5 boot i586 i686 noarch
echo
echo
echo done (whatever...).
echo normally, you now in this directory should have a brand new, bootable
echo dvd-iso called "SUSE-10.0-CD-OSS-i386-RC1.iso", you can burn away now.
echo
echo have fun
|
per farlo andare bisogna fare così:
change into the directory, the five cd-isos are stored in.
then create a textfile, for example "5cd2dvd" or so, and paste the above into it.
save it, and make it executable. (chmod +x 5cd2dvd)
then become root, and execute it by typing ./5cd2dvd
Però preciso subito, che
a me sto script non ha funzionato, quindi per fare l'immagine da 3gb
ho eseguito a mano da console tutti i passaggi dello script meno quelli che iniziano per # (ovvero i commenti) ed echo (ovvero i messaggi che vengono scritti durante l'esecuzione dello script).
Come potete vedere questo script era stato fatto per la opensuse 10 beta, per farlo funzionare con la versione normale, mettete i nomi giusti delle vs iso al posto di quelle nella guida
per es, al posto di tutti i SUSE-10.0-CD-OSS-i386-RC1-CD1.iso mettete
SUSE-10.0-CD-OSS-i386-GM-CD1.iso, e così via per tutti gli altri 4 cd.