> Date: Mon, 04 Aug 2014 07:55:46 +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 15:22:37 -0700
> > To: LFS Support List <[email protected]>
> > Subject: Re: [lfs-support] Please, teach me how to fix problems.
> >
> >
> > On Sun, Aug 3, 2014 at 3:02 PM, akhiezer <[email protected]> wrote:
> >
> > > > From: Michael Havens <[email protected]>
> > > > Date: Sun, 3 Aug 2014 14:56:11 -0700
> > > > To: LFS Support List <[email protected]>
> > > > Subject: Re: [lfs-support] Please, teach me how to fix problems.
> > > >
> > >         .
> > >         .
> > > > > > 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.
> > >         .
> > >         .
> > > >
> > > > In any case. I didn't create /mnt/lfs/lfs.backups/  as I backed up to /
> > > but
> > >
> > >
> > > (The 'ls' outputs from above show it as seemingly being under both '/' and
> > > '/mnt/lfs' ).
> > >
> > >
> > > > I moved it to /home so now we are on the same page.
> > >
> > >
> > > OK.
> > >
> > >
> > > > As for the copy of
> > > > /tools I also put it in / .
> > > >
> > >
> > >
> > > _What_ "copy of /tools" ?
> > >
> > > The one you did at end of chapter 5 ?
> > >
> > > Or the one that you just did today ?
> > >
> > >
> >
> >
> > I think /mnt/lfs/tools was created in ch5 and so I cp it to / the mkdir
> > lfs.backups then mv sources and tools backups to it then mv lfs.backups to
> > /home/ so I end up with /home/lfs.backups containing my backups of sources
> > and tools.
>
>
> Did you do that at end of chapter 5 - at that moment in time - and _before_
> moving on to chapter 6 ?
>
>
> OR, did you instead ONLY do that yesterday ?
>
>
> You need to have done a backup of /mnt/lfs/tools WHEN you reached the end
> of chapter 5: you had to do the backup at THAT moment in time; and you
> had to do that BEFORE moving on to chapter 6.
>
>
> > Regardless, I think I have the backups where you want them.
> >
>
>
> WHERE, right now, is the backup that you did WHEN you were at the end of
> chapter 5 and BEFORE you moved on to chapter 6 ?
>
> What is the full path of its directory?
>
>
> And WHERE, right now, is the backup that you did yesterday: what is the
> full path of its directory ?
>
>
> You should have two separate backups by now: the one that you did at
> end of chapter 5 - at that point in time - before moving on to chapter 6;
> and the one that you did yesterday.
>
>
> You need to be crystal-clear on these points; else it's probably not time
> yet to resume the build.
>


 - meant to add, that if you're not understanding the concepts here readily
enough, then it may be safest just to, at most, restart from scratch -
i.e. start from the beginning of the book again. Yes, that might be a pita
for you; but you should have some experience now of how to get through those
early chapters of the book; so it should not be wasted time. And it means
that you should be starting from a known good state - i.e. a clean slate.


What we have been trying to do here, namely rewinding to end of chapter
5 and then resuming the build, does require, really, clarity about some
concepts and instructions to follow: else you really are better, as said,
to just go back to very start of book again. It's variously inadvisable,
all-round, otherwise.



hth,
akh





--
-- 
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