安装盘救系统
安装光盘的大用处前几天,突发奇想,要把grub的引导背景画面更改,用一个自己的个性化图片。
先在gimp下做好并保存为xmp格式。由于在/boot/grub下的启动屏幕图片为splash.xmp.gz,自己所作的图片也保存为booting.xmp,但未用归档工具打包
booting.xmp.gz。(在一些书中见过使用splash /boot/logo/800x600.img, 但不知如何得到img文件,各种图片工具都用了,没用发现可保存为这种格式的,记得以前
过这是映像文件,有种转化工具可转换来。我想它应当是grub能识别的,而其他的比如:bmp,jpeg,psd,pcx,giff等是不可用的,因主系统尚未引导,还不能识别这些格
。)
将booting.xmp拷贝到/boot/grub目录,并修改menu.1st(指向grub.conf的链接)中下面部分:
splash /boot/grub/filename(这里是splash.xmp.gz)为
splash /boot/grub/booting.xmp
(注:booting.xmp大小约3.5Mbytes,太大了。原来的splash.xmp.gz大小约为7.8KBytes)
修改完毕后保存并重启,乖乖不得了,连grub都进不了了,更不用说引导系统了。立刻用启动盘,坏了,也引导不起来,这下可真着急了。三个系统啊,多少下载的东
,各种音视频文件,工作文档,不敢设想重装。考虑到windowsXP的安装盘修复,那肯定要覆盖MBR 上的grub, 说不定还得重装系统,试一下RHL8.0的安装盘吧。
修改cmos 从光盘引导,放入光盘重启,到
boot:
状态是按下F5进入修复模式,在
boot:
后面键入
linux rescue
并回车
下一步选English,下一步选us(keyboard),然后,
waiting...
##RESCUE screen:
The rescue environment will now attempt to find your RedHat Linux installation and mount it under the directory /mnt/sysimage. You can then
make any changes required to your system. If you want to proceed with this step choose 'continue'. You can also choose to mount your file
systems read-only instead of read-write by choosing'Read-Only'.
If for some reson the process fail, you can choose 'skip' and this step will be skipped. And you will go directly toa command shell
|Continue| |Read-Only| |skip|
##choosed 'Continue' and press Enter
##NEXT screen:
System to rescue
What partition holds the root partition of your installation?
hdb5 ##this is for red flag linux
hdb13 ##this is for red hat linux
|Ok| |Exit|
##choosed hdb13 and press OK to continue
##NEXT screen
Rescue
Your system has mounted under /mnt/sysimage
Press <enter> to get a shell. If you would like to make your systemthe root enviornment,run the command:
chroot /mnt/sysimage
The system will reboot automatically when you exit from the shell.
|Ok| |exit|
##press enter and try it without using the the commamd which given in the note
##and the are three lines of text,and a shell
Your system is mounted under the /mnt/sysimage directory.
When finish please exit from the shell and
your system will reboot.
-/bin/sh-2.05b#
##very good and go on! mount the boot directory, like bellow
mkdir boot
mount /dev/hdb10 /boot ##my /boot directory is on a single partition
cd /boot/grub
vi grub.conf
##change the error, and exit
##then press enter to reboot, all things were OK!!!!!!!
页:
[1]