LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1846|回复: 0

在 dell inspiron 530上硬盘安装fedora 7

[复制链接]
发表于 2008-3-25 21:58:44 | 显示全部楼层 |阅读模式
by jnneybh@云麓园(email:jnneybh#126.com

大家可能心存疑问,现在fedora 9都快要出来了,你怎么还装fedora 7啊。

原因是如下:
由于要用到intel的MKL(Math Kernel Library)和Matalb 7.0。两者在fedora 8下都无法安装。所以必须想办法将fedora7安装到dell inspiron 530上。



由于 dell inspiron 530 硬件比较新,所以在安装的过程中颇费周折。具体要注意如下几点:

1、将硬盘格式化为所需格式,安装windows

        320G的硬盘本人分区如下:
       
        C:/ 30G FAT32 此分区用来安装windows XP,grub4dos、fedora 7 iso 文件也会放在此分区(所以些分区格式必须为FAT32)。
        D:/ 100G FAT32
        E:/ 100G FAT32

        剩余80G用来安装linux.

        分区详细情况如下:
                Disk /dev/sda: 320.0 GB, 320072933376 bytes
                255 heads, 63 sectors/track, 38913 cylinders
                Units = cylinders of 16065 * 512 = 8225280 bytes

                   Device Boot      Start         End      Blocks   Id  System
                /dev/sda1   *           1        3825    30724281    c  W95 FAT32 (LBA)
                /dev/sda2            3826       38913   281844360    f  W95 Ext'd (LBA)
                /dev/sda5            3826       16574   102406311    b  W95 FAT32
                /dev/sda6           16575       29323   102406311    b  W95 FAT32
                /dev/sda7           29578       38913    74991388+  83  Linux
                /dev/sda8           29324       29577     2040223+  82  Linux swap / Solaris



2、下载grub4dos和fedora 7的ISO文件

        grub4dos:在http://grub4dos.sourceforge.net/下载grub4dos最新版。
        进入fedora官方网站选取你自己喜欢的下载方式(bt比较爽,半个小时就搞定了)将fedora 7的iso镜象下载到C盘。

3、设置grub4dos和从解压fedora 7中解压所需文件
       
        设置grub4dos:
                把下载的Grub4dos解压,取出grldr文件放在C盘根目录下。在我的电脑里面,打开“工具”-“文件夹选项”, 在“查看”页,反选“隐藏受保护的操作系统文件(推荐)” 勾选“查看所有文件和文件夹”。这样设置后,就可以看到C盘下的boot.ini文件了。右击之,看它的属性,去掉“只读”属性,确定。编辑boot.ini文件,在最后一行添加:C:\grldr = "Grub",保存退出。
               
        boot.ini如下:
                [boot loader]

                timeout=30

                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 = "Grub"


        从解压fedora 7中解压所需文件:
                用WinRAR打开Fedora 7的iso,提取isolinux目录下的vmlinuz,initrd.img两个文件,放在C盘根目录下。

4、进入bios设置硬盘工作模式

        dell inspiron 530 的光驱、硬盘均为SATA接口,所以要进bios进行一些设置。
        为了方便Windows的安装,默认的BIOS选项里硬盘的工作方式是模拟IDE(硬盘实际上是SATA,很浪费),需要把硬盘的工作方式改成RAID。

5、进行硬盘安装
       
        启动时会出现windows XP和Grub两个选项,选择Grub选项,输入内核和initrd参数就可以启动硬盘安装。
        具体参数如下:

                kernel (hd0,0)/vmlinuz acpi=off noapic
                initrd (hd0,0)/initrd.img
                boot       

        参数acpi=off noapic必不可少,不然无法启动。没有加这两个参数,本人弄了快一整天,都没 一点进展,无法启动,经过研发牛人的指点,算是搞定了,知道了有这么两个核心参数。
        总之:个人认为如果你遇到了觉得不可思议的问题时,可以优先考虑增加apci=off noapic的核心参数,也许以为是大问题的事情就这么轻松的解决了。

        然后按操作一路Next就可以安装成功了。

6、网卡驱动的更新

        由于dell inspiron 530 的主板为G33芯片组,通过lspci可知,自带的网卡为Intel(R) 82562V-2 10/100 Network Connection,很新,所以在安装完系统之后,由于fedora 7 自带的网卡驱动e1000比较旧,根本就无法启动网卡。报错“e1000e 设备 eth0 似乎不在。将要推迟它的初始化。”。
        google了一段时间,发现intel的e1000-7.6.15.tar.gz驱动支持本网卡,于是download下来,解压,make,但发现要安装linux内核源码。其实完全没有必要安装内核源码。只要在fedora 7 的iso镜像中安装kernel-devel-2.6.21-1.3194.fc7.i686.rpm包即可完成编译。
        如下命令即可更新网卡驱动:
                tar zxf e1000-7.6.15.tar.gz
                cd e1000-7.6.15/src/
                make install
                于是内核模块会被安装在/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/net/e1000/e1000.ko
                rmmod e1000
                将旧的网卡驱动从kernel中删除。
                modprobe e1000
                将新的网卡驱动载入。

        设置好网络参数,即可上网。       
        在网络方面有一点要注意,不要启用xen内核进入,你安装什么样的驱动都无法上网(最新的都不行)。

7、硬件情况(加上硬件参数,便于碰到类似情况的人google到本贴)


[root@localhost ~]# cat /proc/cpuinfo
                        processor       : 0
                        vendor_id       : GenuineIntel
                        cpu family      : 6
                        model           : 15
                        model name      : Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
                        stepping        : 11
                        cpu MHz         : 2394.152
                        cache size      : 4096 KB
                        physical id     : 0
                        siblings        : 4
                        core id         : 0
                        cpu cores       : 4
                        fdiv_bug        : no
                        hlt_bug         : no
                        f00f_bug        : no
                        coma_bug        : no
                        fpu             : yes
                        fpu_exception   : yes
                        cpuid level     : 10
                        wp              : yes
                        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
                        bogomips        : 4789.96
                        clflush size    : 64

                        processor       : 1
                        vendor_id       : GenuineIntel
                        cpu family      : 6
                        model           : 15
                        model name      : Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
                        stepping        : 11
                        cpu MHz         : 2394.152
                        cache size      : 4096 KB
                        physical id     : 0
                        siblings        : 4
                        core id         : 1
                        cpu cores       : 4
                        fdiv_bug        : no
                        hlt_bug         : no
                        f00f_bug        : no
                        coma_bug        : no
                        fpu             : yes
                        fpu_exception   : yes
                        cpuid level     : 10
                        wp              : yes
                        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
                        bogomips        : 4787.31
                        clflush size    : 64

                        processor       : 2
                        vendor_id       : GenuineIntel
                        cpu family      : 6
                        model           : 15
                        model name      : Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
                        stepping        : 11
                        cpu MHz         : 2394.152
                        cache size      : 4096 KB
                        physical id     : 0
                        siblings        : 4
                        core id         : 2
                        cpu cores       : 4
                        fdiv_bug        : no
                        hlt_bug         : no
                        f00f_bug        : no
                        coma_bug        : no
                        fpu             : yes
                        fpu_exception   : yes
                        cpuid level     : 10
                        wp              : yes
                        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
                        bogomips        : 4787.33
                        clflush size    : 64

                        processor       : 3
                        vendor_id       : GenuineIntel
                        cpu family      : 6
                        model           : 15
                        model name      : Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz
                        stepping        : 11
                        cpu MHz         : 2394.152
                        cache size      : 4096 KB
                        physical id     : 0
                        siblings        : 4
                        core id         : 3
                        cpu cores       : 4
                        fdiv_bug        : no
                        hlt_bug         : no
                        f00f_bug        : no
                        coma_bug        : no
                        fpu             : yes
                        fpu_exception   : yes
                        cpuid level     : 10
                        wp              : yes
                        flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
                        bogomips        : 4787.34
                        clflush size    : 64




[root@localhost ~]# lspci
                        00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 02)
                        00:01.0 PCI bridge: Intel Corporation PCI Express Root Port (rev 02)
                        00:19.0 Ethernet controller: Intel Corporation 82562V-2 10/100 Network Connection (rev 02)
                        00:1a.0 USB Controller: Intel Corporation USB UHCI Controller #4 (rev 02)
                        00:1a.1 USB Controller: Intel Corporation USB UHCI Controller #5 (rev 02)
                        00:1a.2 USB Controller: Intel Corporation USB UHCI Controller #6 (rev 02)
                        00:1a.7 USB Controller: Intel Corporation USB2 EHCI Controller #2 (rev 02)
                        00:1b.0 Audio device: Intel Corporation HD Audio Controller (rev 02)
                        00:1d.0 USB Controller: Intel Corporation USB UHCI Controller #1 (rev 02)
                        00:1d.1 USB Controller: Intel Corporation USB UHCI Controller #2 (rev 02)
                        00:1d.2 USB Controller: Intel Corporation USB UHCI Controller #3 (rev 02)
                        00:1d.7 USB Controller: Intel Corporation USB2 EHCI Controller #1 (rev 02)
                        00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
                        00:1f.0 ISA bridge: Intel Corporation LPC Interface Controller (rev 02)
                        00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
                        00:1f.3 SMBus: Intel Corporation SMBus Controller (rev 02)
                        01:00.0 VGA compatible controller: nVidia Corporation  (rev a1)

       




[root@localhost proc]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3825    30724281    c  W95 FAT32 (LBA)
/dev/sda2            3826       38913   281844360    f  W95 Ext'd (LBA)
/dev/sda5            3826       16574   102406311    b  W95 FAT32
/dev/sda6           16575       29323   102406311    b  W95 FAT32
/dev/sda7           29578       38913    74991388+  83  Linux
/dev/sda8           29324       29577     2040223+  82  Linux swap / Solaris

Partition table entries are not in disk order
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表