|
|
第 1 帖 | |
|
|
标题: grub里的Arch消失了 刚重启之后在grub进入 win7 是硬盘自检了
然后再重启 进入Arch 就进不去了... 进入ubuntu update-grub一下 再重启 Arch就消失了 grub ubuntu里的是1.98 不知道装到哪里了(怎么看) 装了三系统 sda1 win7 sda5 ubuntu10.04 sda8 arch 貌似ubuntu里的grub2很复杂 现在想用arch里的grub来引导3系统 是grub还是grub2 简单方便 怎么把arch里的grub装到MBR上..... |
|
|
|
|
|
|
|
第 2 帖 | |
|
|
|
|
|
|
|
|
|
|
第 3 帖 | |
|
|
还有个
http://wiki.archlinux.org/index.php/GRUB2 都看过好几遍了 不敢动... 用了Arch里的grub之后 现在ubuntu的 grub1.98 会怎样? 怎么看现在的grub装到什么地方了? |
|
|
|
|
|
|
|
第 4 帖 | |
|
|
ubuntu下装上os-prober然后update-grub
__________________
我的博客 http://adam8157.info/ 我的配置文件, 脚本和开源项目 http://adam8157.info/projects/ |
|
|
|
|
|
|
|
第 5 帖 | |
|
|
MBR只有一个,只要配置好grub.conf就可以了。建议参考arch的wiki操作即可。
|
|
|
|
|
|
|
|
第 6 帖 | ||
|
|
引用:
|
||
|
|
|
||
|
|
第 7 帖 | ||
|
|
引用:
|
||
|
|
|
||
|
|
第 8 帖 | |
|
|
ubuntu 下是grub2,没有grub.conf。
尝试一下这个: 在ubuntu下 sudo mount /dev/sda8 /mnt sudo update-grub 检查一下update-grub终端下的输出看看有没有arch和windows的引导内容。 没问题的话就 sudo grub-install /dev/sda ----------------------------------- 貌似曾经不先把windows的分区mount一下,我这里update-grub识别不出windows 7的引导。 所以建议楼主干脆也试一下挂下arch的分区再update-grub 只要能进arch,我想楼主参照archwiki应该能搞定grub的引导。 ----------------------------------- 实在不行找张arch的光盘,自行处理好dev和proc,然后chroot进arch再装grub。
__________________
laptop: Dell Inspiron 14z(SU7300, ati mobility radeon hd 4330) OS: Windows 7 + debian 6 stable Windows Manager: Openbox + Awesome Browser: Opera/Firefox ----------------------------------- ..... wine foobar ........ |
|
|
|
|
|
|
|
第 9 帖 | |
|
|
在ubuntu下
sudo mount /dev/sda8 /mnt sudo update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-24-generic Found initrd image: /boot/initrd.img-2.6.32-24-generic Found Windows 7 (loader) on /dev/sda1 Found Arch on /dev/sda8 done sudo grub-install /dev/sda Installation finished. No error reported. sudo reboot 之后启动项还是只有ubuntu和win7 .... |
|
|
|
|
|
|
|
第 10 帖 | ||
|
|
引用:
|
||
|
|
|
||
|
|
第 11 帖 | ||
|
|
引用:
# /boot/grub/menu.lst # DEVICE NAME CONVERSIONS # # Linux Grub # ------------------------- # /dev/fd0 (fd0) # /dev/sda (hd0) # /dev/sdb2 (hd1,1) # /dev/sda3 (hd0,2) # # FRAMEBUFFER RESOLUTION SETTINGS # +-------------------------------------------------+ # | 640x480 800x600 1024x768 1280x1024 # ----+-------------------------------------------- # 256 | 0x301=769 0x303=771 0x305=773 0x307=775 # 32K | 0x310=784 0x313=787 0x316=790 0x319=793 # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794 # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795 # +-------------------------------------------------+ # for more details and different resolutions see # http://wiki.archlinux.org/index.php/...fer_Resolution # general configuration: timeout 5 default 0 color light-blue/black light-cyan/blue # boot sections follow # each is implicitly numbered from 0 in the order of appearance below # # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line. # #-* # (0) Arch Linux title Arch Linux [/boot/vmlinuz26] root (hd0,8) kernel /vmlinuz26 root=/dev/sda8 ro initrd /kernel26.img # (1) Windows title Windows 7 root (hd0,1) makeactive chainloader +1 # (2) Ubuntu title ubuntu root (hd0,5) kernel /boot/vmlinuz-2.6.32-24-generic ro initrd /boot/initrd.img 重启之后grub还是 ubuntu的那个1.98 我已经 sudo apt-get remove grub2 了 |
||
|
|
|
||
|
|
第 12 帖 | |
|
|
晕,还是不行啊......求高手
------------------------------------------------ sudo apt-get remove grub2 这个命令起不到你期望的作用的,因为grub2是安装在mbr里面的。 ------------------------------------------------ 要不,这样再试试。 sudo mount /dev/sda8 /mnt sudo mount -t proc none /mnt/proc sudo mount -o bind /dev /mnt/dev sudo chroot /mnt 这样就进到arch下了, 然后!注意!修改/boot/grub/menu.lst!!楼主贴出来的menu.lst,和在一楼写的分区情况不符!请认真参照archwiki,这里不细写了。 修改好了之后,(小心修改,不然就真的半个系统进不去,只能找张livecd来修复了) sudo grub-install --no-floppy /dev/sda 如果没出什么问题,重启之后应该能到arch的grub来引导系统。 |
|
|
|
|
|
|
|
第 13 帖 | |
|
|
果然是半个系统都进不去。。。
Booting Arch Linux [/boot/vmlinuz26] root(hd0,8) Filesystem type is ext2fs partition type 0x83 kernel /boot/vmlinuz26 root/dev/sda8 ro Error 15:File not found Press any key to continue ... 启动ubuntu也是一样的提示 启动 win7 NTLDR is missing |
|
|
|
|
|
|
|
第 14 帖 | |
|
|
# (0) Arch Linux
title Arch Linux [/boot/vmlinuz26] root (hd0,7) kernel /boot/vmlinuz26 root=/dev/sda8 ro initrd /boot/kernel26.img # (1) Ubuntu title ubuntu root (hd0,4) kernel /boot/vmlinuz-2.6.32-24-generic root=/dev/sda5 ro initrd /boot/initrd.img # (2) Windows title Windows 7 root (hd0,0) makeactive chainloader +1 改root (hd0,n-1)之后 终于可以起动Windows了 但上面两个都还是一样的提示。。。 |
|
|
|
|
|
|
|
第 15 帖 | |
|
|
makeactive #这行在引导win7时请除去!
在启动grub时用grub的命令找到正确的boot启动后再修改, 然后再引导启动. 不明什么是(hd0, n-1)..., 如果在grub下是(hd0,0), 在grub2下是(hd0,1) 看看这个有用否: http://www.linuxsir.org/bbs/printthr...t=345371&pp=40
__________________
Samsung R70 ----------------------------------------------------------------------------- Intel(Merom)T7300 / DDR 2G / 160G 5400 nVidia 8600M GS / Realtek ALC262 DVD-SuperMulti / 15.4 WXGA 1280x800 ----------------------------------------------------------------------------- Linux arch x86_64 (Core+Extra+Comm) Openbox |
|
|
|
|
|