Recovery HFS partition table

First think, scan your damage disk with a tool like “testdisk” (http://www.cgsecurity.org/wiki/TestDisk) look for lost partitions, unfortunately HFS is not fully supported by this great tool, then you need to use pdisk or other partition software. Disk /dev/rdisk3 - 1000 GB / 931 GiB - CHS 121601 255 63 Partition Start End Size in sectors >P HFS 262208 1953525151 1953262944 In my case, I’ve used pdisk directly on OS X: ...

25 March 2012 @ 15:48 · Updated: 30 June 2026 @ 03:28 · leo

Solaris - Add swap to ZFS disk

I installed Solaris 10 05/09 on a machine and I used whatever the default swap space setting when I built the box. Now I need to increase the swap space and I can’t add a swap file, like was possible under UFS. If your swap device is in use, then you might not be able to delete it. Check to see if the swap area is in use. For example: ...

11 February 2010 @ 09:38 · Updated: 30 June 2026 @ 03:28 · leo

Securing "tmp" without repartition

First you should secure /tmp: Make a 1GB file for /tmp parition and an ext3 filesystem for tmp: # dd if=/dev/zero of=/dev/tmpFS bs=1024 count=1000000 # /sbin/mkfs.ext3 /dev/tmpFS Create a backup copy of your current /tmp drive: # cp -Rpf /tmp /tmpbackup Mount our new tmp parition and change permissions: # mount -o loop,noexec,nosuid,rw /dev/tmpFS /tmp # chmod 1777 /tmp Copy the old data: cp -Rpf /tmpbackup/\* /tmp/ If you run the mount command and you should get something like this: /dev/tmpMnt on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0) ...

16 January 2010 @ 22:57 · Updated: 30 June 2026 @ 03:28 · leo