
2 Answer the various language and keyboard questions when you are prompted. After the installer detects your hardware it will ask you to select the root file system from a list.
3 For me, the root partition was the first one in the list. Then select Execute a shell in [partition]. Select continue and the shell will start.

4 Now, You input as followed:
[font=Verdana]grub[/font]

now, in GRUB Mode, You type these 2 commands
[font=Verdana]root (hdx,y) [/font][color=#000000](if you only have one hard disk in your computer, x is 0)[/color][color=#000000]( y? which disk does your linux install in? ,eg: if your linux is in /dev/sda1, and y is 1;[/color][color=#000000] if your linux is in /dev/sda2, so y is 2 )[/color][font=Verdana] [size=4]setup (hd0)[/font][/size]Now ,if it notices sucessful, You can type "[font=Verdana]quit[/font]" to quit, it not, you must do [font=Verdana][size=4]root (hdx,y)[/font] again, to try other disk numbers[/size]5 reboot system and check whether GRUB is back PS:Maybe there have another way, maybe you can choose "reinstall GRUB boot loader " to fix GRUB
txwsqk 于 2008-01-14 19:22:10发表:
在光驱中放入 ubuntu的光盘
重启 在cmos中设置光驱第一启动
选择:"安装到硬盘"
打开一个shell 输入如下命令:
find /boot/grub/stage1 #显示如下(hd0,8) 这是举个例子奥 ^_^
root (hdx,y) #这里的x和y替换成刚才第一条命令显示的数字
quit #退出
#号后为注释的内容
niutao0602 于 2008-01-10 10:49:49发表:
you can also do like this:
1.boot from ubuntu cd, and select"Install to the hard disk"
2.open a shell ,input the commands:
grub
find /boot/grub/stage1 #is will print (hdx,y),for example (hd0,8)
root (hdx,y) #what the find command print
setup (hdx)
quit
3,ok,reboot your system.
[ 本帖最后由 niutao0602 于 2008-1-10 10:52 编辑 ]