编译内核后重启不能进系统
root@localhost boot]# ls -ltotal 1692
-rw-r--r-- 1 root root 58249月62002 boot.b
-rw-r--r-- 1 root root 6129月62002 chain.b
-rw-r--r-- 1 root root 421509月52002 config-2.4.18-14
drwxr-xr-x 2 root root 40963月 23 16:35 grub
-rw-r--r-- 1 root root 1308933月 21 23:28 initrd-2.4.18-14.img
-rw-r--r-- 1 root root 4733月 11 19:17 kernel.h
drwxr-xr-x 2 root root 491523月 11 10:26 lost+found
-rw-r--r-- 1 root root 231089月62002 message
-rw-r--r-- 1 root root 212829月62002 message.ja
lrwxrwxrwx 1 root root 213月 11 19:17 module-info -> module-info-2.4.18-14
-rw-r--r-- 1 root root 154369月52002 module-info-2.4.18-14
-rw-r--r-- 1 root root 6409月62002 os2_d.b
lrwxrwxrwx 1 root root 203月 23 16:16 System.map -> System.map-2.4.18-14
-rw-r--r-- 1 root root 4925383月 23 16:08 System.map-2.4.18-14
lrwxrwxrwx 1 root root 173月 23 16:18 vmlinuz -> vmlinuz-2.4.18-14
-rw-r--r-- 1 root root 9058403月 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接口上
# fdisk -l
Disk /dev/hde: 255 heads, 63 sectors, 7476 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks IdSystem
/dev/hde1 1 7 56196 83Linux
/dev/hde2 8 352528258335 fWin95 Ext'd (LBA)
/dev/hde3 * 3526 4545 8193150 cWin95 FAT32 (LBA)
/dev/hde4 4546 747523535225 cWin95 FAT32 (LBA)
/dev/hde5 8 168 1293201 82Linux swap
/dev/hde6 169 212215695473+83Linux
/dev/hde7 2123 352511269566 bWin95 FAT32
Disk /dev/hdb: 32 heads, 63 sectors, 8354 cylinders
Units = cylinders of 2016 * 512 bytes
Device Boot Start End Blocks IdSystem
/dev/hdb1 * 1 2714 2735680+ 7HPFS/NTFS
/dev/hdb3 2845 8354 5553576 fWin95 Ext'd (LBA)
/dev/hdb5 2845 4877 2048224+ bWin95 FAT32
/dev/hdb6 4877 8354 3505288+ bWin95 FAT32
#
请问是是不是在编译内核时出问题了?
我该怎么办? do u include u ide raid driver in kernel?
can u load u initrd as well? 用老内核进入系统,修改/etc/fstab
把类似下面的改好:
/dev/hda6 / ext3 defaults 1 1
/dev/hde1 /boot ext3 noatime 1 2 用老内核进入系统,修改/etc/fstab
把类似下面的改好:
/dev/hda6 / ext3 defaults 1 1
/dev/hde1 /boot ext3 noatime 1 2
if its fstab is not like this? how the old kernel boot? i believe when he install the linux, fstab already was set. 呵呵,我也是瞎猜,这位兄弟看来没有保存老内核 if so , poor 我有保存老内核,在字符界面里换成老内核启动,
具体是在编译内核时没有把raid卡编成模块,
不过现在还是对定制内核的那些设置不太清楚.
那有没有这方面的具体介绍的书籍或教材? 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. 我是在编译内核后又错误的修改了fstab文件,以至于在在启动时不能正确的检测/文件系统
导致/只能以只读的方式挂载,
mount -o -remount /dev/hde6 /
vi /etc/fstab
reboot
搞定!
我的英文不好,有没中文的编译内核的详悉帮助文件? since u are in Australia, why can not u use english? i am not familiar with the chinese document. i always read english ones.
页:
[1]