LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-21-2014, 01:55 PM   #1
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Manual partitioning for FreeBSD10 install on existing slackware14 installation


Well, I'm incurable.
FreeBSD10 has been "out" for 1 day and I just have to install it.

I've done this before on my current slackware14 install, but I failed to write down the steps.

I fired up gparted and squeezed out a ~100 G partition for the FreeBSD install (unformatted and labeled) but when I went to use "Manual Partitioning" I kind of got scared as I wasn't certain it was installing to ada0s4, the partition I want to dedicate to this task.

I saw nothing like this, it shows ada0s[1-4] where I took ada0s[1-3] to be my current slackware install.

My current layout says fdisk -l is:
Code:
/dev/sda1            2048   176529407    88263680   83  Linux
/dev/sda2       176529408   202932223    13201408   82  Linux swap
/dev/sda3       202932224  1739952127   768509952   83  Linux
/dev/sda4   *  1739952144  1953525104   106786480+  a5  FreeBSD
Note: sector size is 4096 (not 512)
on my 1 Tb SATA disk.

The Manual says
"A standard FreeBSD GPT installation uses at least three partitions:
Standard FreeBSD GPT Partitions
freebsd-boot - FreeBSD boot code.
freebsd-ufs - A FreeBSD UFS filesystem.
freebsd-swap - FreeBSD swap space.

but a df -hT in my FreeBSD VM shows:
Code:
Filesystem   Type     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2  ufs       23G    5.0G     16G    23%    /
devfs        devfs    1.0K    1.0K      0B   100%    /dev
Do I really next an Extended Volume with 3 partitions for this task?
I know I don't want to install anything to the MBR, as I have used and plan to use my existing lilo (LILO version 23.2) from the slackware install.
How should I proceed?

Thanks!
 
Old 01-21-2014, 02:29 PM   #2
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
You need a separate disk with a GUID parition table (GPT) on it. FreeBSD then puts the first boot loader stage into the PMBR. You need the boot partition for the second stage. This has nothing to do with extended volumes. In a future version FreeBSD most likely will only support EFI booting and drop 32 bit (IA32) support completely, just as RHEL 7 did.

The A5 partition on a MBR disk is supposed to contain a legacy BSD disklabel. I don't know, if the new FreeBSD 10 installer still supports that, but I'm sure bsdlabel support in FreeBSD itself will go away sooner or later, so I would not recommend using it.

TL;DR: Use a separate disk for installing and booting FreeBSD.
 
Old 01-21-2014, 02:42 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
So the successful install of a dual boot on FreeBSD 9.2 and slackware on the same disk cannot be duplicated with FreeBSD10 and slackware14?
 
Old 01-21-2014, 03:01 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
If you manually assign the partitions rather than have the automatic tool do it for you, you can use the MBR partition and rerun your a boot loader like GRUB to detect and assign a bootmenu entry for FreeBSD, or you can use the automatic tool which will replace the boot loader with boot0 and you can use boot0 to boot Slackware and FreeBSD alongside each other.

Nothing has been removed from FreeBSD 10's installer. Check the FreeBSD handbook for more information.

Last edited by ReaperX7; 01-21-2014 at 03:03 PM.
 
Old 01-21-2014, 03:22 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I suppose here too, that if you change to boot Slackware from EFI and GPT in the future, next release perhaps, it will make this sort of uncontrollable urge easier to satisfy. I've been thinking of doing the same thing, but will probably try a VM first.
 
Old 01-22-2014, 09:19 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mostlyharmless View Post
I suppose here too, that if you change to boot Slackware from EFI and GPT in the future, next release perhaps, it will make this sort of uncontrollable urge easier to satisfy. I've been thinking of doing the same thing, but will probably try a VM first.
Thanks.
I just ordered another Drive.

"640 k ought to be enough for anybody"?

My cheat sheet for installing FreeBSD 10 on Virtualbox
 
Old 01-22-2014, 10:48 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
HA!

Did it. The short and sweet of it goes like this:
Boot the FreeBSD 10.0-RELEASE and select Multi-User
Install
set the hostname
Distribution Select -- select src!
Manual Partitioning
...Partition Editor
......I removed ada0s4a and ada0s4b (Created yesterday with PC-BSD installation)
...Create on ada0s4.... set mount point as /
Install.... set root password etc...
reboot when done.

No mention of MBR or anything, so I modified Slackware's /etc/lilo.conf and added
Code:
#FreeBSD
other = /dev/sda4
table = /dev/sda
label = FreeBSD10
Reboot into FreeBSD10 and
Enjoy the Goodness.

I suppose having another 1 Tb drive wouldn't hurt to have around.
 
  


Reply


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
how to install windows xp on existing installation of fedora 13 alteo Linux - Newbie 3 09-11-2010 08:26 PM
Want to Install Fedora using Manual Installation method anishjp Linux - Newbie 25 11-04-2009 04:08 AM
How disable PCMCIA at install? Or manual partitioning on Etch lonecrow Linux - Newbie 10 04-09-2006 10:47 AM
Suse 10 Install not detecting HDD or DVD and going to manual installation screen dlackovic Linux - Newbie 25 01-04-2006 11:28 AM
Manual Partitioning during Mandrake 9.2 Installation BACTRATE Mandriva 13 02-09-2004 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:38 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