enabling you to select DHCP network configuration or manually enter the network details.
Figure 10-27 shows the next screen, which offers to mount your hard disk directories for you. If you need to access files on your hard disk, select Continue; if you need to access files on your hard disk but want to avoid the possibility of damaging any files, select Read-Only; and if you do not want to mount the hard disk filesystems (for example, because you want to work on the filesystems first, resizing or repairing them), select Skip.
Figure 10-27. Hard disk mounting dialog
Figure 10-28 shows the final dialog that will be displayed before a root shell is opened, which informs you whether the hard disk filesystems were mounted. Select OK to proceed to a
Figure 10-28. Final dialog before the rescue-mode shell
A minimal environment is available in the rescue-mode shell, providing access to the most important system administration commands.
If you requested that the hard disk filesystems be mounted, the mount point will be
If you selected a read/write mount, you can temporarily make the root directory of the hard disk your root directory using the
sh-3.1# chroot /mnt/sysimage
You can now access directories in their usual locations (
When you issue the
Press Ctrl-D (for done) to exit from the
If you chose not to mount your hard disk filesystems, any LVM volume groups on your hard disks will be inaccessible. To access the VGs, issue these commands:
sh-3.1# lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group 'main' using metadata type lvm2
sh-3.1# lvm vgchange -ay
2 logical volumes in volume group 'main' now active
You can then access the logical volumes as
When you are finished with the shell, press Ctrl-D. The system will automatically reboot.
10.6.2. How Does It Work?
Rescue mode uses the same Linux kernel,
The
10.6.3. What About...
10.6.3.1. ...copying files to or from another machine while in rescue mode?
The
To copy a file from an FTP or HTTP server, use
sh-3.1# wget
10.6.3.2. ...using a GUI while in rescue mode?
Unfortunately, there's not enough of the supporting infrastructure in place in rescue mode to support the use of a GUI.
10.6.3.3. ...accessing software from the hard disk without using chroot?
Set your path to include directories on the mounted hard disk filesystems:
sh-3.1# PATH=$PATH:/mnt/sysimage/bin:/mnt/sysimage/usr/bin: /mnt/sysimage/sbin:/mnt/sysimage/usr/sbin:/mnt/sysimage/usr/local/bin
Type this command on one line.
10.6.4. Where Can I Learn More?