Inspect storage safely
geom disk list
gpart show
mount
df -h- Inventory first. Never run destructive gpart/newfs commands until you positively identify the lab device.
Understand FreeBSD disk naming, partition with gpart, create UFS filesystems and reason about GEOM providers.
FreeBSD storage utilities work through GEOM providers exposed under /dev. gpart manages partitioning schemes such as GPT.
newfs creates UFS filesystems. Mountpoints and /etc/fstab define how filesystems are integrated into the directory tree across reboots.
geom disk list
gpart show
mount
df -hGoal: Safely identify a disposable second disk, create a GPT/UFS filesystem, prove read/write operation, then remove the lab storage state.
Inventory disks, partitions, mounts and swap first. Set LABDISK only after proving which device is the empty secondary disk.
sysctl kern.disks
geom disk list
gpart show
mount
swapinfo -h
# Example only after verification; replace with your actual disposable disk:
LABDISK=vtbd1
echo "$LABDISK"
gpart show "$LABDISK" || true
mount | grep "$LABDISK" || true
swapinfo -h | grep "$LABDISK" || truegpart create -s GPT "$LABDISK"
gpart add -t freebsd-ufs -a 1M -l academyufs "$LABDISK"
gpart show "$LABDISK"
ls -l /dev/gpt/academyufsnewfs -U /dev/gpt/academyufs
mkdir -p /data
mount /dev/gpt/academyufs /data
df -h /data
mount | grep " /data "echo "GNU Group FreeBSD UFS validation" > /data/validation.txt
cat /data/validation.txtumount /data
rmdir /data
mount | grep "$LABDISK" || true
gpart destroy -F "$LABDISK"
gpart show "$LABDISK" || trueA storage runbook is trustworthy only when device identity, destructive boundaries, verification and cleanup are all explicit.
Open each answer only after you have tried to answer the question yourself.
Partitioning schemes and partitions such as GPT layouts.
Labels are more stable than controller-dependent device numbering.
A new UFS filesystem on the selected provider.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.