Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
On 11/17/13 14:02, Nick Holland wrote: On 11/17/13 12:53, Wesley MOUEDINE ASSABY wrote: Le 2013-11-17 20:27, dmitry.sensei a écrit : What about 1Tb disk? Is CHS mode correct for this disks? I done the test using Virtualization. Not tried with a physical hard drive 1 TB. The smallest common non-SSD laptop drive is probably around 500G now, and 1TB is routine on desktops. At least some (many? most?) of these machines are now shipping with UEFI boot, and a lot of them will be pre-loaded with Windows, with minimal resources to reload Windows from scratch. The target (and worst-case) audience is the person who bought a laptop or desktop pre-loaded with Windows 8, and wants to install OpenBSD with as little disruption to the existing system as possible. I appreciate the efforts, but we need something more comprehensive. Sounds like I need to go buy a modern Windows system. :-/ Although your FAQ warns about keeping the OpenBSD partition within the first 128G, this limit will be a showstopper for people unable to shrink the preloaded windows partition below 128G. I've appended a patch (with help from krw) that helped me double the limit in July,2011 after the Extended partition support changes[1] were added. [1]http://marc.info/?l=openbsd-techm=130082509621274w=2 Index: biosvar.h === RCS file: /a8v/pub/cvsroot/OpenBSD/src/sys/arch/amd64/include/biosvar.h,v retrieving revision 1.14 diff -u -p -w -b -u -r1.14 biosvar.h --- biosvar.h 26 Apr 2011 17:33:17 - 1.14 +++ biosvar.h 27 Apr 2011 12:03:05 - @@ -36,7 +36,7 @@ #defineBOOTARG_OFF (NBPG*2) #defineBOOTARG_LEN (NBPG*1) #defineBOOTBIOS_ADDR (0x7c00) -#defineBOOTBIOS_MAXSEC ((1 28) - 1) +#defineBOOTBIOS_MAXSEC ((1 29) - 1) /* BIOS configure flags */ #defineBIOSF_BIOS320x0001
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
What about 1Tb disk? Is CHS mode correct for this disks? 17.11.2013 20:20 полÑзоваÑÐµÐ»Ñ Wesley MOUEDINE ASSABY open...@e-solutions.re напиÑал: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows http://www.chrysocome.net/dd Unzip dd-0.6beta3 and do : open cmd as administrator and do: dd --list # this will list device (we are looking for partition 2 (openbsd) dd if=\\?\Device\Harddisk0\Partition2 of=openbsd.pbr bs=512 count=1 # This record OpenBSD PBR Copy the file openbsd.pbr to the root c: -4- Modify boot.ini using bcdedit In a cmd console (need administrator rights) bcdedit /create /d OpenBSD 5.4 /application boot sector # copy the identifier and paste it to the 4 following lines # For me, identifier is : {0eae31b8-4f98-11e3-8260-00264aa3d5ac} bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device boot bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} path \openbsd.pbr bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=c: bcdedit /displayorder {0eae31b8-4f98-11e3-8260-00264aa3d5ac} /addlast -5- Reboot, you re done! As Dmitri said, windows 8.1 load graphical before you have the boot choice. And when you choose OpenBSD, the box reboot and load OpenBSD. I hope this helps!! If you want i can do a better how-to with snapshots, and put it on the web. Or contribute to the FAQ!* Cheers, Wesley MOUEDINE ASSABY http://www.mouedine.net
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
Le 2013-11-17 20:27, dmitry.sensei a écrit : What about 1Tb disk? Is CHS mode correct for this disks? I done the test using Virtualization. Not tried with a physical hard drive 1 TB. 17.11.2013 20:20 пользователь Wesley MOUEDINE ASSABY open...@e-solutions.re написал: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows http://www.chrysocome.net/dd [1] Unzip dd-0.6beta3 and do : open cmd as administrator and do: dd --list # this will list device (we are looking for partition 2 (openbsd) dd if=\?DeviceHarddisk0Partition2 of=openbsd.pbr bs=512 count=1 # This record OpenBSD PBR Copy the file openbsd.pbr to the root c: -4- Modify boot.ini using bcdedit In a cmd console (need administrator rights) bcdedit /create /d OpenBSD 5.4 /application boot sector # copy the identifier and paste it to the 4 following lines # For me, identifier is : {0eae31b8-4f98-11e3-8260-00264aa3d5ac} bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device boot bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} path openbsd.pbr bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=c: bcdedit /displayorder {0eae31b8-4f98-11e3-8260-00264aa3d5ac} /addlast -5- Reboot, you re done! As Dmitri said, windows 8.1 load graphical before you have the boot choice. And when you choose OpenBSD, the box reboot and load OpenBSD. I hope this helps!! If you want i can do a better how-to with snapshots, and put it on the web. Or contribute to the FAQ!* Cheers, Wesley MOUEDINE ASSABY http://www.mouedine.net [2] Links: -- [1] http://www.chrysocome.net/dd [2] http://www.mouedine.net
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
For more details: #On windows 8.1 side: C:\Users\wesley\Desktopdiskpart Microsoft DiskPart version 6.3.9600 Copyright (C) 1999-2013 Microsoft Corporation. Sur l'ordinateur : WIN-FP7P8RGJ41R DISKPART list disk N° disque Statut Taille LibreDyn GPT - - --- --- --- --- Disque 0En ligne 15 G octets 7168 K octets DISKPART select disk 0 Le disque 0 est maintenant le disque sélectionné. DISKPART list partition N° partition Type Taille Décalage - --- Partition 1Principale 13 G 1024 K Partition 2Principale1016 M 14 G C:\Users\wesley\Desktopdd --list rawwrite dd for windows version 0.6beta3. Written by John Newbigin j...@it.swin.edu.au This program is covered by terms of the GPL Version 2. Win32 Available Volume Information \\.\Volume{7eb8fac6-3a97-11e3-8250-806e6f6e6963}\ link to \\?\Device\HarddiskVolume1 fixed media Mounted on \\.\c: \\.\Volume{7eb8facf-3a97-11e3-8250-806e6f6e6963}\ link to \\?\Device\Floppy0 removeable media Mounted on \\.\a: \\.\Volume{7eb8face-3a97-11e3-8250-806e6f6e6963}\ link to \\?\Device\CdRom0 CD-ROM Mounted on \\.\d: NT Block Device Objects \\?\Device\CdRom0 size is 2147483647 bytes \\?\Device\Floppy0 \\?\Device\Harddisk0\Partition0 link to \\?\Device\Harddisk0\DR0 Fixed hard disk media. Block size = 512 size is 16106127360 bytes \\?\Device\Harddisk0\Partition1 link to \\?\Device\HarddiskVolume1 \\?\Device\Harddisk0\Partition2 link to \\?\Device\HarddiskVolume2 Fixed hard disk media. Block size = 512 size is 1065503744 bytes C:\Windows\system32bcdedit Gestionnaire de démarrage Windows - identificateur {bootmgr} device partition=C: description Windows Boot Manager locale fr-FR inherit {globalsettings} integrityservices Enable default {current} resumeobject{d12fb8de-3a9f-11e3-87ed-8386d37742c1} displayorder{current} {0eae31b8-4f98-11e3-8260-00264aa3d5ac} toolsdisplayorder {memdiag} timeout 30 Chargeur de démarrage Windows - identificateur {current} device partition=C: path\Windows\system32\winload.exe description Windows 8.1 locale fr-FR inherit {bootloadersettings} recoverysequence{d12fb8e0-3a9f-11e3-87ed-8386d37742c1} integrityservices Enable recoveryenabled Yes allowedinmemorysettings 0x1575 osdevicepartition=C: systemroot \Windows resumeobject{d12fb8de-3a9f-11e3-87ed-8386d37742c1} nx OptIn bootmenupolicy Standard Secteur de démarrage en mode réel - identificateur {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=C: path\openbsd.pbr description OpenBSD 5.4 #On OpenBSD side: # fdisk sd0 Disk: sd0 geometry: 1958/255/63 [31457280 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- *0: 07 0 32 33 - 1827 116 17 [2048:29356032 ] NTFS 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: A6 1828 117 18 - 1957 254 63 [29374208: 2081062 ] OpenBSD # disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: VMware Virtual S duid: 5a595447d111e24a flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1958 total sectors: 31457280 boundstart: 29374208 boundend: 31455270 drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] a: 2046720 29374208 4.2BSD 2048 163841 # / b:34332 31420928swap # none c: 314572800 unused i: 29356032 2048NTFS 17.11.2013 20:20 пользователь Wesley MOUEDINE ASSABY open...@e-solutions.re написал: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
On 11/17/13 12:53, Wesley MOUEDINE ASSABY wrote: Le 2013-11-17 20:27, dmitry.sensei a écrit : What about 1Tb disk? Is CHS mode correct for this disks? I done the test using Virtualization. Not tried with a physical hard drive 1 TB. The smallest common non-SSD laptop drive is probably around 500G now, and 1TB is routine on desktops. At least some (many? most?) of these machines are now shipping with UEFI boot, and a lot of them will be pre-loaded with Windows, with minimal resources to reload Windows from scratch. The target (and worst-case) audience is the person who bought a laptop or desktop pre-loaded with Windows 8, and wants to install OpenBSD with as little disruption to the existing system as possible. I appreciate the efforts, but we need something more comprehensive. Sounds like I need to go buy a modern Windows system. :-/ Nick. 17.11.2013 20:20 пользователь Wesley MOUEDINE ASSABY open...@e-solutions.re напи�ал: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows http://www.chrysocome.net/dd [1] Unzip dd-0.6beta3 and do : open cmd as administrator and do: dd --list # this will list device (we are looking for partition 2 (openbsd) dd if=\?DeviceHarddisk0Partition2 of=openbsd.pbr bs=512 count=1 # This record OpenBSD PBR Copy the file openbsd.pbr to the root c: -4- Modify boot.ini using bcdedit In a cmd console (need administrator rights) bcdedit /create /d OpenBSD 5.4 /application boot sector # copy the identifier and paste it to the 4 following lines # For me, identifier is : {0eae31b8-4f98-11e3-8260-00264aa3d5ac} bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device boot bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} path openbsd.pbr bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=c: bcdedit /displayorder {0eae31b8-4f98-11e3-8260-00264aa3d5ac} /addlast -5- Reboot, you re done! As Dmitri said, windows 8.1 load graphical before you have the boot choice. And when you choose OpenBSD, the box reboot and load OpenBSD. I hope this helps!! If you want i can do a better how-to with snapshots, and put it on the web. Or contribute to the FAQ!* Cheers, Wesley MOUEDINE ASSABY http://www.mouedine.net [2] Links: -- [1] http://www.chrysocome.net/dd [2] http://www.mouedine.net
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
Thanks for all the details, Wesley.
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
Le 2013-11-17 23:02, Nick Holland a écrit : On 11/17/13 12:53, Wesley MOUEDINE ASSABY wrote: Le 2013-11-17 20:27, dmitry.sensei a écrit : What about 1Tb disk? Is CHS mode correct for this disks? I done the test using Virtualization. Not tried with a physical hard drive 1 TB. The smallest common non-SSD laptop drive is probably around 500G now, and 1TB is routine on desktops. At least some (many? most?) of these machines are now shipping with UEFI boot, and a lot of them will be pre-loaded with Windows, with minimal resources to reload Windows from scratch. The target (and worst-case) audience is the person who bought a laptop or desktop pre-loaded with Windows 8, and wants to install OpenBSD with as little disruption to the existing system as possible. I appreciate the efforts, but we need something more comprehensive. Sounds like I need to go buy a modern Windows system. :-/ I can make the test on hardware at work with a 1TB SATA on a HP Proliant ML110. Do you want absolutely UEFI ? If it is the case, so i will try on a recent laptop. But this time with 500GB SATA 25. You re welcome. Nick. 17.11.2013 20:20 пользователь Wesley MOUEDINE ASSABY open...@e-solutions.re напиÑал: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows http://www.chrysocome.net/dd [1] Unzip dd-0.6beta3 and do : open cmd as administrator and do: dd --list # this will list device (we are looking for partition 2 (openbsd) dd if=\?DeviceHarddisk0Partition2 of=openbsd.pbr bs=512 count=1 # This record OpenBSD PBR Copy the file openbsd.pbr to the root c: -4- Modify boot.ini using bcdedit In a cmd console (need administrator rights) bcdedit /create /d OpenBSD 5.4 /application boot sector # copy the identifier and paste it to the 4 following lines # For me, identifier is : {0eae31b8-4f98-11e3-8260-00264aa3d5ac} bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device boot bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} path openbsd.pbr bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=c: bcdedit /displayorder {0eae31b8-4f98-11e3-8260-00264aa3d5ac} /addlast -5- Reboot, you re done! As Dmitri said, windows 8.1 load graphical before you have the boot choice. And when you choose OpenBSD, the box reboot and load OpenBSD. I hope this helps!! If you want i can do a better how-to with snapshots, and put it on the web. Or contribute to the FAQ!* Cheers, Wesley MOUEDINE ASSABY http://www.mouedine.net [2] Links: -- [1] http://www.chrysocome.net/dd [2] http://www.mouedine.net
Re: How-to: dualboot Windows 8.1 and OpenBSD 5.4
On Sun, Nov 17, 2013 at 2:02 PM, Nick Holland n...@holland-consulting.net wrote: On 11/17/13 12:53, Wesley MOUEDINE ASSABY wrote: Le 2013-11-17 20:27, dmitry.sensei a écrit : What about 1Tb disk? Is CHS mode correct for this disks? I done the test using Virtualization. Not tried with a physical hard drive 1 TB. The smallest common non-SSD laptop drive is probably around 500G now, and 1TB is routine on desktops. At least some (many? most?) of these machines are now shipping with UEFI boot, and a lot of them will be pre-loaded with Windows, with minimal resources to reload Windows from scratch. The target (and worst-case) audience is the person who bought a laptop or desktop pre-loaded with Windows 8, and wants to install OpenBSD with as little disruption to the existing system as possible. I appreciate the efforts, but we need something more comprehensive. Another issue that needs to be covered is the system clock. OpenBSD wants UTC, Windows wants local time. There is a FAQ item that explains how to get OpenBSD to deal with local time. In my Windows/OpenBSD setups, I try to go the other way, setting the clock with OpenBSD (which sets it to UTC) and trying to convince Windows to deal with it. There is a registry change to get Windows to work with a hardware clock set to UTC. This works correctly with Windows 7; see https://wiki.archlinux.org/index.php/Time#UTC_in_Windows As noted in this article, this does not work properly with XP or Vista. Also, it is important to take the suggestion to turn off the ntp client in Windows seriously. Windows should be made as passive as possible with respect to the hw clock; let OpenBSD take care of keeping the clock accurate by running ntpd there. I do not have any personal experience with Windows 8 and UTC. A little googling turns up messages that say the registry hack works the same as with 7, others that report problems. I suspect, but do not know, that the people that had problems failed to turn off the ntp client. Windows 8 vs. a UTC clock needs to be tested. I will try to do this when I re-arrange the machine described below. Sounds like I need to go buy a modern Windows system. :-/ You'll love it. I recently bought a Thinkpad T430 that came with Windows 8. You can easily find out what the weather is in Mumbai, but figuring out how to run an application is a research project. if the phrase what were they thinking? hadn't been invented prior to Windows 8, it would have happened shortly after the release. I did an as-delivered backup (in case I need to sell the machine) and blew the whole thing away with Arch Linux (OpenBSD doesn't support the wireless card; I've got another card coming that is known to work). /Don Nick. 17.11.2013 20:20 пользователь Wesley MOUEDINE ASSABY open...@e-solutions.re Ð½Ð°Ð¿Ð¸Ñ Ð°Ð»: Hi I just tested this. It works nice for me. I have a Windows 8.1 on a hard drive 15 GB (A full one partition). So i want to install OpenBSD 5.4 and have multiboot. -1- Reduce the disk using disk management (MMC snap) i reduced Windows partition, i have now a second partition 1GB. Put OpenBSD 5.4 CD, and reboot. -2- Install OpenBSD using CHS (Be careful!) OpenBSD is now installed, eject cd, and reboot to windows # fdisk -e 3 -3- Download the tool dd for windows http://www.chrysocome.net/dd [1] Unzip dd-0.6beta3 and do : open cmd as administrator and do: dd --list # this will list device (we are looking for partition 2 (openbsd) dd if=\?DeviceHarddisk0Partition2 of=openbsd.pbr bs=512 count=1 # This record OpenBSD PBR Copy the file openbsd.pbr to the root c: -4- Modify boot.ini using bcdedit In a cmd console (need administrator rights) bcdedit /create /d OpenBSD 5.4 /application boot sector # copy the identifier and paste it to the 4 following lines # For me, identifier is : {0eae31b8-4f98-11e3-8260-00264aa3d5ac} bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device boot bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} path openbsd.pbr bcdedit /set {0eae31b8-4f98-11e3-8260-00264aa3d5ac} device partition=c: bcdedit /displayorder {0eae31b8-4f98-11e3-8260-00264aa3d5ac} /addlast -5- Reboot, you re done! As Dmitri said, windows 8.1 load graphical before you have the boot choice. And when you choose OpenBSD, the box reboot and load OpenBSD. I hope this helps!! If you want i can do a better how-to with snapshots, and put it on the web. Or contribute to the FAQ!* Cheers, Wesley MOUEDINE ASSABY http://www.mouedine.net [2] Links: -- [1] http://www.chrysocome.net/dd [2] http://www.mouedine.net