LinuxSir.cn,穿越时空的Linuxsir!

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

使用gentoo 2006 0 livecd安装失败,大家看看我的过程[已经解决]

[复制链接]
发表于 2006-4-3 14:30:37 | 显示全部楼层 |阅读模式
我没有用那个install安装

我按照手册安装的

基本步骤我就不说了

我从stag3开始的

用genkernel --udev all
编译了2.6.15-r1

当安装全部完成后

重新启动电脑

在启动卡住 信息

>> Mounting root
mknod://newroot /dev/console No such file or directory
mknod://newroot /dev/tty1 No such file or directory
>>Boot (initramfs)
chroot:cannot execte /bin/sh
kernel panic -not syncing : Attempted to kill init

然后死了

我觉得是编译内核问题
我用genkernel all

还是不行 ,还是卡在那里
发表于 2006-4-3 15:18:25 | 显示全部楼层
你的grub.conf和fstab贴贴看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 16:21:01 | 显示全部楼层
fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
#
# 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.
#
# 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/hda9                /boot                ext2                noauto,noatime        1 2
/dev/hda8                /                ext2                noatime                0 1
/dev/hda10                none                swap                sw                0 0
/dev/hdc                /mnt/cdrom        iso9660                noauto,ro        0 0
/dev/fd0                /mnt/floppy        auto                noauto                0 0


/dev/hda9                /backup                ext2                defaults        0 1

/dev/hda1                /mnt/c                vfat                utf8,umask=000 0 0
/dev/hda5                /mnt/d                vfat                utf8,umask=000 0 0
/dev/hda6                /mnt/e                ntfs                nls=utf8,umask=0222 0 0
/dev/hda7                /mnt/f                vfat                utf8,umask=000 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


grub.conf


timeout 30


default 0

splashimage=(hd0,7)/grub/splash.xpm.gz

title=Gentoo 2006 0
root   (hd0,7)
kernel /kernel-genkernel-x86-2.6.15-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hda8


initrd /initramfs-genkernel-x86-2.6.15-gentoo-r1

title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader  +1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 16:22:37 | 显示全部楼层
/dev/hda9 /boot ext2 noauto,noatime 1 2
/dev/hda8 / ext2 noatime 0 1

突然发现 是不是写反了????
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 16:38:29 | 显示全部楼层
我的fstab确实有问题,但是我改了,启动还不是卡在那里
难道genkernel 编译内核的时候 调用fstab

难道我还要genkernel all 一次吗?
回复 支持 反对

使用道具 举报

发表于 2006-4-3 16:49:43 | 显示全部楼层
grub里
root (hd0,7)应该是root (hd0,8)
fstab里,试试这样写:
none                    /proc           proc            defaults                0 0
none                    /dev/shm        tmpfs           defaults                0 0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 18:31:03 | 显示全部楼层
root (hd0,7)
改成
root (hd0,8)

启动连内核都找不到了
回复 支持 反对

使用道具 举报

发表于 2006-4-3 19:19:36 | 显示全部楼层
Post by tjzero
root (hd0,7)
改成
root (hd0,8)

启动连内核都找不到了

如果是这样,那你多半拷贝kernel时忘了挂/boot分区了,看看你的/boot里有什么?
注意root (hd0,8)指的是hda9,即/boot所在的分区。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 19:46:44 | 显示全部楼层
Post by kohno
如果是这样,那你多半拷贝kernel时忘了挂/boot分区了,看看你的/boot里有什么?
注意root (hd0,8)指的是hda9,即/boot所在的分区。


我的/boot分区 是hda8
      / 分区     是hda9


所以 我 root (hd0,7)

我/boot 里面有编译好的 内核文件


晕闷死了
回复 支持 反对

使用道具 举报

发表于 2006-4-3 20:32:48 | 显示全部楼层
Post by tjzero
我的/boot分区 是hda8
      / 分区     是hda9

所以 我 root (hd0,7)

我/boot 里面有编译好的 内核文件

晕闷死了

那就是你的fstab写错了。
Post by tjzero
.....

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda9                /boot                ext2                noauto,noatime        1 2
/dev/hda8                /                ext2                noatime                0 1
/dev/hda10                none                swap                sw                0 0
...
回复 支持 反对

使用道具 举报

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

本版积分规则

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