LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

Kernel 2.6x 编译过程

[复制链接]
发表于 2003-10-20 08:45:56 | 显示全部楼层
/etc/fstab也要改
发表于 2003-10-20 13:26:43 | 显示全部楼层
请问fstab该怎么改?谢谢!

这是我的:
Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       638   5124703+   b  Win95 FAT32
/dev/hda2           639      7475  54918202+   f  Win95 Ext'd (LBA)
/dev/hda5           639      1276   5124703+   7  HPFS/NTFS
/dev/hda6          1277      3189  15366141    b  Win95 FAT32
/dev/hda7          3190      5102  15366141    b  Win95 FAT32
/dev/hda8          5103      6377  10241406    b  Win95 FAT32
/dev/hda9          6378      7410   8297541   83  Linux
/dev/hda10         7411      7475    522081   82  Linux swap


我改为:kernel /boot/vmlinuz-2.6.0-test8 ro root=/dev/hda9
 楼主| 发表于 2003-10-20 13:52:17 | 显示全部楼层
最初由 死神 发表
请问fstab该怎么改?谢谢!

这是我的:
Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       638   5124703+   b  Win95 FAT32
/dev/hda2           639      7475  54918202+   f  Win95 Ext'd (LBA)
/dev/hda5           639      1276   5124703+   7  HPFS/NTFS
/dev/hda6          1277      3189  15366141    b  Win95 FAT32
/dev/hda7          3190      5102  15366141    b  Win95 FAT32
/dev/hda8          5103      6377  10241406    b  Win95 FAT32
/dev/hda9          6378      7410   8297541   83  Linux
/dev/hda10         7411      7475    522081   82  Linux swap


我改为:kernel /boot/vmlinuz-2.6.0-test8 ro root=/dev/hda9


fstab的文件的内容不用改,能否把fstab帖上来一下,我感觉是兄弟改错了。:
发表于 2003-10-20 17:49:44 | 显示全部楼层
这是我的fstab,谢谢老大帮忙!

LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda10              swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kud
zu,ro 0 0
/dev/hda1   /mnt/WIN98      vfat    defaults,codepage=936,iocharset=cp936,ui
d=500     0 0
/dev/hda6   /mnt/E      vfat    defaults,codepage=936,iocharset=cp936,uid=50
0     0 0
/dev/hda7   /mnt/F      vfat    defaults,codepage=936,iocharset=cp936,uid=50
0     0 0
/dev/hda8   /mnt/G      vfat    defaults,codepage=936,iocharset=cp936,uid=50
0     0 0
/dev/hda5   /mnt/WINXP      ntfs    defaults,iocharset=cp936,umask=0 0 0
发表于 2003-10-20 18:06:06 | 显示全部楼层
我重新试了一下,发现在安装模块时
make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.0-test8/arch/i386/boot/install.sh 2.6.0-test8 arch/i386/boot/bzImage System.map ""
depmod: cannot read ELF header from /lib/modules/2.6.0-test8/modules.dep
depmod: cannot read ELF header from /lib/modules/2.6.0-test8/modules.generic_string
depmod: /lib/modules/2.6.0-test8/modules.ieee1394map is not an ELF file
depmod: /lib/modules/2.6.0-test8/modules.isapnpmap is not an ELF file
depmod: cannot read ELF header from /lib/modules/2.6.0-test8/modules.parportmap
depmod: /lib/modules/2.6.0-test8/modules.pcimap is not an ELF file
depmod: cannot read ELF header from /lib/modules/2.6.0-test8/modules.pnpbiosmap
depmod: /lib/modules/2.6.0-test8/modules.usbmap is not an ELF file


请问这是什么原因?
发表于 2003-10-20 18:14:11 | 显示全部楼层
难道是兄弟没有把ELF支持加入内核?
发表于 2003-10-20 18:21:28 | 显示全部楼层
[root@localhost linux-2.6.0-test8]# sudo make install
  HOSTCC  scripts/modpost.o
  HOSTLD  scripts/modpost
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.0-test8/arch/i386/boot/install.sh 2.6.0-test8 arch/i386/boot/bzImage System.map ""
/lib/modules/2.6.0-test8 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
[root@localhost linux-2.6.0-test8]#

怎么会事阿
发表于 2003-10-20 18:42:45 | 显示全部楼层
我选了kenel support for ELF binaries.
请问这个是不是
 楼主| 发表于 2003-10-20 19:37:52 | 显示全部楼层
最初由 空心菜 发表
[root@localhost linux-2.6.0-test8]# sudo make install
  HOSTCC  scripts/modpost.o
  HOSTLD  scripts/modpost
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.0-test8/arch/i386/boot/install.sh 2.6.0-test8 arch/i386/boot/bzImage System.map ""
/lib/modules/2.6.0-test8 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
[root@localhost linux-2.6.0-test8]#

怎么会事阿


#mkdir  /lib/modules/2.6.0-test8
发表于 2003-10-20 20:38:58 | 显示全部楼层
# 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,3)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,3)/grub/splash.xpm.gz
title Red Hat Linux (2.6.0-test8)
        root (hd0,3)
        kernel /vmlinuz-2.6.0-test8 ro root=LABEL=/usr hdd=ide-scsi
        initrd /initrd-2.6.0-test8.img
title Red Hat Linux (2.4.20-8)
        root (hd0,3)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/usr hdd=ide-scsi
        initrd /initrd-2.4.20-8.img
title windows XP
        rootnoverify (hd0,0)
        chainloader +1
这是没改的
蒋LABEL=/usr hdd=ide-scsi
改为/dev/hda3 或/dev/hda4都不可以
而且原来的2.4.18的还可以进去但就是什么都没有
只有注销和运行
面板啊什么的都没了,连桌面都没了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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