I finally got (almost) all of my little bugaboos fixed and got my GhostBSD OS functioning well enough to be my daily driver!
I'm not exactly how to use this "boot environment" thing though. I want to backup the entire OS including the config files and such. I can back up documents, pictures and stuff separately like I always do, but can I boot into a boot environment on a USB stick just like an iso?
Is a Boot Environment the same as an iso?
Re: Is a Boot Environment the same as an iso?
Boot Environment is a ZFS snapshot of what makes your system boot. BE is created with bectl or beadm. At boot, you can boot any of them. You can probably replicate them on a USB with ZFS, but the boot is like an ISO, so I am unsure.
Re: Is a Boot Environment the same as an iso?
How exactly, would I boot from a BE?
Can I convert a BE to an iso?
HOW do I replicate a BE onto a USB stick that would be bootable?
How about cloning the hard drive and creating an iso from the resulting clone?
Can I convert a BE to an iso?
HOW do I replicate a BE onto a USB stick that would be bootable?
How about cloning the hard drive and creating an iso from the resulting clone?
Re: Is a Boot Environment the same as an iso?
Booting from a Boot Environment in the GhostBSD Boot Menu
1. Access the Bootloader Menu
How to Store a Boot Environment (BE) on a USB Drive
You can store a Boot Environment (BE) on a USB drive in GhostBSD by following these steps:
1. Prepare the USB Drive
1. Access the Bootloader Menu
- Restart your system and wait for the GhostBSD boot menu to appear.
- Press the Space Bar to stop the timeout and access the menu without the system automatically booting into the default BE.
- Select the option to access the Boot Environments submenu.
- Once in the Boot Environments menu, you'll see three options:
Code: Select all
1. Back to Main Menu [Backspace] 2. Active: <BE to Boot> 3. bootfs: <default boot BEt>
- Option 1: Returns you to the main boot menu without making changes.
- Option 2: Select the BE to boot
- Option 3: This changes the active BE to the default one. The default can be changed by bectl.
- To boot into a specific BE just for the current session:
- Pressing 2 to utile you see the BE you want to boot.
- Press Enter to start the boot process.
How to Store a Boot Environment (BE) on a USB Drive
You can store a Boot Environment (BE) on a USB drive in GhostBSD by following these steps:
1. Prepare the USB Drive
- Insert the USB drive and identify it (e.g., da0) using or
Code: Select all
gpart list
Code: Select all
dmesg
- Create a new partition table on the USB drive:
Code: Select all
gpart create -s gpt /dev/da0 gpart add -t freebsd-zfs -l usb_be /dev/da0
- Format the partition with ZFS:
Code: Select all
zpool create usbpool /dev/gpt/usb_be
- Use bectl to create a snapshot of the BE you want to copy:
Code: Select all
bectl snapshot -n my_snapshot my_be
- Mount the USB ZFS pool:
Code: Select all
zfs set mountpoint=/mnt/usbpool usbpool
- Copy the BE dataset to the USB:
Code: Select all
zfs send zroot/ROOT/my_be@my_snapshot | zfs receive usbpool/my_be
- Install the FreeBSD bootloader to the USB drive:
Code: Select all
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/da0
- Update the ZFS pool properties to make it bootable:
Code: Select all
zpool set bootfs=usbpool/my_be usbpool
- When finished, unmount and export the USB pool:
Code: Select all
zpool export usbpool
- Reboot the system and choose the USB drive as the boot device.
- The system should boot into the environment stored on the USB.
Re: Is a Boot Environment the same as an iso?
Omygoodness! I'll give that a shot, thanks very much!