浏览 2341 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2009-04-29
最后修改:2009-06-03
你需要一张live CD. 一、安装grub2. sudo mkdir /media/root sudo mount /dev/sda3 /media/root #(挂载的分区取决于你安装Ubuntu的分区) sudo mount -t proc none /media/root/proc sudo mount -o bind /dev /media/root/dev sudo chroot /media/root aptitude install grub2 grub-install /dev/sda update-grub reboot 二、安装lilo sudo mkdir /media/root sudo mount /dev/sda3 /media/root #(挂载的分区取决于你安装Ubuntu的分区) sudo mount -t proc none /media/root/proc sudo mount -o bind /dev /media/root/dev sudo chroot /media/root aptitude install lilo vi /etc/lilo.conf # These images were automagically added. You may need to edit something. image=/boot/vmlinuz-2.6.28-11-generic root=/dev/sda3 label="Lin 2.6.28img0" initrd=/boot/initrd.img-2.6.28-11-generic append=" pci=nomsi all_generic_ide quiet splash " read-only image=/boot/memtest86+.bin label="Memory Test+" read-only # If you have another OS on this machine (say DOS), other=/dev/sda1 label="MS Windows" lilo -b /dev/sda lilo -v reboot 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |