|
系统本来是win2000和linux,昨天装了windows2003。在linux rescuce里面无法用grub-install来恢复grub,提示说根本没有任何linux分区。后来下载了那个文件放在window下,并改了boot .ini。这回可以进去linux了。但linux启动的时候挂载分区的时候错误不断。swap分区好像也找不到了。进到xwindows里用磁盘管理工具看的内容是
none /dev/pts devpts none /proc proc none /dev/shm tmpfs
我的 /etc/fstab文件内容如下
LABEL=/ / ext2 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/hda7 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/hda5 /mnt/WinD ntfs iocharset=cp936 0 0
/dev/hda8 /mnt/WinE ntfs iocharset=cp936 0 0
/boot/grub/grub.conf文件内容如下
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,5)
# kernel /boot/vmlinuz-version ro root=/dev/hda6
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,5)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img
title Win2000
rootnoverify (hd0,0)
chainloader +1
请问我可以通过修改这两个文件来解决这个问题么? |
|