Arkiv

Arkiv för ‘Mac’ Kategori

Pash PowerShell open source reimplementation

augusti 11th, 2012 Inga kommentarer

For Mac, Linux, Solaris, etc… and Windows (including Windows Mobile and Windows CE):

http://pash.sourceforge.net/

Categories: Linux, Mac Taggar:

Repair Mac OS via Linux

augusti 11th, 2012 Inga kommentarer

First of all, you must have a copy of the physical disk image, in case the tool destroy all the data (you never know).

So, take another big disk and make a dd of it (or, better, a forensics dd: ddrescue for example http://www.forensicswiki.org/wiki/Ddrescue ).

dd if=/dev/hda of=mybigfile.img bs=65536 conv=noerror,sync

after that, put your mybigfile.img in a secure place.

Second, if the hardware is defective, you must use a good disk, and restore your disk image on it:

dd if=mybigfile.img of=/dev/hdx bs=65536

After that, you must use a recovery tool. You can check many recovery tools, but in the first place I would try with fsck.hfs ( http://linux.die.net/man/8/fsck.hfs ).

I can’t suggest you any other hfs+ recovery tool, because I didn’t have the need to use it. Try a look on internet, and always work on a COPY of the IMAGE you made on the first step!

/HappyCactus

to change the permissions you need to be a super-user (root).

You accomplish this by typing ’sudo su’, and then the password for your account. This makes you root.

Next, execute the command: chmod -R 777 /path/to/your/mounted/devi

ce.

That will remove the perimssions restrictions from every file on the disk.

/DrDamnit

Categories: Linux, Mac Taggar:

TCP ACK education in Wireshark

augusti 10th, 2012 Inga kommentarer
Categories: Linux, Mac, Windows Taggar:

XBMC as media center

januari 13th, 2012 Inga kommentarer
Categories: Linux, Mac, Windows Taggar:

Convert a DMG image to IMG

mars 9th, 2011 Inga kommentarer

First, install ”dmg2img” through the Ubuntu programs. Next run the util:

user@computer$ dmg2img mac-image.dmg new-image.img


dmg2img v1.6.2 is derived from dmg2iso by vu1tur (to@vu1tur.eu.org)


mac-image.dmg --> new-image.img


reading property list, 1632063 bytes from address 6107371782 ...


decompressing:
opening partition 0 ...             100.00%  ok


Archive successfully decompressed as new-image.img


You should be able to mount the image [as root] by:


modprobe hfsplus
mount -t hfsplus -o loop new-image.img /mnt
Categories: Bash, Linux, Mac, Ubuntu Taggar: