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 10-31-2014, 04:51 PM   #16
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled

Can u please answer with bit more details regarding umount and checking whether chrooted into LFS. Coz I really don't want to mess up more
 
Old 10-31-2014, 04:56 PM   #17
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
just reboot your host system then chroot in,

In lfs / you will have a sources dir so that will be lfs
 
Old 10-31-2014, 04:57 PM   #18
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
Now, I rebooted and set LFS and chroot. I get failed to run command usr/bin/env. No such file ore directory.

Last edited by basan46; 10-31-2014 at 05:04 PM.
 
Old 10-31-2014, 05:10 PM   #19
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
did you mount /dev/sdXX to /mnt/lfs
 
Old 10-31-2014, 05:14 PM   #20
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
Mount /dev/sda5 /mnt/lfs right ?

Last edited by basan46; 10-31-2014 at 05:15 PM.
 
Old 10-31-2014, 05:18 PM   #21
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
yes

And echo $LFS
 
Old 10-31-2014, 05:24 PM   #22
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
Quote:
Originally Posted by basan46 View Post
I followed these steps..

Mount /mnt/lfs /dev/sda5
Then all the steps in 6.2.2 and 6.2.3 which includes an export to LFS.
Then I chroot to it.
Then type passed root and I got the above output
You have the mount arguments back to front it should be
Code:
mount /dev/sda5 /mnt/lfs
A good way to remember which way round they go is 'mount somthing somewhere'
 
Old 10-31-2014, 05:25 PM   #23
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
I successfully reset the password, now I'm not able to login after boot
Login - lfs ( guessing its default, otherwise I don't remember giving a login name )
Password - the one I set now
 
Old 10-31-2014, 05:26 PM   #24
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
you can check whether you chrooted or not by running 'mount' command.
Just type 'mount' without any options. It will show you mounted filesystems. Check its output for string that starts with "/dev/sda5 on / type..." If you have it in 'mount' output it means you are chrooted.
 
Old 10-31-2014, 05:29 PM   #25
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
I observed this while my previous password was set, I typed my password in the login name to check. And it was printing z instead of z.
Note - that was my previous passwd
 
Old 10-31-2014, 05:29 PM   #26
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
If you can login as root now you can change lfs user passwd the same way
as root passwd lfs

"Hi Keith"
 
Old 10-31-2014, 05:50 PM   #27
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
Hi spike didn't miss much by the looks of it
 
Old 10-31-2014, 06:02 PM   #28
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
I still have trouble logging in..
 
Old 10-31-2014, 06:07 PM   #29
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
Quote:
Originally Posted by basan46 View Post
I still have trouble logging in..
What sprt of trouble? If you have npt mount ed the lfs partitipn cprrect;y because you got the args to mount back to front you may have fubar'ed somthing try again but this ttime with the correct arguments to mount, if in doubt check the man page, sorry for the bad typing i'm on my tablet, damn stupid tiny keys!
 
Old 10-31-2014, 06:12 PM   #30
basan46
Member
 
Registered: Oct 2014
Posts: 35

Rep: Reputation: Disabled
I successfully reset the password, now I'm not able to login after boot
Login - lfs ( guessing its default, otherwise I don't remember giving a login name )
Password - the one I set now

I observed this while my previous password was set, I typed my password in the login name to check. And it was printing z instead of z.
Note - that was my previous passwd
 
  


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
The system forgot the root password trainee Slackware 3 05-17-2009 04:51 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Help! Forgot Password matrix13 Linux - General 9 02-06-2007 09:13 AM
forgot password =( ?!?! j_miguel_y Linux - General 1 08-31-2004 11:58 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM

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

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