LinuxQuestions.org
Register a domain and help support LQ
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 01-26-2006, 07:30 PM   #1
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 181

Rep: Reputation: 30
Dual boot with Slackware and FreeBSD


I have slackware 10.2 running on my laptop right now. I would like to install FreeBSD 6.0 on it too with a dual boot. I want these two operating systems to share the same /home partition. Is that possible? Right now my /home partition takes up the majority of my disk, and I would like to slice off a bit of it for the FreeBSD OS. How can I do this?
 
Old 01-27-2006, 06:49 AM   #2
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
Dual boot

Hi !

As I know you can do this using a bootmanager to boot and putting your-s home partition in freebsd's fstab.
I recomend you to not do so because the partition will be mounted at startup and not unmounted at shutdown because it isn't a ufs partition.

I recommend you to make an script which will be placed in /usr/local/etc/rc.d to do what you need.
The script must have sh extension and must be executable.
It must also accept parameters as start and stop.
At start /home partiton will be mounted and at stop it will be umounted.

All the best !
 
Old 01-27-2006, 09:39 AM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
If your /home is not ext2 then I am positive that FreeBSD will not be abe to mount it.
 
Old 01-27-2006, 02:32 PM   #4
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
Dual boot..........

Corect !
FreeBSD can read write only ext2 or ext3 linux partitions.
It can read reiserfs but no write the same with ntfs.
I hope that home partition is ext2 or ext3.
 
Old 01-27-2006, 10:59 PM   #5
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 181

Original Poster
Rep: Reputation: 30
yeah its ext2. How should I partition up my HD? Should I use fdisk, or the partition program that comes on the freebsd boot disc? Also, how do I partition up my /home partition without losing any data?
 
Old 01-27-2006, 11:51 PM   #6
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by Dan Angelescu
Corect !
FreeBSD can read write only ext2 or ext3 linux partitions.
It can read reiserfs but no write the same with ntfs.
I hope that home partition is ext2 or ext3.
Ahh, I didn't know about ext3. Thanks for the update.
 
Old 01-28-2006, 02:36 AM   #7
Dan Angelescu
RoFreeSBIE
 
Registered: Oct 2001
Posts: 81

Rep: Reputation: 15
Dual boot

Hi !
For install FreeBSD you need a primary partition . To do this you must repatition yours drive but because you have already installed
slackware you must use an undestructive partition tool.
As I know the only tool that make this on linux is gparted a clone of partition magic.After you do that you must install FreeBSD and recompile kernel with ext2fs support.
If you don't know howto make this use my FreeBSD Live CD named RoFreeSBIE-1.1 to install.The kernel placed on CD contains ext2fs support.
RoFreeSBIE-1.1 can be installed only on a free primary partition
or on a dedicated drive.
It can be download from :
http://linux.softpedia.com/get/Syste...e-CD-9067.shtm
The only major problem is to make a primary free partition .After you do that all is easy.
All the best !
 
Old 02-02-2006, 02:45 PM   #8
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
technically, it can only do it with ext2, since ext3 is simply ext2 with journalling, which freebsd doesn't support... thus making it an ext2 filesystem.
 
Old 02-02-2006, 08:57 PM   #9
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Post the output of "fdisk -l /dev/hda" so we can help.

You can resize your reiserfs/ext[23]/vfat/ntfs partitions *easily* and make room for FreeBSD. It can be made from a live-CD, then you set up a new size for the extended partition. I guess you have a free primary partition to use, ie: hda3 or 4.

3 GB is too little! You can easily fill your hard drive while you're compiling software with ports and if you use X. You may share the swap partition used by slackware moving it to a primary partition. All of this can be done in a safe way with attention. Write to paper the C/H/S of the new partition table so you may feed it to the installation of FreeBSD to make both OS'es agree on the geometry. Save the MBR before installing and backup your important stuff just in case.

Code:
dd if=/dev/hda of=/mnt/floppy/mbr bs=512 count=1
md5sum /mnt/floppy/mbr > /mnt/floppy/mbr.md5
md5sum -c /mnt/floppy/mbr.md5
If for some reason you mess the partition table (stored in the MBR) at FreeBSD, then it's easy to restore it:
Code:
md5sum -c /mnt/floppy/mbr.md5
dd if=/mnt/floppy/mbr of=/dev/hda bs=512 count=1
 
Old 02-03-2006, 11:26 AM   #10
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 181

Original Poster
Rep: Reputation: 30
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1           4       32098+  83  Linux
/dev/hda2               5         129     1004062+  82  Linux swap
/dev/hda3             130         628     4008217+  83  Linux
/dev/hda4             629        4864    34025670   83  Linux
hda1 is my /boot partition, hda2 is my swap, hda3 is my / partition for linux, and hda4 is my /home partition. I think I can only have 4 primary partitions, so what changes would you guys recomend?
 
Old 02-03-2006, 04:40 PM   #11
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
You're using all available primary partitions =/

Either you use parted or tar to backup both hda3 & hda4 to create a DOS extended partition and insert them there. An extended partition has its own partition table.

Last edited by primo; 02-03-2006 at 04:52 PM.
 
  


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
Dual Boot ( Win XP and freeBSD) nubier *BSD 13 05-11-2005 07:12 AM
Dual booting Slackware 10.1 & FreeBSD xfezz Linux - Newbie 1 04-21-2005 02:22 PM
How to dual boot freeBSD and Windows xp shakespeare *BSD 3 01-20-2005 12:57 PM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 06:02 PM
Dual WinXP/FreeBSD boot dd78749 *BSD 1 10-31-2003 02:31 AM


All times are GMT -5. The time now is 11:15 AM.

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