|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||||
How start OpenBSD using Grub2?
/etc/grub.d/40_custom
Code:
#!/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=(hd1,4) chainloader +1 } Quote:
Quote:
As you see previously during the update is never listed OpenBSD and, in effect, during the reboot that entry is never present. I have tried even these combinations: 1) Quote:
Quote:
Quote:
The OS is on the sdb1 (for linux) and wd1 (for openbsd) and i use all the hdd. Where i'm wrong? Last edited by aleunix; 4th March 2012 at 11:03 AM. |
|
|||
Grub2 counts hard discs from zero but partitions from one! So what has been (hd0,1) in old Grub is now (hd0,2).
Previous NetBSD thread which should work for OpenBSD Useful link OpenBSD boot process for i386 and AMD. In particular Quote:
|
|
|||
Ok i have read that links but without result.
$ sudo fdisk -l Code:
... Dispositivo Boot Start End Blocks Id System /dev/sdb4 * 1 788 6329578 a6 OpenBSD Quote:
Code:
Disco /dev/sdb: 255 testine, 63 settori, 788 cilindri Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID 1 00 0 0 0 0 0 0 0 0 00 2 00 0 0 0 0 0 0 0 0 00 3 00 0 0 0 0 0 0 0 0 00 4 80 1 2 0 254 63 787 64 12659156 a6 Code:
$ sudo os-prober /dev/sda10:Scientific Linux release 6.2 (Carbon):RedHat:linux I'm a lot discouraged everytime there is a problem sufficient for block the use of OpenBSD on this computer. On the old one, i use Grub 1, because i installed it years ago, and worked from the start so i haven't an idea from another working system using Grub 2. Last edited by aleunix; 4th March 2012 at 04:49 PM. |
|
|||
This entry, in the older partitioning scheme, looks correct to me
Quote:
Quote:
1) Would you need an OpenBSD gpt table entry? 2) Where did the Partition Boot Record go in your OpenBSD install? |
|
|||
I have made a normal install on Linux.
Converting to GPT in Ubuntu Quote:
Also reading Fun with GPT partitioning Quote:
$ sudo fdisk -l /dev/sdb Code:
Disco /dev/sdb: 6488 MB, 6488294400 byte 255 testine, 63 settori/tracce, 788 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Identificativo disco: 0x00000000 Dispositivo Boot Start End Blocks Id System /dev/sdb4 * 1 788 6329578 a6 OpenBSD 2) During the installation i have specify wd1 (the second hdd where i have installed openbsd). Last edited by aleunix; 5th March 2012 at 07:55 AM. |
|
|||
Now i try even:
set root=(hd1,1) naturally without success. |
|
|||
Quote:
|
|
|||
Using the Cd and entering on the system using the Shell i noted one thing strange.
During the installation was said i have two hdd: wd0 (my main hdd with linux partions) wd1 (my secondary hdd where i have put openbsd) While entering i don't found wd1. #disklabel rd0 Code:
# /dev/rrd0c: type: unknown disk: rdroot label: duid: 81cf6d344b7cfed7 flags: bytes/sector: 512 sectors/track: 128 tracks/cylinder: 2 sectors/cylinder: 256 cylinders: 16 total sectors: 3872 boundstart: 0 boundend: 3872 drivedata: 0 3 partitions: # size offset fstype [fsize bsize cpg] a: 3872 0 4.2BSD 512 4096 1 c: 3872 0 unused Code:
Disk: rd0 geometry: 1/1/3872 [3872 Sectors] Offset: 0 Signature: 0x0 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused #fdisk -u rd0 but during the boot don't start the same. Now i made another update-grub from linux but on the generation of the grub2 i don't see the same the voice for openbsd. I made a restart and, naturally, don't work. I don't understand what happened. On this secondary hdd for remove linux during the installation i said use the Whole disc while from the above command seem that the partition for openbsd was created but i don't see any partition inside it. Inside the dmesg I have wd1 for the secondary hdd: Quote:
Last edited by aleunix; 6th March 2012 at 07:53 AM. |
|
|||
I made a new installation.
I saved the output where now I see wd1. #fdisk wd1 Code:
Disk: wd1 geometry: 788/255/63 [12672450 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused *3: A6 0 1 2 - 787 254 63 [ 64: 12659156 ] OpenBSD Code:
# /dev/rwd1c: type: ESDI disk: ESDI/IDE disk label: FUJITSU MPD3064A duid: 4a9473fedc33f0c4 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 788 total sectors: 12672450 boundstart: 64 boundend: 12659220 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 208768 64 4.2BSD 2048 16384 1 # /mnt b: 128533 208832 swap c: 12672450 0 unused d: 208832 337376 4.2BSD 2048 16384 1 # /mnt/tmp e: 128512 546208 4.2BSD 2048 16384 1 # /mnt/var f: 2088448 674720 4.2BSD 2048 16384 1 # /mnt/home g: 9896032 2763168 4.2BSD 2048 16384 1 # /mnt/usr sudo update-grub but during the regeneration of the menu i don't see OpenBSD so, probably, even this time, nothing. Well, again,don't work! Last edited by aleunix; 7th March 2012 at 12:27 PM. |
|
|||
I suggest you boot straight into OpenBSD by selecting it from the bios to ensure it boots.
I would also suggest you take a look at how you wired the hard drives. I, for instance, would place my drives in order (sata 1-4) so there is no second guessing as to which drives are which. Grub and linux are on my first drive (sata 1) and OpenBSD is on my second drive (sata 2). So this would be correct in my case for grub2 entry: menuentry "OpenBSD" { set root=(hd1,4) chainloader +1 } However, at the time my set root was (hd1,x) so from grub2 I kept playing with combinations until it booted. In your case since you are not seeing a menu entry whatsoever you should edit /boot/grub/grub.cfg directly to ensure you can at least select it from grub2 and adjust (hdx,x) to get it to boot if needed be. |
|
|||
I tried even this one:
Code:
menuentry "OpenBSD" { insmod ufs set root=(hd1,4,a) chainloader +1 } |
|
|||
You are in over my head but I can tell you the OpenBSD default file system is ffs
Quote:
Last edited by shep; 7th March 2012 at 06:50 PM. Reason: correct quote brackets |
|
|||
Quote:
Quote:
Quote:
On this particular case, on the worst case scenario, i can make an exception where i have a 100 mb primary partition that i can reuse, but given that i installed the boot loader automatically during the installation of Linux i don't known how install something different from zero. |
|
|||
Quote:
I am not sure about lilo. If you install Arch Linux you actually get the option to use any of the four boot loader's or none at all if you already have a boot loader installed. The BSD's all have their own boot loaders and my understanding is that they are all different. I believe the FreeBSD 9.0 bootloader will multiboot and on a recent install for me went into a hard drive with a gpt table. |
|
||||
Now that aleunix has confirmed OpenBSD can be booted from the BIOS, this problem's root cause is either a Grub2 configuration problem, a Grub2 usage problem, or a Grub2 software problem.
I recommend obtaining support from the appropriate GNU mailing list. http://www.gnu.org/software/grub/ |
|
|||
|
Tags |
boot, grub2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD how to start (basic setup) | wesley | Guides | 4 | 18th July 2012 06:29 PM |
Grub2 and NetBSD | Ninguem | NetBSD General | 0 | 29th July 2011 03:48 AM |
Grub2 sucks. NetBSD won't load. | Mr-Biscuit | NetBSD General | 6 | 10th March 2011 09:36 PM |
Start problem after the installation of OpenBSD 4.6 | aleunix | OpenBSD Installation and Upgrading | 12 | 21st December 2009 06:59 PM |
start KDE on OpenBSD LiveCD | ccc | OpenBSD Installation and Upgrading | 5 | 3rd November 2008 10:24 PM |