LinuxSir.cn,穿越时空的Linuxsir!

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

某人在SATA硬盘上安装Linux的方式——和我的疑问

[复制链接]
发表于 2003-11-11 19:01:00 | 显示全部楼层 |阅读模式
终于选定了P4P800+SATA硬盘,料想可以爽一把了,却碰上了无法安装RH的问题,郁闷中翻了各大贴子,终于找到一份在SATA硬盘上安装debian的贴子——Install debian to ICH5R's SATA disk。
不过,如何安装RH呢?

我把它的方法摘录如下,请各位高人一起解读。

……// 前面部分省略
4. Step 1: Disable SATA
a. At BIOS Setup Main Menu, choose IDE configuration. At the submenu, set "Onboard IDE Operate Mode" to "Compatible Mode", and set "IDE Port Settings" to "-ATA Ports Only" to disable SATA.

b. At BIOS Setup Boot Menu, set "Boot Device Priority" to as follows:
        1st Boot Device                [1st FLOPPY DRIV]
        2nd Boot Device                [SM-MATSHITADVD-]
        3rd Boot Device                [PM-Maxtor 4R120]

c. At the same menu, set "Hard Disk Drives" to as follows:
        1st Boot Device                [PM-Maxtor 4R120]

5. Step 2: Debian Install

6. Step 3: Kernel Install

7. Step 4: Enable SATA
a. At BIOS Setup Main Menu, choose IDE configuration. At the submenu, set "Onboard IDE Operate Mode" to "Enhanced Mode", and set "Enhanced Mode Support On" to "-ATA+S-ATA" to enable SATA.

b. At BIOS Setup Boot Menu, set "Hard Disk Drives" to as follows:
        1st Drive                [PM-Maxtor 4R120]
        2nd Drive                [3M-ST3120026AS]

8. Step 5: Install The Base System
a. Install debootstrap.
        # apt-get install debootstrap
我要问的地方就在这里,我可以怎样将RH装到我的新的SATA硬盘上呢,RH下是否有同样的debootstrap方法吗?
也看到另一篇贴子,他的方式是将SATA硬盘分区、格式化、mount后,再将IDE硬盘上的资料全部拷过去,但结果是无法启动系统。


//后面部分大家可以慢慢看,我的疑问就在这里了,呵呵,从这里开始,我就不懂了:p。

b. Partion the SATA disk as you planned. Create at least 2 partitions, one root and another swap.
        # fdisk /dev/hde

