User Tools

Site Tools


freebsd:freebsd_4cases

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
freebsd:freebsd_4cases [2025/01/16 09:14] azmanfreebsd:freebsd_4cases [2025/02/14 13:06] (current) – ↷ Links adapted because of a move operation azman
Line 21: Line 21:
 I want to try to install to a USB thumb-drive... from my FreeBSD virtual machine (VirtualBox). I have a 16GB USB3 Kingston Data Traveller drive, and already installed FreeBSD 12 on a virtual machine. I want to try to install to a USB thumb-drive... from my FreeBSD virtual machine (VirtualBox). I have a 16GB USB3 Kingston Data Traveller drive, and already installed FreeBSD 12 on a virtual machine.
  
-To prepare the drive layout, checkout [[freebsd:create_usbdisk_layout|here]]. I'm going to prepare for UEFI boot on a GPT formatted disk.+To prepare the drive layout, checkout [[freebsd:freebsd_prep_bootusb|here]]. I'm going to prepare for UEFI boot on a GPT formatted disk.
  
 - plug in usb drive - plug in usb drive
Line 34: Line 34:
  
 Find ''boot1.efi'' as place it in EFI System Partition. It will look for first partition with type freebsd-ufs  (which can even be on another disk) and load ''loader.efi''. Find ''boot1.efi'' as place it in EFI System Partition. It will look for first partition with type freebsd-ufs  (which can even be on another disk) and load ''loader.efi''.
 +
 +===== Install on SSD =====
 +
 +//**Note:** Generally, it seems that this is no longer an issue - some just did a normal install and have no problems at all. But, I want to put this here anyways.//
 +
 +Creating partitions (from: https://www.wonkity.com/~wblock/docs/html/ssd.html)
 +
 +<code>
 +# gpart create -s gpt ada0
 +# gpart add -t freebsd-boot -s 1m -a 4k -l ssdboot ada0
 +# gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 ada0
 +
 +# gpart add -t freebsd-ufs -l ssdroot -b 1m -s 4g ada0
 +# gpart add -t freebsd-ufs -l ssdvarfs -a 1m -s 2g ada0
 +# gpart add -t freebsd-ufs -l ssdusrfs -a 1m ada0
 +
 +# newfs -U -t /dev/gpt/ssdrootfs
 +# newfs -U -t /dev/gpt/ssdvarfs
 +# newfs -U -t /dev/gpt/ssdusrfs
 +</code>
 +
 +create fstab (save as /tmp/bsdinstall_etc/ fstab)
 +
 +<code>
 +# Device Mountpoint FStype Options Dump Pass#
 +/dev/gpt/ssdroot / ufs rw 1 1
 +/dev/gpt/ssdvarfs /var ufs rw 2 2
 +/dev/gpt/ssdusrfs /usr ufs rw 2 2
 +tmpfs /tmp tmpfs rw,mode=01777 0 0
 +</code>
  
 ===== FreeBSD on RasPi400 ===== ===== FreeBSD on RasPi400 =====
freebsd/freebsd_4cases.1736990056.txt.gz · Last modified: by azman