Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 06-23-2012, 09:15 PM   #1
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:

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

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:

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

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, 03:59 AM   #2
Senior Member
Registered: Jan 2011
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

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

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
ls -a /


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 02:49 PM.

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