Re: [gentoo-user] Question about making a tarball

2009-05-02 Thread Stroller


On 2 May 2009, at 03:55, Dale wrote:

...

[1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system




I'm wanting to print this page, from the link above.  Is it me or does
some of the lines run off the edge of the margins and get lost?  I  
have

tried this in both Seamonkey and Konqueror with the same results.  I
also tried to copy and paste it to OOo and Kwrite and it cuts it off
too.  One line that seems consistent is the line about options not  
being

used with tar, the -p option.  It looks ok on the website but not when
printed.


Works fine here using Safari's print then Save as PDF, but a bit  
whacky when you right-click  choose export to PDF. The latter would  
normally print the whole lot as a single page of unrestrained length,  
but it is blank after the end of the first paragraph (However, there  
may be problems with this alternate method if you use the stage4 on  
systems with different hardware configurations.). I would have  
expected the latter to be the more reliable print method, TBH.


Stroller.





Re: [gentoo-user] Question about making a tarball

2009-05-02 Thread Dale
Stroller wrote:

 On 2 May 2009, at 03:55, Dale wrote:
 ...

 [1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system



 I'm wanting to print this page, from the link above.  Is it me or does
 some of the lines run off the edge of the margins and get lost?  I have
 tried this in both Seamonkey and Konqueror with the same results.  I
 also tried to copy and paste it to OOo and Kwrite and it cuts it off
 too.  One line that seems consistent is the line about options not being
 used with tar, the -p option.  It looks ok on the website but not when
 printed.

 Works fine here using Safari's print then Save as PDF, but a bit
 whacky when you right-click  choose export to PDF. The latter would
 normally print the whole lot as a single page of unrestrained length,
 but it is blank after the end of the first paragraph (However, there
 may be problems with this alternate method if you use the stage4 on
 systems with different hardware configurations.). I would have
 expected the latter to be the more reliable print method, TBH.

 Stroller.


I was just curious if it was a setting or something on my end.  Usually
when both Seamonkey and Konqueror do the same thing then it is not a bad
setting but it does look like the page should be printable as well.  Is
this a bug that should be reported?  I also wonder if this is the only
page like this?

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-02 Thread Dale
Stroller wrote:

 On 2 May 2009, at 03:55, Dale wrote:
 ...

 [1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system



 I'm wanting to print this page, from the link above.  Is it me or does
 some of the lines run off the edge of the margins and get lost?  I have
 tried this in both Seamonkey and Konqueror with the same results.  I
 also tried to copy and paste it to OOo and Kwrite and it cuts it off
 too.  One line that seems consistent is the line about options not being
 used with tar, the -p option.  It looks ok on the website but not when
 printed.

 Works fine here using Safari's print then Save as PDF, but a bit
 whacky when you right-click  choose export to PDF. The latter would
 normally print the whole lot as a single page of unrestrained length,
 but it is blank after the end of the first paragraph (However, there
 may be problems with this alternate method if you use the stage4 on
 systems with different hardware configurations.). I would have
 expected the latter to be the more reliable print method, TBH.

 Stroller.


I just noticed something on the pdf you sent offlist.  It has a
horizontal scroll thingy and doesn't print the whole line either.  It
also looked to me like the script sections that were more than a page
long got cut off on the bottom.  I think someone needs a better plan for
those pages. 

I also clicked the link on the left to make the page printable, it
didn't work either.  It seems there is no way to print this page and it
not cut off the longer lines. 


Weird.

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Daniel Troeder
On Thu, 2009-04-30 at 14:44 -0500, Dale wrote:
 I try to keep a up to date stage 4 tarball here in my system just in
 case.  I basically did the creation just like I would if I were booted
 from the CD.  I created /mnt/gentoo/ on my system, extracted a stage 3
 there, then chroot in and create a stage 4 tarball.  I have one weird
 thing tho that has me confused.  When it creates the stage 4 tarball, it
 is in /mnt/gentoo.  Today I unpacked the stage 4 so that I could update
 it and when I do a tar xjpf stage4 -C /mnt/gentoo, it actually looks
 like this, /mnt/gentoo/mnt/gentoo/ which is not what I am looking for. 
 It doesn't matter on a running system, but it would if I were trying to
 rescue myself.
 
 How do I tell tar when I am making the tarball to look at /mnt/gentoo/
 as it start point, root directory if you will?  I read the man page but
 suspect I am missing it somewhere.  There has to be a way since it is
 done that way for the stage 3 tarball.
I do just
# cd /mnt/gentoo
# tar cjpf /somewhere/gentoo4.tar.bz2 .
  ^ dot @ the end!

Which produces a tarball containg everything under . - which is the
CWD - ./bin ./boot ...and so on.

Bye,
Daniel

-- 
PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887op=get
# gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Dale
Daniel Troeder wrote:
 On Thu, 2009-04-30 at 14:44 -0500, Dale wrote:
   
 I try to keep a up to date stage 4 tarball here in my system just in
 case.  I basically did the creation just like I would if I were booted
 from the CD.  I created /mnt/gentoo/ on my system, extracted a stage 3
 there, then chroot in and create a stage 4 tarball.  I have one weird
 thing tho that has me confused.  When it creates the stage 4 tarball, it
 is in /mnt/gentoo.  Today I unpacked the stage 4 so that I could update
 it and when I do a tar xjpf stage4 -C /mnt/gentoo, it actually looks
 like this, /mnt/gentoo/mnt/gentoo/ which is not what I am looking for. 
 It doesn't matter on a running system, but it would if I were trying to
 rescue myself.

 How do I tell tar when I am making the tarball to look at /mnt/gentoo/
 as it start point, root directory if you will?  I read the man page but
 suspect I am missing it somewhere.  There has to be a way since it is
 done that way for the stage 3 tarball.
 
 I do just
 # cd /mnt/gentoo
 # tar cjpf /somewhere/gentoo4.tar.bz2 .
   ^ dot @ the end!

 Which produces a tarball containg everything under . - which is the
 CWD - ./bin ./boot ...and so on.

 Bye,
 Daniel

   

I have to confess, I am always in the root directory, as in /.  That
makes sense too.  I'll try to remember to try that next time.

Thanks

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Stroller


On 30 Apr 2009, at 20:44, Dale wrote:


I try to keep a up to date stage 4 tarball here in my system just in
case.  I basically did the creation just like I would if I were booted
from the CD.  I created /mnt/gentoo/ on my system, extracted a stage 3
there, then chroot in and create a stage 4 tarball.


I don't understand how this creates a stage4 of your system.

How EXACTLY are you creating the stage4, please? What guide are you  
following?


When I have in the past created a backup stage4 (which I have to admit  
I've never needed to test), I have used a stage4.exclude file like  
that described at [1], then used the tar command specified there.


insert s-tar comment or joke here

Either I'm confused, or I expect the remainder of the thread to be  
confused because the basic premise of what you're trying to do has not  
been clearly defined.


Stroller.



[1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Dale
Stroller wrote:

 On 30 Apr 2009, at 20:44, Dale wrote:

 I try to keep a up to date stage 4 tarball here in my system just in
 case.  I basically did the creation just like I would if I were booted
 from the CD.  I created /mnt/gentoo/ on my system, extracted a stage 3
 there, then chroot in and create a stage 4 tarball.

 I don't understand how this creates a stage4 of your system.

 How EXACTLY are you creating the stage4, please? What guide are you
 following?

 When I have in the past created a backup stage4 (which I have to admit
 I've never needed to test), I have used a stage4.exclude file like
 that described at [1], then used the tar command specified there.

 insert s-tar comment or joke here

 Either I'm confused, or I expect the remainder of the thread to be
 confused because the basic premise of what you're trying to do has not
 been clearly defined.

 Stroller.



 [1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system



Well, I do something like this.  Once every few months I extract that
stage4 tarball to /mnt/gentoo.  I then mount my portage partition to
/mnt/gentoo/usr/portage.  I then mount proc and chroot in.  Then I do a
emerge -uvDN world to update everything, log out of the chroot and
umount proc and portage.  Then I create a new tarball that has the date
in the name.  I keep a couple of these stored on on my backups as well. 

I don't want to download a prebuilt stage3 because I'm on dialup here
and it takes a long time to download.  So, I just make my own and update
them when needed. 

Make sense? 

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote:

 On Thu, 30 Apr 2009 14:44:57 -0500, Dale wrote:

  How do I tell tar when I am making the tarball to look at /mnt/gentoo/
  as it start point, root directory if you will?  I read the man page but
  suspect I am missing it somewhere.  There has to be a way since it is
  done that way for the stage 3 tarball.

 The same way you change directory when you extract, with -C.

Does gnu tar really did copy star behavior and now allows to use -C in extract 
mode?

Well, star still combines the pattern matcher with -C and thus allows to 
combine -C with pat= and thus to extract and sort controlled by patterns.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Joerg Schilling
Stroller strol...@stellar.eclipse.co.uk wrote:

 On 1 May 2009, at 10:26, Joerg Schilling wrote:
  ...
  Does gnu tar really did copy star behavior and now allows to use -C  
  in extract
  mode?

 Surely gtar should not emulate star's behaviour? Surely it is only  
 correct to emulate the behaviour of some original Unix tar (without  
 prefix, s- or g- or otherwise), or follow the specifications of some  
 standards document?

If gnu tsr would follow the specifications from the Single UNIX specification

http://www.opengroup.org/onlinepubs/007908799/xcu/tar.html

there would be less problems ;-)

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Stroller


On 1 May 2009, at 10:26, Joerg Schilling wrote:

...
Does gnu tar really did copy star behavior and now allows to use -C  
in extract

mode?


Surely gtar should not emulate star's behaviour? Surely it is only  
correct to emulate the behaviour of some original Unix tar (without  
prefix, s- or g- or otherwise), or follow the specifications of some  
standards document?


Stroller.



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Stroller


On 1 May 2009, at 10:38, Dale wrote:

...
Well, I do something like this.  Once every few months I extract that
stage4 tarball to /mnt/gentoo.  I then mount my portage partition to
/mnt/gentoo/usr/portage.  I then mount proc and chroot in.  Then I  
do a

emerge -uvDN world to update everything, log out of the chroot and
umount proc and portage.  Then I create a new tarball that has the  
date
in the name.  I keep a couple of these stored on on my backups as  
well.



I'm confusled. :/

Why do you update the stage 3, rather than simply creating the stage 4  
from your current functioning system?


Stroller.




Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Dale
Stroller wrote:

 On 1 May 2009, at 10:38, Dale wrote:
 ...
 Well, I do something like this.  Once every few months I extract that
 stage4 tarball to /mnt/gentoo.  I then mount my portage partition to
 /mnt/gentoo/usr/portage.  I then mount proc and chroot in.  Then I do a
 emerge -uvDN world to update everything, log out of the chroot and
 umount proc and portage.  Then I create a new tarball that has the date
 in the name.  I keep a couple of these stored on on my backups as well.


 I'm confusled. :/

 Why do you update the stage 3, rather than simply creating the stage 4
 from your current functioning system?

 Stroller.




Well, that will be next on my list.  I do make backups of my system but
having the stage4 would be faster and give me something to boot into to
restore my backups with.  For some reason my hard drives are very slow
when booted off the cd.  My plan is to restore stage4 to a old hard
drive, emerge the kernel, build a kernel, install grub, and then boot
from that and restore my backups.

I do plan to start looking into other ways of restoring tho.  Just not
sure how I'm going to do that yet.  Most likely still stage4 since I got
it about figured out.

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Stroller


On 1 May 2009, at 19:33, Dale wrote:

Stroller wrote:

...
I'm confusled. :/

Why do you update the stage 3, rather than simply creating the  
stage 4

from your current functioning system?


Well, that will be next on my list.  I do make backups of my system  
but
having the stage4 would be faster and give me something to boot into  
to

restore my backups with.


But AIUI you can create stage4 backups of your working system.

Restoration would be: boot from any old CD, untar stage4, reboot,  
perfectly functioning system just as it was before.


What, in your mind, is the difference between the faster stage4 and  
a backup of your system? Surely there should be none.


Stroller.
 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Dale
Stroller wrote:

 On 1 May 2009, at 19:33, Dale wrote:
 Stroller wrote:
 ...
 I'm confusled. :/

 Why do you update the stage 3, rather than simply creating the stage 4
 from your current functioning system?

 Well, that will be next on my list.  I do make backups of my system but
 having the stage4 would be faster and give me something to boot into to
 restore my backups with.

 But AIUI you can create stage4 backups of your working system.

 Restoration would be: boot from any old CD, untar stage4, reboot,
 perfectly functioning system just as it was before.

 What, in your mind, is the difference between the faster stage4 and
 a backup of your system? Surely there should be none.

 Stroller.
  



You are correct in what you are saying.  I'm just sort of chewing on
this apple a little at a time.  I plan to copy my world file over to the
backup section and build it there or just backup my current install
one.  I'm sure it can be done on my current install so I may bite on
that instead.  I'm just sort of a chicken on some things.  The last gcc
upgrade really made me nervous.  Speaking of, I need to sync again if I
can get my nerve up again.  lol  I haven't updated in a while and we all
know how Gentoo hates that.  ;-)

I'm going to find that link again that someone posted.  It is for the
stage4 how to.  I forgot to bookmark it but I got the email here still.

Oh, I actually plan to boot from the CD and restore from a DVD.  I got
me a DVD burner a while back.  That works a LOT better.

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-05-01 Thread Dale
Stroller wrote:

 I don't understand how this creates a stage4 of your system.

 How EXACTLY are you creating the stage4, please? What guide are you
 following?

 When I have in the past created a backup stage4 (which I have to admit
 I've never needed to test), I have used a stage4.exclude file like
 that described at [1], then used the tar command specified there.

 insert s-tar comment or joke here

 Either I'm confused, or I expect the remainder of the thread to be
 confused because the basic premise of what you're trying to do has not
 been clearly defined.

 Stroller.



 [1] http://en.gentoo-wiki.com/wiki/Custom_Stage4#The_TAR_system



I'm wanting to print this page, from the link above.  Is it me or does
some of the lines run off the edge of the margins and get lost?  I have
tried this in both Seamonkey and Konqueror with the same results.  I
also tried to copy and paste it to OOo and Kwrite and it cuts it off
too.  One line that seems consistent is the line about options not being
used with tar, the -p option.  It looks ok on the website but not when
printed.

Just curious.

Dale

:-)  :-) 



[gentoo-user] Question about making a tarball

2009-04-30 Thread Dale
I try to keep a up to date stage 4 tarball here in my system just in
case.  I basically did the creation just like I would if I were booted
from the CD.  I created /mnt/gentoo/ on my system, extracted a stage 3
there, then chroot in and create a stage 4 tarball.  I have one weird
thing tho that has me confused.  When it creates the stage 4 tarball, it
is in /mnt/gentoo.  Today I unpacked the stage 4 so that I could update
it and when I do a tar xjpf stage4 -C /mnt/gentoo, it actually looks
like this, /mnt/gentoo/mnt/gentoo/ which is not what I am looking for. 
It doesn't matter on a running system, but it would if I were trying to
rescue myself.

How do I tell tar when I am making the tarball to look at /mnt/gentoo/
as it start point, root directory if you will?  I read the man page but
suspect I am missing it somewhere.  There has to be a way since it is
done that way for the stage 3 tarball.

Thanks

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-04-30 Thread Neil Bothwick
On Thu, 30 Apr 2009 14:44:57 -0500, Dale wrote:

 How do I tell tar when I am making the tarball to look at /mnt/gentoo/
 as it start point, root directory if you will?  I read the man page but
 suspect I am missing it somewhere.  There has to be a way since it is
 done that way for the stage 3 tarball.

The same way you change directory when you extract, with -C.

tar cf archive.tar -C /mnt/gentoo .


-- 
Neil Bothwick

Who is the oldest inhabitant of this village?
We haven't got one; we had one, but he died three weeks ago.


signature.asc
Description: PGP signature


Re: [gentoo-user] Question about making a tarball

2009-04-30 Thread Dale
Neil Bothwick wrote:
 On Thu, 30 Apr 2009 14:44:57 -0500, Dale wrote:

   
 How do I tell tar when I am making the tarball to look at /mnt/gentoo/
 as it start point, root directory if you will?  I read the man page but
 suspect I am missing it somewhere.  There has to be a way since it is
 done that way for the stage 3 tarball.
 

 The same way you change directory when you extract, with -C.

 tar cf archive.tar -C /mnt/gentoo .


   

Well, it don't like that here.  I used your command and replaced with
the correct parts of course:

r...@smoker / # tar cf /data/Gentoo-stuff/stage4-x86-04-2009.tar -C
/mnt/gentoo
tar: Cowardly refusing to create an empty archive
Try `tar --help' or `tar --usage' for more information.
r...@smoker / #

I'm missing something that is likely very obvious here.

Dale

:-)  :-) 



Re: [gentoo-user] Question about making a tarball

2009-04-30 Thread Neil Bothwick
On Thu, 30 Apr 2009 17:45:36 -0500, Dale wrote:

  The same way you change directory when you extract, with -C.
 
  tar cf archive.tar -C /mnt/gentoo .

 Well, it don't like that here.  I used your command and replaced with
 the correct parts of course:
 
 r...@smoker / # tar cf /data/Gentoo-stuff/stage4-x86-04-2009.tar -C
 /mnt/gentoo
 tar: Cowardly refusing to create an empty archive
 Try `tar --help' or `tar --usage' for more information.
 r...@smoker / #
 
 I'm missing something that is likely very obvious here.

Yep, the final '.'


-- 
Neil Bothwick

Bother, said Pooh, as the children didn't hand over their savings.


signature.asc
Description: PGP signature