Re[2]: How to boot new kernel

2011-12-12 Thread Igor V. Ruzanov
On Mon, 12 Dec 2011, Коньков Евгений 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-...@yandex.ru
|   wrote:
|
|   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 SizeUsed   Avail Capacity  Mounted on
|
|   /dev/ad8s1a  1G117M809M13%/
|
|   devfs  1.0k1.0k  0B   100%/dev
|
|   /dev/ad8s1e  1G267M660M29%/tmp
|
|   /dev/ad8s1f 39G 23G 13G64%/usr
|
|   /dev/ad8s1d5.8G3.9G1.5G72%/var
|
|   procfs 4.0k4.0k  0B   100%/proc
|
|   devfs  1.0k1.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: ig...@canmos.ru   !
+---+___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

How to boot new kernel

2011-12-11 Thread Коньков Евгений
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 SizeUsed   Avail Capacity  Mounted on
/dev/ad8s1a  1G117M809M13%/
devfs  1.0k1.0k  0B   100%/dev
/dev/ad8s1e  1G267M660M29%/tmp
/dev/ad8s1f 39G 23G 13G64%/usr
/dev/ad8s1d5.8G3.9G1.5G72%/var
procfs 4.0k4.0k  0B   100%/proc
devfs  1.0k1.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)?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[2]: How to boot new kernel

2011-12-11 Thread Коньков Евгений

   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-...@yandex.ru
   wrote:

   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 SizeUsed   Avail Capacity  Mounted on

   /dev/ad8s1a  1G117M809M13%/

   devfs  1.0k1.0k  0B   100%/dev

   /dev/ad8s1e  1G267M660M29%/tmp

   /dev/ad8s1f 39G 23G 13G64%/usr

   /dev/ad8s1d5.8G3.9G1.5G72%/var

   procfs 4.0k4.0k  0B   100%/proc

   devfs  1.0k1.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)?

   --

   S uvazheniem,

Kon'kov  [2]mailto:kes-...@yandex.ru

References

   1. mailto:kes-...@yandex.ru
   2. mailto:kes-...@yandex.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org