-
Notifications
You must be signed in to change notification settings - Fork 6
Freebsd tips
Sergey Lukin edited this page Jul 5, 2014
·
11 revisions
cd /usr/ports/path
make deinstall-all clean
make showconfig
make rmconfig-recursive
Check if port is installed
pkg_info | grep PACKAGE_NAME
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.
file -s /dev/md0
bchunk file.img file.cue myFile
-
mkdir -p /mnt/usb
- create a directory for mounting storage -
dmesg
- look for your mounting device name, assuming it'sda0
mount -t msdosfs /dev/da0 /mnt/usb
Assuming device is /dev/da0
and it's mounting directory was /mnt/usb
you can run umount /dev/da0
or umount /mnt/usb
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
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
man 1 intro # General commands manual
man 9 intro # Manual for Kernel developers
man 9 style # Code styleguide for Kernel developers
# etc.