LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-02-2006, 11:19 PM   #1
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
OpenBSD & Linux on same computer


I have Slackware Linux installed, and am itching to try OpendBSD. I have a couple of spare partitions as follows:

hda = 250G
hda1 = 2G Linux swap
hda2 = Extended (balance of disk)
hda5 = 25G Linux /
hda6 = 25G SPARE
hda7 = 198G Linux /home

hdb = 250G
hdb1 = 2G Linux swap
hdb2 = 124G Linux /mnt/storage
hdb3 = 124G SPARE

Can I safely install OpenBSD without wiping Linux? I'd like to be able to dual boot.

I've read the info on the OpenBSD website, but it doesn't go into too much detail on this point.
 
Old 05-03-2006, 06:39 AM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
*BSD needs to be on a primary partition, so hdb3 looks like your man. It won't touch your Linux installation (unless you tell it to...).
 
Old 05-03-2006, 08:02 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by ioerror
*BSD needs to be on a primary partition, so hdb3 looks like your man. It won't touch your Linux installation (unless you tell it to...).
Thanks mate.
 
Old 05-03-2006, 10:48 AM   #4
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
i would recommend that you redo hda6 to be hda3 as a primary partition... if you use cfdisk frominside slackware, it will be much easier for you during the openbsd installation. just make hda6 a single, primary partition of type A6 (OpenBSD)

as for booting openbsd... it's quite simple, if you use grub.. i know slackware defaults to lilo.. but you basically treat it like windows.
Code:
title openbsd
root (hd0,2)
rootnoverify
makeactive
chainloader +1
That should give you trouble booting openbsd from grub.

good luck.
 
Old 05-05-2006, 05:42 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
damn duplicates!

Last edited by Randux; 05-05-2006 at 05:54 AM.
 
Old 05-05-2006, 05:48 AM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by rkelsen
I have Slackware Linux installed, and am itching to try OpendBSD. I have a couple of spare partitions as follows:

hda = 250G
hda1 = 2G Linux swap
hda2 = Extended (balance of disk)
hda5 = 25G Linux /
hda6 = 25G SPARE
hda7 = 198G Linux /home

hdb = 250G
hdb1 = 2G Linux swap
hdb2 = 124G Linux /mnt/storage
hdb3 = 124G SPARE

Can I safely install OpenBSD without wiping Linux? I'd like to be able to dual boot.
Yes and no. As a fellow Slacker who multiboots a bunch of Linux distros with OpenBSD, I would offer the following free-and-completely-without-obligation advice:

Don't go too crazy with a huge partition. OpenBSD is skinnier for the same level of functionality as Linux. My OpenBSD 3.8 desktop machine was half the size of my Slackware desktop machine. 3.9 did get a little fatter, but it's still smaller than a functionally-equivalent Linux. I think 5G for root and maybe a gig per user is a big (huge?) system that you will find hard to outgrow as a desktop or dev machine, but if you are making a music or doc server, only you know how much you will need.

Quote:
Originally Posted by rkelsen
I've read the info on the OpenBSD website, but it doesn't go into too much detail on this point.
Yes, the dual-booting/Linux coexistence info I've seen on OpenBSD is outdated and borders on the ill-advised. It's very easy to do this, especially as you probably use Lilo since you are Slacking it. Lilo is the way to go. Just add an entry like you would for any other chainloaded OS (or *bloze, for example).

The OpenBSD installation is scary as hell if you are multibooting because *BSD fdisk and disklabel are so foreign to BSD newbies with Linux backgrounds.

Do an fdisk -l in both cylinders and sectors from your Slackware machine, and save it somewhere you can see it, like on a USB drive and/or print it out. Then go to the OpenBSD FAQ and try to understand BSD disklabel as much as you can before you start the installation. This is really the only slippery part and it's key to understanding *BSD installations.

You don't have the option to choose steps in the OpenBSD installation, unlike in the Slackware script. You have to go through every step. The best way to avoid problems is to use Linux fdisk to do all the partitioning, like Halo said. Just exit from the OpenBSD fdisk installation step without saving anything. Then you will go into the disklabel step, which you will have to use. Don't touch partition c! That's *BSD's name for your whole drive. Everything will be in sectors and you should compare it to your printout to make sure you are where you think you are. If you screw up the disklabel, you WILL toast your other systems. a is root, b is swap, and the other partition names are for other mount points. There will also be letters for the other partitions (both primary and extended) that disklabel finds when scanning the drive. Regardless of what OpenBSD doc says, and in the true Slackware tradition, if you are making a desktop machine don't worry about additional mountpoints- just let the system manage the space. If you are making a server, you need to get some advice because I am no sysadmin (yet).

Some jargon:

Linux "partition" = OpenBSD "slice"
OpenBSD "partition" = Linux "mountpoint"

After you exit disklabel, you get an ominous "impending file system destruction" warning. Make sure your disklabel is reasonable (based on your printout in sectors from Linux fdisk -l) and let it go. It will build the filesystem in your partition (*BSD slice).

The FTP installation is pretty cool since there aren't any OpenBSD ISOs except for the boot disk itself. But this is a downer if you have to do it more than once, so what I advise is this (and I just did it to upgrade to 3.9):

Go to a convenient and speedy ftp or http location and download all of the tgz files you will want (I grabbed everything but the games). This should be from the BSD directory (sorry, can't remember the name, and NOT the packages directory!) Make sure you also get bsd and bsd.rd which are the kernels and don't have the .tgz extension. Save this stuff on a USB drive you have formatted ext2 or on an ext2 partition. When it comes time to tell the OpenBSD installer where you want to get the files from, you can point at your already downloaded tars and your installation will fly.

I don't know how much RAM you have but if you have at least 512M then 256K of swap is more than enough for both OpenBSD and Slackware desktops. I've never read of anyone going to swap with this kind of RAM on a desktop machine.

Last edited by Randux; 05-05-2006 at 06:00 AM.
 
Old 05-05-2006, 07:48 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Hey Randux, Thanks for your in depth and detailed response.
Quote:
Originally Posted by Randux
Yes, the dual-booting/Linux coexistence info I've seen on OpenBSD is outdated and borders on the ill-advised. It's very easy to do this, especially as you probably use Lilo since you are Slacking it. Lilo is the way to go. Just add an entry like you would for any other chainloaded OS (or *bloze, for example).
I installed OpenBSD last night, and thankfully managed to not wreck the rest of my setup! It ended up working fine on hdb3 as suggested above.
Quote:
Originally Posted by Randux
The OpenBSD installation is scary as hell if you are multibooting because *BSD fdisk and disklabel are so foreign to BSD newbies with Linux backgrounds.
Tell me about it!! I stopped the installation a couple of times to re-read the docs before proceeding. I am no stranger to disk partitioning and have a policy of always using the same tool to partition a disk. This is a lesson hard learned, and I still have the doorstop to prove it...

So, using Linux fdisk, I changed the partition type on hdb3 to a6. Then, I was able to skip thru OBSD's fdisk and jump straight into disklabel, which confused the crap out of me to begin with, but makes a lot of sense when you read the docs properly.

It's little wonder they say "No remote holes in the default install".... There's nothing else in the default install either....

The first two things I've installed are bash and mc. I never realised how much I depend upon features like command history and tab completion. ksh has made me appreciate bash a lot more, and that is after only having used it for 20-odd minutes!

This is fun! I'll try to get my wireless NIC working tomorrow. Free software rocks.

Thanks again.
 
Old 05-05-2006, 08:56 AM   #8
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
I never realised how much I depend upon features like command history and tab completion.
Indeed. How could anyone live without them? It's amazing what Windows users put up with. (click, click, click, click, "Duh, you stupid piece of ...", <cancel>, click, click, ...).

Quote:
ksh has made me appreciate bash a lot more, and that is after only having used it for 20-odd minutes!
HA! Now go and, ahem, "use" a DOS box in Windows, see how much fun that is!

Actually ksh has most, if not all, of the features bash has (certainly it has tab completion, history etc), but they may not be enabled by default, for some reason. Indeed, whenever I've used ksh, they haven't been, which gives you the impression that it's only a basic shell. It just takes some configuration. I use zsh (which was modelled on ksh) and it took me days to get the basic functionality working (and 6 years later, I'm still tweaking... ).

Last edited by ioerror; 05-05-2006 at 09:03 AM.
 
Old 05-05-2006, 10:13 AM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Thumbs up

Quote:
Originally Posted by rkelsen
Hey Randux, Thanks for your in depth and detailed response.

I installed OpenBSD last night, and thankfully managed to not wreck the rest of my setup! It ended up working fine on hdb3 as suggested above.
Congrats on joining the most exclusive group on x86- OpenSlackers (tm) Too bad I didn't get you the info in time but I see you made out fine without it.

Quote:
Originally Posted by rkelsen
Tell me about it!! I stopped the installation a couple of times to re-read the docs before proceeding. I am no stranger to disk partitioning and have a policy of always using the same tool to partition a disk. This is a lesson hard learned, and I still have the doorstop to prove it...
This is a good policy; don't be afraid to bail out if something doesn't feel right. If more people did like that there would be less toasted disk drives in the world.

Quote:
Originally Posted by rkelsen
The first two things I've installed are bash and mc. I never realised how much I depend upon features like command history and tab completion. ksh has made me appreciate bash a lot more, and that is after only having used it for 20-odd minutes!
I'm sure once you know ksh and csh they're fine. But I run too many desktops (and I'm too friggin' old) to be fluent in multiple shells. I can't stand the default shell setup, the prompts, everything just feels wrong. I also grab bash and emacs (although it's very cool that OpenBSD comes with mg (emacs-like mini-editor) so I can do what I need without VI). zsh like ioerror uses is supposed to be even hotter, but you can't go wrong with bash as right now it's probably the most commonly-used shell in the *NIX world.

Quote:
Originally Posted by rkelsen
This is fun! I'll try to get my wireless NIC working tomorrow. Free software rocks.
Thanks again.
The OpenBSD team spent a lot of effort on hardware drivers. Your wireless should work in this release.

Correction: OpenBSD rocks!

See ya,

Randux
 
Old 05-05-2006, 08:02 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by Randux
The OpenBSD team spent a lot of effort on hardware drivers. Your wireless should work in this release.
OK, according to the output of ifconfig and dmesg, my wifi NIC is supported. However, I'm having difficulties working out how to get it to play with my WPA-enabled AP. Under Linux I use wpa_supplicant, but it appears that there is no such animal for OBSD. Can anyone offer any pointers?
 
Old 05-06-2006, 03:32 AM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by rkelsen
OK, according to the output of ifconfig and dmesg, my wifi NIC is supported. However, I'm having difficulties working out how to get it to play with my WPA-enabled AP.
Nevermind. The driver for my card (ath) doesn't support WPA yet.
 
Old 05-06-2006, 01:13 PM   #12
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
I don't really understand what you're saying, but if the problem is at the application level you may still be able to get it to work since OpenBSD supports execution of Linux and other executables via kernel options.
 
Old 05-06-2006, 06:15 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by Randux
I don't really understand what you're saying, but if the problem is at the application level you may still be able to get it to work since OpenBSD supports execution of Linux and other executables via kernel options.
According to "man ath":
Quote:
AR5211 and AR5212 support the cryptographic operations required for WPA but at this time the driver does not support them.
Mine is an AR5212 chipset.

I'll try installing wpa_supplicant anyhow and see if it works. How does this "Linux compatibility" mode work?

Edit: It won't work because wpa_supplicant doesn't support OBSD's driver for my chipset. Oh well. Back to WEP we go!

Last edited by rkelsen; 05-06-2006 at 06:29 PM.
 
Old 05-07-2006, 04:30 AM   #14
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Downer. If you send your dmesg in maybe it will encourage them to support your driver.
 
Old 05-07-2006, 07:01 AM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,453

Original Poster
Blog Entries: 7

Rep: Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556Reputation: 2556
Quote:
Originally Posted by Randux
Downer. If you send your dmesg in maybe it will encourage them to support your driver.
I get the feeling it's a work in progress. If I've understood correctly, the guy who wrote the Madwifi drivers is working for OpenBSD now. So, I'm guessing (and hoping) that WPA support will be along real soon.

Gee, OBSD is very different to Slackware! So far, OBSD seems more obscure, but that is probably because I'm so used to Slack. Speaking of which: Why do they say that Slackware has a BSD style init? The two are poles apart...

How does the OSBD kernel work? I've read that Theo recommends against re-compiling a custom kernel, but have also noticed that the thing weighs in at 5 megs. Does it use kernel modules at all? Or are all the drivers built in?

I am enjoying it all so far, everything is working well. As soon as I switched my router over to WEP, the wireless NIC started working. Sound & video worked out of the box - X even worked without a config file!

Thanks to everyone who replied.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo & openbsd socket9001 *BSD 5 05-09-2007 03:54 PM
openbsd 3.6 & konqueror kpachopoulos *BSD 1 05-22-2005 02:05 PM
Guitar, Computer/Amp, Linux webwolf70 Linux - General 4 11-14-2004 12:18 AM
OpenBSD Firewall w/DMZ & HTTP jdh77 *BSD 1 05-09-2004 12:13 AM
OpenBSD & Linux software compability (apache, mysql, php, ...) markus1982 *BSD 7 01-26-2003 06:07 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration