Skip to content
Sergey Lukin edited this page Jul 5, 2014 · 11 revisions

Ports and Packages

Remove port
cd /usr/ports/path
make deinstall-all clean
Show port configuration files
make showconfig
Remove port configuration files (recursively)
make rmconfig-recursive

Check if port is installed

pkg_info | grep PACKAGE_NAME

Archives

Extract .ISO image contents
mdconfig -a -t vnode -f myImg.iso # assuming you get "md0" in response
mount -t cd9660 /dev/md0 /mnt/tmp

Following command will delete created md0 device

mdconfig -d -u 0

..alternatively you could utilize tar to do that I guess.

Check device's FileSystem (for example device is md0):
file -s /dev/md0
Convert CUE image to ISO (will produce myFile.iso which you can mount then)
bchunk file.img file.cue myFile

Mounts

Mount FAT32 drive
  • mkdir -p /mnt/usb - create a directory for mounting storage
  • dmesg - look for your mounting device name, assuming it's da0
  • mount -t msdosfs /dev/da0 /mnt/usb
Unmount drive

Assuming device is /dev/da0 and it's mounting directory was /mnt/usb you can run umount /dev/da0 or umount /mnt/usb

Format USB drive with Fat32

Assuming your USB device is /dev/da0

  • dd if=/dev/zero of=/dev/da0 bs=2m (this zeros the whole drive. if you're worried about wearing it out, just append count=1)
  • fdisk -i /dev/da0
  • newfs_msdos -F32 /dev/da0s1

System

Kernel

Disable hardware beep
sysctl hw.syscons.bell=0

In order to save this setting permanently add it to configuration file:

echo "hw.syscons.bell=0" >> /etc/sysctl.conf

Expanding knowledge

Read great manuals that are installed with FreeBSD:
man 1 intro # General commands manual
man 9 intro # Manual for Kernel developers
man 9 style # Code styleguide for Kernel developers
# etc.
Clone this wiki locally