|
|
linux-2.6.28-gentoo,装完grub重启后出错:

提示无法挂载文件。。。。。。。,在虚拟机中硬盘我选了IDE的,没选sata的,所以是/dev/hda没错。
#-------用gentoo 的 cd 重启,检查-------------------
#------1.检查分区情况
ivecd gentoo # fdisk /dev/hda
The number of cylinders for this disk is set to 17753.
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/hda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Disk identifier: 0x3e7a3cd8
Device Boot Start End Blocks Id System
/dev/hda1 * 1 16535 7812756 83 Linux
/dev/hda2 16536 17753 575505 82 Linux swap / Solaris
Command (m for help):
#------------2.检查fstab的配置
livecd ~ # mount /dev/hda1 /mnt/gentoo
livecd ~ # cd /mnt/gentoo
livecd gentoo # ls
bin dev home lost+found opt proc sbin tmp var
boot etc lib mnt portage root sys usr
##查看fstab
nano -w /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT /boot ext2 noauto,noatime 1 2
/dev/hda1 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
#----------3.检查grub.config配置
nano -w /boot/grub/grub.conf
This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/han ... p;chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#title Gentoo Linux 2.6.24-r5
#root (hd0,0)
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
splash=verbose,splash=silent,kdgraphics,theme:livecd-2008.0
CONSOLE=/dev/tty1
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
# vim:ft=conf:
title Gentoo
root (hd0,0)
kernel /boot/linux-2.6.28-gentoo root=/dev/hda1 nomce
#----------4.显示内核版本
显示内核版本:
livecd gentoo # ls -l ./usr/src/linux
lrwxrwxrwx 1 root root 19 Jan 2 21:45 ./usr/src/linux -> linux-2.6.28-gentoo
livecd gentoo # |
|