免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1234 | 回复: 0
打印 上一主题 下一主题

[RAID与磁盘阵列] 硬盘安装 Ubuntu 7.10 Gutsy Gibbon 方法(sata,ati){Install [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-25 16:14 |只看该作者 |倒序浏览
Dell最近宣布预装Ubuntu系统,但是Dell的机器装Linxu却都很麻烦,总的来说是SATA的原因,可以通过BIOS中设置来安装,我的机器是Dell Optiplex 320,是ATI的芯,BIOS中也无法设置,搜了不少资料,整理了安装方法如下。
1、下载Ubuntu 7.10 :
http://releases.ubuntu.com/releases/gutsy/ubuntu-7.10-server-i386.iso

http://releases.ubuntu.com/releases/gutsy/
选择你想下载的版本
2、下载硬盘安装引导:
http://ftp.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/hd-media/initrd.gz
http://ftp.ubuntu.com/ubuntu/dists/gutsy/main/installer-i386/current/images/hd-media/vmlinuz

http://ftp.ubuntu.com/ubuntu/dists/gutsy/main/
下载和你的CPU对应的版本 i386 or x64 or sparc
3、下载Grub for DOS
http://sourceforge.net/projects/grub4dos/
4、配置硬盘引导
解压Grub for DOS包中 grldr, grub.exe, menu.lst三个文件到C盘根目录下
复制ubuntu的硬盘引导文件initrd.gz,vmlinuz同样到C盘根目录下
编辑boot.ini
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
c:\grldr="go to grub"
编辑menu.lst
color black/cyan yellow/cyan
timeout 30
default /default
title Install Ubuntu7.10
kernel (hd0,0)/vmlinuz acpi=off
initrd (hd0,0)/initrd.gz
boot
title Back To (Windwos OS)
rootnoverify (hd0,0)
makeactive
chainloader +1
把ubuntu-7.10-server-i386.iso镜像放到任意盘的根目录下,如C:\ubuntu-7.10-server-i386.iso
5、重新启动安装
我没有安装,只是进入了安装画面。
安装时不要把Grub装进MBR主引导区。
6、安装完后修改Grub for dos 配置。
color black/cyan yellow/cyan
timeout 10
default 0
title Ubuntu, kernel 2.6.22-14-server
find --set-root /boot/vmlinuz-2.6.22-14-server
kernel /boot/vmlinuz-2.6.22-14-server root=/dev/sda3 ro quiet splash acpi=off
initrd /boot/initrd.img-2.6.22-14-server
boot
title Ubuntu, kernel 2.6.22-14-server (recovery mode)
find --set-root /boot/vmlinuz-2.6.22-14-server
kernel /boot/vmlinuz-2.6.22-14-server root=/dev/sda3 ro single acpi=off
initrd /boot/initrd.img-2.6.22-14-server
boot
title Back To (Windwos OS)
rootnoverify (hd0,0)
makeactive
chainloader +1
其中root=/dev/sda3 /dev/sda3表示第一块硬盘第三分区,大家可以根据自己的安装修改。
。。。。。。。(整理中)
进入Ubuntu后可以这样操作代替Grub for DOS (ati的芯片组sata未测试过)(此方法可以保持Ubuntu对内核更新后对GRUB修改导致GRUB FOR DOS要手动修改内核名称)
$ sudo mkdir /boot/grub
$ sudo update-grub
$ sudo mount /dev/sda3 /mnt
$ sudo grub-install --root-directory=/mnt /dev/sda3
以上指令首先将带有Grub目录/boot/grub的/hdaX挂载到/mnt,然后将grub安装到/hdaX。
$ sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1
其中/dev/sda为硬盘,也可能是hda
然后你可以到/media找到linux.lnx这个文件
将它cp到你的win根目录,例如是C:\,而且我建议你对这个文件做多个备份!
然后重启到win
进入后确认你的系统根目有linux.lnx这个文件
然后修改boot.ini 加入(最好在windows下修改,编码不一)
C:\linux.lnx="Ubuntu"
7、关于Ubuntu 7.10 Gutsy Gibbon的介绍请看
Ubuntu 7.10 Gutsy Gibbon 正式推出
Ubuntu 7.10 已经解决硬盘归位的问题,可以安装工具查看
$sudo apt-get install smartmentools
$sudo smartctl -a /dev/sda | grep Load_Cycle_Count
方法一:
创建一个名为"99-hdd-spin-fix.sh"的文件,写如下两行字(针对SATA硬盘):
#!/bin/sh
hdparm -B 254 /dev/sda
并将该文件复制到以下三个位置:
/etc/acpi/suspend.d/
/etc/acpi/resume.d/
/etc/acpi/start.d/
方法二:
安装laptop-mode-tools,并修改文件/etc/laptop-mode/laptop-mode.conf,设置CONTROL_HD_POWERMGMT=1。
开机黑屏的问题,是因为分辨率的原因:
1) changed the resolution in /etc/usplash.conf to 1024x768:
    xres=1024
    yres=786
2) executed the following:
sudo update-initramfs -u -k `uname -r`
8、参考网址
Dell Optiplex 320 Ubuntu Server 7.10 安装手册
Dell Optiplex 320运行ubuntu


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/69856/showart_705637.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP