Mount USB drive in OSX Single-User mode

Hello,

Should you have some trouble booting your OSX, as long as there are no hardware defects, you can boot into the Single-User mode to access your files and drives from the command-line. To access this mode hit CMD+S as soon as your here the startup tone and hold it down until the screen turns black and you can see the boot messages. Then put in your external usb drive.

First you have to remount the root partition in write-mode
# mount -uw /

then create a folder where you want to mount the drive
# mkdir /Volumes/USB

and mount the drive
# mount_msdos /dev/disk1s1 /Volumes/USBDrive

Now you can start to copy your files over.

One last note:
the "mount_msdos" command is used if it's a FAT(32) filesystem, there are other commands for other filesystems (like EXFAT etc) and don't forget to replace the "disk1s1" with your drive's partition.

Autobackup pfSense

Hi again,

everyone who is using pfSense knows that there is no good (and free) automated backup possibility for the config file. Therefore I have written a python script that connects over sftp to a pfsense box, gets the config.xml and stores it to a local directory or remote server through sftp.

The only dependancy this script has is the pysftp package which can be installed very easily with:
# easy_install pysftp

The script has been tested on a CentOS 5.8 machine with python 2.4 and is released under the BSD Licence.

I hope I could help someone with this.

Download:  Backup script for pfSense (1110 downloads )

Learning C and Obj-C

Hello people,

after all these years of php programming and some breakouts into perl and python, i'm getting pretty interested in "high performance computing" how it's called. So therefore i looked for some easy tutorials for C and Obj-C (used by apple, especially useful if you want to do things for iphone or ipad).

Here are some links if you plan to develop cocoa applications: