LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2011, 05:39 AM   #1
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Rep: Reputation: 0
Question how to split the pkgs of post-install process into multi-DVD


i'm trying to copy some huge pkgs during post-install process, however they are so big that i can't pack them into one DVD to brun an ISO, is there any idea to separate them into second DVD.
Offical distros often divide the rpms, and regenerate a new pkglist, then split the rpms into multi-cds.
My problem is that i'm not dealing with the base rpms, but some tgz pkgs, which i have to untar and put them into proper place during post-install process. So how could i split them into multi-DVD and notify user insert them accordingly.
thanks.

Last edited by zwli; 04-08-2011 at 06:53 AM. Reason: refine the details
 
Old 04-02-2011, 03:20 PM   #2
xaos5
Member
 
Registered: Dec 2004
Distribution: debian and slackware
Posts: 217

Rep: Reputation: 31
Whats the official? Why are you trying to make your own distro? Are you just trying to put it on multiple DVDs? if so, most distros already provide that.
 
Old 04-03-2011, 04:18 AM   #3
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
What I did originally for my server was take slackware and pull it apart, put in certain packages i wanted, others I didn't, then make it into an iso and put it on a disc so that if anything happened to the server, I could just reinstall with the same settings. Kinda like cloning. Not sure why you'd need your own but you could do that (lots of research of packages) or use LFS.
 
Old 04-07-2011, 06:39 AM   #4
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xaos5 View Post
Whats the official? Why are you trying to make your own distro? Are you just trying to put it on multiple DVDs? if so, most distros already provide that.
it's not an official one, but a customized one, therefore, i have to make it myself
 
Old 04-07-2011, 06:46 AM   #5
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by phantom_cyph View Post
What I did originally for my server was take slackware and pull it apart, put in certain packages i wanted, others I didn't, then make it into an iso and put it on a disc so that if anything happened to the server, I could just reinstall with the same settings. Kinda like cloning. Not sure why you'd need your own but you could do that (lots of research of packages) or use LFS.
I need separate it into multi-DVD as it's too large to pack into one 4.7 DVD, and i noticed "/usr/lib/anaconda-runtime/splittree.py" seems can make it, but I didn't modify anaconda, this tool need regenerate the pkg file list and etc.
now my problem is i wanna burn 3 DVD or more by looping mkisofs, but how to divide the contents? I'm working in a Centos5 environment
 
Old 04-07-2011, 08:41 AM   #6
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Rep: Reputation: 102Reputation: 102
Hi Zwli,

See the below links. I was able to make a customized DVD using these links.

http://www.harkness.co.uk/other/RHEL4_custom_dvd.html
http://serverfault.com/questions/238...ores-my-ks-cfg
http://deborahwazir.com/blog/creatin...nstall-dvd-25/

Get back if you face problems.
 
1 members found this post helpful.
Old 04-08-2011, 07:01 AM   #7
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vikas027 View Post
Hi Zwli,

See the below links. I was able to make a customized DVD using these links.

http://www.harkness.co.uk/other/RHEL4_custom_dvd.html
http://serverfault.com/questions/238...ores-my-ks-cfg
http://deborahwazir.com/blog/creatin...nstall-dvd-25/

Get back if you face problems.
hi, vikas
it's really helpful, in fact, i didn't make any change on original rpms list, my operation focused on the post-install process, where i had copy and untar some big pkgs, unfortuantely, those pkgs are too big to pack together into one DVD, so i'm wondering how i can split them gracefully. But seems the former links are just for rpmlist of base system.
 
Old 04-08-2011, 07:21 AM   #8
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by zwli View Post
hi, vikas
it's really helpful, in fact, i didn't make any change on original rpms list, my operation focused on the post-install process, where i had copy and untar some big pkgs, unfortuantely, those pkgs are too big to pack together into one DVD, so i'm wondering how i can split them gracefully. But seems the former links are just for rpmlist of base system.
Hi Zwli,

There are two options to have large file.

a) To split DVD into multiple CDs, you can google out for this.
b) To share the large files over HTTP (on LAN) and in the post installations, you can wget it.

I would recommend the second option.
 
1 members found this post helpful.
Old 04-10-2011, 02:39 AM   #9
zwli
LQ Newbie
 
Registered: Apr 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vikas027 View Post
Hi Zwli,

There are two options to have large file.

a) To split DVD into multiple CDs, you can google out for this.
b) To share the large files over HTTP (on LAN) and in the post installations, you can wget it.

I would recommend the second option.
thanks ur quick replay, vikas.
unfortunately, i have no alternative but the solution 1, so i have to figure out how to put the large files into different DVD during postinstall process.
 
Old 04-10-2011, 03:54 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
What kind of a package is it (during the post installation).
If you are creating a tar archive of files, you could create a multi-volume archive.

I have used split to create 2GB slices, when the external drive available was formatted in fat32. To restore, I simply cat'ed the files together, with the ouput piped into the tar command.

This piqued my curiosity how one would be able to extract from an archive (or an image backup) if the slices existed on different DVDs, and you don't have disk space to assemble the pieces. The problem was that the pipe would be broken after first slice was cat'ed. The solution was to create an fifo file for each disc. In one shell, cat the slice to the next fifo file after mounting the disc. In a second shell cat from each fifo in a loop, with the output piped into the tar (or dd) command. Of course it was important to insert the discs in the currect order.

---
Using an external drive for your very large package, or installing it from a network share as already suggested would probably be easiest.

Last edited by jschiwal; 04-10-2011 at 03:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Linux distro user kzpm LinuxQuestions.org Member Intro 1 11-29-2010 09:02 AM
Sharing /home partition in a multi-distro multi boot setup firewiz87 Linux - Distributions 6 08-24-2010 08:11 AM
create a linux Multi-threaded library zali Programming 1 04-04-2008 05:59 PM
Multi-Distro Live DVD/Installer mulciber Linux - Distributions 2 09-06-2006 10:09 PM
multiboot, multi HD, multi distro install help pfschim SUSE / openSUSE 4 05-25-2005 07:28 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration