LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-18-2005, 07:48 AM   #1
musikalg
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Lost root passwd and can't enter resuce mode


Hi,

I'm running Mandrake 10.1 as a web/fileserver. By misstake I lost my root password. Since that has happened before there was no course to panic, instead I tried to boot from my install CD and then entered rescue mode.

But when entering rescue mode I get the following error:

hda: 43403252 sectors (2222MB) w/4112KiB Cache: CHS: 2136/127/16
hda: INVALID GEOMETRY: 127 PHYSICAL HEADS?
ide-default: hda: Failed to register the driver with ide.c
Kernel panic: ide: Default attach failed

However, I can boot my system and log in as any user, but I can't do anything with the system since I don't have root priviledges.

Does anyone know a way to fix this corrupt file system?

/musikalg
 
Old 09-18-2005, 08:07 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Quote:
However, I can boot my system and log in as any user, but I can't do anything with the system since I don't have root priviledges.
I kind of doubt it's all that corrupt if users can login ok.
Login to level 1 ( one ) by appending init 1 to the end of the boot loader.
This will allow you to changed the root passwd without knowing it first.
For example:
Code:
title Fedora Core
	root (hd1,1)
	kernel /boot/vmlinuz-2.6.12-1.1447_FC4 ro root=LABEL=/ rhgb quiet init 1
	initrd /boot/initrd-2.6.12-1.1447_FC4.img
 
Old 09-18-2005, 08:09 AM   #3
musikalg
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thank's a lot. I'm using Mandrake, is it just to exchange FC to mdk?

/musicalg
 
Old 09-18-2005, 08:33 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
You will need to work with the operating system that you have. Also, my example was using the GRUB and you may be using LILO boot loader.
 
  


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
cannot enter full screen mode in vmware maenho Linux - Software 0 01-07-2005 03:50 AM
XP wants to enter recovery mode after installing RH9 luizebs Linux - Software 8 12-29-2004 07:55 AM
can no enter rescue mode entirely pandachina Linux - Software 0 09-07-2003 07:56 PM
how to enter into console mode madiyaan Linux - Newbie 12 05-31-2003 06:05 PM
Attempting to move files while in resuce mode jdubchak Linux - Newbie 10 04-11-2003 05:43 AM


All times are GMT -5. The time now is 12:28 AM.

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