LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-16-2006, 10:32 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 45
can any of the BSDs be installed on a logical partition?


Can any of the BSDs be installed on a logical partition? I know FreeBSD can't, can any of the other's?
 
Old 04-17-2006, 09:26 AM   #2
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
http://mail-index.netbsd.org/port-i3...1/11/0004.html

Read this.
NetBSD can be installed in a logical partition, but the mailing list says that you must use the NetBSD bootloader
(i don't know if grub/lilo works).

Maybe other BSDs can too.
 
Old 04-17-2006, 02:26 PM   #3
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 41
I always thought that logical partitions were a DOS/Windows answer to a DOS/Windows problem. The BSD systems have always used the disk > slice > partition paradigm which, when ported to the x86 arch, means a max of four unique operating systems (one per slice) with 25* possible partitions per each OS. Because DOS/Windows didn't use partitions (in the BSD sense), you were effectively limited to four slices with only one partition each. When people started needing more than four partitions, they tacked on the notion of logical partitions, which almost overcomes this problem. It seems to me that this was pretty much a hack-job; and while I appreciate a quickly put-together solution as much as the next programmer, I also appreciate a certain amount of polish in useful features. The problem is, this polishing apparently didn't happen with the logical partition idea: from what I understand, they're effectively not supported at the hardware level, which means that you've now got three slices with one partition and one slice with an arbitrary number of partitions. Needless to say, this has now got a lot of Windows users in a bind if they ever want to switch to a BSD environment, which does not well support logical partitions (because they already fixed this problem some number of years ago). Historically, support is minimal, if not non-existent; the latter seems to be much more often the case. All the examples I've ever seen operate on a primary partition (a slice, in BSD terms) because this is what the hardware can reconcile. Installing into a logical partition doesn't make any sense because only the software system that created it knows how to work with it correctly. It would be like installing a BSD slice as wd0d, and then having your root in wd0da, swap in wd0db, etc; and that's just nonsense.

And if I'm wrong on any of the above, please correct me. I like to learn from my mistakes.

* 25 = A through Z, minus C (which refers to the whole disk). A refers to the root partition, and B by convention to swap. D used to be special to refer to the partition, but I don't think any BSD systems enforce this anymore.
 
Old 04-17-2006, 05:45 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
My understand was that you can only have four primary partitions on a HD. One of those could be a logical partition(or many) inside of one of the primary. I've got 3 primary set up, and one logical that's divided in two, one for linux swap, and one for(I thought) BSD. From what I've seen, BSD can't be installed on this logical partition, and thus, I'd have to do something else....
 
Old 04-18-2006, 09:01 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Quote:
Originally Posted by microsoft/linux
Can any of the BSDs be installed on a logical partition? I know FreeBSD can't, can any of the other's?
The problem is that *BSD doesn't have the linux-like kernel as a boot loader parameter and it expects things to be arranged in a specified order, at the beginning of the partition. And logical partitions have a 63 sector MBR in the beginning of each one, so instead of starting at 0, the usable portion starts at 63. There are some vague allusions to this in the OpenBSD doc but no details. I don't think it can be too difficult.

I haven't tried this, but it should be possible to use a linux bootloader (Grub or Lilo) to boot *BSD from a logical partition, but maybe the typical chainloader entry won't work and you'll have to specify something else. When I get another machine to test with I'll try this.

P.S. to Taylor: The *BSD disklabel is a separate issue from the DOS partition table. The disklabel is probably supposed to be in the first 63 sectors for *BSD partitions (primary) but to implement it in a DOS logical partition, it will have to start at 63. That just means you have to adjust disklabel offsets (to *BSD partitions) accordingly and everything should work normally.

This is really only an administrative consideration and shouldn't be considered a big hack. The design of DOS partition tables may be outdated, but it's not the worst thing that ever happened to a PC

Last edited by Randux; 04-18-2006 at 09:07 AM.
 
Old 04-18-2006, 10:07 AM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
OpenBSD woudln't let me even install to a logical partition. Do any of the others allow that?
 
Old 04-18-2006, 10:53 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
As mentioned by others, your best bet is NetBSD and thats not guaranteed to work smoothly. Some of the other smaller BSDs are based on or forked from the 3 major BSDs so they will probably have the same limitations.

Last edited by reddazz; 04-18-2006 at 09:32 PM.
 
Old 04-18-2006, 01:42 PM   #8
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
microsoft/linux

why u want to put bsd in a logical drive
the other three primary arent free? one for windows I suppose. you can store data in logical partition, and you have two more, one for linux say.

I had 3 primary and an extended with 5 partitions, in one disk.
one thing that I have to say, is that FreeBSD has a different look of the disk, from windows. different geometry.

the layout was Win/BSD/Win_[logical all win]
in the BSD partition I had /usr/*

so, as they had a different point of view [BSD/Windows] , finally the disk blasted. i had to format it , to make it working.

by the way, take a look in 'grub'

bye
 
Old 04-18-2006, 06:33 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Currently 3 primary, and one logical, 1 Windows, one FAT32(for windows linux swap), 1 linux, and on the logical, linux swap. I suppose I could back up my music and make that a logical, but then I'd have to move my linux swap....maybe that'll work.
 
Old 04-19-2006, 03:01 AM   #10
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
windows/linux

the size of your disk?
the disk i was describing is 80 Gb
and now has only FreeBSD on it.
windows is in a second disk. 120 gb
and the FAT32 part is on my disk (20 gb) that came with my pc

as i am not a unix/linux guru, that way is safe.
when i had windows and bsd part in the same disk, i told you, disastrous.
 
Old 04-19-2006, 03:17 AM   #11
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
I don't use Windows, but I am sure my partitioning system will work. On my test machine, I tend to create 3 primary partitions and 1 extended. I reserve the primary partitions for BSD and Solaris. I install anything related to Linux on logical partitions. This way I never run out of primary partitions for the OSes that need to be on primary partitions. If you follow such a scheme, Windows will be installed on one primary partition and you can use the remaining two for other OSes.
 
Old 04-19-2006, 08:41 AM   #12
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Original Poster
Rep: Reputation: 45
ok, changed my partitioning scheme around, so now I should be able to use BSD, thanks to everyone.
 
Old 04-19-2006, 01:13 PM   #13
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
i just got 'grub' working,

[told you I am not guru]

if you have any problem running dual boot, check 'grub' [lilo is for linux i think, i did not find any port , or i did not search to much]
 
  


Reply

Tags
bsd, logical, partition


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
logical partition to a primary one britcoms9 Linux - Newbie 4 01-20-2008 07:46 PM
Partition Problems: Bad primary partition 1: logical partitions overlap rovitotv Slackware 6 01-08-2006 07:55 PM
Can Grub /LILO be installed on the logical partition? canaan Linux - Newbie 13 12-19-2005 10:18 PM
re-partitioning a logical partition fractal_chaos Linux - General 1 02-12-2004 12:08 PM
logical or primary partition Socrates Linux - Software 1 02-25-2001 04:50 AM


All times are GMT -5. The time now is 11:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration