您的位置:首页 > Web前端

fedora13liveCD硬盘安装

2010-07-10 21:50 369 查看
一、在linux 下通过grub2安装

注:DVD版的安装方式有所不同,请自行GOOGLE

这里我使用grub2引导安装:

1.将下载的fedora13.iso,入到一个根目录,如(hd0,13)分区下(必须是根目录)

2.提取下载的iso中的isolinux,LiveOS放到一个根下,如(hd0,13),我的是(hd0,14).

3.改写grub.cfg(ubuntu下是/boot/grub/grub.cfg).

加入以下代码:

menuentry 'install fedora 13 i686 live cd'{
root (hd0,13)
linux /isolinux/vmlinuz0 root=live:/dev/sda17 liveimg quiet rhgb rootfstype=auto vga=791
initrd /isolinux/initrd0.img
}
#特别注意:root=live:/dev/sda17可以写为root=live:UUID=×××××,但是不能写为目录的形式:root=live:/dev/sda17/,否则会导致找不到root device!
#其中一些选项的说明:
#rhgb = redhat graphical boot - This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.
这个是redhat的图形启动,这个选项作用是让用户看到一个旋转动态的图标和简短的信息而不会显示GUI模式下的大部分启动信息。
#quiet = hides the majority of boot messages before rhgb starts. These are supposed to make the common user more comfortable. They get alarmed about seeing the kernel and initializing messages, so they hide them for their comfort.
#这个是不显示发生在rhgb之前的启动信息。
#vga=791
显示的分辨率为1024×768。
rootfstype=auto
自动选择文件系统类型。
 

4、好了重新启动并安装你的fedora吧!

 

5/注意,安装时有一步安装引导程序grub到mbr,因为你已经有一个grub,

你可以选择不安装,而仍用原来的grub.

或者你选择安装,然后进行update-grub发重建grub.cfg.这样就可以使用引导多系统了。

such as:

menuentry 'fedora 13 i686 '{
root (hd0,5)
linux /boot/vmlinuz**** root=/dev/sda5 ro quiet splash
initrd /boot/in*******.img
}
 

 

二、在windows XP里面通过grub4dos 安装FEDORA

把iso中的LiveOS一个分区的根目录,比如C盘(即(hd0,0))。
再把isolinux/vmlinuz0和isolinux/initrd0.img复制LiveOS中。
最后在menu.lst里面写上:
root (hd0,0)
kernel /LiveOS/vmlinuz0 root=live:/dev/sda1 ro liveimg rhgb rootfstype=auto
initrd /LiveOS/initrd0.img
 


 

提示:

在grub4dos,即grub for windows中,分区是从主分区是从(hd0,0)开始的,即主分区为(hd0,0~hd0,3),逻辑分区是(hd0,4~)

其中,hd0,0=sda1,hd0,1=sda2,hd0,x=sda(x+1),一般情况下,大多数windows用户的C盘是hd0,0=sda1,D盘是hd0,3=sda4,E盘是hd0,4=sda5,

 

 

 

 

而在grub2中,分区是从(hd0,1)开始的,即主分区为(hd0,1~hd0,4),逻辑分区是(hd0,5~)

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息