LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 09-18-2005, 08:48 AM   #1
musikalg
LQ Newbie
 
Registered: Sep 2005
Posts: 2
Thanked: 0
Lost root passwd and can't enter resuce mode


[Log in to get rid of this advertisement]
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
musikalg is offline     Reply With Quote
Old 09-18-2005, 09:07 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,058
Thanked: 1
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
homey is offline     Reply With Quote
Old 09-18-2005, 09:09 AM   #3
musikalg
LQ Newbie
 
Registered: Sep 2005
Posts: 2
Thanked: 0

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

/musicalg
musikalg is offline     Reply With Quote
Old 09-18-2005, 09:33 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,058
Thanked: 1
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.
homey is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 05:23 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration