Here I will add useful commands to use in the Macintosh command line:

Windows Unattended Setup on Intel Based Macs

When Installing Windows XP on an intel-based mac using an unattended cd, you are not asked how to format the Hard Drive, it installs directly using the default FAT32 Format, XP tries then to convert  to NTFS after the setup is done, which makes the drive unreadable.
The Trick explained here will add some blocks to the Windows Partition, which will make the CD ask for formatting the Drive.

After Partitioning with Boot Camp Run the Following commands

First use the following command to identify the Windows Partition:

diskutil list

Then After identifying the ID of the Windows partition run the following command to write the blocks to the Partition. In this example the identified Windows Drive is /dev/rdisk0s3


sudo dd if=/dev/zero of=/dev/rdisk0s3 bs=1m counts=100


Now you can boot from the Unattended CD and you should be asked for Formatting.


Reading Mac Serial Number with Terminal

ioreg -l | grep IOPlatformSerialNumber | awk '{ print $4 }' | tr -d \"
/usr/sbin/system_profiler SPHardwareDataType | grep Serial | awk '{ print $4 }'


Change rights for Folders and Files separately

# Change All permissions for files inside Folder to 0660
find /path/to/folder -type f -print0 | sudo xargs -0 chmod 0660
# Change All permissions for Folders inside Folder to 2771
find /path/to/folder -type d -print0 | sudo xargs -0 chmod 2771


Add comment

Security code