View previous topic :: View next topic |
Author |
Message |
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Wed Jul 05, 2006 3:44 pm Post subject: How to add a Stage4.tar.bz2 to the Gentoo LiveCD?? |
|
|
Hey everyone,
Need to know how I can add a stage4.tar.bz2 to the original Install CD.
To further explain .. I'd like to create a DVD that duplicates my exisiting system. If I created a stage4.tar.bz2 (which is essentailly my system all zipped up) .... I am still required to do some small maintenance (partioning and such) that requires the capabilities of liveCD (the one you download).
Rather than, copy my stage4.tar.bz2 to another spearte CD, (that means one CD would be the downloaded Gentoo LiveCD, and the other being a CD containing solely my stage4.tar.bz2) I'd rather just place the stage4.tar.bz2 inside the downloaded LiveCD, then when the time comes, boot fro the liveCD, do the partitoning, mount my partitions, and finally extract my stage4.tar.bz2 from the the same CD.
Any help, greatly appreciated .. Thanks for reading |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Wed Jul 05, 2006 3:58 pm Post subject: Re: How to add a Stage4.tar.bz2 to the Gentoo LiveCD?? |
|
|
NiceGuy wrote: | Hey everyone,
Need to know how I can add a stage4.tar.bz2 to the original Install CD.
To further explain .. I'd like to create a DVD that duplicates my exisiting system. If I created a stage4.tar.bz2 (which is essentailly my system all zipped up) .... I am still required to do some small maintenance (partioning and such) that requires the capabilities of liveCD (the one you download).
Rather than, copy my stage4.tar.bz2 to another spearte CD, (that means one CD would be the downloaded Gentoo LiveCD, and the other being a CD containing solely my stage4.tar.bz2) I'd rather just place the stage4.tar.bz2 inside the downloaded LiveCD, then when the time comes, boot fro the liveCD, do the partitoning, mount my partitions, and finally extract my stage4.tar.bz2 from the the same CD.
Any help, greatly appreciated .. Thanks for reading | Have a look at catalyst for building your stages. That should cover both questions _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Wed Jul 05, 2006 4:14 pm Post subject: |
|
|
Hey cokehabit,
It appears as though catalyst only builds you a LiveCD, but what about the programs and files that exisit on my system that I uniquely created. What does catalyst do about them??
Thanks |
|
Back to top |
|
|
kwach Tux's lil' helper
Joined: 15 Sep 2005 Posts: 103 Location: Łódź, Poland
|
Posted: Wed Jul 05, 2006 4:46 pm Post subject: |
|
|
Hello, I had similar problem. This is how i did it (based on http://www.linux.rk.edu.pl/art_263.html):
1. Make a directory, in which you'll mount the Gentoo LiveCD.
2. Mount it as a loop device:
Code: | su -c 'mount -o loop NAME_OF_ISO.iso origiso' |
3. Copy the contest to another dir:
Code: | cp -a origiso/ newiso |
4. Adjust the newiso dir.
5. Create a new iso file:
Code: | mkisofs -RlDJLV "live-cd-custom" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o livecd-custom.iso newiso |
Good Luck, Kuba _________________ IBM R61i + Ubuntu
(no patience for Gentoo, but love it anyway) |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Wed Jul 05, 2006 5:10 pm Post subject: |
|
|
Hey kuba,
Just two questions:
1. What do your mean in step 4, when you say "Adjust the newiso dir"??
2. Did you use catalyst to create the iso, or did you just use the gentoo LiveCD iso??
By the way, thanks for your clear and precise explanations.
Take Care |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Wed Jul 05, 2006 5:22 pm Post subject: |
|
|
NiceGuy wrote: | Hey cokehabit,
It appears as though catalyst only builds you a LiveCD, but what about the programs and files that exisit on my system that I uniquely created. What does catalyst do about them??
Thanks | just tar up your filesystem and un-tar it when you want it. Whether you can use that snapshot of your system as part of the stage is another thing... _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
kwach Tux's lil' helper
Joined: 15 Sep 2005 Posts: 103 Location: Łódź, Poland
|
Posted: Wed Jul 05, 2006 5:32 pm Post subject: |
|
|
Use this script to create your backup https://forums.gentoo.org/viewtopic-t-312817.html
Copy the result (.tar.gz or .tar.bz2 file) to the newiso dir and create the iso as I wrote in 5.
PS. I don't know what is catalyst, so i didn't use it _________________ IBM R61i + Ubuntu
(no patience for Gentoo, but love it anyway) |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Wed Jul 05, 2006 6:02 pm Post subject: |
|
|
Thanks kwach,
You couldn't be anymore helpful, I appreciate it .... I'll let you know how it turns out .. it'll probably take a day or two.
Take Care |
|
Back to top |
|
|
a16b03 Apprentice
Joined: 21 Mar 2006 Posts: 253 Location: Riga, Latvia
|
Posted: Wed Jul 05, 2006 6:08 pm Post subject: |
|
|
What i did was:
Burned multisection disk using k3b:
step 1: burned instalation disk (started multisection disk)
setp 2: burned files i wanted to add (closed multisection disk)
The only thing is that i burned images to CD not DVD. That might be problem. |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Thu Jul 06, 2006 1:03 am Post subject: |
|
|
a16b03 wrote: | The only thing is that i burned images to CD not DVD. That might be problem. | why? _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
a16b03 Apprentice
Joined: 21 Mar 2006 Posts: 253 Location: Riga, Latvia
|
Posted: Thu Jul 06, 2006 5:28 pm Post subject: |
|
|
Corect me if i'm wrong, but my expieriance shows that you can't burn CD image to DVD.
Maybe You can somehow convert CD image to DVD. I don't know. If so post replay here how to do it.
P.S.
Sorry for language |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Thu Jul 06, 2006 5:37 pm Post subject: |
|
|
as far as I know you can burn a cd image to a dvd device using a writable cd,
but not a writable dvd. _________________ idella4@aus |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Jul 06, 2006 5:58 pm Post subject: |
|
|
If that is the case, that is, that you cannot burn my project (read above) to a writable DVD, than what do I do??
To clarify, if I plan on using the Gentoo LiveCD iso, and add to it my stage4.tar.bz2, the probability is that this will result in an iso that is much larger than the capacity a regular writable CD can hold.
Mathematicalty:
( ( Gentoo LiveCD + stage4.tar.bz2) == Large File)
If I am unable to fit it on a CD (Large File > 700MB), and additionally am not able to copy an iso to a DVD, then what do I do?? Do you follow, my problem?? Sort of??
Are we sure you cannot copy an iso onto a DVD for use??
Thanks |
|
Back to top |
|
|
kwach Tux's lil' helper
Joined: 15 Sep 2005 Posts: 103 Location: Łódź, Poland
|
Posted: Thu Jul 06, 2006 7:11 pm Post subject: |
|
|
I would just give it a try with DVD-RW
It will take you no more than 20 minutes.
(I pesonally would hazard a guess that it will work)
Kuba _________________ IBM R61i + Ubuntu
(no patience for Gentoo, but love it anyway) |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Jul 06, 2006 7:19 pm Post subject: |
|
|
Hey kwach,
I was just wondering ... yesterday in step 5, you know, where I create the new iso with:
mkisofs -RlDJLV "live-cd-custom" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o livecd-custom.iso newiso
I was just woindering if, you know or think this needs to be modified, if I am plan to to write to a dvd instead??
Thanks again |
|
Back to top |
|
|
kwach Tux's lil' helper
Joined: 15 Sep 2005 Posts: 103 Location: Łódź, Poland
|
Posted: Thu Jul 06, 2006 7:29 pm Post subject: |
|
|
To be honest - I have absolutely no idea
But to my way of thinking - an iso file is just an iso and should work no matter if it's burned to a CD or to a DVD.
You know, without trying we can speculate for ever. Try it and let us know about results.
Take care, Kuba
PS. instead of "live-cd-custom" you can type "live-dvd-custom" _________________ IBM R61i + Ubuntu
(no patience for Gentoo, but love it anyway) |
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Mon Jul 10, 2006 1:25 pm Post subject: |
|
|
Okay here is an update on my situation,
First to clarify, I have created the stage4.tar.bz2, and am planning to mount a smaller distribution of linux (Damn Small Linux - 50mb) as the loopback device to add my additional stage4.tar.bz2 file to. I chose damn small linux because I was informed on a previous thread that, because of dsl size, a CD could easily occupy the dsl distro in addition to a large stage4.tar.bz2 (250mb file) that is, (50MB + 250MB < 700MB).
So essentially what you have is something like this:
newiso == damn small linux + stage4.tar.bz2
Now when I issue the command to create the new iso (below):
mkisofs -RlDJLV "live-cd-custom" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o livecd-custom.iso newiso
I get the following reply from the command line:
mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
Warning: creating filesystem that does not conform to ISO-9660.
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
mkisofs: Uh oh, I cant find the boot catalog directory 'isolinux'!
I'm almost cross the finnish line, need to know what I can do to acutally cross it.
Help someone, oh please!! |
|
Back to top |
|
|
kwach Tux's lil' helper
Joined: 15 Sep 2005 Posts: 103 Location: Łódź, Poland
|
Posted: Mon Jul 10, 2006 5:01 pm Post subject: |
|
|
Code: | mkisofs: The option '-L' is reserved by POSIX.1-2001.
mkisofs: The option '-L' means 'follow all symbolic links'.
mkisofs: Mkisofs-2.02 will introduce POSIX semantics for '-L'.
mkisofs: Use -allow-leading-dots in future to get old mkisofs behavior.
|
That is something about new/old versions - I'd say nothing to worry about
Code: | Warning: creating filesystem that does not conform to ISO-9660.
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override. |
Another not very essential problem about character coding (in my opinion )
Code: | mkisofs: Uh oh, I cant find the boot catalog directory 'isolinux'! |
Maybe you should be in newiso directory? _________________ IBM R61i + Ubuntu
(no patience for Gentoo, but love it anyway) |
|
Back to top |
|
|
|