euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] Gentoo system – moving drives



    T. Joseph CarterSat Jul 10 17:03:07 PDT 2004

    On Sat, Jul 10, 2004 at 04:26:33PM -0700, Cory Petkovsek wrote:
    > > I can never remember the subtle details for the cp options.  So I
    > > tend to lose the symlinks, turning them into files.  With tar that
    > > is not a problem.
    > 
    > cp -a is all you need to remember.  Think of it as "all".  No subtleties here.
    > Only works on linux, though.
    
    The equivalent, cp -dpR, is specific to GNU cp.  The use of -d is POSIXly
    wrong, and it should IIRC be cp -pPR.  The problem is that -P does not do
    what it should in GNU cp as of yet--this is expected to be changed soon.
    
    
  • [Eug-lug] Gentoo system – moving drives



    Allen BrownSat Jul 10 16:36:57 PDT 2004

    On Sat, 10 Jul 2004, Cory Petkovsek wrote:
    
    > On Sat, Jul 10, 2004 at 04:16:27PM -0700, Allen Brown wrote:
    > > I can never remember the subtle details for the cp options.  So I
    > > tend to lose the symlinks, turning them into files.  With tar that
    > > is not a problem.
    > 
    > cp -a is all you need to remember.  Think of it as "all".  No
    > subtleties here.  Only works on linux, though.
    > 
    > Cory
    
    Danger, Will Robinson!
    
    "Only works on linux" is death for me.  I have to keep my
    finger macros portable.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com	            abrown at peak.org
      Creativity is allowing yourself to make mistakes.
      Art is knowing which ones to keep. --- Scott Adams
    
    
  • [Eug-lug] Gentoo system – moving drives



    Cory PetkovsekSat Jul 10 16:26:33 PDT 2004

    On Sat, Jul 10, 2004 at 04:16:27PM -0700, Allen Brown wrote:
    > I can never remember the subtle details for the cp options.  So I
    > tend to lose the symlinks, turning them into files.  With tar that
    > is not a problem.
    
    cp -a is all you need to remember.  Think of it as "all".  No subtleties here.
    Only works on linux, though.
    
    Cory
    
    -- 
    Cory Petkovsek                                       Adapting Information
    Adaptable IT Consulting                                Technology to Your
    (858) 705-1655                                                   Business
    cory at AdaptableIT.com                                  www.AdaptableIT.com
    
  • [Eug-lug] Gentoo system – moving drives



    Allen BrownSat Jul 10 16:16:27 PDT 2004

    On Sat, 10 Jul 2004, Rob Hudson wrote:
    
    > So which is better...
    > 
    > cp -a 
    > or tar cfl . | tar xfp
    > 
    > -Rob
    
    I can never remember the subtle details for the cp options.  So I
    tend to lose the symlinks, turning them into files.  With tar that
    is not a problem.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com	            abrown at peak.org
      The standard of intellect in politics is so low, men of moderate mental
      capacity have to stoop to reach it. --- Hillaire Belloc
    
    
    > On 20040710.0815, Bob Miller said ...
    > 
    > > 	# mkdir /new
    > > 	# mkfs -j /dev/hdc{1,5,6}
    > > 	# mount /dev/hdc5 /new
    > > 	# cd /new
    > > 	# mkdir -m 755 boot var proc dev sys # others?
    > > 	# mount /dev/hdc1 boot
    > > 	# mount /dev/hdc6 var
    > > 	# (cd /; tar cfl - .) | tar xfp -    # Note the "l" flag!
    > > 	# (cd /home; tar cfl - .) | tar xfp -
    > > 	# (cd /usr; tar cfl - .) | tar xfp -
    > > 	# cd /
    > > 	# umount /new/boot /new/var /new
    > > 	# rmdir /new
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
  • [Eug-lug] Re: last week…



    Mike McCoolSat Jul 10 12:24:18 PDT 2004

    That's it!
    
    Thanx, O.  You da' man.
    M
    
    On 10-Jul-04, Mr O wrote:
    >Perhaps you're referring to my site. The page in question is
    >eviltechmonkey.com/youdontknow.html . I don't have a link to
    >that on my page yet. Perhaps I'll add a "celebrity nudes" link
    >pointing to that. Oh the joy of watching IE die. I'd love to
    >find the author of that creation and thank him or her. I yanked
    >that from a page a while back before the page itself
    >disappeared.
    
    >That be all,
    
    >Mr O.
    
    
    >--- Mike McCool <mikemcoo at efn.org> wrote:
    >> ...someone sent me a link to an amazing website--but I've lost
    >> it.
    >> 
    >> It was a kind of replicating pop-up nightmare effect, via IE. 
    >> 
    >> 
    >> I'd LOVE to see it again.
    >> 
    >> Thanx, 
    >> M
    >> 
    >> -- 
    >>     http://world.lookscool.com
    >>     http://www.efn.org/~mikemcoo
    
    
        http://world.lookscool.com
        http://www.efn.org/~mikemcoo
    
    
    
  • [Eug-lug] Gentoo system – moving drives



    Bob MillerSat Jul 10 11:43:23 PDT 2004

    Rob Hudson wrote:
    
    > So which is better...
    > 
    > cp -a 
    > or tar cfl . | tar xfp
    
    tar lets you explicitly exclude files/directories (using --exclude=pattern)
    or restrict to a single filesystem (using -l/--one-file-system).
    
    cp probably runs faster, since the data is not marshalled, written to
    a pipe, read from the pipe, and unmarshalled.  cp is generally easier
    to type. (-:
    
    So if you need something that only tar does, use tar.  Otherwise
    use cp.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Gentoo system – moving drives



    Rob HudsonSat Jul 10 11:15:10 PDT 2004

    So which is better...
    
    cp -a 
    or tar cfl . | tar xfp
    
    -Rob
    
    On 20040710.0815, Bob Miller said ...
    
    > 	# mkdir /new
    > 	# mkfs -j /dev/hdc{1,5,6}
    > 	# mount /dev/hdc5 /new
    > 	# cd /new
    > 	# mkdir -m 755 boot var proc dev sys # others?
    > 	# mount /dev/hdc1 boot
    > 	# mount /dev/hdc6 var
    > 	# (cd /; tar cfl - .) | tar xfp -    # Note the "l" flag!
    > 	# (cd /home; tar cfl - .) | tar xfp -
    > 	# (cd /usr; tar cfl - .) | tar xfp -
    > 	# cd /
    > 	# umount /new/boot /new/var /new
    > 	# rmdir /new
    
  • [Eug-lug] last week…



    Mr OSat Jul 10 09:11:29 PDT 2004

    Perhaps you're referring to my site. The page in question is
    eviltechmonkey.com/youdontknow.html . I don't have a link to
    that on my page yet. Perhaps I'll add a "celebrity nudes" link
    pointing to that. Oh the joy of watching IE die. I'd love to
    find the author of that creation and thank him or her. I yanked
    that from a page a while back before the page itself
    disappeared.
    
    That be all,
    
    Mr O.
    
    
    --- Mike McCool <mikemcoo at efn.org> wrote:
    > ...someone sent me a link to an amazing website--but I've lost
    > it.
    > 
    > It was a kind of replicating pop-up nightmare effect, via IE. 
    > 
    > 
    > I'd LOVE to see it again.
    > 
    > Thanx, 
    > M
    > 
    > -- 
    >     http://world.lookscool.com
    >     http://www.efn.org/~mikemcoo
    
    
    
    		
    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - 50x more storage than other providers!
    http://promotions.yahoo.com/new_mail
    
  • [Eug-lug] Keysigning party



    D. Cooper StevensonSat Jul 10 08:57:29 PDT 2004

    I don't get. "keysigning" is spelled correctly.
    
    
    On Sat, 2004-07-10 at 08:35, Bob Crandell wrote: 
    > Bob Miller (kbob at jogger-egg.com) wrote:
    > >
    > > T. Joseph Carter wrote:
    > >
    > > > My first act as the newly self-appointed public key crypto dictator is to
    > > > decree that there shall be a keysigning at the euglug clinic Thursday,
    > > > July 15th.
    > >
    > > Keysinging?  Is that where you teach us to sing on key?
    > >
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > >
    > Maybe he's teaching his keys to sing.
    > 
    > --
    > Assured Computing, Inc.
    > When you need to be sure.
    > http://www.assuredcomp.com/
    > P.O. Box 40814
    > Eugene, OR 97404
    > Voice - 541-868-0331
    > FAX - 541-463-1627
    > 
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    
    
    
  • [Eug-lug] Gentoo system – moving drives



    D. Cooper StevensonSat Jul 10 08:47:28 PDT 2004

    Rob,
    
    Executive Overview:
    -------------------
    
    tar cvf ./backup.tar --exclude=/tmp --exclude=/proc --exclude=/mnt /
    
    
    Better answer if you want to mirror a drive (for your reference):
    
    Linux is designed to be portable from a filesystem point of view. Now, I
    caveat that. If you optimize your compiles like crazy (compiling
    everything as an AMD optimized binary, for example) then running the
    distribution on another hardware platform. Of course, assuming that you
    have compiled for the "plain Jane" x86 instruction set you can be
    confident that the image will run on just about anything.
    
    So, having said that, there are a couple of ways you can go. The first
    is basically a "Ghosting" of one hard drive to another. More directly,
    it lays the bits _exactly_ on the destination drive as they are on the
    origin drive. No boot record problems, none of that.
    
    Here's how to do it:
    
    1) Connect the two drives to the PC. The best way to do this is to
    connect the primary drive as a master to the primary IDE chain (it will
    already be there) and the second device as a master on the secondary IDE
    chain. This is because IDE cannot read and write to two drives on the
    same IDE chain at the same time. 
    
    2) Boot to a live CD. It doesn't really matter which live CD you choose
    so long as it is basically functional. We basically need only one
    command, after all.
    
    I recommend the System Rescue CD-Rom. Now, let's not get the same
    shivers when someone says "Rescue CD" meaning a lame, stripped down
    proprietary package that doesn't work or worse, simply wipes out your
    hardware and restores it to OEM configuration. 
    
    This one has the whole package: hardware diagnostics, memory test,
    graphical partition editor, DOS emulator, you name it; it's the
    "hornet's nipples."
    
    Here's a link:
    
      http://www.sysresccd.org/
    
    By the way, the CD comes with "PartImage," a utility for making an image
    of your partitions to a file. Here is a link for more information:
    
      www.partimage.org
    
    The following is a continuation of doing it "with grit."
    
    3) Check to see if any of the partitions on your primary hard drive
    (hda) were automatically mounted:
    
      df -h
    
    Unmount the partitions if they are. As I recall, they will not be.
    
    4) Copy the contents of the primary drive to the secondary drive. I am
    assuming you have the drives physically connected as I described above:
    
      dd if=/dev/hda of=/dev/hdc bs=1024
    
    The system will respond with exactly Jack on the console. You will see a
    lot of drive activity when the mirroring is complete. 
    
    5) Move the drive cables so that the backup drive is now the primary
    master, and boot it to ensure that it works.
    
    
    Best,
    -- 
    
    --------------------------------------------------------------
    | Cooper Stevenson        | Em:  cooper at gencom.us            |
    | GenCom                  | Ph:  541.924.9434                |
    | "Working For IT"        | Www: http://www.gencom.us        |
    --------------------------------------------------------------