无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 3915|回复: 6
打印 上一主题 下一主题

[讨论] 写入mbr问题,请指教

[复制链接]
1#
发表于 2012-11-7 10:28:17 | 显示全部楼层

回复 #1 yinyuan 的帖子

你需要的是 README 中如下的一段:
  1. ******************************************************************************
  2. ***             Parameter file for bootlace running under DOS              ***
  3. ******************************************************************************

  4. You may move all or part of the command-line arguments into a file. The file
  5. can have multi lines. Just like SPACEs and TABs, the CRs and LFs can also
  6. delimit the commandline arguments in the parameter file.

  7. Example:

  8.                 bootlace < my_parafile
  9.                 bootlace --read-only my_mbr < my_other_options

  10. Note:   Pipes do not work. You have to use the input-redirection operator(<).
复制代码
--preferred-drive=0 的意思是,软盘 0 为优先搜索的设备。

如果只有一个硬盘,你无需使用 --preferred-drive 和 --preferred-partition 参数,或者你设置 --preferred-drive=0x80 以及 --preferred-partition=分区号 也可以。

主分区的分区号是 0,1,2,3,逻辑分区的分区号是 4,5,6,……

对于软盘、光盘这类不含分区表的设备,其“分区号”用 0xFF 来表示。

多看看 readme 文件,里面有详细介绍。

[ 本帖最后由 不点 于 2012-11-7 10:33 编辑 ]
回复

使用道具 举报

2#
发表于 2012-11-7 16:19:01 | 显示全部楼层

回复 #3 yinyuan 的帖子

MBR 磁道不被分区占据。任何程序都可以使用这点空间。因此,数据放在这里并不安全。

这里通常是被 boot 代码占据了,就像 grub4dos 那样。
回复

使用道具 举报

3#
发表于 2012-11-7 17:30:54 | 显示全部楼层
--preferred-drive=1 这个根本就是错的。你这里的 1 就是代表软盘1。

建议你多看看文档,用 google 搜索别人的参数(比如搜 --preferred-drive 的相关信息),学习一阵子,先在虚拟机上练习,熟练了之后再实际使用。

要循序渐进,不要试图一口吃成胖子。

姑且就使用你的错误的参数,其操作很简单,首先建立一个文件,其内容如下:
  1. --force-backup-mbr

  2. --boot-prevmbr-first

  3. --time-out=2

  4. --hot-key=0x8500

  5. --mbr-disable-floppy

  6. --preferred-drive=1 --preferred-partition=2 0x80
复制代码


把文件保存为 mytmp.txt

然后执行 bootlace < mytmp.txt 就行了。

[ 本帖最后由 不点 于 2012-11-7 17:36 编辑 ]
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-6-14 12:12

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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