Thanks, I’ll try that.
But first I will have to order a thunderbolt cable. Will an ebay cable for 5 bucks work as well as the original 35 dollar cable?
I’m not that good with software, but if I understand you correct I will start my malfunctioning macbook pressing «T» and then from the other computer wipe it and clone it? Do you have any step by step instructions on how to clone it in target disk mode? Can’t unfortunatelly find any myself...
I don't know about eBay cabling. I've never tried my luck with it. I just have an Apple branded one.
If memory serves it's ⌘T, but it may very well just be T, yeah.
To be honest, it's been a while since I've done something like this with a graphical interface. I usually use the Terminal.
Disk Utility has a button called Restore though. That should let you select a target and a source, where the target will be identical to the source.
The way I'd do it is as follows in Terminal:
1) diskutil list
This will get you a list of all drives and partitions. Note down the device BSD names for the target and source
2) sudo dd of=/dev/target if=/dev/source
You'll be prompted for your password (nothing will show but input is registered). Target and source must be replaced with the BSD names from last command. dd stands for copy-clone or something like that (cc was already taken as a name, so they just went to the next letter in the alphabet). if= stands for input file. of= stands for output file.
Optionally you can install pv to the command line first, and then run it like this:
sudo dd if=/dev/source | pv | sudo dd of=/dev/target
The input file from the first dd will be sent to pv which reports how much data has been sent through it, and then send it along to the second dd process which writes it to the target. This will allow you to keep an eye on the progress. pv is not installed by default unlike dd, so this is more of an advanced mode. It is adviced to also run
sync
after dd is complete. The command will seemingly do nothing, but it makes sure that all data has been written to the drive and no writes are still in progress. This is 99.9% of the time not needed though.