Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-09 Thread Matthias Schuendehuette
Hi all,

I'm fighting with the same problem and found that grub *does* recognize 
the disks if started with '--read-only'...

That fits perfectly to the following paragraph found in the 5.0-RELEASE 
Errata:

The geom(4)-based disk partitioning code in the kernel will not allow 
an open partition to be overwritten. This usually prevents the use of 
disklabel -B to update the boot blocks on a disk because the a 
partition overlaps the space where the boot blocks are stored. A 
suggested workaround is to boot from an alternate disk, a CDROM, or a 
fixit floppy.

I can happily boot -current with grub - booting isn't the problem, 
installing it is the problem. And I installed grub from my 4.7-STABLE 
installation... (happy to have one :-)

Grub seems to open disks/slices r/w and refuses to know them if that's 
not possible. I, personally, would say that's a bug of grub but that 
doesn't help here. It even doesn't help, if you run 5.0/-current on 
your base disk because you can't write the MBR anyway.

My question to 'phk' is, if he (or anybody else) has or at least could 
imagine a solution for this problem.

Nothing against 'booteasy', it does the job - but it looks ugly :-)
And I can't imagine that the majority of FreeBSD-Users all have a bunch 
of disks in their systems - especially if I think of the giant sizes of 
HDs nowadays...
-- 
Ciao/BSD - Matthias

Matthias Schuendehuette msch [at] snafu.de, Berlin (Germany)
Powered by FreeBSD 5.0-CURRENT


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-09 Thread David O'Brien
On Sun, Feb 09, 2003 at 06:14:30PM +0100, Matthias Schuendehuette wrote:
 Nothing against 'booteasy', it does the job - but it looks ugly :-)

If that is the only reason to use grub, try osbsbeta.exe that is in the
tools directory of your CDROM or ftp.freebsd.org.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-03 Thread Chris Delnooz
Rumours go that on Monday 03 February 2003 05:33, Jud spoke the following 
words:
 On Sun, 2 Feb 2003 14:02:17 + (GMT), William Palfreman

 [EMAIL PROTECTED] wrote:

snip a lot

 That's what it says at one point in the docs.  At another point it explains
 that no, the 1 isn't extra, and it uses what Chris has in its example
 FreeBSD section for the menu.lst file.  (I used a similar config with GRUB,
 no problems.)

i tried both ways to no avail. The info page actually says the (hd0,a) 
notation is a short-cut for (hd0,1,a), so they should be equivalent. I found 
in some mailing list archive some comments about the bios not providing the 
right hints... tho i think i can rule that out since i've been running grub 
for about three years on this machine both with FBSD4.5, 4.6 and several 
linuxes...


  Also, how new are you to FreeBSD?  You sound quite new.  
not that new :) I came from Mandrake Linux, i've been using FBSD from the 
release of 4.5 until last september. Then i switched to gentoo linux, and 
when FBSD5 was released i thought to give it a shot.

If I were you I
  would use FreeBSD 4.7 instead of 5.0 - I'd only use 5.0 if I were an OS
  developer or there was some feature on 5.0 that I desperately needed -
  like maybe I had a machine with more than 2 CPUs.  I personally have no
  intention of going near 5.x until it is the -stable branch *and*
  everyone else has used it long enough to get the problems out.

in general, i agree with your statement: if i had a machine depending on 
stability, i wouldn't switch :) my gateway still safely runs 4.7... but 
trying new things is kinda exiting, so... :) 


 Dang!  I missed that.  GRUB may not recognize FreeBSD 5.0 disks - does
 anyone know for sure one way or the other?

It looks like running FBSD5 is the only difference between my machine now and 
the machine when i ran 4.6 with grub... does someone know if and how i can 
determine this 100%?

In any case, thanks all who have replied. If i find a solution, i'll make sure 
to post it, in the mean time, i'll be googling until evey piece of info on 
grub is on my pc :P

regards,
Chris


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-02 Thread William Palfreman
On Sat, 1 Feb 2003, Chris Delnooz wrote:

 Hi all,

 i'm experiencing problems with the installation of the GRUB
 bootloader. I have installed the port (grub version 0.92) and created
 the /boot/grub directory with the files from
 /usr/local/share/grub/i381-freebsd. Next I created a menu.lst file in
 /boot/grub and thought to install GRUB in the mbr, so I launch the
 grub shell. My fbsd install is on ad0s2 with / on partition a. If i am
 correct that should be (hd0,1,a) for grub, right? well this is what i
 get:

 grub root (hd0,1,a)

 Error 21: Selected disk does not exist

Probably because you've got an extra 1.  This is what the grub
info file says:

--
GRUB can load the kernel directly, either in ELF or a.out format.
But this is not recommended, since FreeBSD's bootstrap interface
sometimes changes heavily, so GRUB can't guarantee to pass kernel
parameters correctly.
   Thus, we'd recommend loading the very flexible loader `/boot/loader'
instead. See this example:
 grub root (hd0,a)
 grub kernel /boot/loader
 grub boot
-

Anyway, note that Grub is pointing to /boot/loader - you might as well
use that instead of grub.  It is a better bootloader IMO and its the
default.  It configures itself at run time, examining the disk to see
what OSes are available.  Use /stand/sysinstall to put it back on the MBR
(if you have lost it), or if you want to use the slightly harder way,
read the manpage for disklabel.  I never use grub (or lilo) on any
multiboot system when I have the FreeBSD loader available.

Also, how new are you to FreeBSD?  You sound quite new.  If I were you I
would use FreeBSD 4.7 instead of 5.0 - I'd only use 5.0 if I were an OS
developer or there was some feature on 5.0 that I desperately needed -
like maybe I had a machine with more than 2 CPUs.  I personally have no
intention of going near 5.x until it is the -stable branch *and*
everyone else has used it long enough to get the problems out.


Bill.

-- 
W. Palfreman.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-02 Thread Jud
On Sun, 2 Feb 2003 14:02:17 + (GMT), William Palfreman 
[EMAIL PROTECTED] wrote:

On Sat, 1 Feb 2003, Chris Delnooz wrote:


Hi all,

i'm experiencing problems with the installation of the GRUB
bootloader. I have installed the port (grub version 0.92) and created
the /boot/grub directory with the files from
/usr/local/share/grub/i381-freebsd. Next I created a menu.lst file in
/boot/grub and thought to install GRUB in the mbr, so I launch the
grub shell. My fbsd install is on ad0s2 with / on partition a. If i am
correct that should be (hd0,1,a) for grub, right? well this is what i
get:

grub root (hd0,1,a)

Error 21: Selected disk does not exist


Probably because you've got an extra 1.  This is what the grub
info file says:

--
GRUB can load the kernel directly, either in ELF or a.out format.
But this is not recommended, since FreeBSD's bootstrap interface
sometimes changes heavily, so GRUB can't guarantee to pass kernel
parameters correctly.
Thus, we'd recommend loading the very flexible loader `/boot/loader'
instead. See this example:
grub root (hd0,a)
grub kernel /boot/loader
grub boot
-


That's what it says at one point in the docs.  At another point it explains 
that no, the 1 isn't extra, and it uses what Chris has in its example 
FreeBSD section for the menu.lst file.  (I used a similar config with GRUB, 
no problems.)

Also, how new are you to FreeBSD?  You sound quite new.  If I were you I
would use FreeBSD 4.7 instead of 5.0 - I'd only use 5.0 if I were an OS
developer or there was some feature on 5.0 that I desperately needed -
like maybe I had a machine with more than 2 CPUs.  I personally have no
intention of going near 5.x until it is the -stable branch *and*
everyone else has used it long enough to get the problems out.


Dang!  I missed that.  GRUB may not recognize FreeBSD 5.0 disks - does 
anyone know for sure one way or the other?

Jud


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Grub 0.92 fails to recognise disks on FBSD5

2003-02-01 Thread Jud
On Sat, 1 Feb 2003 21:19:02 +0100, Chris Delnooz [EMAIL PROTECTED]
said:
 Hi all,
 
 i'm experiencing problems with the installation of the GRUB bootloader. I
 have 
 installed the port (grub version 0.92) and created the /boot/grub
 directory 
 with the files from /usr/local/share/grub/i381-freebsd. Next I created a 
 menu.lst file in /boot/grub and thought to install GRUB in the mbr, so I 
 launch the grub shell. My fbsd install is on ad0s2 with / on partition a.
 If 
 i am correct that should be (hd0,1,a) for grub, right? well this is what
 i 
 get:
 
 grub root (hd0,1,a)
 
 Error 21: Selected disk does not exist
 
 I looked up the error in the manual and it says:
 This error is returned if the device part of a device- or full filename 
 refers to a disk or BIOS device that is not present or not recognized by
 the 
 BIOS in the system.
 
 which doesn't help me much i'm afraid... dmesg shows my disk as follows:
 ad0: 39266MB IC35L040AVVN07-0 [79780/16/63] at ata0-master UDMA100
 
 does anyone have a clue what's going on here?

Two ideas, though you may want to wait to see if others more
knowledgeable weigh in. Try the steps outlined in the manual regarding
installing from a floppy disk.  If that also runs into problems, try the
device command to tell GRUB what hd0 is.

Jud

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message