LFS6.2中 在“8.4. 使 LFS 系统能够启动”章节 grub报错
时间:2009-12-01
来源:互联网
作者: reaver 发布时间: 2009-12-01
会不会抓屏?能否贴出 cfdisk 的输出画面?
作者: d00m3d 发布时间: 2009-12-02
| cfdisk.png (19.4 KB, 16 次查看) |
作者: reaver 发布时间: 2009-12-02
作者: simdiak 发布时间: 2009-12-02
作者: reaver 发布时间: 2009-12-02
作者: d00m3d 发布时间: 2009-12-03
|
作者: d00m3d
這樣就未試過了,那麼你用 root (hd0) 行不?
|
估计分区的话可能才会在分区表那几个字节里写东西,我想是不是grub写入MBR前会从那里找呢,我还得再试试:)谢谢版主关注阿
作者: reaver 发布时间: 2009-12-03
作者: d00m3d 发布时间: 2009-12-03
|
作者: d00m3d
不用 tab,直接鍵入 root (hd0) 可行否?
|
作者: reaver 发布时间: 2009-12-03
作者: myssc 发布时间: 2009-12-16
其实用文件系统无关的引导程序都可以,如 syslinux。
grub 因其特殊的安装运行方式,无法应用在不分区环境。
grub 会覆盖0磁道0扇区后若干扇区,不分区时会破坏文件系统,其自身也不允许安装到不分区的设备。
作者: 聚焦深空 发布时间: 2009-12-17
作者: d00m3d 发布时间: 2009-12-17
不分区的情况很少人用,偶个人只在建立虚拟机时使用,维护时映像文件可以直接挂载到宿主,不用计算 offset。
作者: 聚焦深空 发布时间: 2009-12-18
grub2 相对 grub 对不分区情况做了特殊处理,有进步,又多一个理由切换到 grub2。
|
# grub-install /dev/hda /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk. This is a BAD idea. /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged. /usr/sbin/grub-setup: error: If you really want blocklists, use --force. |
作者: 聚焦深空 发布时间: 2009-12-19
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
insmod ext2
set root=(hd0)
search --no-floppy --fs-uuid --set 7c3ca617-c511-4bc8-b4f9-3b2e90d172bf
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
set locale_dir=/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686" {
insmod ext2
set root=(hd0)
search --no-floppy --fs-uuid --set 7c3ca617-c511-4bc8-b4f9-3b2e90d172bf
linux /boot/vmlinuz-2.6.32-trunk-686 root=/dev/hda ro quiet
initrd /boot/initrd.img-2.6.32-trunk-686
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686 (recovery mode)" {
insmod ext2
set root=(hd0)
search --no-floppy --fs-uuid --set 7c3ca617-c511-4bc8-b4f9-3b2e90d172bf
linux /boot/vmlinuz-2.6.32-trunk-686 root=/dev/hda ro single
initrd /boot/initrd.img-2.6.32-trunk-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
作者: 聚焦深空 发布时间: 2009-12-19
作者: d00m3d 发布时间: 2009-12-19
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28














