|
|
我是按照这里做的,这是第五次了,依然失败。
http://www.gentoo.org/doc/zh_cn/ ... l?part=1&chap=7
- zcat /proc/config.gz > /usr/src/linux/.config
- cd /usr/src/linux
- make xconfig
- make && make modules_install
- cp arch/i386/boot/bzImage /boot/kernel-x86-2.6.24-gentoo-r3
复制代码
reboot
- md: Auto deteting RAID arrays
- md: Scanned 0 and add 0 devices
- md: autorun
- md: ... autorun DONE
- VFS: Cannot open root device "sda2" or unknow-block(0, 0)
- Please append a correct "root" boot option; here are the available partition:"
- 0300 78150744 hda driver: ide-disk
- 0301 7340728 hda1
- 0302 8391600 hda2
- ... ... ...
- 030a 12345448 hda10
- 1600 4194302 hdc driver: ide-cdrom
- kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0, 0)
复制代码
- Alice linux # fdisk /dev/sda
- The number of cylinders for this disk is set to 10337.
- There is nothing wrong with that, but this is larger than 1024,
- and could in certain setups cause problems with:
- 1) software that runs at boot time (e.g., old versions of LILO)
- 2) booting and partitioning software from other OSs
- (e.g., DOS FDISK, OS/2 FDISK)
- Command (m for help): p
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 240 heads, 63 sectors/track, 10337 cylinders
- Units = cylinders of 15120 * 512 = 7741440 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 971 7340728+ 7 HPFS/NTFS
- /dev/sda2 972 2081 8391600 83 Linux
- /dev/sda3 2082 10337 62415360 f W95 Ext'd (LBA)
- /dev/sda5 2082 2220 1050808+ 82 Linux swap / Solaris
- /dev/sda6 2221 5688 26218048+ 83 Linux
- /dev/sda7 5689 6658 7333168+ 83 Linux
- /dev/sda8 6659 7674 7680928+ 83 Linux
- /dev/sda9 7675 8704 7786768+ 83 Linux
- /dev/sda10 8705 10337 12345448+ 7 HPFS/NTFS
- Command (m for help):
复制代码
- Alice linux # cat /etc/fstab
- /dev/sda5 none swap sw 0 0
- /dev/sda2 / ext3 defaults,errors=remount-ro 0 1
- none /proc proc defaults 0 0
- none /dev/shm tmpfs defaults 0 0
- /dev/sda6 /home ext3 defaults 0 0
- /dev/sda7 /media/u71_r ext3 defaults 0 0
- /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
复制代码
sda2 是 /
- Alice linux # 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.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.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
- 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
- 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751M Gigabit Ethernet PCI Express (rev 21)
- 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
复制代码
- Alice linux # cat /boot/grub/grub.conf
- default 2
- timeout 2
- splashimage=(hd0,1)/boot/grub/splash.xpm.gz
- title=Gentoo Linux
- root (hd0,1)
- kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda2 doscsi
- initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
- title=Gentoo Linux 2.6.24
- root (hd0,1)
- kernel /boot/kernel-x86-2.6.24-gentoo-r3 root=/dev/sda2
复制代码 |
|