LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: hjbolide

[问题]升级到2.6.27-gentoo-r1之后,sata硬盘侦测不到了

[复制链接]
发表于 2008-11-5 11:48:36 | 显示全部楼层
通过我努力,问题解决了。
http://forums.gentoo.org/viewtopic-p-5270943.html#5270943
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-5 20:59:54 | 显示全部楼层
Post by LaoLiulaoliu;1904263
通过我努力,问题解决了。
http://forums.gentoo.org/viewtopic-p-5270943.html#5270943
能不能贴出来?
我教育网,不能出国外
昨天去网吧查的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-5 21:40:31 | 显示全部楼层
用过genkernel之后可以了
不知道是不是initramfs的事情了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-6 06:44:34 | 显示全部楼层
用Genkernel生成了2.6.27-gentoo-r1的initramfs,开机正常
用2.6.27-r1但是initramfs.igz使用2.6.24-r5,出现我遇到的那个问题,sata找不到
应该问题就出在initramfs.igz上面了
genkernel安装了绝大部分的驱动和模块

**********
现在内核搞定了出现一个问题,就是我关不了机,每次关机的时候情况是:机器已经停止运转,风扇不转,硬盘不动,但是我的屏幕还是亮的,电源灯还是亮的,只能手动关机。有人能解决否?
命令行下关机输出的最后一行是Remounting remainning filesystem readonly   [ok]
回复 支持 反对

使用道具 举报

发表于 2008-11-6 09:34:34 | 显示全部楼层
为什么要找麻烦的混用initrd?!
回复 支持 反对

使用道具 举报

发表于 2008-11-6 17:54:27 | 显示全部楼层
I download the kernel 2.6.27.4 from:www.kernel.org.
I configured it,then make && make modules_install && cp arch/i386/boot/bzImage /boot/kernel-2.6.27.4
vi /boot/grub/menu.lst
title Gentoo
root (hd0,9)
kernel /kernel-2.6.27.4 root=/dev/sda5

/dev/sda10 is the /boot partition./dev/sda5 is my root partition.

When rebooting,an error came.
List of partition
No filesystem could mount root
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)

#lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)


make menuconfig
Device Drivers --->
<M> ATA/ATAPI/MFM/RLL support --->
<M> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
<M> Cardbus IDE support (Delkin/ASKA/Workbit)
<M> Include IDE/ATAPI CDROM support
  • IDE ACPI support
  • legacy /proc/ide/ support
    <M> generic/default IDE chipset support
    <M> Generic PCI IDE Chipset Support
    <M> Intel PIIX/ICH chipsets support
    SCSI device support --->
    -*- SCSI device support
    <*> SCSI disk support
    <*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
  • ATA ACPI Support
  • SATA Port Multiplier support
  • ATA SFF support
    <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
    <M> Generic ATA support



    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    "lsmod" I found scsi_mod ,sd_mod ,libata ,ahci ,ata_genetic, piix
    Device Drivers --->
    <M> ATA/ATAPI/MFM/RLL support --->
    <M> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
    <M> Cardbus IDE support (Delkin/ASKA/Workbit)
    <M> Include IDE/ATAPI CDROM support
  • IDE ACPI support
  • legacy /proc/ide/ support
    <M> generic/default IDE chipset support
    <M> Generic PCI IDE Chipset Support
    <M> Intel PIIX/ICH chipsets support
    SCSI device support --->
    -*- SCSI device support (scsi_mod.ko)
    <*> SCSI disk support (sd_mod.ko)
    <*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->(libata.ko)
  • ATA ACPI Support
  • SATA Port Multiplier support
    <*> AHCI SATA support (ahci.ko)
  • ATA SFF support
    <M> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support (ata_piix.ko which don't need by default)
    <*> Generic ATA support (ata_genetic.ko)

    And I also change the :<M> Ext3 journalling file system support
    To :<*> Ext3 journalling file system support
    Then it works!


    用genkernel,硬盘的驱动也不会自动选。我试过,我用的都是sata
  • 回复 支持 反对

    使用道具 举报

    发表于 2008-11-6 20:39:55 | 显示全部楼层
    **********
    现在内核搞定了出现一个问题,就是我关不了机,每次关机的时候情况是:机器已经停止运转,风扇不转,硬盘不动,但是我的屏幕还是亮的,电源灯还是亮的,只能手动关机。有人能解决否?
    命令行下关机输出的最后一行是Remounting remainning filesystem readonly   [ok][/QUOTE]

    跟我的症状一样,关注中
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2008-11-6 21:07:19 | 显示全部楼层
    Post by lzlz;1904700
    为什么要找麻烦的混用initrd?!


    不是找麻烦,只是我不知道怎么创建initramfs
    总是要个提高过程的吧?手册里没有,我只能这么做了
    请对新手be supportive
    回复 支持 反对

    使用道具 举报

    发表于 2008-11-6 22:24:53 | 显示全部楼层
    Post by hjbolide;1904990
    不是找麻烦,只是我不知道怎么创建initramfs
    总是要个提高过程的吧?手册里没有,我只能这么做了
    请对新手be supportive


    别误解,以为你非要这样
    用genkernel就可以了

    genkernel --help

    genkernel --kernel-config=/tmp/config --kerneldir=/usr/src/linux all
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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