From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 05:59:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5714837B401 for ; Sun, 8 Jun 2003 05:59:13 -0700 (PDT) Received: from shell.spyder.web.za (shell.spyder.web.za [193.201.200.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE1CB43F85 for ; Sun, 8 Jun 2003 05:59:12 -0700 (PDT) (envelope-from ljb@neverborn.org) Received: from ljb by shell.spyder.web.za with local (Exim 3.36 #1) id 19OzlP-0009s2-00 for freebsd-questions@freebsd.org; Sun, 08 Jun 2003 13:59:11 +0100 Date: Sun, 8 Jun 2003 13:59:11 +0100 From: "leon j. breedt" To: freebsd-questions@freebsd.org Message-ID: <20030608125911.GA37790@shell.spyder.web.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: leon j breedt Subject: GRUB 0.92 on FreeBSD 5.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 12:59:13 -0000 hi, is it a new feature of 5.x disallowing direct writes to the device nodes /dev/ad*? getting weird behaviour trying to use the GRUB 0.92 port on all versions of 5.x i've used so far (currently on 5.1-RELEASE). the problem being that i can't see any disks in the 'grub' shell. the 'device' command works, and then a subsequent command like 'root' still fails with "No such disk". i've tracked down the problem to a call in the GRUB source where its trying to open(2) the device node /dev/ad0 with O_RDWR which fails with EPERM, which causes GRUB to delete the drive from its device map without any warning, just silent failure. i am running the 'grub' executable as root though. when i patch that section of the source file (asmstub.c, function get_diskinfo()) to accept EPERM and only open in read-only mode, suddenly i can see my drives. but obviously anything wanting to modify the drive, like 'setup', fails. is my only recourse to install GRUB from floppy when using it from FreeBSD? please cc me on replies, i'm not subscribed to -questions. thanks leon