You are not logged in.

#1 2007-09-05 15:48:19

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Multiple boot problems (GRUB) [[SOLVED!!]]

Recently installed PC-BSD 1.4RC sucessfully, but my problem is that not like adding the line of PC-BSD to menu.lst
The command fdisk show me:

$ sudo fdisk -l

Disco /dev/sda: 320.0 GB, 320071851520 bytes
255 cabezas, 63 sectores/pista, 38913 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1               1       13453   108061191    7  HPFS/NTFS
/dev/sda2           13454       36578   185751562+   f  W95 Ext'd (LBA)
/dev/sda3   *       36579       38913    18755383+  a5  FreeBSD
La partición 3 no termina en un límite de cilindro.
/dev/sda5           13454       13526      586341   82  Linux swap / Solaris
/dev/sda6           13527       16565    24410736   83  Linux
/dev/sda7           16566       21094    36379161    7  HPFS/NTFS
/dev/sda8           21095       26844    46186843+   b  W95 FAT32
/dev/sda9           26845       36578    78188323+   7  HPFS/NTFS

Trying add....root (hd0,1,a) (hd0,2,a) (hd0,3,a) (hd0,4,a) (hd0,5,a) (hd0,6,a) and NOT works.:(
Help friends! Thanxs in advance.

Last edited by jack (2007-09-06 03:09:05)

Offline

#2 2007-09-05 15:56:37

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

Should be simply just hd(0,2) - without the letters I think...

/dev/sda1           hd(0,0)
/dev/sda2           hd(0,1)
/dev/sda3   *      hd(0,2)

and so on...

Offline

#3 2007-09-05 16:38:55

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

I try root (hd0,2) without letters but NOT works.:(

Offline

#4 2007-09-05 19:14:32

erm67
Member
From: Europe
Registered: 2007-08-01
Posts: 123

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

jack wrote:

I try root (hd0,2) without letters but NOT works.:(

try to start grub with the --device-map parameter like:

grub --device-map=

then

grub> find /grub/stage1
 (hd0,4)

grub> find /boot/grub/stage1

Error 15: File not found

grub>

will show you the exact name of the partition that contains the grub directory (or the /boot/grub if it not on a separate partition)

Offline

#5 2007-09-05 23:43:02

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

title PC-BSD 1.4
root (hd0,2,a)
kernel /boot/loader
boot

Receive this error:

root (hd0,2,a)
filesystem type unknown, partition type 0xa5
kernel /boot/loader

Error 17: Cannot mount selected partition

Press any key to continue.......

What´s wrong??:(

Offline

#6 2007-09-06 00:02:03

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

jack wrote:
title PC-BSD 1.4
root (hd0,2,a)
kernel /boot/loader
boot

Receive this error:

root (hd0,2,a)
filesystem type unknown, partition type 0xa5
kernel /boot/loader

Error 17: Cannot mount selected partition

Press any key to continue.......

What´s wrong??:(

That only works to boot linux kernels, and grub doesnt support the bsd filesystem.

Typically bsd (freebsd and obsd do afaik) installs a loader on it's partition start, so you can just chain load:

# BSD
title BSD
rootnoverify (hd0,0)
makeactive
chainloader +1

Fix the rootnoverify to the correct root for your bsd, and it should work a treat.

James

Offline

#7 2007-09-06 03:12:23

jack
Member
From: /usr/arg
Registered: 2005-11-17
Posts: 66

Re: Multiple boot problems (GRUB) [[SOLVED!!]]

iphitus wrote:

Typically bsd (freebsd and obsd do afaik) installs a loader on it's partition start, so you can just chain load:

# BSD
title BSD
rootnoverify (hd0,0)
makeactive
chainloader +1

Fix the rootnoverify to the correct root for your bsd, and it should work a treat.

James

You are sooooo GREAT James!!:D:)
Solved the problem with adding this lines at final of menu.lst:

title PC-BSD 1.4
rootnoverify (hd0,2)
makeactive
chainloader +1

Many thanxs iphitus!!! Best regards!:D;)

Offline

Board footer

Powered by FluxBB