Re: [lfs-support] /tools directory

2014-02-18 Thread William Harrington

On Feb 17, 2014, at 9:19 PM, joel kammet wrote:

> But why do you still use /tools/bin/  for bash, file, & strip on  
> page 202?
>

Have you ever tried stripping an already running process? Experiment.  
There are tools for a reason.

Sincerely,

William Harrington

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] /tools directory

2014-02-17 Thread Bruce Dubbs
joel kammet wrote:
> But why do you still use /tools/bin/  for bash, file, & strip on page 202?

Please don't top post.

What is on page 202?  We work from section numbers/names, not the pdf. 
The page numbers can change, sometimes radically during a nightly build.

   -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] /tools directory

2014-02-17 Thread joel kammet
But why do you still use /tools/bin/  for bash, file, & strip on page 202?





 From: Bruce Dubbs 
To: joel kammet ; LFS Support List 
 
Sent: Monday, February 17, 2014 7:09 PM
Subject: Re: [lfs-support] /tools directory
 

joel kammet wrote:
> Greetings.
>
> Working my way through my first build of LFS 7.4.  I'm wondering,
> after building and installing all of the packages in Chapter 6, can
> the /tools directory be deleted?  I see that find and strip are used
> in Section 6.65, but we have new copies of those in /bin and
> /usr/bin.

Yes.  See Section 6.66. Cleaning Up.

> Also, regarding backing up prior to stripping, is it ok to exclude
> all of dev, proc, and sys from the backup.  I'm thinking something
> like: tar --exclude=dev --exclude=proc --exclude=sys
> --exclude=sources \ -cjvPf lfs-7.4.tar.bz2 /mnt/lfs
>
> Is that reasonable?

Yes.  You don't want to back up any virtual filesystems.  Exclude /run, 
/proc, /sys, and /dev.  Excluding sources is optional.  You can always 
recover those.

   -- Bruce


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] /tools directory

2014-02-17 Thread Bruce Dubbs
joel kammet wrote:
> Greetings.
>
> Working my way through my first build of LFS 7.4.  I'm wondering,
> after building and installing all of the packages in Chapter 6, can
> the /tools directory be deleted?  I see that find and strip are used
> in Section 6.65, but we have new copies of those in /bin and
> /usr/bin.

Yes.  See Section 6.66. Cleaning Up.

> Also, regarding backing up prior to stripping, is it ok to exclude
> all of dev, proc, and sys from the backup.  I'm thinking something
> like: tar --exclude=dev --exclude=proc --exclude=sys
> --exclude=sources \ -cjvPf lfs-7.4.tar.bz2 /mnt/lfs
>
> Is that reasonable?

Yes.  You don't want to back up any virtual filesystems.  Exclude /run, 
/proc, /sys, and /dev.  Excluding sources is optional.  You can always 
recover those.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] /tools directory

2014-02-17 Thread joel kammet
Greetings.

Working my way through my first build of LFS 7.4.  I'm wondering, after 
building and installing all of the packages in Chapter 6, can the /tools 
directory be deleted?  I see that find and strip are used in Section 6.65, but 
we have new copies of those in /bin and /usr/bin.

Also, regarding backing up prior to stripping, is it ok to exclude all of dev, 
proc, and sys from the backup.  I'm thinking something like:
tar --exclude=dev --exclude=proc --exclude=sys --exclude=sources \
    -cjvPf lfs-7.4.tar.bz2 /mnt/lfs

Is that reasonable?

Thanks,
Joel
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-17 Thread Baho Utot


On Tuesday 17 January 2012 12:29:40 am Firerat wrote:
> On Jan 17, 2012 5:21 AM, "Uthayanan"  wrote:
> > lfsuthayan@ubuntu:/$ ls -l /tools
> > total 48
> > drwxr-xr-x  2 lfsuthayan lfs 12288 Jan 16 11:22 bin
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 04:18 etc
> > drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 10 09:26 i686-lfs-linux-gnu
> > drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 16 05:00 i686-pc-linux-gnu
> > drwxr-xr-x 32 lfsuthayan lfs  4096 Jan 16 11:20 include
> > drwxr-xr-x 10 lfsuthayan lfs  4096 Jan 16 11:22 lib
> > drwxr-xr-x  6 lfsuthayan lfs  4096 Jan 16 11:06 libexec
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 11:22 sbin
> > drwxr-xr-x 13 lfsuthayan lfs  4096 Jan 16 11:23 share
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 09:21 var
> > lfsuthayan@ubuntu:/$
> >
> >> put I got
>
> /tools is not a link
>
> Confirm with
>
>  ls -l /
>
> to fix
>
> mv /tools/* /mnt/lfs/tools/
> rmdir /tools
> ln -s /mnt/lfs/tools /tools
>
> Tbh I'm a little confused how you managed to do that, as you would need to
> be root

If you are using a package manager it is easy to overwrite the symlink with a 
directory /tools.

I have had this happend many times.  In fact it is something I am very good 
at. ;)

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Uthayanan
On Tue, Jan 17, 2012 at 12:14 PM, Firerat  wrote:

>
> On Jan 17, 2012 6:24 AM, "Uthayanan"  wrote:
>
> >
> > After doing the above process, my output
> >
> > ls -l /tools
> >
> > lrwxrwxrwx 1 root root 15 Jan 17 05:58 /tools -> /mnt/lfs/tools/
> >
> > --
> > Regards,
> > s uthay
> >
> yeah, that looks correct now
>
> Worth checking that whenever you start chapter5
>
>

Thats right !!! Thanks for your continues help on this process


-- 
Regards,
s uthay
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Firerat
On Jan 17, 2012 6:24 AM, "Uthayanan"  wrote:

>
> After doing the above process, my output
>
> ls -l /tools
>
> lrwxrwxrwx 1 root root 15 Jan 17 05:58 /tools -> /mnt/lfs/tools/
>
> --
> Regards,
> s uthay
>
yeah, that looks correct now

Worth checking that whenever you start chapter5
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Uthayanan
On Tue, Jan 17, 2012 at 10:59 AM, Firerat  wrote:

>
> On Jan 17, 2012 5:21 AM, "Uthayanan"  wrote:
>
> > lfsuthayan@ubuntu:/$ ls -l /tools
> > total 48
> > drwxr-xr-x  2 lfsuthayan lfs 12288 Jan 16 11:22 bin
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 04:18 etc
> > drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 10 09:26 i686-lfs-linux-gnu
> > drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 16 05:00 i686-pc-linux-gnu
> > drwxr-xr-x 32 lfsuthayan lfs  4096 Jan 16 11:20 include
> > drwxr-xr-x 10 lfsuthayan lfs  4096 Jan 16 11:22 lib
> > drwxr-xr-x  6 lfsuthayan lfs  4096 Jan 16 11:06 libexec
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 11:22 sbin
> > drwxr-xr-x 13 lfsuthayan lfs  4096 Jan 16 11:23 share
> > drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 09:21 var
> > lfsuthayan@ubuntu:/$
> >
> >>
> >> put I got
> >
>
> /tools is not a link
>
> Confirm with
>
>  ls -l /
>
> to fix
>
> mv /tools/* /mnt/lfs/tools/
> rmdir /tools
> ln -s /mnt/lfs/tools /tools
>
> Tbh I'm a little confused how you managed to do that, as you would need to
> be root
>
After doing the above process, my output

ls -l /tools

lrwxrwxrwx 1 root root 15 Jan 17 05:58 /tools -> /mnt/lfs/tools/




-- 
Regards,
s uthay
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Firerat
On Jan 17, 2012 5:21 AM, "Uthayanan"  wrote:

> lfsuthayan@ubuntu:/$ ls -l /tools
> total 48
> drwxr-xr-x  2 lfsuthayan lfs 12288 Jan 16 11:22 bin
> drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 04:18 etc
> drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 10 09:26 i686-lfs-linux-gnu
> drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 16 05:00 i686-pc-linux-gnu
> drwxr-xr-x 32 lfsuthayan lfs  4096 Jan 16 11:20 include
> drwxr-xr-x 10 lfsuthayan lfs  4096 Jan 16 11:22 lib
> drwxr-xr-x  6 lfsuthayan lfs  4096 Jan 16 11:06 libexec
> drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 11:22 sbin
> drwxr-xr-x 13 lfsuthayan lfs  4096 Jan 16 11:23 share
> drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 09:21 var
> lfsuthayan@ubuntu:/$
>
>>
>> put I got
>

/tools is not a link

Confirm with

 ls -l /

to fix

mv /tools/* /mnt/lfs/tools/
rmdir /tools
ln -s /mnt/lfs/tools /tools

Tbh I'm a little confused how you managed to do that, as you would need to
be root
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Uthayanan
On Tue, Jan 17, 2012 at 10:38 AM, Firerat  wrote:

>
> On Jan 17, 2012 5:03 AM, "Uthayanan"  wrote:
> >
> > Dear group,
> >
> > I successfully installed all the packages and decided to move in to
> building phase. But I got this great disappointment which is my
> /mnt/lfs/tools
> > directory is empty. What could be the reason ? Any suggestion to fix
> this ?
> >
> > Please help me on this.
> >
> > --
> > Regards,
> > s uthay
> just a guess
> Maybe /tools is not correct
>
> ls -l /tools
>
> Does that point to where it should?
> i.e.
> --> /mnt/lfs/tools
> This is the out


lfsuthayan@ubuntu:/$ ls -l /tools
total 48
drwxr-xr-x  2 lfsuthayan lfs 12288 Jan 16 11:22 bin
drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 04:18 etc
drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 10 09:26 i686-lfs-linux-gnu
drwxr-xr-x  4 lfsuthayan lfs  4096 Jan 16 05:00 i686-pc-linux-gnu
drwxr-xr-x 32 lfsuthayan lfs  4096 Jan 16 11:20 include
drwxr-xr-x 10 lfsuthayan lfs  4096 Jan 16 11:22 lib
drwxr-xr-x  6 lfsuthayan lfs  4096 Jan 16 11:06 libexec
drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 11:22 sbin
drwxr-xr-x 13 lfsuthayan lfs  4096 Jan 16 11:23 share
drwxr-xr-x  2 lfsuthayan lfs  4096 Jan 16 09:21 var
lfsuthayan@ubuntu:/$


> put I got
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>


-- 
Regards,
s uthay
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Tools directory is empty

2012-01-16 Thread Firerat
On Jan 17, 2012 5:03 AM, "Uthayanan"  wrote:
>
> Dear group,
>
> I successfully installed all the packages and decided to move in to
building phase. But I got this great disappointment which is my
/mnt/lfs/tools
> directory is empty. What could be the reason ? Any suggestion to fix this
?
>
> Please help me on this.
>
> --
> Regards,
> s uthay
just a guess
Maybe /tools is not correct

ls -l /tools

Does that point to where it should?
i.e.
--> /mnt/lfs/tools
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Tools directory is empty

2012-01-16 Thread Uthayanan
Dear group,

I successfully installed all the packages and decided to move in to
building phase. But I got this great disappointment which is my
/mnt/lfs/tools
directory is empty. What could be the reason ? Any suggestion to fix this ?

Please help me on this.

-- 
Regards,
s uthay
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page