LinuxSir.cn,穿越时空的Linuxsir!

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

安装好却无法引导 用grub for dos,一回车就自动进win....

[复制链接]
发表于 2005-10-20 17:07:23 | 显示全部楼层 |阅读模式
用grub for dos,一回车就自动进win....
我的盘是hdc6    menu.lst我写的是(hd0,5) root=dev/hdc6




  能出现grub提示符也好可它自动进win
发表于 2005-10-20 19:28:47 | 显示全部楼层
请把整个menu.lst贴出来
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-20 19:43:34 | 显示全部楼层
我把\boot目录删掉,还是一运行grub就进win.安装linxp前可以出现提示符。现在只能按livecd方式进入
可是没权限什么操作也作不了。
回复 支持 反对

使用道具 举报

发表于 2005-10-20 19:52:45 | 显示全部楼层
既然有LiveCD,应该可以chroot到原来的系统把Grub修好

你的LiveCD到底是什麽?请把整个menu.lst也贴出来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-20 20:06:28 | 显示全部楼层
是linxp它的安装程序有bug引导装不上。menu.lst是grub for dos带的
现在主要是进不了grub的命令行方式。
# This is a sample menu.lst file. You should make some changes to it.
# Added items for installing GRUB [ which is on your DOS drive C: ] to MBR

color black/cyan yellow/cyan
timeout 60
default 0
---------------------------------------------------------
title linxp on (hd0,6)
kernel (hd0,6)/boot/vmlinuz root=/dev/hdc7
--------------------------------------------------------
title Mandrake Linux on (hd0,7)
kernel (hd0,7)/boot/vmlinuz root=/dev/hda8 quiet devfs=mount acpi=ht vga=788
initrd (hd0,7)/boot/initrd.img

title Red Hat Linux on (hd0,8)
kernel (hd0,8)/boot/vmlinuz root=/dev/hda9


title floppy on (fd0)
root (fd0)
chainloader +1

title DOS/Win9x on (hd1,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd1,0)...
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1

title DOS/Win9x on (hd2,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd2,0) ...
root (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
makeactive
chainloader +1

title install GRUB on (hd0,0) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,0)/boot/grub/ to MBR. Press any key to begin...
root (hd0,0)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot

title install GRUB on (hd0,1) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,1)/boot/grub/ to MBR. Press any key to begin...
root (hd0,1)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot

title install GRUB on (hd0,2) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,2)/boot/grub/ to MBR. Press any key to begin...
root (hd0,2)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot

title install GRUB on (hd0,3) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,3)/boot/grub/ to MBR. Press any key to begin...
root (hd0,3)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot

title mandrake ISO install (using vmlinuz and all.rdz)
pause Installing an OS is dangerous because it may overwrite all your disks(and partitions)! A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install Mandrake using iso files. Press any key to continue...
kernel (hd0,0)/vmlinuz ramdisk_size=128000 root=/dev/ram3 automatic=method:disk acpi=ht vga=788
initrd (hd0,0)/all.rdz
回复 支持 反对

使用道具 举报

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

本版积分规则

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