|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
||||
Installing for dual boot w/o CD/Floppy
I've just purchased a ASUS netbook, and it came loaded with Win7 starter and nothing but USB ports and memory card slots. I don't own a USB floopy or CD-ROM drive, and don't really want to buy one.
Originally I was thinking, that I would like to install OpenBSD on it and utilize it as a terminal for SSH/X11 to a much more powerful Linux box. Although as is, this damn thing is faster than my 5-year old laptop! So maybe that's a moot point. Either way, I would kinda like to try OpenBSD on this :-) My problem is twofold: using only USB (I've got a 4GB stick) or an SD card, how can I both resize the partitions for a dual boot, and install OpenBSD? I assume this will help for doing the USB stick but, the resize, I'm kinda clueless on... lol
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Quote:
Speaking of installing OpenBSD nothing simpler. Just adjust the boot order so that the BIOS chooses USB stick as the primary boot device. Download all installation sets on a USB stick and boot bsd.rd kernel. The rest is trivial. You can also do network boot but that would be little bit more complicated. OKO |
|
|||
Well, you can shrink the NTFS partition from within Windows.. and if you're tempted, you can use the Windows bootloader to chainload OpenBSD.
I believe it was ocicat who posted instructions for doing that on the forum, you can probably search for them or send him a PM. If you shrink the partition, make sure OpenBSD's partition starts before 128G on the disk.. -CURRENT won't boot otherwise. You can prepare a USB drive on OpenBSD to do the installation, just create a MBR partition table.. a disklabel.. newfs, mount, cp /{boot,bsd,xx49.tgz}, and then use installboot(8). And SD/memory card might work if it's exposed on the USB bus, many are, but some have are PCI devices.. like sdhc(4), you can't usually boot from them if that's the case. Don't use any custom "flashkey" tools, they're redundant.. perform a regular installation. |
|
||||
@OKO I can't say that I am familiar with doing a network boot, having never done one.
I know Windows is able to resize NTFS partitions since at least XP, but Win7/vista has gained the ability to resize the one Windows is currently booted and running off?? Preferably, semi-safely?
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
Maybe it's because I'm a chronic reader, or maybe it's because reading the manual pages make it easier to know how not to foul up, but you can bank I'd be reading the manual pages lol.
I'll take that as a yes then, and have to make a note to watch Microsoft's developments more closely.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Quote:
Quote:
Quote:
http://daemonforums.com/showthread.php?t=2879 This has long since been integrated into Section 4.9 of the FAQ as of OpenBSD 4.7. The verbose "Guide" article was written to show the process of discovery. The abbreviated FAQ section is merely to summarize. |
|
||||
Terry, you can boot from a USB device rather than network, if you wish. Easy enough to make a bootable stick with bsd.rd and the filesets on it, rather than installing to a USB device. All you need is a running OpenBSD system, then fdisk(8), disklabel(8), newfs(8), cp(1), and installboot(8). Use cp(1) or ftp(1) or whatever(1) to put the kernel and filesets on the stick.
Network boot is fairly easy to set up for i386/amd64, if you'd like to play with it. See pxeboot(8) for the details. |
|
||||
Quote:
If you decide to boot bsd kernel you have just live USB driven computer. Cheers, OKO |
|
||||
C:\windows\system32>bcdedit /create /d "OpenBSD i386" /application bootsector
The entry {be46aff7-443f-11e0-b92a-e47b672fcc86} was successfully created. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} device b oot The operation completed successfully. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} path \op enbsd.pbr The operation completed successfully. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} device p artition=c: The operation completed successfully. C:\windows\system32>bcdedit /displayorder {be46aff7-443f-11e0-b92a-e47b672fcc86} /addlast The operation completed successfully. C:\windows\system32> ------------------ Installation seems to have went well, other than by the time I figured out that turning "LAN Boot whatsit" in the BIOS to "Disabled" would let it PXE boot, which I figured out while trying to figure out I had to spam ESC to get into a boot menu to boot off the USB stick, because setting removable drive ahead of the HDD doesn't work \o/. I've done this twice (second time after deleting the first) with the same result: Code:
C:\windows\system32>bcdedit /create /d "OpenBSD i386" /application bootsector The entry {be46aff7-443f-11e0-b92a-e47b672fcc86} was successfully created. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} device b oot The operation completed successfully. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} path \op enbsd.pbr The operation completed successfully. C:\windows\system32>bcdedit /set {be46aff7-443f-11e0-b92a-e47b672fcc86} device p artition=c: The operation completed successfully. C:\windows\system32>bcdedit /displayorder {be46aff7-443f-11e0-b92a-e47b672fcc86} /addlast The operation completed successfully. C:\windows\system32> When I try to boot OpenBSD, it gives a message about \openbsd.pbr being missing or corrupt. I don't recall missing anything in the guide here or the FAQ (what I was oogling while doing). I have a picture on my phone that can be uploaded for reference but I don't think that's gonna help. What am I missing here? I'd rather not have to reach for Ubuntu Netbook :-/
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Okay, how did you create the PBR?
|
|
||||
Just did Round 2, to make sure that I document it correctly:
0.) setup USB stick, by way of the above directions. 1.) Booted the netbook off the USB stick with bsd.rd 2.) Used the "Shell" option 3.) Mounted the installation (sd0a) on /mnt 4.) Swapped the USB stick to my laptop 5.) Reformatted it as a FAT32 disk 6.) Mounted it (sd1i) on /mnt2 7.) dd'd the first 512 bytes to /mnt2/openbsd.pbr (dd if=/dev/rsd0a of=/mnt/openbsd.pbr bs=512 count=1) 8.) Umounted the USB stick 9.) Booted into Windows 7 10.) Launched cmd with admin priev' 11.) copy D:\openbsd.pbr C:\openbsd.pbr 12.) Reboot Now if I try to boot it, it gives a Status of 0xc0000001 with an info of "An unexpected error has occurred". At least, I assumed the raw mode device is supposed to be used rather than the block; and this makes me think that's fine. I've tried booting it with the systems "boot booster" enabled and disabled for good measure.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Did you copy the PBR to the NTFS filesystem? that's required for the boot process.
|
|
|||
That's not entirely true, a lot of Windows 7 capable netbooks/laptops default to AHCI mode these days.. in that case sd would indeed be correct.
It would be nice if TerryP shared a dmesg though. |
|
|||
Given that the information TerryP posted indicates that the USB drive was booted as sd0 tends to make me think otherwise. If AHCI is involved here, then the internal hard drive may be coming up as sd1 following booting from USB. This is why having the dmesg(1) output would be helpful.
|
|
|||
From the information he gave, it seems clear that sd0 is his internal drive.. sd1 is his USB drive.
|
|
|||
You are correct. That is what I get for trying to compose a response before dashing to catch the train. My bad.
|
|
||||
I already installed the files to the systems only internal hard drive. Can't say that I know enough about the machines internals but hey, there was only sd0 and sd1, and checking the partitions at install time showed sd0 had the same layout as the Netbook, in place of a ~4G stick.
It's a tad irksome to get a dmesg off without a working boot, as I need to plug the USB sick into my server, set it up, boot the netbook off it, then go reformat it on another system in order to mount it as storage to get the files off! Which is also part of why I redid that process in order to get an accurate right up for my last post, like I said, "Round 2" and mounted the installation on /mnt. Assuming no firmware related issues, configuring the network interfaces would still require rigging the USB stick (sd1) to boot the installation (sd0) on the netbook. But yes, sd0 = internal, sd1 = usb stick. And OpenBSD 4.8 Release is installed into sd0, like this: Code:
-> Win7 -> OpenBSD / and swap -> Recovery partition
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
boot floppy - internet involved? | Lazy | FreeBSD Installation and Upgrading | 15 | 26th June 2010 05:14 PM |
I can't make FreeBSD floppy/boot image disks under Windows with fdimage | Turquoise88 | FreeBSD Installation and Upgrading | 4 | 12th November 2008 08:39 PM |
dual boot | buba | OpenBSD General | 2 | 5th August 2008 11:32 AM |
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 | kbeaucha | OpenBSD Installation and Upgrading | 17 | 30th May 2008 02:40 PM |
install Free BSD to boot off a floppy | aromes | FreeBSD Installation and Upgrading | 4 | 5th May 2008 04:08 AM |