LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1953|回复: 15

有没有freebsd下装过grub的?

[复制链接]
发表于 2003-5-6 19:27:16 | 显示全部楼层 |阅读模式
configure能通过
make却报错

看来象autoconf什么的产生信息有点问题
bsd不明白啊
有兄弟搞定过么?

还有啊 那个硬盘表示真叫人头疼~~~~~~~~:confused:
发表于 2003-5-6 23:47:44 | 显示全部楼层
赫赫,装一个linux把grub装上再把linux山了。(赫赫,linux版面的答案。)
发表于 2003-5-6 23:48:41 | 显示全部楼层
能不能用我自己也怀疑。恐怕是。。。
发表于 2003-5-7 01:24:36 | 显示全部楼层
在其他linux机器上把grub 装到软盘上,把必须的文件考到bsd的目录里面(stage1、stage2等等),再用软盘启动那个装bsd的机器,在grub的类似shell一样的界面下装即可
发表于 2003-5-7 16:52:49 | 显示全部楼层
在FreeBSD里安装GRUB,必须从软盘启动
发表于 2003-9-26 09:22:02 | 显示全部楼层

我来再翻一下这本老黄历.

昨天在 www.freebsd.org/prots 下了一个 grub-0.92 for 4.8, 按照 grub.info 上的说明把相关的stage1/stage2/*stage1_5复制到 /boot/grub/下,做了一张 grub 启动盘, 并用此盘启动, 出现 grub> 后:
grub > find /boot/grub/stage1
(hd0,3,a)
grub > boot (hd0,3,a)
这里提示要先载入kernel,于是:
grub > kernel /boot/loader
这里提示载入信息
grub > boot (hd0,3,a)
这里启动到装kernel的地方:
没发现 kernel
没发现 kernel.old
然后就出现个 "?" 提示符.

没有linux,只有FreeBSD,怎么装grub?

我的硬盘分区
第一个:主分区- sco unix
第二个:主分区- Win98
第三个:扩展分区- 包含三个逻辑分区,其中第一个逻辑分区装了个 WinXP.
第四个:主分区- FreeBSD

四个主分区已用完,那我的BeOS呢??!! (原来是在扩展分区的后面)
发表于 2003-9-26 09:34:29 | 显示全部楼层
我没试过,现在也没条件试,下面的文章你看一下,或许就明白了:

===============================================================
Inspirion disk configuration :
====================

1 disk (hd0) : 1 partition (hd0,0) NTFS with Windows NT 4.0 , 2nd FAT, 3rd NTFS
1 disk (hd0) : 4th slice (hd0,3,a) FreeBSD 4.5-STABLE

Getting Grub :
==========

As a package

prompt# pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/p...grub-0.5.96.tgz

From ports
As a root:

prompt# cd /usr/ports/sysutils/grub
prompt# make install clean

Grub Configuration :
===============

Copy configuration files:

prompt# mkdir /boot/grub
prompt# cd /boot/grub
prompt# cp /usr/local/share/grub/i386-freebsd/* .

Create menu file
============

Grub configuration: /boot/grub/menu.lst

default 0 # OS defaut boot, FreeBSD
timeout 5 # timeout

# FreeBSD: choice 0
title FreeBSD #
root (hd0,3,a) # 1 disk, 4th slice, disklabel a (/)
kernel /boot/loader # loader for FreeBSD

# Windows NT: choice 1
title Windows NT 4.0 #
root (hd0,0) # 1st disk, 1st partition
makeactive # Rendre la partition active
chainloader +1 # Utiliser le boot de Windows

Grub installation as the MBR
====================

1.Grub on bootable floppy.
-------------------------------
This will make a bootable floppy for the next stage:

prompt# cd /boot/grub
prompt# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
512 bytes transferred in 1.181812 secs (433 bytes/sec)
prompt# dd if=stage2 of=/dev/fd0 bs=512 seek=1
155+1 records in
155+0 records out
79360 bytes transferred in 3.687975 secs (21519 bytes/sec)

2.Installation as MBR
--------------------------

Boot from the floppy from the previous step or run grub from the FreeBSD prompt:

prompt# grub
Probing devices to guess BIOS drives. This may take a long time.

GRUB version 0.5.96 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub> root (hd0,3,a) [ use (fd0) to make floppy with Grub menu]
Filesystem type is ffs, partition type 0xa5

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/ffs_stage1_5" exists... yes
Running "embed /boot/grub/ffs_stage1_5 (hd0)"... 14 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 d (hd0) (hd0)1+14 p (hd0,3,a)/boot/grub/stage2"... succeeded
Done.

grub> quit

Reboot
==============================================================
发表于 2003-9-26 12:51:52 | 显示全部楼层
我用dos下的grub,感觉跟linux下的一模一样哦,
发表于 2003-9-26 13:45:59 | 显示全部楼层
最初由 xiaoniao9312 发表
我用dos下的grub,感觉跟linux下的一模一样哦,


我倒...

上次在linux下grub没装成,反而把soc unix给搞坏了:mad: ;
这次在FreeBSD下装了一半,也不知我的小BeOS怎样了

你却在用Dos下的grub了...
发表于 2003-9-26 15:31:16 | 显示全部楼层
我按照“浅度历险”里的方法直接用ports就装上了,什么麻烦也没有,也不用软驱,我用的是4.8。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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