Your in greenwich mean time? I'm -7 from there in Arizona (not that it
matters) but I'm usually awake until 3 or 4 in the morning. And besides
that I am off until wednesday afternoon.

In any case. I didn't create /mnt/lfs/lfs.backups/  as I backed up to / but
I moved it to /home so now we are on the same page. As for the copy of
/tools I also put it in / .

:-)~MIKE~(-:


On Sun, Aug 3, 2014 at 2:27 PM, akhiezer <[email protected]> wrote:

> > From [email protected] Sun Aug  3 21:17:32
> 2014
> > From: Michael Havens <[email protected]>
> > Date: Sun, 3 Aug 2014 13:18:31 -0700
> > To: LFS Support List <[email protected]>
> > Subject: Re: [lfs-support] Please, teach me how to fix problems.
> >
> >
> > On Sun, Aug 3, 2014 at 4:37 AM, akhiezer <[email protected]> wrote:
> >
> > > > From: Michael Havens <[email protected]>
> > > > Date: Sun, 3 Aug 2014 03:32:31 -0700
> > > > To: LFS Support List <[email protected]>
> > > > Subject: Re: [lfs-support] Please, teach me how to fix problems.
> > > >
> > > > >
> > > > > On Sun, Aug 3, 2014 at 2:32 AM, akhiezer <[email protected]>
> wrote:
> > > > >
> > > > >> > From [email protected] Sun Aug  3
> > > > >> 10:17:39 2014
> > > > >> > Date: Sun, 03 Aug 2014 10:17:16 +0100
> > > > >> > From: [email protected] (akhiezer)
> > > > >> > To: LFS Support List <[email protected]>
> > > > >> > Subject: Re: [lfs-support] Please, teach me how to fix problems.
> > > > >> >
> > > > >> > > From: Michael Havens <[email protected]>
> > > > >> > > Date: Sun, 3 Aug 2014 00:06:41 -0700
> > > > >> > > To: LFS Support List <[email protected]>
> > > > >> > > Subject: Re: [lfs-support] Please, teach me how to fix
> problems.
> > > > >> > >
> > > > >> > >
> > > > >> > > On Sat, Aug 2, 2014 at 2:27 PM, Michael Havens <
> [email protected]>
> > > > >> wrote:
> > > > >> > >
> > > > >> > > > It was mentioned that I might want to restart at the
> beginning
> > > of
> > > > >> chapter
> > > > >> > > > 6. Please, what do I need to rm -rf to do that?
> > > > >> > > >
> > > > >> > >
> > > > >> > >
> > > > >> > > sorry about the delay in my response. I had to go to work. Is
> this
> > > > >> where
> > > > >> > > you wanted me to post my answer? I'll have all day to play
> with
> > > this
> > > > >> on
> > > > >> >
> > > > >> >
> > > > >> > It's re please don't top-post.
> > > > >> >
> > > > >> >
> > > > >> > > Sunday.
> > > > >> > >
> > > > >> > > root:/home/lfs#  ls -laF /mnt/lfs/
> > > > >> > > total 128
> > > > >> > > drwxr-xr-x 23 root root  4096 Aug  2 02:37 ./
> > > > >> > > drwxr-xr-x  3 root root  4096 Jul 26 00:47 ../
> > > > >> > > -rw-r--r--  1 root root    61 Aug  2 02:35
> 6.9glibc.compile.log
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:26 bin/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 boot/
> > > > >> > > drwxr-xr-x 14 root root  3340 Jul 27 00:16 dev/
> > > > >> > > drwxr-xr-x  4 root root  4096 Jul 29 17:29 etc/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 home/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:24 lib/
> > > > >> > > lrwxrwxrwx  1 root root     3 Jul 29 17:18 lib64 -> lib/
> > > > >> > > drwx------  2 root root 16384 Jul 27 14:28 lost+found/
> > > > >> > > drwxr-xr-x  4 root root  4096 Jul 29 17:16 media/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 mnt/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 opt/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 16:33 proc/
> > > > >> > > drwxr-x---  2 root root  4096 Jul 29 17:31 root/
> > > > >> > > drwxr-xr-x  3 root root  4096 Jul 29 17:18 run/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 sbin/
> > > > >> > > drwxrwxrwt  4 lfs  root 12288 Aug  2 02:38 sources/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 17:16 srv/
> > > > >> > > drwxr-xr-x  2 root root  4096 Jul 29 16:33 sys/
> > > > >> > > drwxrwxrwt  2 root root 20480 Aug  2 03:50 tmp/
> > > > >> > > drwxr-xr-x 12 root root  4096 Jul 28 14:06 tools/
> > > > >> > > drwxr-xr-x 10 root root  4096 Jul 29 17:18 usr/
> > > > >> > > drwxr-xr-x 10 root root  4096 Jul 29 17:16 var/
> > > > >> > > root:/home/lfs# umount -v $LFS/dev
> > > > >> > > udev has been unmounted
> > > > >> > > root:/home/lfs#
> > > > >> > >
> > > > >> >
> > > > >> >
> > > > >> > OK. The intent is to:
> > > > >> > ----
> > > > >> > * backup anything from under /mnt/lfs that you want to keep.
> Put any
> > > > >> >   backups well-out-of-the-way - e.g. put them in a subdir of
> ~root/
> > > and
> > > > >> >   not under /mnt/lfs  .
> > > > >> >
> > > > >> >   Personally, I'd just backup the lot:
> > > > >> >   $ mkdir
> > > > >> ~/_mnt_lfs.bkup.201408031030.immedpre-wipe_mnt_lfs-restart_end_ch5
> > > > >> >   $
> > > > >> >   $ (cd /mnt/lfs && find -P . -xdev -depth -print0 | \
> > > > >> >      cpio -0pdam -v \
> > > > >> >
> > >  ~/_mnt_lfs.bkup.201408031030.immedpre-wipe_mnt_lfs-restart_end_ch5
> > > > >> )
> > > > >> >   $
> > > > >> >   You can always, later, pick through the backup or just blitz
> in
> > > > >> entirely,
> > > > >> >   at your leisure.
> > > > >> >
> > > > >> >   ** "Backup now, or take your chances." **
> > > > >> >
> > > > >> >
> > > > >> > * check/verify that the backup looks ok - e.g. 'du -skx ...',
> > > > >> >   'diff -qr ...', &c.
> > > > >> >
> > > > >> >
> > > > >> > * then remove everything from under /mnt/lfs *EXCEPT FOR* both
> > > > >> >   /mnt/lfs/sources and /mnt/lfs/tools  .
> > > > >> >
> > > > >> >   You might want to use (defensive) constructs such as:
> > > > >> >   $ (cd /mnt/lfs && \
> > > > >> >      rm --preserve-root --one-file-system -I -v -rf -- \
> > > > >> >      ./opt ./media ./srv )
> > > > >> >   $
> > > > >>
> > > > >>
> > > > >> Obviously, in the above '... rm ... -rf ...' line, don't just
> restrict
> > > > >> that list of objects to './opt ./media ./srv' : add the others
> too -
> > > i.e.
> > > > >> the other items immediately under /mnt/lfs - ** EXCEPT FOR **
> > > './sources'
> > > > >> and
> > > > >> './tools'  . (The '... find ... -delete ...' approach below, is
> fine
> > > > >> as-is;
> > > > >> it doesn't need any such additions.)
> > > > >>
> > > > >>
> > > > >> And after the removal, verify that all you have got left under
> > > /mnt/lfs
> > > > >> are the ./sources and ./tools dirs.
> > > > >>
> > > > >>
> > > > >> >
> > > > >> >   ; or similarly:
> > > > >> >
> > > > >> >   $ (cd /mnt/lfs && find -P . -xdev -depth \
> > > > >> >      ! \( -wholename './sources*' -o -wholename './tools*' \) \
> > > > >> >      -delete )
> > > > >> >   $
> > > > >> >
> > > > >> >
> > > > >> > * double-check that you have got the backed-up toolchain from
> > > > >> >   end of chapter 5, and that you can temp-unpack it to a tempdir
> > > > >> >   (e.g. ~root/tmp/tmp-unpack-lfs-toolch-end_ch5/ ), and that it
> > > looks
> > > > >> >   OK. (You might even - e.g. just out of interest - want to do a
> > > quick
> > > > >> >   diff-qr between it and /mnt/lfs/tools/ ).
> > > > >> >
> > > > >> >   Check that the permissions on the backed-up toolchain look ok:
> > > they
> > > > >> >   should be 'root:root' per 'Changing Ownership' at end of ch.5
> .
> > > > >> >
> > > > >> >
> > > > >> > * if the (temp-unpack of the) ch5 backed-up toolchain dirtree
> looks
> > > ok
> > > > >> >  per preceding step, then remove /mnt/tmp/tools (or move it to
> e.g.
> > > > >> under
> > > > >> >  ~root if you've not got a backup of it per preceding notes),
> and
> > > put
> > > > >> the
> > > > >> >  ch5 backed-up toolchain in its place. Be sure that you don't
> > > introduce
> > > > >> >  any extra dir levels: i.e. ensure you still have
> > > /mnt/lfs/tools/bin and
> > > > >> >  not /mnt/lfs/tools/tools/bin  .
> > > > >> >
> > > > >> >
> > > > >> > * goto last page, 'Changing Ownership', of ch.5: start at the
> top,
> > > read
> > > > >> it,
> > > > >> >   and go from there.
> > > > >> >
> > > > >> >   Bear in mind the earlier injunctions about being careful,
> > > following
> > > > >> the
> > > > >> >   book, &c &c.
> > > > >> >
> > > > >> >
> > > > >> > ----
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > rgds,
> > > > >> >
> > > > >> > akh
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> > --
> > > > >> > http://lists.linuxfromscratch.org/listinfo/lfs-support
> > > > >> > FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > > > >> > Unsubscribe: See the above information page
> > > > >> >
> > > > >>
> > > > >>
> > > > >> --
> > > > >> --
> > > > >> http://lists.linuxfromscratch.org/listinfo/lfs-support
> > > > >> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > > > >> Unsubscribe: See the above information page
> > > > >>
> > > >
> > > > On Sun, Aug 3, 2014 at 3:30 AM, Michael Havens <[email protected]>
> wrote:
> > > >
> > > > > SO, just to clarify, you want me to copy /tools and /sources to the
> > > root
> > > > > directory and then delete -rf /mnt/lfs then put /sources and /toold
> > > back
> > > > > where they were originally? What about what you said in the email
> > > before
> > > > > this about  backing up everything and then running diff?
> > > > >
> > > > > :-)~MIKE~(-:
> > > > >
> > > > > sorry about the top post. I was just doing what gmail did. I need
> to
> > > go to
> > > > bed now..... gnight
> > >
> > >
> > > Perhaps re-read after a good night's sleep.
> > >
> > >
> > > Basically, you want to leave only /mnt/lfs/sources ; and then put the
> old
> > > backed-up toolchain - the one that you did at end of ch.5 - into place
> as
> > > /mnt/lfs/tools  .
> > >
> > >
> > > Then goto start of last page of ch.5 and read and proceed from there.
> > >
> > >
> > > The extended details above were just to try to extra-avoid a fup for
> you:
> > > but yes, maybe there was too much detail and obscured the central
> point.
> > >
> > >
> > > I think at this stage, it's perhaps only yourself that's defeating
> > > yourself.
> > >
> > >
> >
> > okay: to preface this note I must apologize beforehand for the fact I get
> > easily confused. there is a reason for that which is that I had a
> traumatic
> > brain injury in 1985.
> > I typed in 'exit' until I got to the command prompt:
> >   lfs@debian:~$
> > the I su  to root. Then I made the backups by
> >   cp -rf sources/ tools/ lfs.backups/
>
>
> (OK, not the way I'd do backups, but hey ... ).
>
> Presumably you're doing this in the $LFS dir, namely /mnt/lfs  .
>
> If so, then you have created /mnt/lfs/lfs.backups/  .
>
> You want now to move the 'lfs.backups' dir outside of /mnt/lfs : move it
> to be under /home : so you should now have /home/lfs.backups/  .
>
> Don't worry about moving/removing anything else from under /mnt/lfs just
> yet: instead, see next question.
>
> ** Now, where is your backup of the toolchain that you did at end of
> chapter 5 ? **
>
> (I know you wanted to push on with this on your Sunday. NB that it seems
> that you're ca 7-12 time-zones behind).
>
>
> > Now I:
> >   chroot "$LFS" /tools/bin/env -i HOME=/root
> > and then I was going to "rm -rf" each individual directory but to make
> sure
> > things were right:
> >   root@debian:/# ls
> >   bin   etc      lfs.backups  lost+found  opt     run      sources
> > temptools  usr
> >   boot  home      lib           media       proc  sbin      srv
> > tmp          var
> >   dev   initrd.img  lib64        mnt       root  selinux  sys
> > tools      vmlinuz
> >   root@debian:/# exit
> >   exit
> >   lfs@debian:/$ su
> >   Password:
> >   root@debian:/# ls
> >   bin   etc      lfs.backups  lost+found  opt     run      sources
> > temptools  usr
> >   boot  home      lib           media       proc  sbin      srv
> > tmp          var
> >   dev   initrd.img  lib64        mnt       root  selinux  sys
> > tools      vmlinuz
> > The two directories are the same?  To make sure they weren't I ls /home:
> >   root@debian:/# ls home/
> >   lfs  mike
> >   root@debian:/# chroot "$LFS" /tools/bin/env -i HOME=/root
> >   HOME=/root
> >   root@debian:/# ls home/
> >   lfs  mike
> > So both directories are the same So what to do now?
> >
>
>
> The above excerpt is completely irrelevant here.
>
> You (basically) don't need/want to be using 'chroot' here.
>
>
>
> rgds,
>
> akh
>
>
>
>
>
> --
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to