linux grub confusion
来源:互联网 发布:urlencode java写法 编辑:程序博客网 时间:2024/06/07 02:10
solution: http://www.debianhelp.org/node/3463
After installing ubuntu gutsy, I modified the disk partition using fdisk - fix the partition order during the installation, changed the root partition /dev/hda10 to /dev/hda9. then reboot
"
grub error 25
"
I guess the grub can't find the stage2 according to the stage1.5 embedded MBR, or something that leads to menu.list load failure.
Now what I have to do is tore-install the ubuntu gutsy's grub. "chroot" into the root system will enable gutsy fix itself.
but , bad news, my CD-ROM's broken. I have to boot my notebook from a USB-Disk which recognized by BIOS as "hd0". It matters a lot. I can't manually boot the gutsy in the grub on this "hd0" disk, in turn, I have to boot another LiveCD using unionfs, and eventually "chroot" into the gutsy.
"grub-install /dev/hda" ? It doesn't work! It's reported that "grub: not found or no block device".
....(hard time)
the problem is, chroot do all the static configuration but the dynamic things, such as mount the peripheral device ,etc. So, Prior to chroot, you need to tell the target system all these runtime information by "mount". Here is more details:
from Gerhard Brauer came the solution:
add:基本上一个套路就是: 分区表就用fdisk之类工具修改,引导扇区就用grub来操作,dd都最好不要用,格式化使用mkfs。重建分区时直接使用mkfs,不用fdisk来修改。
After installing ubuntu gutsy, I modified the disk partition using fdisk - fix the partition order during the installation, changed the root partition /dev/hda10 to /dev/hda9. then reboot
"
grub error 25
"
I guess the grub can't find the stage2 according to the stage1.5 embedded MBR, or something that leads to menu.list load failure.
Now what I have to do is tore-install the ubuntu gutsy's grub. "chroot" into the root system will enable gutsy fix itself.
but , bad news, my CD-ROM's broken. I have to boot my notebook from a USB-Disk which recognized by BIOS as "hd0". It matters a lot. I can't manually boot the gutsy in the grub on this "hd0" disk, in turn, I have to boot another LiveCD using unionfs, and eventually "chroot" into the gutsy.
"grub-install /dev/hda" ? It doesn't work! It's reported that "grub: not found or no block device".
....(hard time)
the problem is, chroot do all the static configuration but the dynamic things, such as mount the peripheral device ,etc. So, Prior to chroot, you need to tell the target system all these runtime information by "mount". Here is more details:
from Gerhard Brauer came the solution:
only grub as bootloader on /dev/hda
1. booting the clone in rescue-mode and mount /dev/hda1 /mnt
2. mount -o bind /dev /mnt/dev
3. mount -o bind -t proc /proc /mnt/proc
4. chroot /mnt
5. grub-shell with root (hd0,0) and setup (hd0)
I tried different ways, but only this one worked.
Don't delete stage2
don't run grub-install. It'll produce the error
/dev/sda1 does not have corresponding BIOS drive
add:基本上一个套路就是: 分区表就用fdisk之类工具修改,引导扇区就用grub来操作,dd都最好不要用,格式化使用mkfs。重建分区时直接使用mkfs,不用fdisk来修改。
- linux grub confusion
- Confusion
- confusion
- Linux Grub
- Linux GRUB
- linux 修复grub
- Grub--Linux启动过程
- Grub引导Linux + Windows
- linux 引导 启动 grub
- [linux]grub笔记
- Linux LILO和GRUB
- linux之Grub修复
- grub 恢复linux
- Linux Grub Encryption
- grub引导Linux系统
- grub 引导安装linux
- linux Grub 修复
- linux grub详解
- 菜鸟也封装之简单文本编辑器.
- Access键盘快捷键大全
- 在线编辑公文并保存到后台数据库
- 单个图片上传到数据库
- 我的powerbuilder框架,经过三套软件的开发逐渐形成并得到完善
- linux grub confusion
- 利用消息机制实现.NET AOP(面向方面编程)--通过RealProxy实现 zz
- Invalid response document returned from XmlRpc server
- Hibernate 之QBC
- 北大青鸟S1的C语言项目(学员管理系统)
- 一款不错的图像处理软件(含源码)
- 十分钟经济学:让你看懂中国经济形势
- WebService同步两台远程SQLSERVER2000数据库
- 关于hibernate session中的三个状态