Solved Failed to create partition (advanced partitioning)

Hello everyone, I am trying to install freebsd, but I have trouble creating the partition and continue the installation.
Ok then I have to say as partitions on my hard drive:

Code:
Disposit.  Inicio  Comienzo     Final  Sectores Tamaño Id Tipo
/dev/sda1              2048 104859647 104857600    50G a5 FreeBSD
/dev/sda2         104859648 209717247 104857600    50G  7 HPFS/NTFS/exFAT
/dev/sda3         209717248 314574847 104857600    50G 83 Linux
/dev/sda4         314576894 976766975 662190082 315.8G  5 Extendida
/dev/sda5         314576896 318771199   4194304     2G 82 Linux swap / Solaris
/dev/sda6         318773248 976766975 657993728 313.8G  7 HPFS/NTFS/exFAT

FreeBSD partition was created in Arch Linux using fdisk.
the order of the partitions is as follows:
Code:
sda1 Freebsd
sda2 Windows 7
sda3 Arch Linux
sda4 Extended
sda5 Swap
sda6 Documents,Music

During the installation I have selected the option of advanced partitioning, then modify the partition for freebsd created using fdisk to add the mount point to root, but then can not continue installation because I get an error:
Code:
Error mounting partition /mnt: mount /dev/ada0s1: Operation not supported by device
I really need help to continue with the installation :(

Edit: Forget comment I'm trying to install the system from a USB using:
FreeBSD-10.3-STABLE-amd64-20160714-r302791-memstick.img
 
Remember.. If you have MBR partitiong on the disk ->
You can create:
4 primary partition or 3 primary and 1 extended

Which versions of Windows do you have?
7 ?
Windows 7 have to have two partitions. One for boot and second for system ( disk C)


By my way:
1 primary - windows boot
2 primary - windows C:
3 primary - freebsd slice (and there freebsd partitions
4 extended - linux ( linux on logical partitions in extended partition

And there I heve three multiboot systems
]:>

https://forums.freebsd.org/threads/19440/
 
Yeah, but I do not have a split week of partition (to) Windows.
The exit of fdisk verifies it.

Okay, then I get the thing about the partitions, grade 3 and 1 partitions spread.

Windows on linux/partitions name is freebsd and sliced right?
So i just thought to create a partition root for since that is how I get Arch and I do not have a problem.

EDIT:
Ok now I understand, unlike Linux on FreeBSD is necessary to create a slice and within that slice partitions, but I have a question:
Is it really necessary to create separate partitions for boot, var, tmp, usr, /?

If the answer is yes, that much space each partition should be taken?

I can share the Linux swap partition with FreeBSD?

In Linux I never created separate partitions, I always make a partition to the root.
 
Thanks!
Now the system was already installed, but I have a doubt, how can I add an entry for FreeBSD in grub2 from Arch?

Try to do as follows, but it did not work:
Code:
menuentry "FreeBSD" {
set root='(hd0,1)'
kfreebsd /boot/loader
}

FreeBSD is on /dev/sda1, output from Arch:
Code:
/dev/sda1  *            126 104857640 104857515    50G a5 FreeBSD
 
This might not help you much because of newer GRUB. This was the old GRUB way of doing things for FreeBSD:
Code:
title FreeBSD 9.2 ................. FreeBSD 9x  and above
root (hd0,1)
chainloader +1

title FreeBSD 9.0 ................. before 9x
root (hd0,0,a)
kernel /boot/loader
Play with it.
Code:
menuentry "FreeBSD" {
set root='(hd0,1)'
kfreebsd /boot/loader
chainloader +1
}
Also, don’t use FreeBSD 11-rc or 9.0-release because they both have a *install-time* memory leak. It places free-space between the MBR and the first sda1 (in my case, FreeBSD). so it will not let you duel boot. At least that what happen for me. I think the developers know this and I hope that is the only reason for delay.

Other than that all you duel-booter’s of more than one FreeBSD, prepare for the greatest surprise EVER!
 
It should be a one-shot-deal. I been there forever, changing for the better. After 8 years of should I, or should I not; do this today then months latter resize everything, etc, etc. I speak of this all the time ... now I got my master drive ending with 3-FreeBSD PRIMARYS, with 2-PRIMARYS for FreeBSD with 10 of its very own UFS extended partitions and Virtualbox for those standard partitions, with all operating systems sharing any extra data partitions. It is the bomb! FreeBSD unknown, running everything, with its own backup on the same disk. p21 :)

Bottom Line: You are wasting PRIMARY-3. Put something else there or save it for the future or you will surely be sorry as a duel-booter.
Code:
sda1 Freebsd
sda2 Windows 7
sda3 Arch Linux
sda4 Extended
sda5 Swap
sda6 Documents,Music
It should be something like this:
Code:
sda1 Freebsd
sda2 Windows 7
sda3 Windows 10 or something
sda4 Extended
sda5 Swap
sda6 Arch Linux
sda7 Documents,Music
I have up to sda21 and that is more than enough for a desktop/workstation. D, E, F, G etc. You can also place as many Linux inside those EXTENDED partitions as you wish and use the same swap, sda5.
Code:
sda1 Freebsd
sda2 Windows 7
sda3 Windows 10 or something
sda4 Extended
sda5 Swap
sda6 Arch Linux
sda7 Ubuntu
sda8 RedHat
sda9 Documents,Music
Plan well. Also, buy a few extra HDD to backup using your Linux CD to dd the whole master drive. Once you know what you want, the ease will live forever, with space for new technologies, which is the entire point of duel-booting.

PS: I got it for you. Use the old Arch Linux-0.97 to 2.6.33 or a Linux with cfdisk and install it on sda6. Do that only to have GRUB-1. 1024mb is all you need for that partition. Then put your new version of Arch Linux on sda7 and include it in your old GRUB the old fashion way. It works even for Windows-10 :)
 
Thanks!
Now the system was already installed, but I have a doubt, how can I add an entry for FreeBSD in grub2 from Arch?

Try to do as follows, but it did not work:
Code:
menuentry "FreeBSD" {
set root='(hd0,1)'
kfreebsd /boot/loader
}

This is close to work, but you need to verify to have the followings in your grub.cfg:
Code:
insmod part_msdos # to make grub aware of the type of partition table, should be already there
insmod ufs2            # to make grub aware of the filesystem type where the loader is in.

finally, when FreeBSD is installed in slice/partition you need to specify that like this:

Code:
set root='(hd0,1a)'
where 'a' is the partition inside the first slice'
 
  • Thanks
Reactions: lin
Back
Top