From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 08:22:54 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 7168E106564A for ; Mon, 12 Dec 2011 08:22:54 +0000 (UTC) (envelope-from igorr@canmos.ru) Received: from sta1.canmos.ru (sta1.canmos.ru [89.107.124.11]) by mx1.freebsd.org (Postfix) with ESMTP id E64C68FC16 for ; Mon, 12 Dec 2011 08:22:53 +0000 (UTC) Received: from sta1.canmos.ru (sta1.canmos.ru [89.107.124.11]) by sta1.canmos.ru (Postfix) with ESMTP id 2FB76127A43; Mon, 12 Dec 2011 12:03:06 +0400 (MSK) Date: Mon, 12 Dec 2011 12:03:06 +0400 (MSK) From: "Igor V. Ruzanov" To: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= In-Reply-To: <786057323.20111212094846@yandex.ru> Message-ID: References: <179332448.20111211224116@yandex.ru> <786057323.20111212094846@yandex.ru> X-GPG-PUBLIC-KEY: 1024D/494AF6DC 2008-03-20 Igor V. Ruzanov X-GPG-FINGERPRINT: A723 B6CC 11ED A4E2 1909 C4DC 6EDE 9089 494A F6DC MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1800997756-1146564513-1323676986=:24648" Cc: freebsd-questions@freebsd.org, krad Subject: Re[2]: How to boot new kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 08:22:54 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1800997756-1146564513-1323676986=:24648 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 12 Dec 2011, =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA wrote: | | HI, krad. | | How I can figure out the correspondence of bios drive number and | freebsd numbering? | | > | | Have a look at boot.config file you should be able to do something | there | | On Dec 11, 2011 8:57 PM, "Kon'kov Evgenij" <[1]kes-kes@yandex.ru> | wrote: | | Hi Freebsd-questions. | | In system two disks now: | | # kenv | grep dev | | currdev=3D"disk1s1a:" | | loaddev=3D"disk1s1a:" | | loader_conf_files=3D"/boot/device.hints /boot/loader.conf | /boot/loader.conf.local" | | vfs.root.mountfrom=3D"ufs:/dev/ad8s1a" | | kern.devalias.ada0=3D"ad4" | | kern.devalias.ada1=3D"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=3D"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)? | You can specify an alternative slice on the next boot: boot0cfg -s XXX adYYY where XXX - slice number, YYY - disk number +-------------------------------------------+ ! CANMOS ISP Network ! +-------------------------------------------+ ! Best regards ! ! Igor V. Ruzanov, network operational staff! ! e-Mail: igorr@canmos.ru ! +-------------------------------------------+ --1800997756-1146564513-1323676986=:24648--