Difference between revisions of "Useful Commands"

From Wikifications
Jump to: navigation, search
 
Line 2: Line 2:
  
 
  dd conv=noerror,sync if=/dev/disk1 of=/Volumes/whatever/backup.dmg
 
  dd conv=noerror,sync if=/dev/disk1 of=/Volumes/whatever/backup.dmg
 +
 +
Create an encrypted disk image that grows as needed, up to a specified maximum:
 +
hdiutil create dmg_name -size 1g -encryption -type SPARSE -fs HFS+ -volname Vault

Revision as of 21:09, 16 October 2005

Have a dying disk? Better get the data off before it's too late! disk1 is the culprit in this example.

dd conv=noerror,sync if=/dev/disk1 of=/Volumes/whatever/backup.dmg

Create an encrypted disk image that grows as needed, up to a specified maximum:

hdiutil create dmg_name -size 1g -encryption -type SPARSE -fs HFS+ -volname Vault