Re: how to install OpenBSD in a computer with Linux and Grub2
2010-04-06 8:27 GMT-03:00 Salvador Fandino: > AFAIK, this procedure is not documented in any place and it is quite handy > in order to install OpenBSD on boxes that already have a recent Linux inside > and use grub2 as the boot manager: > Hi, your save my life :-) -- Luiz Gustavo Costa (Powered by BSD) *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+ mundoUnix - Consultoria em Software Livre http://www.mundounix.com.br ICQ: 2890831 / MSN: cont...@mundounix.com.br Tel: 55 (21) 4063-7110 / 8194-1905 / (11) Blog: http://www.luizgustavo.pro.br
Re: how to install OpenBSD in a computer with Linux and Grub2
Hi all . recently i use debian's grub2 as openbsd boot loader . install debian in ext2fs. no swap , if 2GB space ok . ^^ and debian's /etc/grub.d/40_custom #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. #1 menuentry 'openbsd wd11' { #root (hd1,3) set root='(hd1,msdos4)' chainloader +1 } #2 menuentry 'openbsd wd0' { #root (hd0,3) set root='(hd0,msdos4)' chainloader +1 } #3 menuentry 'openbsd install-5.7' { kopenbsd /bsd.rd-57 } #4 menuentry 'openbsd install-snap' { kopenbsd /bsd.rd-snap #2 is used main openbsd . #1 is used as spare or experimental . #3 is used as openbsd 5.7 installer or upgrader . #4 is used as openbsd snapshot installer . in order to **update** bsd.rd-snap ,i run next script on **openbsd**(no need boot debian) . cat bsd-rd.bat umont /mnt-deb mount_ext2fs /dev/wd0i /mnt-deb rm /mnt-deb/bsd.rd wget -c ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/bsd.rd mv bsd.rd /mnt-deb/bsd.rd-snap ls -ltr /mnt-deb/bsd.rd* i use rental server , so this procedure is very convinient . thanks.
Re: how to install OpenBSD in a computer with Linux and Grub2
Just reboot into grub, hit c to get the command line and type kopenbsd /bsd.rd there, no need to edit the config twice On Sun, Jul 12, 2015 at 8:04 AM, tuyosi nakajin.fu...@gmail.com wrote: the main process is install debian , and then isntall openbsd by debian's grub2 1) on debian download bsd.rd to / rewrite /boot/grub/grub.cfg menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { load_video insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 48513cc3-0824-41d2-b0e2-33cefa6dfbc7 echo'Loading Linux 3.2.0-4-amd64 ...' kopenbsd /bsd.rd - echo'Loading initial ramdisk ...' boot - } then boot by 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' then openbsd install begin 2) write /etc/grub.d/40_custom ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ã¼ #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry OpenBSD { set root=(hd0,4) chainloader +1 } and update-grub dual boot machine , happy
Re: how to install OpenBSD in a computer with Linux and Grub2
your oppinion is correct Just reboot into grub, hit c to get the command line and type kopenbsd /bsd.rd there, no need to edit the config twice but i use rental server . so i have no time to hit c . so debian is booted . so i try another way . this install is convinet over network install . if there is not kopenbsd , i first send install57.iso and start to install openbsd . 1 hour or more is costed and whole disk may be ocupied with openbsd only . i want to use debian (typical linux server) also . set root=(hd0,4) is wrong. set root=(hd0,4) is right . and more i easily try snapshots upgrade . -- regards
Re: how to install OpenBSD in a computer with Linux and Grub2
the main process is install debian , and then isntall openbsd by debian's grub2 1) on debian download bsd.rd to / rewrite /boot/grub/grub.cfg menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { load_video insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set=root 48513cc3-0824-41d2-b0e2-33cefa6dfbc7 echo'Loading Linux 3.2.0-4-amd64 ...' kopenbsd /bsd.rd - echo'Loading initial ramdisk ...' boot - } then boot by 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' then openbsd install begin 2) write /etc/grub.d/40_custom ー #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry OpenBSD { set root=(hd0,4) chainloader +1 } and update-grub dual boot machine , happy
Re: how to install OpenBSD in a computer with Linux and Grub2
i found very interesting method that uses linux grub2 to install openbsd . that is written in http://yanmoo.blogspot.jp/2012/04/vpsopenbsd.html. main poin is --- grub kopenbsd /bsd.rd grubboot by this method , i install debian and then oppenbsd in rental server. now openbsd uses whole disk (no debian) and run gui of openbsd . it is very fun!
how to install OpenBSD in a computer with Linux and Grub2
AFAIK, this procedure is not documented in any place and it is quite handy in order to install OpenBSD on boxes that already have a recent Linux inside and use grub2 as the boot manager: 0) do any preparatory work needed: backup your data, resize your partitions, create a new one for OpenBSD, etc. 1) download bsd.rd and move it to the Linux root partition: # wget ftp://ftp.openbsd.org/pub/OpenBSD/4.6/i386/bsd.rd # mv bsd.rd /openbsd.rd 2) add the following entry to /etc/grub.d/40_custom menuentry Install OpenBSD from RAM disk { set root=(hd0,1) kopenbsd /openbsd.rd } replacing (hd0,1) by the partition id corresponding to the Linux root file system. (you may need to modify also /etc/default/grub in order to make grub2 menu visible) 3) regenerate grub configuration: # update-grub 4) reboot: # reboot 5) When the grub menu pops up select Install OpenBSD from RAM disk ... and install OpenBSD Cheers, - Salva
Re: how to install OpenBSD in a computer with Linux and Grub2
Tuesday 06 Apr 2010 ` 13:27:33 (+0200), Salvador Fandino a icrit : AFAIK, this procedure is not documented in any place [...] http://www.openbsd.org/cgi-bin/cvsweb/src/etc/etc.i386/INSTALL.linux?rev=1.15 :-) -- Vivien MOREAU
Re: how to install OpenBSD in a computer with Linux and Grub2
On 04/06/2010 07:27 PM, Salvador Fandino wrote: AFAIK, this procedure is not documented in any place and it is quite handy in order to install OpenBSD on boxes that already have a recent Linux inside and use grub2 as the boot manager: 0) do any preparatory work needed: backup your data, resize your partitions, create a new one for OpenBSD, etc. 1) download bsd.rd and move it to the Linux root partition: # wget ftp://ftp.openbsd.org/pub/OpenBSD/4.6/i386/bsd.rd # mv bsd.rd /openbsd.rd 2) add the following entry to /etc/grub.d/40_custom menuentry Install OpenBSD from RAM disk { set root=(hd0,1) kopenbsd /openbsd.rd } replacing (hd0,1) by the partition id corresponding to the Linux root file system. (you may need to modify also /etc/default/grub in order to make grub2 menu visible) 3) regenerate grub configuration: # update-grub I'm on Gentoo Linux , so i think normally you should try with `grub-mkconfig' e.g grub-mkconfig /tmp/grub.cfg cp /tmp/grub.cfg /boot/grub/grub.cfg Not all system ships with `update-grub' script. 4) reboot: # reboot 5) When the grub menu pops up select Install OpenBSD from RAM disk ... and install OpenBSD Cheers, - Salva -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode
Re: how to install OpenBSD in a computer with Linux and Grub2
On 04/06/2010 01:40 PM, Vivien MOREAU wrote: Tuesday 06 Apr 2010 ` 13:27:33 (+0200), Salvador Fandino a icrit : AFAIK, this procedure is not documented in any place [...] http://www.openbsd.org/cgi-bin/cvsweb/src/etc/etc.i386/INSTALL.linux?rev=1.15 That is a different thing, the procedure there explains how to boot an OpenBSD system from grub once it has been already installed on the machine hard disk. The procedure I have described shows how to *install* OpenBSD booting from a RAM disk (bsd.rd) placed in a Linux partition. Basically it removes the need to create a booting floppy or to burn a CD in order to install OpenBSD. - Salva
Re: how to install OpenBSD in a computer with Linux and Grub2
On Tue, 6 Apr 2010, Salvador Fandino wrote: The procedure I have described shows how to *install* OpenBSD booting from a RAM disk (bsd.rd) placed in a Linux partition. Basically it removes the need to create a booting floppy or to burn a CD in order to install OpenBSD. It documents how to do it using grub2, which is IMHO much more complex than old grub. /Lars