LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2007, 02:24 PM   #1
Menno RB
LQ Newbie
 
Registered: Dec 2006
Posts: 16

Rep: Reputation: 0
Lost root password, dual boot system using NTLDR instead of Grub/Lilo


I played around with Linux about 8 months ago and decided I should really learn to use it now, but came to the conclusion I forgot my root password haha. I googled around a bit and searched these forums and they all come up with two ways of resetting your password, 1) using a live cd (I don't have one) 2) entering single user mode from Lilo/Grub. I want to use the second method so I don't have to burn a live cd but, when I made this system dualboot, I set NTLDR to be the bootloader. How do I enter single user mode now?

Thanks in advance,

Menno
 
Old 09-11-2007, 04:31 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The root password has nothing to do with the boot loader. If you can't log in as root you still can log in as an ordinary user.

NTLDR would only boot a Linux if it is chainloadable. In orther word you have installed its boot loader in the root partition so that its first sector can be copied to the same drive that holds NTLDR.

You wouldn't go vary far without a tool in Linux and that is a Live CD which is available in any Linux magazine nowadays.
 
Old 09-11-2007, 04:45 PM   #3
Menno RB
LQ Newbie
 
Registered: Dec 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by saikee View Post
The root password has nothing to do with the boot loader. If you can't log in as root you still can log in as an ordinary user.

NTLDR would only boot a Linux if it is chainloadable. In orther word you have installed its boot loader in the root partition so that its first sector can be copied to the same drive that holds NTLDR.
Yes I understand this but the sites that I googled all talked about pressing "Tab" while in the Grub/Lilo menu to login in single user mode. But on my system, I can select Windows XP or Mandriva Linux in the NTLDR menu, then when I select Mandriva Linux I DON'T get a Grub/Lilo menu in which I can press "Tab". So my question is basically how to log into single user mode.
 
Old 09-11-2007, 05:31 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You edit /etc/inittab of Mandriva, say by booting it by another Linux and mount its partition.

There is a line "id:n:initdefault:"

set n=1 for single user.

You could possibly do this in XP if you download "Ext2ifs" and mount the Mandriva partition so that you can edit its files inside XP.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHatLinux ,Recover lost root password with GRUB boot loader Ruzzell Linux - Security 5 01-07-2011 03:21 PM
Lost my dual boot grub menu narcispy Linux - Software 1 07-28-2007 09:41 PM
lost root password on a sco system Maldain Other *NIX 11 06-20-2005 12:26 PM
Debian/Windows lost grub to ntldr DigitalSmash Debian 1 01-12-2005 11:04 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration