LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-13-2017, 04:08 AM   #1
octagonking
LQ Newbie
 
Registered: Mar 2017
Location: Krypton
Distribution: Centos 7, Ubuntu
Posts: 6

Rep: Reputation: Disabled
Angry 6.2. Preparing Virtual Kernel File Systems


hi folks, I have managed to install packages in chapter 5 of LFS ... now im stuck in chapter 6.2 Creating directory ..creating initial device nodes.. But it gives me that the file exist:
Code:
rahimullah@rahimullah-VirtualBox:~$ sudo chown -R root:root $LFS/tools
[sudo] password for rahimullah: 
rahimullah@rahimullah-VirtualBox:~$ echo $LFS
/mnt/lfs
rahimullah@rahimullah-VirtualBox:~$ sudo mkdir -pv $LFS/{dev,proc,sys,run}
rahimullah@rahimullah-VirtualBox:~$ sudo sudo mknod -m 600 $LFS/dev/console c 5 1
mknod: /mnt/lfs/dev/console: File exists
rahimullah@rahimullah-VirtualBox:~$ mknod -m 666 $LFS/dev/null c 1 3
mknod: /mnt/lfs/dev/null: File exists

Last edited by octagonking; 03-13-2017 at 04:22 AM.
 
Old 03-13-2017, 06:50 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Thread moved to the LFS forum where there may be users who can best help you with your question.
 
Old 03-13-2017, 09:34 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
what does ls /mnt/lfs/dev give? you may have your host dev mount on it, if you get lots of output the thats the problem
 
Old 03-13-2017, 10:44 PM   #4
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Quote:
sudo chown -R root:root
Use of sudo before the LFS system is standing upon its own boot is highly likely to cause many issues, even if this isn't one of them.
 
Old 03-14-2017, 12:05 AM   #5
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Quote:
Originally Posted by octagonking View Post
Code:
# sudo chown -R root:root $LFS/tools
Using sudo to build LFS cause problem a lot.
I suggest to re-build from the start.

Before begin building LFS, be a root user with
Code:
# su -
or if you don't know the root password, e.g; using live cd
Code:
# sudo su -
 
Old 03-14-2017, 07:59 AM   #6
octagonking
LQ Newbie
 
Registered: Mar 2017
Location: Krypton
Distribution: Centos 7, Ubuntu
Posts: 6

Original Poster
Rep: Reputation: Disabled
Wink Solved it ..

Thanks everyone for the replies ... i have managed to solve it myself ... i have rename the files in the same directory and then execute the command again and it worked ..
Code:
$ mv console console2
$ mv null null2
 
  


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" error in Chapter 6.2 (Preparing Virtual Kernel File System) antwoord Linux From Scratch 1 06-24-2012 02:59 AM
LXer: Preparing your Linux systems for the new DST LXer Syndicated Linux News 1 03-08-2007 03:35 PM
Question on Mounting Virtual Kernel File Systems satimis Linux From Scratch 4 07-21-2005 09:04 PM
Problem in "Mounting Virtual Kernel File Systems" satimis Linux From Scratch 7 07-05-2005 06:57 AM
Mounting Virtual Kernel File Systems - Help Pls chakkaradeepcc Linux From Scratch 2 05-13-2005 06:53 AM

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

All times are GMT -5. The time now is 10:51 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