LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 11-15-2009, 10:36 PM   #1
akkikaushik
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Unhappy forgot my lfs system password..what to do now?


i made lfs system it was working well..i tried to login after 6 months ..but the problem is that i forgot my password..what should be done now to loggin.
is there anyway to login?
will this lfs system work again?
plz help!!!!!
 
Old 11-15-2009, 11:24 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD
Posts: 3,739
Blog Entries: 5

Rep: Reputation: Disabled
I don't know LFS, but if you are using grub (and you probably are), you can simply pass an 'S' kernel option in to get to single-user mode. Reset root's password from there.

If you've set a grub password, and don't know that either, then you're going to need a live cd to do the job.
 
Old 11-22-2009, 12:48 AM   #3
akkik
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
Unhappy live cd details

from where can i buy live cd.
can i purchase already build lfs system.,if yes then from where and how?
 
Old 11-22-2009, 12:58 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,959
Blog Entries: 25

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Quote:
Originally Posted by akkik View Post
from where can i buy live cd.
can i purchase already build lfs system.,if yes then from where and how?
Please start your own thread. It is confusing when there is more than one subject in a thread. For your question it will help if you say which country you are in.
 
Old 11-22-2009, 12:58 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Barcelona, Spain
Distribution: LMDE Gnome with Awesome WM + Kernel 3.3.0-1 amd64
Posts: 6,518
Blog Entries: 1

Rep: Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217Reputation: 1217
Hello,

You can download any LiveCD from the internet, there's no real need to buy one. Then you can boot from the LiveCD and chroot into the harddisk environment and change the root password. Next, reboot and voila, up and running.

Once booted from LiveCD do this:
Code:
mkdir /mnt/tmp
mount /mnt/tmp /dev/sda1               <<< the partition that contains your LFS
mount --bind /dev /mnt/tmp/dev
mount -t proc none /mnt/tmp/proc
chroot /mnt/bin/bash
Now you've chrooted into a bash shell of your LFS system and can run
Code:
passwd
to reset the password.

Kind regards,

Eric
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 09:29 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration