LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 06-12-2011, 01:58 PM   #1
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Rep: Reputation: 0
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.
 
Old 06-12-2011, 02:19 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by gdawg View Post
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
Code:
ls -l /
If /tools is a soft-link to $LFS/tools then you should be fine.
 
1 members found this post helpful.
Old 06-12-2011, 03:24 PM   #3
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Original Poster
Rep: Reputation: 0
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?
 
Old 06-12-2011, 03:31 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
You already have a link called "tools" in you home directory that points to /mnt/lfs/tools.
 
1 members found this post helpful.
Old 06-13-2011, 08:56 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
@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.
Old 06-14-2011, 08:20 AM   #6
gdawg
Member
 
Registered: Jul 2010
Location: USA, New Mexico
Distribution: Several
Posts: 71

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create symbolic link? your_shadow03 Linux - Newbie 4 12-05-2009 04:15 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 10:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 11:41 AM
how do I create a symbolic link? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration