无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3843|回复: 5
打印 上一主题 下一主题

怎样把grub安装到硬盘系统中?

[复制链接]
跳转到指定楼层
1#
发表于 2007-7-31 10:51:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我想在自己装封的系统中集成grub,请问如何将他安装到硬盘?直接复制吗?
2#
 楼主| 发表于 2007-7-31 16:20:24 | 只看该作者
zh知道的,告诉一声。
回复

使用道具 举报

3#
发表于 2007-7-31 16:39:56 | 只看该作者
BOOTLACE.COM installs GRLDR.MBR boot record to the MBR of a harddrive or of a
harddrive image file, or to the boot sector of a floppy or a floppy image.
Usage:
bootlace.com  [OPTIONS]  DEVICE_OR_FILE
OPTIONS:
--read-only  do everything except the actual write to the
    specified DEVICE_OR_FILE.
--no-backup-mbr  do not copy the old MBR to the second sector of
    DEVICE_OR_FILE.
--force-backup-mbr force the copy of old MBR to the second sector
    of DEVICE_OR_FILE.
--mbr-enable-floppy enable the search for GRLDR on floppy.
--mbr-disable-floppy disable the search for GRLDR on floppy.
--mbr-enable-osbr enable the boot of PREVIOUS MBR with invalid
    partition table(usually an OS boot sector).
--mbr-disable-osbr disable the boot of PREVIOUS MBR with invalid
    partition table(usually an OS boot sector).
--duce   disable the feature of unconditional entrance
                         to the command-line.
    Normally one can unconditionally get the
    command-line console by a keypress of `C',
    bypassing all config-files(including the
    preset-menu). This is a security hole. So we
    need this option to disable the feature.
    DUCE is for Disable Unconditional Command-line
    Entrance.
--boot-prevmbr-first try to boot PREVIOUS MBR before the search for
    GRLDR.
--boot-prevmbr-last try to boot PREVIOUS MBR after the search for
    GRLDR.
--preferred-drive=D preferred boot drive number, 0 <= D < 255.
--preferred-partition=P preferred partition number, 0 <= P < 255.
--time-out=T  wait T seconds before booting PREVIOUS MBR. if
    T is 0xff, wait forever. The default is 5.

--hot-key=K  if the desired key K is pressed, start GRUB
    before booting PREVIOUS MBR. K is a word
    value, just as the value in AX register
    returned from int16/AH=1. The high byte is the
    scan code and the low byte is ASCII code. The
    default is 0x3920 for space bar. See "int 16
    keyboard scan codes" below.
--floppy  if DEVICE_OR_FILE is floppy, use this option.
--floppy=N  if DEVICE_OR_FILE is a partition on a hard
    drive, use this option. N is used to specify
    the partition number: 0,1,2 and 3 for the
    primary partitions, and 4,5,6,... for the
    logical partitions.
--sectors-per-track=S specifies sectors per track for --floppy.
    1 <= S <= 63, default is 63.
--heads=H  specifies number of heads for --floppy.
    1 <= H <= 256, default is 255.
--start-sector=B specifies hidden sectors for --floppy=N.
--total-sectors=C specifies total sectors for --floppy.
    default is 0.
--lba   use lba mode for --floppy. If the floppy BIOS
    has LBA support, you can specify --lba here.
    It is assumed that all floppy BIOSes have CHS
    support. So you would rather specify --chs.
    If neither --chs nor --lba is specified, then
    the LBA indicator(i.e., the third byte of the
    boot sector) will not be touched.
--chs   use chs mode for --floppy. You should specify
    --chs if the floppy BIOS does not support LBA.
    We assume all floppy BIOSes have CHS support.
    So it is likely you want to specify --chs.
    If neither --chs nor --lba is specified, then
    the LBA indicator(i.e., the third byte of the
    boot sector) will not be touched.
--fat12   FAT12 is allowed to be installed for --floppy.
--fat16   FAT16 is allowed to be installed for --floppy.
--fat32   FAT32 is allowed to be installed for --floppy.
--vfat   FAT12/16/32 are allowed to be installed for
    --floppy.
--ntfs   NTFS is allowed to be installed for --floppy.
--ext2   EXT2 is allowed to be installed for --floppy.
--install-partition=I Install the boot record onto the boot area of
    partition number I of the specified hard drive
    or harddrive image DEVICE_OR_FILE.
DEVICE_OR_FILE: Filename of the device or the image file. For DOS, a BIOS drive
number(hex 0xHH or decimal DDD) can be used to access the drive. BIOS drive
number 0 is for the first floppy, 1 is for the second floppy; 0x80 is for the
first hard drive, 0x81 is for the second hard drive, etc.
Note: BOOTLACE.COM writes only the boot code to MBR. The boot code needs to
load GRLDR as the second(and last) stage of the GRUB boot process. Therefore
GRLDR should be copied to the root directory of one of the supported
partitions, either before or after a successful execution of BOOTLACE.COM.
Currently only partitions with filesystem type of FAT12, FAT16, FAT32, NTFS,
EXT2 or EXT3 are supported.
Note 2: If DEVICE_OR_FILE is a harddisk device or a harddisk image file, it
must contain a valid partition table, otherwise, BOOTLACE.COM will fail. If
DEVICE_OR_FILE is a floppy device or a floppy image file, then it must contain
a supported filesystem(i.e., either of FAT12/FAT16/FAT32/NTFS/EXT2/EXT3).
Note 3: If DEVICE_OR_FILE is a floppy device or a floppy image file, and it
was formated EXT2/EXT3, then you should specify --sectors-per-track and
--heads explicitly.
回复

使用道具 举报

4#
发表于 2007-7-31 19:48:19 | 只看该作者
封装的系统
肯定没办法用bootlace啦`
ghost/ati都不会备份mbr
当然了`全磁盘备份另外``
但是封装系统只针对分区进行备份
所以不能使用mbr的形式
只能是用ntldr来启动grldr
在boot.ini菜单中添加上c:\grldr="grub4dos"

grldr可以去gna网站上下载最新版


如果需要中文字体
背景
memedisk

可以让别的网友提供给你```
我都是用英文菜单
英文版grldr
不使用背景
所以我就只用一个grldr就够了
菜单内置.....
够精简了吧..
回复

使用道具 举报

5#
发表于 2007-8-1 17:14:11 | 只看该作者
winxp环境下用grubutil
下载地址见http://www.znpc.net/bbs/viewthre ... &extra=page%3D1
回复

使用道具 举报

6#
发表于 2007-8-27 23:16:15 | 只看该作者
linux好像不支持ghost,要安装完整版本的系统。
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-28 17:32

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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