Monday, June 18, 2007

Simple FreeBSD GEOM Disk Labels

This is something I did a month or two back, but forgot to details, so figured I'd document it this time:
  1. When you create your fileystems within the installer hit n (newfs options) and then enter -L labelname (like root, var, swap, or whatever) and then boot into your new system
  2. Edit /boot/loader.conf to include geom_label_load="YES"
  3. Modify your /etc/fstab to use /dev/ufs/label instead of the device location
One of the reasons why this is useful for is that it allows you to have the same fstab (and therefore, system image) across both IDE and SCSI builds. I"m sure there are more

No comments: