URN Logo
UNIX Resources » Linux » Linux Forum » Linux Installation Support » Page.14 » Combine Cd Images Into 1 Dvd Image
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Combine Cd Images Into 1 Dvd Image
Subject: Combine Cd Images Into 1 Dvd Image
Author: digiboy86    Posted: 2005-11-28 15:59:50    Length: 3,192 byte(s)
[Original] [Print] [Top]
OK, I'm sure many have already downloaded the 5 CD isos and want to make a DVD image of it.  I've looked around and found some similar scripts on how to do it.
Use this script after you download the CD isos to create a DVD iso.

You will need about 6GB of free space and about 5 mins of time.  It's worked for me!

PS : Do not change install package options, or the installer will crash (hey it's still in test phases).  I've noticed a lot of other bugs in FC5t1 and if you use ndiswrapper you'll have to download the kernel-devel package (not on the CD).  Also the system-config-packages doesn't work (says it can't find tree) - I even tried using CD1 iso and it still fails - so you'll have to install RPMs manually until that's fixed.

Enjoy!

CODE

#/bin/bash

#Desc : convert CDs to DVD image for Fedora Core 5 test1
#Req : iso images in current folder (FC5-test1-i386-disc#.iso)

#mount CD images
mkdir -p disk1
mount -o ro,loop FC5-test1-i386-disc1.iso disk1
mkdir -p disk2
mount -o ro,loop FC5-test1-i386-disc2.iso disk2
mkdir -p disk3
mount -o ro,loop FC5-test1-i386-disc3.iso disk3
mkdir -p disk4
mount -o ro,loop FC5-test1-i386-disc4.iso disk4
mkdir -p disk5
mount -o ro,loop FC5-test1-i386-disc5.iso disk5

#copy files
mkdir -p dvd
cp -av disk1/* dvd
cp -pv disk2/Fedora/RPMS/*.rpm dvd/Fedora/RPMS
cp -pv disk3/Fedora/RPMS/*.rpm dvd/Fedora/RPMS
cp -pv disk4/Fedora/RPMS/*.rpm dvd/Fedora/RPMS
cp -pv disk5/Fedora/RPMS/*.rpm dvd/Fedora/RPMS

#clean dvd folder
find dvd -name TRANS.TBL | xargs rm -f

# patch .discinfo
awk '{ if ( NR == 4 ) { print "1,2,3,4,5" } else { print; } }' disk1/.discinfo > dvd/.discinfo

#unmount CD images
umount disk1
rm disk1
umount disk2
rm disk2
umount disk3
rm disk3
umount disk4
rm disk4
umount disk5
rm disk5

#create DVD image from copied files
mkisofs -J -R -v -T -V "FC5test1" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table -o FC5-i386-dvd.iso dvd
# -J = Joliet filesystem
# -R = Rock Ridge filesystem protocol
# -v = verbose output (show progress)
# -T = generate TRANS.TBL in each folder
# -V "name" = create a volume label (optional)
# -b "file" = use file as a boot file (binary)
# -c "file" = use file as a boot file (catalog)
# -no-emul-boot = do not emulate any boot schemes (floppy, harddrive, etc.)
# -boot-load-size # = # of sectors to load (should be multiple of 4)
# -boot-info-table = creates a boot info table to make disc bootable
# -o "file" = output image
# dvd = input files
[Original] [Print] [Top]
Subject: Combine Cd Images Into 1 Dvd Image
Author: digiboy86    Posted: 2005-11-28 16:32:47    Length: 386 byte(s)
[Original] [Print] [Top]
Ok, I just found another script from someone at Redhat.com:

ftp://people.redhat.com/ckloiber/mkdvdiso.sh

The only difference is that it deletes the TRANS.TBL files and the isolinux/boot.cat file (I guess mkisofs generates it).  This would make the script Much simpler.
 
[Original] [Print] [Top]
Subject: Combine Cd Images Into 1 Dvd Image
Author: digiboy86    Posted: 2005-11-29 14:41:47    Length: 104 byte(s)
[Original] [Print] [Top]
I've modified my script a little to match what that other script does.  Looks much better now.
[Original] [Print] [Top]
« Previous thread
No Kernel Available With Mandriva
Linux Installation Support
Page. 14
Next thread »
How To Make Linux Bootable Cd
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:57:18, cost 0.05007004737854 ms.