c. Create file systems to non-swap partitons. For example, to create an ext3 file system on partition /dev/hde3 (that's our example root partiton):
        # mkfs.ext3 /dev/hde3

d. Initialize the swap partition (substitute the partiton for your planned swap partition):
        # mkswap /dev/hde2

e. Create a mount point for the new SATA root partition, and mount to it the partition created at substep c.
        # mkdir /mnt/target
        # mount /dev/hde3 /mnt/target

f. Using debootstrap, create the basic debian system on /mnt/target.
        # debootstrap --arch i386 woody /mnt/target \
                http://http.us.debian.org/debian

//这位高人是使用debootstrap来在SATA硬盘上来安装一个新的debian系统。

9. Step 6: Configure The Base System
a. chroot into the root partition to configure the system.
        # chroot /mnt/target /bin/bash

b. Create /etc/fstab.
c. Mount all the filesystems specified in /etc/fstab.
        # mount -a

d. Complete the 2nd stage debian basic configuration
        # /usr/sbin/base-config

e. Configure network by editing /etc/network/interfaces, /etc/resolv.conf, /etc/hosts, and /etc/hostname. Restart the network:
        # /etc/init.d/networking restart

A. Step 7: Install The Kernel
a. Install kernel 2.4.22
b. Install network module because P4P800's NIC driver is not supported by the kernel.
c. Edit /etc/modules to include 3C940 module.
d. Edit /etc/lilo.conf.
e. Install lilo.
        # /sbin/lilo -v

f. Unmount all partitions, exit from chroot environment, and reboot.
        # umount -a
        # exit
        # shutdown -r now

B. Step 8: Set SATA drive the 1st Boot Device
At BIOS Setup Boot Menu, set "Hard Disk Drives" to as follows:
        1st Drive                [3M-ST3120026AS]
        2nd Drive                [PM-Maxtor 4R120]
发表于 2003-11-12 17:37:36 | 显示全部楼层
发表于 2003-11-14 00:20:55 | 显示全部楼层
呵呵~ 怎么有点象LFS那样装?

还有南北兄的那个连接不是英文的哦,看不懂。
楼主干脆就装debian啦
发表于 2003-11-14 08:32:16 | 显示全部楼层
最初由 surfish 发表
呵呵~ 怎么有点象LFS那样装?

还有南北兄的那个连接不是英文的哦,看不懂。
楼主干脆就装debian啦


哈哈,我也看不太懂,不过通过他们的一些英文的东西,好象是他们能解决这个问题。现在英文的资料关于这方面的找不到。:(
发表于 2003-11-14 09:16:36 | 显示全部楼层
在bios setup里的ATA Operate Mode里把Native mode改成legacy mode,这个mode就是针对无法支持SATA的os设置的。具体的方法参看你的主板guide,我这里有微星,华硕的,方法有一些差别
 楼主| 发表于 2003-11-15 19:42:30 | 显示全部楼层
谢谢版主和这么多兄弟的回复。
我安装版本是RH9.0,2.4.20-8的内核
前天晚上根据所有找到的资料,进行了一下尝试,可是在升极内核到2.6时就遇到了新的问题,内核升级不成功(2.6的内核的中确有对SATA的支持的选项,可是我升级后,新内核不能启动,出现Kernel panic的错误),所以后面的内容也就没能再进行下去。这两天又在忙其它的事情,所以都没再进行尝试。

ilranyday提到的方法,不知有没有自己试过?我用的是华硕P4P800的主板,按我的理解,bios中的那项只是让bios可以正确的识别(或屏蔽)电脑中装有的硬盘,是只有PATA硬盘,还是有SATA硬盘,还是PATA+SATA两种硬盘都有。
这项设置只能从硬件角度去识别到硬盘,而不能让操作系统识别出电脑中装有的硬盘。即便是安装windows xp,也会提示找不到SATA硬盘,只有在安装了SATA硬盘的驱动程序后,它才能识别到。

我还是觉得上面的方法是可行的,从所有找到的资料来看,虽然很少,但是都和上述的方法类似。我会抽个时间再试试,如果可以,再将解决方法贴出来,如果有哪位兄弟已经成功做到,还请在此提点,让我也少走些弯路。
发表于 2003-11-16 00:15:49 | 显示全部楼层
前天晚上根据所有找到的资料,进行了一下尝试,可是在升极内核到2.6时就遇到了新的问题,内核升级不成功(2.6的内核的中确有对SATA的支持的选项,可是我升级后,新内核不能启动,出现Kernel panic的错误),所以后面的内容也就没能再进行下去。这两天又在忙其它的事情,所以都没再进行尝试。


这个得改/etc/grub.conf
不要用标签,要用实际的磁分区来表示
比如:

title Fedora 2.6x
        root (hd0,6)
        kernel /boot/vmlinuz-2.6.9test  root=/dev/hda7
        initrd /boot/initrd-2.6.9test.img

下面这段是老的版本的内核 ,我们可以这样用标签来表示linux的根分区。但对于新内核, 我们要用/dev/hdaX之类的

title Fedora Core (2.4.22-1.2115.nptl)
        root (hd0,6)
        kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
        initrd /boot/initrd-2.4.22-1.2115.nptl.img
发表于 2003-11-16 08:19:15 | 显示全部楼层
kao,我有好多的新机器要装linux,是sata的硬盘,这怎么办?这两天硬盘的电源cable没有,没有办法干。
发表于 2003-11-16 10:07:59 | 显示全部楼层
我说的那种方法,是把两个SATA硬盘映射到一个IDE接口的master,slave上,因为我手里没有SATA硬盘,所以没有试过,不过WIN98/ME,他们也是无法识别SATA的,可以用这种方法来识别。
我觉得应该可以,另外,你的板子是ASUS的,你可以发mail去咨询
发表于 2003-11-17 15:54:43 | 显示全部楼层
晕倒!南北那里找来的马来语帖子。还好我的马来文还没全都还回给老师。。看得还明白:p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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