From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 6 21:50:03 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC1231065672 for ; Sat, 6 Oct 2012 21:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7F0318FC0C for ; Sat, 6 Oct 2012 21:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q96Lo3fN013672 for ; Sat, 6 Oct 2012 21:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q96Lo3xI013671; Sat, 6 Oct 2012 21:50:03 GMT (envelope-from gnats) Resent-Date: Sat, 6 Oct 2012 21:50:03 GMT Resent-Message-Id: <201210062150.q96Lo3xI013671@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Zbigniew Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E716106564A for ; Sat, 6 Oct 2012 21:41:54 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3A08FC12 for ; Sat, 6 Oct 2012 21:41:54 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q96LfrW3080863 for ; Sat, 6 Oct 2012 21:41:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q96Lfr2K080862; Sat, 6 Oct 2012 21:41:53 GMT (envelope-from nobody) Message-Id: <201210062141.q96Lfr2K080862@red.freebsd.org> Date: Sat, 6 Oct 2012 21:41:53 GMT From: Zbigniew To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/172413: Boot "loader" should accept additional parameters X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 21:50:03 -0000 >Number: 172413 >Category: misc >Synopsis: Boot "loader" should accept additional parameters >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 06 21:50:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Zbigniew >Release: 9.0 >Organization: >Environment: FreeBSD Trurl 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Oct 3 17:39:02 CEST 2012 root@Trurl:/usr/src/sys/i386/compile/GENERIC i386 >Description: Installed recently FreeBSD 9.0 - and I've got a problem: while booting, "loader" somehow gets incorrect currdevice value, stopping boot process. It does get "disk1s6a", but it should be "disk1s7a" ("lsdev" reports such number). I can boot system, when I set currdev "manually", then type "boot". Of course, loader won't read its config files, when not having access to root directory. Having multiple OS-es on HDD, I'm using GRUB for booting. My FreeBSD section looks like: root (hd0,5,a) kernel /boot/loader No, I can't change "root partition" - the solution would be to allow to pass the boot parameters to loader, like this: kernel /boot/loader currdev=disk1s7a I mean: each variable, that can be later examined by "show", should be possible to be changed in such GRUBs command-line, by passing sequence of such parameters, separated by spaces. Such ability is present since years in Linux - no problem there with passing boot parameters - why not in FreeBSD? BTW: I would to mention here, that at least two essential utilities - I mean boot0cfg and dumpon - (but maybe more of them) have "artifically" imposed a limit to handle at most fourth partition. It's an obvious nonsense, since I've got by now FreeBSD installed - and working - on "logical partition" 6 created inside "physical partition" 4. Why the most essential tools are ignoring the fact, that nowadays we're able to have - say - 20 partitions, not just four? The man page for dumpon is signed "12 may 1995", which suggests to me, that this utility has been left untouched since that time. Maybe 17 years ago keeping the limit "four partitions" was reasonable, but today HDDs of terabyte capacity aren't anything extraordinary. Time, and the work conditions, have changed - therefore such changes should be reflected in such basic tools, needed for proper disk partitioning and setting the boot process. I would to add, that on the very same partition I had a few days ago NetBSD installation, which had no problem with the partition number whatsoever. I've replaced Net- with FreeBSD, and since the very start such strange problems "we don't like your partitions schema". Almost twenty years later it's still not possible to install FreeBSD onto chosen partition the straight way, and then to run the system without additional "adventures". Being very essential thing, this really needs a fix! >How-To-Repeat: Just by booting FreeBSD from some "unusul" partition (the one with "high" number) >Fix: >Release-Note: >Audit-Trail: >Unformatted: