LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2015, 01:20 AM   #1
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Rep: Reputation: 23
mutiboot freeBSD with windows and linux


hi, i tried to install freeBsd into a laptop already has windows xp and debian linux installed. i set aside 20G for freeBSD with gparted. however, during the installation, at partition editor stage, when Selecting Create, Delete or Modify gives an error:

'Operation canceled. pre-check failed'
 
Old 05-23-2015, 05:41 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
It doesn't like something about your disk, suggest you take a look at the FreeBSD installation guide, https://www.freebsd.org/doc/en/books...stall-pre.html
(I think it has to boot from below a certain size of disk.)

Last edited by fatmac; 05-23-2015 at 05:44 AM.
 
Old 05-23-2015, 08:51 AM   #3
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,129
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I did an install to see if I could reproduce the problem. Installed FreeBSD on a 30GB single partition along side Linux. Everything went fine.
 
Old 05-26-2015, 08:57 PM   #4
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by replica9000 View Post
I did an install to see if I could reproduce the problem. Installed FreeBSD on a 30GB single partition along side Linux. Everything went fine.

it turned out freebsd doesn't like being installed on logical partition. i set the free partition to primary partition from windows first, then using freebsd installer to delete that partition and create a new one. this time installation went through.

however, after completion of installation and rebooted the machine, grub doesn't display freebsd as an option. i verified both windowsxp and debian can be booted as usual.

here's the partition info by 'fdisk' and output of os-prober.

Code:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9f114bc6

Device     Boot     Start       End  Sectors  Size Id Type
/dev/sda1              63  62929439 62929377   30G  7 HPFS/NTFS/exFAT
/dev/sda2  *    106027047 143775701 37748655   18G a5 FreeBSD
/dev/sda3       143806320 156295439 12489120    6G  c W95 FAT32 (LBA)
/dev/sda4        62930942 106027007 43096066 20.6G  f W95 Ext'd (LBA)
/dev/sda5        62930944  82460671 19529728  9.3G 83 Linux
/dev/sda6        82462720  85053439  2590720  1.2G 82 Linux swap / Solaris
/dev/sda7        85055488 106027007 20971520   10G 83 Linux

Partition table entries are not in disk order.
erdos@debian:~$ os-prober
unshare failed: Operation not permitted
rm: cannot remove ‘/var/lib/os-prober/labels’: Permission denied
erdos@debian:~$ sudo os-prober
/dev/sda1:Microsoft Windows XP Professional:Windows:chain
/dev/sda3:Windows NT/2000/XP:Windows1:chain
erdos@debian:~$ 
erdos@debian:~$
how do i add freebsd to the boot menu?
 
Old 05-26-2015, 10:27 PM   #5
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Assuming Grub is on the Linux partition, does updating Grub not work?
I forget if the command is # update grub or # update-grub.
 
Old 05-27-2015, 12:21 PM   #6
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
ok, after I searched online and found out about command 'boot0cfg', I reinstalled FreeBSD and this time instead of rebooting immediately after installation, I went into shell and run the following:

Code:
su
boot0cfg -B ada0
reboot now
now, after reboot, I was given the option to login FreeBSD or win, but not Linux:

F1:Win
F2:FreeBSD
F3:?
F4:?

F6: PXE

//F3 is the windows recovery partition, F4 does not respond.

Now I'm a little lost on how to boot into Linux.
 
Old 06-03-2015, 08:25 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Are you booting from an MBR or EFI system?
 
Old 06-05-2015, 09:01 AM   #8
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by ReaperX7 View Post
Are you booting from an MBR or EFI system?

I'm booting from MBR.

I had the windows and Debian8 already installed previously. but after FreeBSD installation, Grub doesn't recognize the FreeBSD.

after reinstallation of FreeBSD and its own bootloader 'boot0cfg', it doesn't recognize Linux partition.

kind of a dilemma on how to triple-boot all three OSs.
 
Old 06-05-2015, 12:14 PM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
Try by putting Debian8's boot loader into its root partition.
 
Old 06-05-2015, 01:47 PM   #10
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by fatmac View Post
Try by putting Debian8's boot loader into its root partition.
i tried to reinstall grub by using both netinstall and full image of Debian8 64bit installation.

on netinstall rescue mode(under 'Advanced option' on the main menu), it couldn't detect a kernel image on hard disk.
on full image (live cd version), it doesn't list rescue under 'Advanced Option' at main menu.
 
Old 06-05-2015, 02:11 PM   #11
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Look up chainloading on grub. I'm not 100 sure but I guess you need to chainload freebsd's boot partition.
 
Old 06-05-2015, 06:01 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Is your Linux distribution on a primary or logical partition?
 
Old 06-05-2015, 09:16 PM   #13
xiongnu
Member
 
Registered: Sep 2004
Distribution: Devuan, Void
Posts: 264

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by ReaperX7 View Post
Is your Linux distribution on a primary or logical partition?
it's located on logical partition.
 
Old 06-11-2015, 01:39 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
That's why. Your Linux distribution needs to be on a primary partition to be properly detected.

MBR is not the best to use for Linux and BSD partitions. You should use a separate hard drive for Linux and BSD to utilize GPT partitioning, and have Windows on it's own disk with MBR still.
 
Old 06-11-2015, 01:43 PM   #15
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,129
Blog Entries: 2

Rep: Reputation: 260Reputation: 260Reputation: 260
I've never had issues with Linux on logical partitions. Windows on the other hand, demands to be on the first primary partition usually.
 
  


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
How to create mutiboot PXE Server in Linux RHEL 6.0 bishwanath21 Linux - Newbie 2 11-22-2013 07:43 PM
LXer: FreeBSD Can Compete With Ubuntu Linux, Windows 8 LXer Syndicated Linux News 0 07-31-2013 11:33 PM
Windows SFU and FreeBSD/Linux bentman78 Linux - Software 1 10-01-2004 10:25 AM
linux/windows xp on hda, freebsd on hdd: the pitfals? qanopus *BSD 2 10-06-2003 02:39 AM
mutiboot problem with win server2003 chris_law Linux - Hardware 0 09-25-2003 11:32 PM

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

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration