Install alongside freebsd

Questions about the installation of FreeBSD
Post Reply
Zar Marco
Posts: 8
Joined: Sat Feb 17, 2018 8:54 pm

Install alongside freebsd

Post by Zar Marco »

Hi all. I've freebsd on a disk with zfs. Can I install ghost alongside freebsd in same partition? or viceversa?
wb7odyfred
Posts: 207
Joined: Sat Nov 12, 2016 5:44 pm

Re: Install alongside freebsd

Post by wb7odyfred »

I want to understand what you mean by, "Can I install ghost alongside freebsd in same partition?" or "Viceversa?"
I see in the ESP partition you can have a /boot/freebsd/bootx64_freebsd.efi and a /boot/ghostbsd/bootx64_ghostbsd.efi different UEFI boot files, YET
which /bin or /sbin or /usr/local directories with the same exact name are in use by the $PATH to call up and execute programs? the GhostBSD version or the FreeBSD version? How do you envision putting along side GhostBSD and FreeBSD. I don't understand your envisioned logic here when combining FreeBSD and GhostBSD in the same partition.

GhostBSD and FreeBSD are identical, except when they
are NOT IDENTICAL. So maybe a command /bin/ls is identical both for FreeBSD and GhostBSD. Just use one version or use the other version, they are identical. Other commands or programs might be improved in the GhostBSD version and not improved in the FreeBSD version. So they art NOT IDENTICAL in this scenario. How do you suggest to solve this issue? Which version do you suggest to use? How do you propose to combine FreeBSD and GhostBSD? When you find an issue or problem, where do you post the bug report? Did you create the problem by combining GhostBSD alongside FreeBSD?

Code: Select all

fred@fredTC93-pc ~> whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/src/bin/ls
I think your idea with combining FreeBSD and GhostBSD in the "same partition" has a flaw. I think they could use the same ESP partition and same SWAP partition /dev/da0p3, but have different " root / " partitions /dev/da0p2 for GhostBSD and future /dev/da0p4 for FreeBSD (not created yet and not seen here)
What are your thoughts on this, Marco?

Below are the output from the $PATH variable and the first level directory names in the / partition /dev/da0p2


Code: Select all

fred@fredTC93-pc ~> echo $PATH
/home/fred/go/bin /sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin

fred@fredTC93-pc ~ [SIGINT]> sudo du -d1 -h /
Password:
512B	/libdata
308K	/libexec
1.5M	/bin
 11G	/media
163G	/usr
298M	/boot
512B	/net
3.0M	/etc
512B	/share
261M	/compat
1.6G	/root
  0B	/proc
 62M	/raspi
512B	/www
369M	/nix
 15M	/lib
206M	/tmp
 13K	/mnt
512B	/cdrom
6.5K	/dev
 13M	/rescue
 28G	/var
512B	/include
512B	/man
512B	/tftpboot
8.5M	/sbin
512B	/tests
512B	/.cache
204G	/

Code: Select all

fred@fredTC93-pc ~> gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 468862094
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 272629760 (260M)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   efimedia: HD(1,GPT,7d0e6dcf-7926-11ec-b6e6-0021ccd45dec,0x28,0x82000)
   rawuuid: 7d0e6dcf-7926-11ec-b6e6-0021ccd45dec
   rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
   label: Ghostbsd_bootfs
   length: 272629760
   offset: 20480
   type: efi
   index: 1
   end: 532519
   start: 40
2. Name: da0p2
   Mediasize: 235120099328 (219G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(2,GPT,7eafc01f-7926-11ec-b6e6-0021ccd45dec,0x82028,0x1b5f2000)
   rawuuid: 7eafc01f-7926-11ec-b6e6-0021ccd45dec
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: Ghostbsd_rootfs
   length: 235120099328
   offset: 272650240
   type: freebsd-zfs
   index: 2
   end: 459751463
   start: 532520
3. Name: da0p3
   Mediasize: 4658823168 (4.3G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   efimedia: HD(3,GPT,801fd8c2-7926-11ec-b6e6-0021ccd45dec,0x1b674028,0x8ad800)
   rawuuid: 801fd8c2-7926-11ec-b6e6-0021ccd45dec
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: swap-unirex-224
   length: 4658823168
   offset: 235392749568
   type: freebsd-swap
   index: 3
   end: 468850727
   start: 459751464
Consumers:
1. Name: da0
   Mediasize: 240057409536 (224G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r2w2e4

Post Reply