Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-19-2009, 04:09 AM   #1
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Rep: Reputation: 19
Thumbs up How to recover the root password in opensuse.

Follow the below given steps to recover the opensuse root password

1. boot the system with any livecd
2. suppose you have the following partition structure
sda1 /boot
sda2 /
sda3 swap
sda4 extended
sda5 systemvg ( volume group containing physical volume --- LVM)
usrlv /usr
optlv /opt
varlv /var
tmplv /tmp

3. mount the partions as given below

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
swapon /dev/sda3
vgchange -ay
mount /dev/systemvg/usrlv /mnt/usr
mount /dev/systemvg/optlv /mnt/opt
mount /dev/systemvg/varlv /mnt/var
mount /dev/systemvg/tmplv /mnt/tmp

mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc

chroot /mnt /bin/bash

4. now change the root password as mentioned below

passwd root

Last edited by chandramani_yadav; 01-19-2009 at 04:12 AM. Reason: adding tittle
Old 01-19-2009, 04:12 AM   #2
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Original Poster
Rep: Reputation: 19
How to Recover the Root password in opensuse

If there is some problem while doing the chroot then do the following

Umount /mnt/dev
umount /mnt/proc

And run the following command
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev


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
How to recover my root password? tahrenyie85 Linux - Newbie 11 01-03-2008 04:59 PM
How to recover the root password? hg7688 Linux - Software 3 07-25-2006 03:20 AM
Is there any way to recover my root password... deepu_ks Linux - Security 4 08-03-2005 10:41 AM
recover root password sophie Linux - Newbie 1 08-05-2003 07:19 PM
Recover Root password Dannyb Linux - Newbie 7 10-25-2001 12:04 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration