Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 531  / 2 Years ago, tue, march 22, 2022, 2:30:35

i am working on LFS, and getting this error creating symbolic links. i checked this link but no help, also googled but nothing works.



# ln -sv $LFS/tools /
‘/tools’ -> ‘/mnt/lfs/tools’


in root directory, i see a file tools, with link symbol on it. double clicking throws an error "the link cannot be used because its target /mnt/tools does not exist"



also checked env variable



# echo $LFS
/mnt/lfs


any help would be awesome.



thanks


More From » 14.04

 Answers
3

alright, i've figured it out.



i had previously mounted partition



mount -v -t ext4 /dev/sda4 $LFS 


for some reason, this mount was not working anymore, probably after restart. i found it when i checked directory /mnt/lfs - it was empty, all the folders that i had created were in partition sda4 which i had previously mounted.



re-mounted partition,



#ln -sv $LFS/tools /


and it works now.



2nd question: what happened to mount, why does it stop working after restart ? at the same time, environment variable $LFS also resets ?


[#22533] Thursday, March 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
nstitutencert questions
Fri, Dec 10, 21, 16:31, 2 Years ago
Tue, Apr 19, 22, 05:51, 2 Years ago
Wed, Jan 26, 22, 07:52, 2 Years ago
Sun, Aug 29, 21, 21:43, 3 Years ago
;