Monthly Archives: February 2017

MacBook Pro 2016 USB-C to Dual-Link DVI (DVI-DL)

So, you’ve got a nice large 30″ display (e.g. Apple 30″ Cinema Display or Dell 3007WFP) that can render 2560×1600 @ 60 Hz, but it has a Dual-Link DVI connector. And, you have a nice new MacBook Pro 2016 with only USB-C connectors. You might think it would be easy to connect, but this might turn out as a total PITA, because any straightforward solutions (involving simple adapters with physical compatibility) won’t cut it – it’s more complicated…


Using dd to rescue data from failing drive

So, you’ve ignored those SMART errors for a while now, haven’t you. Now you realize that there might actually be something going wrong with your hard drive. You try to naively copy data off, but it fails. But, no worries, there is an option to dd that can help you get most of the data off:

dd if=/dev/sdc of=/home/me/sdc.dd conv=noerror,sync

or, if using lvm

dd if=/dev/vg0/failing-lvm of=/dev/vg0/new-lvm conv=noerror,sync

The conv options specify that dd should ignore read errors, and to synchronize the read position with the write position when those errors occur. The file sdd.dd or new lvm volume could now be mounted:

mount -o loop -t ntfs /home/me/sdd.dd /mnt/old

Hopefully you can recover (most of) the files now.