LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-17-2012, 06:21 AM   #1
jackplughd
LQ Newbie
 
Registered: Jan 2010
Posts: 22

Rep: Reputation: 0
Unhappy mount command fails


All,

I am running the mount command in chapter 6.2.2 of book 7.1 amd get the following:

I have no name!:/# mount -v --bind /dev $LFS/dev
bash: mount: command not found

No idea how to proceed. Any help gratefully received!!

Host system Mint Lisa.

regards

Jack
 
Old 03-17-2012, 06:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by jackplughd View Post
I have no name!:/# mount -v --bind /dev $LFS/dev
bash: mount: command not found
The bold red part should be a big clue.

At this point you should be root user on your host (in chapter 5.35 you logged out as lfs user and became root user). Are you sure you followed the correct steps mentioned in the book.....
 
Old 03-18-2012, 10:01 AM   #3
jackplughd
LQ Newbie
 
Registered: Jan 2010
Posts: 22

Original Poster
Rep: Reputation: 0
mount command fails

druuna,

thanks for the reply, but I am not sure about it as i was root right up to chapter 6.3 and all worked fine. Then I ran the chroot command in chapter 6.4 when I got the "I have no name" prompt. The book (in 6.4) says that this is normal as the /etc/passwd file has not yet been created. So although according to the book everything is normal I still got the error which I originally posted.

I will go back through the previous commands I have run to check that I have not left anything out (I don't believe I have), but if I don't find anything wrong I will still be at a loss.

thanks

jack
 
Old 03-18-2012, 10:10 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by jackplughd View Post
thanks for the reply, but I am not sure about it as i was root right up to chapter 6.3 and all worked fine.
I really hope that isn't true! Did you actually mean: I've been root from chapter 5.35 until 6.3???? If you have done chapter 5 as root user: Start from scratch, you should have done most of it as lfs user.

Quote:
Then I ran the chroot command in chapter 6.4 when I got the "I have no name" prompt. The book (in 6.4) says that this is normal as the /etc/passwd file has not yet been created. So although according to the book everything is normal I still got the error which I originally posted.
Yes, that is true for 6.4, but not for 6.2.2. From your first post:
Quote:
I am running the mount command in chapter 6.2.2 of book 7.1 amd get the following:

have no name!:/# mount -v --bind /dev $LFS/dev
bash: mount: command not found
 
Old 03-21-2012, 05:51 AM   #5
jackplughd
LQ Newbie
 
Registered: Jan 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Druuna,

Apologies, I have not been clear in describing the steps leading up to my problem.

Yes I did mean I've been root from chapter 5.35 until 6.3.

I have been over my previous steps and found a number of commands that I had missed. Now everything is fine.

Humble apologies for wasting your time.

Must try harder!

Jack
 
Old 03-21-2012, 06:42 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi jackplughd,

No harm is done I'm glad to see that you figured it out and are on track again.
 
  


Reply

Tags
lfs, mount


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
[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command Foxbat1155 Linux - Hardware 15 02-21-2012 05:55 PM
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 01:30 AM
Mount CD/DVD fails. K3B can mount though? BashTin Slackware 3 06-14-2007 05:02 AM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 04:09 AM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 05:32 PM

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

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