[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Grub and BSD-style partition
From: |
Arnaud Lacombe |
Subject: |
Grub and BSD-style partition |
Date: |
Sat, 1 Apr 2006 02:58:42 +0200 |
User-agent: |
mutt-ng/devel-r796 (FreeBSD) |
Hi,
I try to use grub on NetBSD. It was working without any problem until I
change hard drive and re-setup my OSs. In fact, the drive contain 3 OSs:
- a windows (at the beginning)
- a freebsd
- a netbsd
I'm using Grub 0.97 from netbsd's pkgsrc. It fails to read stage1
correctly, here is the message returned by grub:
grub> dump (hd0,h)/grub/stage1 /tmp/grub-install.img.12734
Error 22: No such partition
NetBSD is my main OS and I wish to install grub from it but it seems
that grub is unable to access the partition. Here is my partition
scheme:
# fdisk wd0
[...]
Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 63, size 16783137 (8195 MB, Cyls 0-1110)
1: FreeBSD or 386BSD or old NetBSD (sysid 165)
start 16783200, size 21082005 (10294 MB, Cyls 1110-2504/75/1)
2: NetBSD (sysid 169)
start 37865205, size 40377771 (19716 MB, Cyls 2504/75/1-5174/192/1), Active
# disklabel wd0
[...]
16 partitions:
a: 1064960 16783200 4.2BSD 2048 16384 0 # (Cyl. 16650 - 17706*)
b: 532480 17848160 swap # (Cyl. 17706*- 18234*)
c: 40377771 37865205 unused 0 0 # (Cyl. 37564*- 77621)
d: 78242976 0 unused 0 0 # (Cyl. 0 - 77621)
e: 2211840 24688480 4.2BSD 2048 16384 0 # (Cyl. 24492*- 26686*)
f: 532480 26900320 4.2BSD 2048 16384 0 # (Cyl. 26686*- 27215*)
g: 10432405 27432800 4.2BSD 2048 16384 0 # (Cyl. 27215*- 37564*)
h: 1049328 37865205 4.2BSD 1024 8192 43728 # (Cyl. 37564*- 38605*)
i: 533232 38914533 swap # (Cyl. 38605*- 39134*)
j: 6291936 39447765 4.2BSD 2048 16384 27000 # (Cyl. 39134*- 45376*)
k: 2097648 45739701 4.2BSD 2048 16384 21872 # (Cyl. 45376*- 47457*)
l: 2097648 47837349 4.2BSD 2048 16384 21872 # (Cyl. 47457*- 49538*)
m: 28057680 49934997 4.2BSD 2048 16384 27992 # (Cyl. 49538*- 77373*)
The root of netbsd is on wd0h. Grub is unable to access partition >=
wd0g. It seems to break somewhere in real_open_partition() in
stage2/disk_io.c. I didn't dig deeper by now.
does anyone have any idea about how I can install grub correctly ?
regards,
Arnaud
ps: could you CC: me when you reply, I didn't subscribe to the list.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Grub and BSD-style partition,
Arnaud Lacombe <=