From owner-freebsd-questions@FreeBSD.ORG Sun Dec 11 20:57:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3E8D106566B for ; Sun, 11 Dec 2011 20:57:21 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward9.mail.yandex.net (forward9.mail.yandex.net [77.88.61.48]) by mx1.freebsd.org (Postfix) with ESMTP id 6ABA38FC13 for ; Sun, 11 Dec 2011 20:57:21 +0000 (UTC) Received: from smtp7.mail.yandex.net (smtp7.mail.yandex.net [77.88.61.55]) by forward9.mail.yandex.net (Yandex) with ESMTP id 94725CE0DE4 for ; Mon, 12 Dec 2011 00:41:24 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1323636084; bh=mIeS+Lds361bw/sYPA3QQlostz6k51GBZfXu8mcsWhM=; h=Date:From:Reply-To:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=XO1c/s4YbG47FGudfLUZdYusGQiEmJlCLVKLTO6j7oI+AJfCPS5MDDWFdrf2E7ha1 rtnB/d4+wuAd9mimwtHxA2Z/y4uipvvzNyB2bZyNIekgrMMjlBmKEWHGiyQR4U4yhq CPrGH+Uvm+VlZ5p79AiKW6YJQURSs/QT4ffajjlA= Received: from smtp7.mail.yandex.net (localhost [127.0.0.1]) by smtp7.mail.yandex.net (Yandex) with ESMTP id 6F6EE1580446 for ; Mon, 12 Dec 2011 00:41:24 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1323636084; bh=mIeS+Lds361bw/sYPA3QQlostz6k51GBZfXu8mcsWhM=; h=Date:From:Reply-To:Message-ID:To:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding; b=XO1c/s4YbG47FGudfLUZdYusGQiEmJlCLVKLTO6j7oI+AJfCPS5MDDWFdrf2E7ha1 rtnB/d4+wuAd9mimwtHxA2Z/y4uipvvzNyB2bZyNIekgrMMjlBmKEWHGiyQR4U4yhq CPrGH+Uvm+VlZ5p79AiKW6YJQURSs/QT4ffajjlA= Received: from unknown (unknown [77.93.52.20]) by smtp7.mail.yandex.net (nwsmtp/Yandex) with ESMTP id fNtSC5Qp-fOt4YXVw; Mon, 12 Dec 2011 00:41:24 +0400 X-Yandex-Spam: 1 Date: Sun, 11 Dec 2011 22:41:16 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <179332448.20111211224116@yandex.ru> To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Subject: How to boot new kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2011 20:57:21 -0000 Hi Freebsd-questions. In system two disks now: # kenv | grep dev currdev="disk1s1a:" loaddev="disk1s1a:" loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local" vfs.root.mountfrom="ufs:/dev/ad8s1a" kern.devalias.ada0="ad4" kern.devalias.ada1="ad8" one was with installed FreeBSD (ad4) and second is empty (ad8) I install new system to ad8 and add to (ad4) /boot/loader.conf next line: vfs.root.mountfrom="ufs:/dev/ad8s1a" so next time I booted from second hdd. But now I have problem. How to boot kernel from second device instead of first one. BIOS starts to run loader from first device (ad4) and kernel is booted from it but all other is mounted from (ad8) # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad8s1a 1G 117M 809M 13% / devfs 1.0k 1.0k 0B 100% /dev /dev/ad8s1e 1G 267M 660M 29% /tmp /dev/ad8s1f 39G 23G 13G 64% /usr /dev/ad8s1d 5.8G 3.9G 1.5G 72% /var procfs 4.0k 4.0k 0B 100% /proc devfs 1.0k 1.0k 0B 100% /var/named/dev so in memory I have old kenel uname -a shows that #0: Sat Nov 12 20:17:02 EET 2011 (I have compiled new kenel on 2011 12 03 ) but on disk all is new: kernel and world. How to force to load kernel from second drive (without access to machine directly)?