|
|

楼主 |
发表于 2008-10-26 17:49:25
|
显示全部楼层
今天下午,我刻了2008-r1的liveCD无网络安装盘(以前安的是beta2版本),重新分区,再重新安装一遍,安装过程没有出错。还是一样的结果:(
这个是fdisk -l的结果:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0b1ebb0
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1530 12289693+ c W95 FAT32 (LBA)
/dev/sda2 1531 2868 10747485 83 Linux
/dev/sda3 2869 2942 594405 82 Linux swap / Solaris
/dev/sda4 2943 9729 54516577+ 5 Extended
/dev/sda5 2943 9729 54516546 83 Linux
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
在liveCD下,我把sda2挂载在当前目录的gentoo下.以下是结果boot和boot/grub文件夹里的内容:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
livecd gentoo # ls -l gentoo/boot/
total 23108
-rw-r--r-- 1 root root 1294167 Oct 26 14:18 System.map-genkernel-x86-2.6.24-gentoo-r5
lrwxrwxrwx 1 root root 1 Oct 26 14:41 boot -> .
drwxr-xr-x 2 root root 4096 Oct 26 14:51 grub
-rw-r--r-- 1 root root 19060328 Oct 26 14:18 initramfs-genkernel-x86-2.6.24-gentoo-r5
-rw-r--r-- 1 root root 3267168 Oct 26 14:18 kernel-genkernel-x86-2.6.24-gentoo-r5
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
livecd gentoo # ls -l gentoo/boot/grub/
total 320
-rw-r--r-- 1 root root 8032 Feb 28 2008 e2fs_stage1_5
-rw-r--r-- 1 root root 7904 Feb 28 2008 fat_stage1_5
-rw-r--r-- 1 root root 7168 Feb 28 2008 ffs_stage1_5
-rw-r--r-- 1 root root 15 Oct 26 14:51 glidevice.map
-rw-r--r-- 1 root root 272 Oct 26 14:51 grub.conf
-rw-r--r-- 1 root root 7200 Feb 28 2008 iso9660_stage1_5
-rw-r--r-- 1 root root 8608 Feb 28 2008 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 26 14:51 menu.lst -> grub.conf
-rw-r--r-- 1 root root 7328 Feb 28 2008 minix_stage1_5
-rw-r--r-- 1 root root 9760 Feb 28 2008 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 Feb 28 2008 stage1
-rw-r--r-- 1 root root 105340 Feb 28 2008 stage2
-rw-r--r-- 1 root root 105340 Feb 28 2008 stage2_eltorito
-rw-r--r-- 1 root root 7488 Feb 28 2008 ufs2_stage1_5
-rw-r--r-- 1 root root 6752 Feb 28 2008 vstafs_stage1_5
-rw-r--r-- 1 root root 9384 Feb 28 2008 xfs_stage1_5
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
这个是我运行grub的具体内容:
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xc
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type unknown, partition type 0x82
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
grub> root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 2: Bad file or directory type
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
这个是我运行grub-install的具体内容:
livecd gentoo # grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
对了,chroot环境也试了,不过chroot时,我只是按照gentoo安装手册上做的,就是挂载/proc 和/dev ,然后chroot /mnt/gentoo /bin/bash 然后env-update ,source /etc/profile ,结果也是如上,不知道chroot这步有没有对? |
|