11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 26. Basic System Recovery<br />

If you do not know the names of all physical partitions, use the following <strong>com</strong>mand to list them:<br />

fdisk -l<br />

If you do not know the names of all LVM2 physical volumes, volume groups, or logical volumes,<br />

use the following <strong>com</strong>mands to list them:<br />

pvdisplay<br />

vgdisplay<br />

lvdisplay<br />

From the prompt, you can run many useful <strong>com</strong>mands, such as:<br />

• ssh, scp, and ping if the network is started<br />

• dump and restore for users with tape drives<br />

• parted and fdisk for managing partitions<br />

• rpm for installing or upgrading software<br />

• joe for editing configuration files<br />

Note<br />

If you try to start other popular editors such as emacs, pico, or vi, the joe editor<br />

is started.<br />

2.1. Reinstalling the Boot Loader<br />

In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced by<br />

other operating systems.<br />

The following steps detail the process on how GRUB is reinstalled on the master boot record:<br />

• Boot the system from an installation boot medium.<br />

• Type <strong>linux</strong> rescue at the installation boot prompt to enter the rescue environment.<br />

• Type chroot /mnt/sysimage to mount the root partition.<br />

272

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!