Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-12-2011, 01:58 PM
|
#1
|
Member
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71
Rep:
|
Failed To Create Symbolic Link In Chapter 3 of LFS 6.8
Hi,
After creating directory and attempting to create soft link I get the following output:
Code:
dhcppc0:~ # echo $LFS
/mnt/lfs
dhcppc0:~ # mkdir -v $LFS/tools
mkdir: created directory `/mnt/lfs/tools'
dhcppc0:~ # ln -sv $LFS/tools /
ln: failed to create symbolic link `/tools': File exists
dhcppc0:~ # df -h | grep $LFS
/dev/sdb6 12G 159M 12G 2% /mnt/lfs
Is this a problem? I also verified that LFS was set and mounted. Thanks for your help.
|
|
|
06-12-2011, 02:19 PM
|
#2
|
Senior Member
Registered: Jan 2010
Posts: 2,020
|
Quote:
Originally Posted by gdawg
Hi,
After creating directory and attempting to create soft link I get the following output:
Code:
dhcppc0:~ # echo $LFS
/mnt/lfs
dhcppc0:~ # mkdir -v $LFS/tools
mkdir: created directory `/mnt/lfs/tools'
dhcppc0:~ # ln -sv $LFS/tools /
ln: failed to create symbolic link `/tools': File exists
dhcppc0:~ # df -h | grep $LFS
/dev/sdb6 12G 159M 12G 2% /mnt/lfs
Is this a problem? I also verified that LFS was set and mounted. Thanks for your help.
|
What is the output of
If /tools is a soft-link to $LFS/tools then you should be fine.
|
|
1 members found this post helpful.
|
06-12-2011, 03:24 PM
|
#3
|
Member
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71
Original Poster
Rep:
|
Hi,
Thank you crts for your reply. This is the output of "ls -l /":
Quote:
drwxr-xr-x 2 root root 4096 May 27 09:09 bin
drwxr-xr-x 3 root root 4096 Jun 3 21:29 boot
drwxr-xr-x 19 root root 3880 Jun 12 14:02 dev
drwxr-xr-x 117 root root 12288 Jun 12 14:02 etc
drwxr-xr-x 7 root root 4096 Jun 8 11:05 home
drwxr-xr-x 20 root root 12288 Jun 12 09:02 lib
drwx------ 2 root root 16384 May 26 14:47 lost+found
drwxr-xr-x 2 root root 4096 Jun 12 09:33 media
drwxr-xr-x 3 root root 4096 Jun 8 09:03 mnt
drwxr-xr-x 2 root root 4096 Feb 18 06:48 opt
dr-xr-xr-x 164 root root 0 Jun 12 14:02 proc
drwx------ 29 root root 4096 Jun 12 14:10 root
drwxr-xr-x 3 root root 12288 Jun 12 09:02 sbin
drwxr-xr-x 2 root root 4096 Feb 18 06:48 selinux
drwxrwxrwt 2 root root 4096 Jun 8 09:43 sources
drwxr-xr-x 4 root root 4096 May 26 14:47 srv
drwxr-xr-x 12 root root 0 Jun 12 14:02 sys
drwxrwxrwt 114 root root 4096 Jun 12 14:17 tmp
lrwxrwxrwx 1 root root 14 Jun 8 11:03 tools -> /mnt/lfs/tools
drwxr-xr-x 12 root root 4096 May 26 14:47 usr
drwxr-xr-x 16 root root 4096 Jun 3 21:29 var
drwxr-xr-x 5 root root 4096 May 26 14:47 windows
|
Does this look OK?
|
|
|
06-12-2011, 03:31 PM
|
#4
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
You already have a link called "tools" in you home directory that points to /mnt/lfs/tools.
|
|
1 members found this post helpful.
|
06-13-2011, 08:56 AM
|
#5
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
|
@gdawg
The fact that you didn't think of "ls /" makes me think: are you familiar with the command line? If not, it's probably a better idea to learn it (see the tutorials in my sig, you can also search the Web) and get a bit more familiar with Linux before attempting LFS. That way, you actaully learn instead of copying and pasting commands.
|
|
2 members found this post helpful.
|
06-14-2011, 08:20 AM
|
#6
|
Member
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71
Original Poster
Rep:
|
Thank you MTK358 for the tutorial links. I'm always eager to learn more about computers in general and linux in particular.
Kind regards,
Glen
|
|
|
All times are GMT -5. The time now is 07:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|