45IT.COM- 电脑学习从此开始!
DIY硬件教程攒机经验装机配置
设计Photoshop网页设计特效
系统注册表DOS系统命令其它
存储主板显卡外设键鼠内存
维修显卡CPU内存打印机
WinXPVistaWin7unix/linux
CPU光驱电源/散热显示器其它
修技主板硬盘键鼠显示器光驱
办公ExcelWordPowerPointWPS
编程数据库CSS脚本PHP
网络局域网QQ服务器
软件网络系统图像安全
页面导航: 首页 > 电脑学院 > 网络安全 >

安全经典之:应该了解的跨站脚本十二问

电脑软硬件应用网 45IT.COM 时间:2009-04-28 22:05 作者:yan

本机已有系统fedora8+Windows_XP,更改启动时的引导顺序,方法如下:

进入fedora8,先备份/etc/grub.conf文件,在命令行下输入:


#gedit /etc/grub.conf


文件内容如下,中文部分为我所添加的注释。


# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE: You have a /boot partition. This means that

# all kernel and initrd paths are relative to /boot/, eg.

# root (hd0,7)

# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00

# initrd /initrd-version.img

#boot=/dev/sda ——这是GRUB安装的位置

default=2 ——启动时GRUB将默认启动序号为2的操作系统,即Windows_XP

timeout=5 ——启动时菜单等待时间,可以自行修改

splashimage=(hd0,7)/grub/splash.xpm.gz ——启动序号依次从0递增,Fedora (2.6.24.5-85.fc8)序号为0, Fedora (2.6.23.1-42.fc8)为1,Windows_XP为2。如果把Windows_XP排在最前面,则其启动序号为0。为了默认启动Windows_XP,则前面的default=2应改为default=0。

hiddenmenu


title Fedora (2.6.24.5-85.fc8) ——启动时Fedora (2.6.24.5-85.fc8) 菜单的标题,启动序号为0

root (hd0,7)

kernel /vmlinuz-2.6.24.5-85.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet

initrd /initrd-2.6.24.5-85.fc8.img


title Fedora (2.6.23.1-42.fc8) ——Fedora (2.6.23.1-42.fc8) 菜单的标题,启动序号为1

root (hd0,7)

kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet

initrd /initrd-2.6.23.1-42.fc8.img


title Windows_XP ——Windows_XP 系统的菜单标题,启动序号为2

rootnoverify (hd0,0)

chainloader +1


所以,要更改启动顺序,只需要更改default=2这一行中的值。

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: baidushare.htm
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
推荐知识