找回密码
 注册
查看: 1748|回复: 9

编译内核后重启不能进系统

[复制链接]
发表于 2003-3-23 17:09:09 | 显示全部楼层 |阅读模式
root@localhost boot]# ls -l
total 1692
-rw-r--r--    1 root     root         5824  9月  6  2002 boot.b
-rw-r--r--    1 root     root          612  9月  6  2002 chain.b
-rw-r--r--    1 root     root        42150  9月  5  2002 config-2.4.18-14
drwxr-xr-x    2 root     root         4096  3月 23 16:35 grub
-rw-r--r--    1 root     root       130893  3月 21 23:28 initrd-2.4.18-14.img
-rw-r--r--    1 root     root          473  3月 11 19:17 kernel.h
drwxr-xr-x    2 root     root        49152  3月 11 10:26 lost+found
-rw-r--r--    1 root     root        23108  9月  6  2002 message
-rw-r--r--    1 root     root        21282  9月  6  2002 message.ja
lrwxrwxrwx    1 root     root           21  3月 11 19:17 module-info -> module-info-2.4.18-14
-rw-r--r--    1 root     root        15436  9月  5  2002 module-info-2.4.18-14
-rw-r--r--    1 root     root          640  9月  6  2002 os2_d.b
lrwxrwxrwx    1 root     root           20  3月 23 16:16 System.map -> System.map-2.4.18-14
-rw-r--r--    1 root     root       492538  3月 23 16:08 System.map-2.4.18-14
lrwxrwxrwx    1 root     root           17  3月 23 16:18 vmlinuz -> vmlinuz-2.4.18-14
-rw-r--r--    1 root     root       905840  3月 23 16:06 vmlinuz-2.4.18-14

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hde6
#          initrd /initrd-version.img
#boot=/dev/hde
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-14 ro root=/dev/hde6
        initrd /initrd-2.4.18-14.img
title windows xp
        rootnoverify (hd0,2)
        chainloader +1



重启后提示:

vfs:cannot open root device "hde6" or 21:06
please append a correct "root"=boot option
kernsl panic "vfs" unable to mount root fs on 21:06


还有我的linux装在6915R(MS-6915R IDE RAID)上.第一次装linux时
linux能识别6915R.
第2块硬盘在主板的ide接口上

[root@localhost linux]# fdisk -l

Disk /dev/hde: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hde1             1         7     56196   83  Linux
/dev/hde2             8      3525  28258335    f  Win95 Ext'd (LBA)
/dev/hde3   *      3526      4545   8193150    c  Win95 FAT32 (LBA)
/dev/hde4          4546      7475  23535225    c  Win95 FAT32 (LBA)
/dev/hde5             8       168   1293201   82  Linux swap
/dev/hde6           169      2122  15695473+  83  Linux
/dev/hde7          2123      3525  11269566    b  Win95 FAT32

Disk /dev/hdb: 32 heads, 63 sectors, 8354 cylinders
Units = cylinders of 2016 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      2714   2735680+   7  HPFS/NTFS
/dev/hdb3          2845      8354   5553576    f  Win95 Ext'd (LBA)
/dev/hdb5          2845      4877   2048224+   b  Win95 FAT32
/dev/hdb6          4877      8354   3505288+   b  Win95 FAT32
[root@localhost linux]#

请问是是不是在编译内核时出问题了?
我该怎么办?
发表于 2003-3-23 23:41:39 | 显示全部楼层
do u include u ide raid driver in kernel?
can u load u initrd as well?
回复

使用道具 举报

发表于 2003-3-24 18:02:15 | 显示全部楼层
用老内核进入系统,修改/etc/fstab
把类似下面的改好:
/dev/hda6               /                       ext3   defaults        1 1
/dev/hde1             /boot                   ext3    noatime       1 2
回复

使用道具 举报

发表于 2003-3-25 03:22:01 | 显示全部楼层
[quote:5dfe3590cf="llc"]用老内核进入系统,修改/etc/fstab
把类似下面的改好:
/dev/hda6               /                       ext3   defaults        1 1
/dev/hde1             /boot                   ext3    noatime       1 2[/quote]

if its fstab is not like this? how the old kernel boot? i believe when he install the linux, fstab already was set.
回复

使用道具 举报

发表于 2003-3-25 12:12:37 | 显示全部楼层
呵呵,我也是瞎猜,这位兄弟看来没有保存老内核
回复

使用道具 举报

发表于 2003-3-25 12:34:12 | 显示全部楼层
if so , poor
回复

使用道具 举报

 楼主| 发表于 2003-3-25 17:14:09 | 显示全部楼层
我有保存老内核,在字符界面里换成老内核启动,
具体是在编译内核时没有把raid卡编成模块,
不过现在还是对定制内核的那些设置不太清楚.
那有没有这方面的具体介绍的书籍或教材?
回复

使用道具 举报

发表于 2003-3-25 23:16:26 | 显示全部楼层
if u use u raid card all the time? whynot compile it into u kernel anyway.

and for kernel compile. there is a document in each kernel. Configure.help under Documentation.
回复

使用道具 举报

 楼主| 发表于 2003-3-26 14:00:17 | 显示全部楼层
我是在编译内核后又错误的修改了fstab文件,以至于在在启动时不能正确的检测/文件系统
导致/只能以只读的方式挂载,
mount -o -remount /dev/hde6 /
vi /etc/fstab
reboot
搞定!

我的英文不好,有没中文的编译内核的详悉帮助文件?
回复

使用道具 举报

发表于 2003-3-26 22:49:43 | 显示全部楼层
since u are in Australia, why can not u use english? i am not familiar with the chinese document. i always read english ones.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-11 10:30 , Processed in 0.034242 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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