LinuxSir.cn,穿越时空的Linuxsir!

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

LFS6.4无法启动。sata硬盘

[复制链接]
发表于 2009-4-15 20:22:51 | 显示全部楼层 |阅读模式
启动错误如图所示。我装在sda3上面。
我怀疑是不是我的sda3以前是reiserfs,后来格式化成ext3格式化不全面。用blkid显示sda3是reiserfs的格式。
neilxp@neilxp-laptop:~$ blkid      
/dev/sda1: UUID="883E-0E29" TYPE="vfat"
/dev/sda2: UUID="c36435d3-7b90-4b93-b1ca-7e610d2ade0b" TYPE="ext3"
/dev/sda3: UUID="d1a79b43-30b3-4195-91ee-e53f9fe356eb" TYPE="reiserfs"
/dev/sda5: UUID="499D-8EE2" TYPE="vfat"                                
/dev/sda6: UUID="29f345c6-c87b-4ef4-910b-c347e22f41ec" TYPE="ext3"     
/dev/sda7: UUID="499D-8EE6" TYPE="vfat"                                
/dev/sda8: UUID="499D-8EE8" TYPE="vfat"                                
/dev/loop0: TYPE="squashfs"                                            
用fdisk查看,sda3是83分区类型,推应ext3
neilxp@neilxp-laptop:~$ sudo fdisk -l                                 
[sudo] password for neilxp:                                            

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3824    30716248+   c  W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.                        
/dev/sda2            3825        7471    29294527+  83  Linux         
/dev/sda3            7472        9903    19535040   83  Linux         
/dev/sda4            9904       38913   233022825    5  Extended      
/dev/sda5            9904       28139   146480638+   b  W95 FAT32      
/dev/sda6           28140       30571    19535008+  83  Linux         
/dev/sda7           30572       35434    39062016    b  W95 FAT32      
/dev/sda8           35435       38913    27945036    b  W95 FAT32      

这是我配置内核的部分选项,AHCI SATA已经选择了。
kernel menuconfig

  │ │                     --- Serial ATA (prod) and Parallel ATA (experimental) drivers                               │ │
  │ │                     
  •    ATA ACPI Support                                                                      │ │
      │ │                     
  •    SATA Port Multiplier support                                                          │ │
      │ │                     <*>   AHCI SATA support                                                                     │ │
      │ │                     <M>   Silicon Image 3124/3132 SATA support                                                  │ │
      │ │                     
  •    ATA SFF support                                                                       │ │
      │ │                     <M>     ServerWorks Frodo / Apple K2 SATA support                                           │ │
      │ │                     <*>     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support                                      │ │

      │ │                     <M> RAID Transport Class                                                                    │ │
      │ │                     -*- SCSI device support                                                                     │ │
      │ │                     {M} SCSI target support                                                                     │ │
      │ │                     
  • legacy /proc/scsi/ support                                                              │ │
      │ │                         *** SCSI support type (disk, tape, CD-ROM) ***                                          │ │
      │ │                     <*> SCSI disk support                                                                       │ │
      │ │                     <M> SCSI tape support                                                                       │ │


    neilxp@neilxp-laptop:~$ lspci
    00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
    00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
    00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
    00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
    00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
    00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
    00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
    00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
    00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
    00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
    00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
    00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
    00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
    00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
    02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller
    03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
    15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
    15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 09)
    15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)
  • 本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    发表于 2009-4-15 20:54:02 | 显示全部楼层
    有什麽错误信息?

    /boot 有啥东西?

    /boot/grub/menu.lst 有何内容?
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2009-4-15 21:07:35 | 显示全部楼层
    /boot on sda3, which was the partition of LFS
    root@neilxp-laptop:~# ls /lfs/boot/ -R
    /lfs/boot/:
    config-2.6.27.4  grub  lfskernel-2.6.27.4  System.map-2.6.27.4

    /lfs/boot/grub:
    e2fs_stage1_5  stage1  stage2

    i want to reuse my existing grub on sda2, which was brought by ubuntu host system.
    its content:

    root@neilxp-laptop:~# cat /boot/grub/menu.lst
    default 0                                    
    timeout 2                                    
    color blink-dark-gray/green white/blue      

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options     
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.  
    ## e.g. kopt=root=/dev/hda1 ro                                    
    ##      kopt_2_6_8=root=/dev/hdc1 ro                              
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro                        
    # kopt=root=UUID=c36435d3-7b90-4b93-b1ca-7e610d2ade0b ro         

    ## default grub root device
    ## e.g. groot=(hd0,0)      
    # groot=c36435d3-7b90-4b93-b1ca-7e610d2ade0b

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true                                       
    ##      alternative=false                                      
    # alternative=true                                             

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true                                 
    ##      lockalternative=false                                
    # lockalternative=false                                      

    ## additional options to use with the default boot option, but not with the
    ## alternatives                                                            
    ## e.g. defoptions=vga=791 resume=/dev/hda5                                
    # defoptions=quiet splash                                                  

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false                                
    ##      lockold=true                                 
    # lockold=false                                      

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=                                                      

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0                                             

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) single                     
    # altoptions=(recovery mode) single                     

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the     
    ## alternative kernel options                              
    ## e.g. howmany=all                                         
    ##      howmany=7                                          
    # howmany=all                                               

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true                           
    ##      memtest86=false                           
    # memtest86=true                                 

    ## should update-grub adjust the value of the default booted system
    ## can be true or false                                            
    # updatedefaultentry=false                                         

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1

    ## ## End Default Options ##

    title Microsoft Windows XP Professional
    root (hd0,0)
    chainloader +1
    savedefault
    makeactive

    title Ubuntu 8.10, kernel 2.6.27-7-generic
    kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=c36435d3-7b90-4b93-b1ca-7e610d2ade0b ro quiet splash
    initrd /boot/initrd.img-2.6.27-7-generic

    title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
    kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=c36435d3-7b90-4b93-b1ca-7e610d2ade0b ro  single
    initrd /boot/initrd.img-2.6.27-7-generic

    title lfs
    root (hd0,2)
    kernel /boot/lfskernel-2.6.27.4 root=/dev/sda3 rw rootdelay=3

    title Ubuntu 8.10, memtest86+
    kernel /boot/memtest86+.bin

    ### END DEBIAN AUTOMAGIC KERNELS LIST
    回复 支持 反对

    使用道具 举报

    发表于 2009-4-15 21:11:17 | 显示全部楼层
    最後一句 kernel panic 貌似是内核欠缺文件系统的支持引起的
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2009-4-15 22:28:14 | 显示全部楼层
    ext3应该是默认就编译进内核的,否则系统都起不来啊。
    回复 支持 反对

    使用道具 举报

    发表于 2009-4-15 22:37:27 | 显示全部楼层
    内核中有无下面的配置项?
    |----->SCSI low-level drivers
        |---->Serial ATA (SATA) support
        |---->intel PIIX/ICH SATA support

    另,可参考:http://linuxman.blog.ccidnet.com ... -itemid-280649.html
    回复 支持 反对

    使用道具 举报

    发表于 2009-10-7 16:17:33 | 显示全部楼层
    我使用的是linux-2.6.27.4的内核,其中配置选项中没有
    |---->Serial ATA (SATA) support
    |---->intel PIIX/ICH SATA support
    有该如何办呢?
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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