Tag Archives: windows

Create Windows 10 install USB from macOS Mojave

If you want to install windows on your mac and you need s bootable usb stick with windows, here's how to do it. Please note, this is not for installing windows on other devices.

There is a solution using unetbootin , one with bootcamp assistant and one using mounting and manually copying files but none of them worked for me.

This solution worked for me in macOS High Sierra and Mojave and it will probably work on other versions.

First you have to convert the windows iso file to an img:

hdiutil convert -format UDRW -o windows.img windows.iso

The result of this would most likely be a file named widows.img.dmg. The next step is to unmount the usb disk ( diskutil list to see which one it is , in my case this was /dev/disk2 )

sudo diskutil unmountDisk /dev/disk2

Now just use dd to copy the image to the usb device:

sudo dd if=windows10.img.dmg of=/dev/disk2 bs=1m

How to make linux feel like windows

Anyone missing windows ? Not me, but sometimes is good to go back to windows just to see how it was in the old days when nothing worked well and you would have a crash every few minutes or reinstall once a week.

Do that and you'll realize how privileged you are for using a Unix like os and be thankful to those that develop and contribute to it.

Don't want to reinstall it ? Well here's a little script inspired by the author of random lines ( a program that reads lines from a file or stdin, randomizes them and then outputs them ) that will make your linux system feel like windows:

  1. span style="color: #ff0000;">'{print $1}'

I recommend running the script as root and only if you understand completely what it does. You may not see immediate results, have confidence and let it run for some time like an hour or more. If you want to see results faster you can replace 3600 with 360 or even 36 or less.

You will need random lines ( rl ) installed if you want this script to run or you can modify it and replace every occurrence of "rl --count=" with "shuf -n " if you have shuf (should be there if you have coreutils and most distros have it )

Feel free to let me know how your "back to windows experience" affected you 🙂 ...