LinuxQuestions.org
Help answer threads with 0 replies.
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-23-2012, 08:15 PM   #1
antwoord
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
"File exists" error in Chapter 6.2 (Preparing Virtual Kernel File System)


Hello, I am seeking your assistance today regarding a rather mysterious error I am getting while trying to work my way through LFS version 7.1.

So far, I went through chapter 5 with out incident. I followed every command in the book, and both sanity checks came back good. At the end of chapter 5 I noticed the note that said to change to root and check that $LFS was set in root's environment so I did the following:

Code:
lfs@Miranda:/mnt/lfs/sources$ su - root 
Password: 
root@Miranda:~# export LFS=/mnt/lfs
root@Miranda:~# echo $LFS
/mnt/lfs
Assuming this was done correctly, I continued with the book and changed ownership of $LFS/tools from lfs to root by doing this:

Code:
root@Miranda:~# chown -R root:root $LFS/tools
Now here is where things get messed up, the book (in section 6.2) wants me to create a few directories for the file systems to be mounted it wants me to enter:

Code:
mkdir -v $LFS/{dev,proc,sys}
upon doing this the outcome is not very favorable. I get this:

Code:
root@Miranda:~# mkdir -v $LFS/{dev,proc,sys}
mkdir: cannot create directory `/mnt/lfs/dev': File exists
mkdir: cannot create directory `/mnt/lfs/proc': File exists
mkdir: cannot create directory `/mnt/lfs/sys': File exists
I'm at a loss due to limited Linux experience. I am working on a VM, with Ubuntu 12.04 host. I hesitate to continue because the book doesn't say that this is a normal situation, would any of you happen to have any idea why it's doing this?
 
Old 06-24-2012, 02:59 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Have you logged out or rebooted, and done this part previuos, Not knowing about VM,s are you defernetly in the Vm enviroment not ubuntu, what is the output of
Code:
ls -a /
 
  


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
File Exists but... "-bash: No such file or directory" zachet Linux - Newbie 24 03-20-2016 01:13 AM
[SOLVED] "command not found" but the file file exists! r1d3r Ubuntu 5 04-29-2012 07:53 PM
how to avoid "file system full" error message while copying/ ftping a file? laginagesh Linux - Software 4 01-27-2012 03:03 PM
[SOLVED] Php question about checking if a input="file" file exists errigour Programming 4 12-11-2011 05:58 PM
Problem in "Mounting Virtual Kernel File Systems" satimis Linux From Scratch 7 07-05-2005 06:57 AM

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

All times are GMT -5. The time now is 10:30 AM.

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