unixadmin.free.fr just another IBM blog and technotes backup

12sept/11

Linux RedHat PowerPC – recover root password

Insérer le CD ou DVD "REDHAT 5.x LINUX PPC" dans le lecteur DVD du système IBM Power

IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM

          1 = SMS Menu                          5 = Default Boot List
          8 = Open Firmware Prompt              6 = Stored Boot List

-----------------------------------------------------------------
 1 = SMS Menu
-----------------------------------------------------------------
PowerPC Firmware
 Version SF240_382
 SMS 1.6 (c) Copyright IBM Corp. 2000,2005 All rights reserved.
-----------------------------------------------------------------
5.   Select Boot Options
-----------------------------------------------------------------
1.   Select Install/Boot Device
-----------------------------------------------------------------
3.   CD/DVD
-----------------------------------------------------------------
4.   IDE
-----------------------------------------------------------------
1.        -      IDE CD-ROM
                  ( loc=U787B.001.DNW1243-P4-D2 )
-----------------------------------------------------------------
2.   Normal Mode Boot
-----------------------------------------------------------------

Démarre en mode rescue via Yaboot avec l'option linux rescue

Welcome to yaboot version 1.3.13 (Red Hat 1.3.13-10.el5_5.1)
Enter "help" to get some basic usage information
Default supplied on the command line: diag
boot: linux rescue
-----------------------------------------------------------------
French
-----------------------------------------------------------------
config réseau : Non
-----------------------------------------------------------------
Secours: Continuer
-----------------------------------------------------------------
Secours: OK
-----------------------------------------------------------------
sh-3.2# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev                   1911232         0   1911232   0% /dev
/tmp/cdrom             3766534   3766534         0 100% /mnt/source
/tmp/loop0               94080     94080         0 100% /mnt/runtime
/dev/VolGroup00/hd4    4951688    457796   4238304  10% /mnt/sysimage
/dev/VolGroup00/hd10opt
                       4951688    141188   4554912   4% /mnt/sysimage/opt
/dev/VolGroup00/hd1     983960     17656    915516   2% /mnt/sysimage/home
/dev/VolGroup00/hd3    1015704     34112    929164   4% /mnt/sysimage/tmp
/dev/VolGroup00/hd9var
                       1967952    112884   1753488   7% /mnt/sysimage/var
/dev/VolGroup00/hd2    4951688   2904180   1791920  62% /mnt/sysimage/usr
/dev/sdb2                99150     18080     75950  20% /mnt/sysimage/boot
/dev                   1911232         0   1911232   0% /mnt/sysimage/dev
-----------------------------------------------------------------
sh-3.2# chroot /mnt/sysimage/
-----------------------------------------------------------------
sh-3.2# df
Sys. de fich.        1K-blocs       Occupé Disponible Capacité Monté sur
/dev/VolGroup00/hd4    4951688    457796   4238304  10% /
/dev/VolGroup00/hd10opt
                       4951688    141188   4554912   4% /opt
/dev/VolGroup00/hd1     983960     17656    915516   2% /home
/dev/VolGroup00/hd3    1015704     34112    929164   4% /tmp
/dev/VolGroup00/hd9var
                       1967952    112884   1753488   7% /var
/dev/VolGroup00/hd2    4951688   2904180   1791920  62% /usr
/dev/sdb2                99150     18080     75950  20% /boot
-----------------------------------------------------------------
sh-3.2# passwd root
Changing password for user root.
New UNIX password:********
Retype new UNIX password:********
passwd: all authentication tokens updated successfully.
-----------------------------------------------------------------
sh-3.2# exit
-----------------------------------------------------------------
sh-3.2# reboot
Running reboot...
-----------------------------------------------------------------
Commentaires () Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant