在GRUB引导下硬盘安装ubuntu8.04的方法

来源: Linux论坛  

因为刻录机坏了,又不想从7.10上升级.查了很多资料终于用硬盘方式安装成功。

方法分享如下:
1.下载8.04 :hardy-desktop-i386.iso
2.挂载ISO
代码:
sudo mount /media/sda7/hardy-desktop-i386.iso /media/sda7/ubuntu8 -o loop

3.进入ubuntu8目录,把.disk目录copy到一fat32分区根目录下(如sda7),然后再把casper目录下的vmlinuz及 initrd.gz两个文件copy到同一分区根目录下,并确定hardy-desktop-i386.iso亦在这一分区的根目录下。
4.编辑menu.lst文件:
代码:
sudo gedit /boot/grub/menu.lst

在最后另起一行加上
引用:
title install-ubuntu8.04

root (hd0,6)#注意这表示在第三逻辑分区上,大家应根据不同情况修改这个参数

kernel /vmlinuz boot=casper iso-scan/filename=/hardy-desktop-i386.iso quiet splash ro automatic-ubiquity locale=zh_CN.UTF-8 noprompt --

initrd /initrd.gz

boot

保存退出。
5.重起电脑,选择install-ubuntu8.04启动项便能引导了(ubuntu8.04live不象以往先进入系统界面启动 installer安装,而是installer在登入live之前自动运行,你如不习慺可以先取消安装,进入live后再运行installer安装,过程基本上同以往版本一样。

发表新评论

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <i> <b> <a> <em> <strong> <small> <big> <cite> <code> <img> <ul> <ol> <li> <dl> <dt> <dd> <tbody> <th> <table> <caption> <colgroup> <col> <thead> <tfoot> <br> <tr> <table> <td> <span> <p> <h1> <h1> <h1> <h2> <h3> <h4> <h5> <hr> <!--> <ins> <del> <kbd> <quote> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
10 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.