Thursday, 28 November 2019

Triple booting your MAC ... OSx Catalina + Ubuntu 19.10 (Eoan Ermine) + Windows 10 (Nov 2019 release)


While trying to have a triple-boot on my Mac, I faced several difficulties. Several pages on the net helped me to complete my task. I never noted the page addresses, but only made notes of my own. The following is a result of that. Since I did not note all the page addresses, I am unable to acknowledge all of them. But - yes, not a single of them worked on it's own (at least not for me). I had to do this several times to get it right. Hence putting a set of instructions below for some friends and family that are looking for similar solutions. I do not claim to be an expert and not do I guarantee any measure of success by doing this. Please follow the instructions at your own risk.


What you need:
              i.        Mac OS Catalina installer on Pen Drive
             ii.        Windows 10 ISO (This needs to be the latest release else bootcamp may not work)
It is easiest to download the Windows 10 ISO from MAC. Microsoft makes it available in the first 2 or 3 links if you search “Download Latest Windows ISO” on any search engine.
            iii.        Ubuntu 19.10 installer on Pen Drive (This needs to be the 64-bit desktop version)
Download the ISO from: https://ubuntu.com/download/desktop (scroll down and select correct version).
You could also use Rufus if you are more comfortable doing it from a windows installation
           iv.        rEFInd (to be downloaded later on Mac OS – step IV-A)

Preparing the SSD:
1.    Boot up with the Ubuntu installer and choose the “try ubuntu” option
2.    Use gparted to delete all the partitions on the MAC SSD (including the EFI Partition)
3.    Use gdisk to convert the SSD to GPT format
(If you find gdisk daunting – you can also use diskpart from a windows bootable USB)

Installing the various OS:

      I.        MacOS Catalina
1.    Install MacOS Catalina by booting to the installer USB and following the instructions.
2.    Disable System Integrity protection in the MAC
·         Reboot with and R keys pressed.
·         Open Terminal from Utilities menu
·         Type csrutil disable and press enter
CHECK: Now you should have a working Mac OS Catalina on your MAC

SAFETY STEP: You may want to boot into MacOS and take a snapshot using Time Machine

    II.        Windows via Bootcamp
1.      Copy the Windows Installer ISO to some folder in the MAC (say desktop)
2.      Run Bootcamp and load windows. Follow the Instructions
3.   STOP when the system asks to install bootcamp. You will need to prepare the SSD to install Ubuntu before you proceed.
4.   Open Windows Disk Management and partition the BOOTCAMP as per your need. Bare minimum: One additional partition of around 30GB formatted as FAT.
5.      Run bootcamp now. Remember – if you partition anything other than the MacOS partition later, you could lose all your data
ALTERNATIVE METHOD:  You could also install Windows via a Windows USB Installer and partitioned the drive as above. The trick in this method is to never allow windows to reboot while it is installing. Press the <ALT> or <OPTION> key and select windows manually each time the system is booting (At the time of installing Windows). Then you could manually install bootcamp drivers. 
        It is a good idea to copy the bootcamp drivers from OSXreserved partition during the first attempt to load windows via bootcamp. Copying the folders "$WinPEDriver$" and "Bootcamp" to the root of the windows installation USB enables loading the basic drivers. Bootcamp can be run/manually loaded from the "Bootcamp" folder post installation.

CHECK: Now you should have two operating systems now You should be able to reboot with the <ALT> or <OPTION> key pressed and choose between Windows and MacOS.

   III.        Installing UBUNTU
1.    Insert the Ubuntu Installer USB and reboot with the <ALT> or <OPTION> key pressed. Choose the option “EFI Boot” to boot from the Ubuntu USB
2.    Choose the option “Try Ubuntu” when asked.
3.    Run “Install Ubuntu” and choose “Something Else” option when asked. DO NOT change the partitions while installing.
4.    When asked where to install Ubuntu, Right-click the FAT32 formatted disk which was created for Ubuntu with the following options.
Partition Format: ext4
Assigned to: “/
Target for bootloader: /dev/sda1 (Could also be /dev/nvme0n1 … check the name of the disk displayed at the top right)
5.    Proceed to install and reboot.

CHECK: While rebooting with the <ALT> or <OPTION> key pressed you should get to choose between Windows and MacOS. However, when choosing the Windows option, you should get Ubuntu menu (grub menu). You may or may not be able to both boot to Ubuntu and Windows from here.

  IV.        Correcting the Boot Menu
MacOS and Ubuntu refuse to acknowledge each other’s existence. Hence as far as MacOS knows, there is only MacOS and Windows (as shown from the boot menu displayed by <ALT> or <OPTION> key. Once you choose Windows, Ubuntu takes over and displays its grub2 menu.
Had this been a dual boot system (Windows + Ubuntu), you would only need to correct the menu options to ensure that there is an entry for Windows and another for Ubuntu. This can be customized using Grub-Customizer in ubuntu. However, this would mean two hops to boot to ubuntu or Windows. So let us avoid grub2 altogether. In the next steps we will install rEFInd and delete grub2

A.    Installing rEFInd:
1.    Boot into Mac OS and download the rEFInd zip file from:
3.    Unzip the files to a folder, open terminal and navigate to that folder.
4.    On Terminal, type ./refind-install
5.    This should install rEFInd and you can check by rebooting.
CHECK: The refind menu should show-up now. If the ubuntu grub2 menu shows up, press <esc> and type exit. This should show the rEFInd boot menu.If the above two options is not happening, reinstall rEFInd and cross check again
B.    Deleting grub2 from MacOS
1.   Grub2 is in the EFI partition which hidden in MacOS. Therefore, we first need to mount it and make it visible. Use the following commands on terminal (assuming your disk is disk0s1)
mkdir EFI_mount
sudo mount -t msdos /dev/disk0s1 EFI_mount

2.    Open Finder and navigate to the mounted EFI folder. Go to the Ubuntu folder and delete all the files there. By now, grub2 will have been completely obliterated from the boot menu.
CHECK:  Reboot should show the rEFInd boot menu with all the options (windows, ubuntu and MacOS + many other unwanted items).

3.    As a last step, you need to delete the unwanted entries from rEFInd boot menu and customize it. 
     There is a whole tutorial at https://www.rodsbooks.com/refind/index.html. But let me just put some tips here to help you understand which sections to pay attention to …
a.    You can get access to the rEFInd files in the same manner as for deleting grub2 (by mounting the EFI folder)
b.    While rEFInd boot manager is displaying, select any option and press the minus key to delete that option.
c.     While rEFInd boot manager is displaying, select any option and press the <TAB> key to view advanced options.
d.    If you do not want to spend time learning how to customise rEFInd, the shortcut is to load a theme that is closest to how you want your rEFInd to look. Then change the icons, background and font to suit what you need.



                                                                                                                                        

Saturday, 5 October 2019

The Ramayana Blog – I (Lakshmana’s ego – the root cause)


We all heard stories about Rama’s exile to the forest. Fourteen long years, they say, passed by in a quick kaleidoscope of events. While Rama should have spent this time in peace with nature and soaked in the essence of life – he was compelled to spend the time finding his abducted wife.

We even hear jokes where people say that Rama was unable to protect his wife from being abducted – how will he save his billion disciples. And I dare say there is an element of truth in this. Perhaps this is the reason why we have more Krishna temples than Rama … but that’s a story for some other blog. For now, we know that Rama could neither refuse his wife’s craving to own a certain musk deer and his inability to protect her from getting abducted once he started running after the deer. But is that really all that the Ramayana is about?

The truths/myths/stories of both Mahabharata and Ramayana are about teaching people lessons. In today’s context it matters less where or whether Rama (or his temple) existed. What matters is the lessons that we learnt and continue to learn from the teachings of this epic saga. The true temple is always inside the mind and it’s very personal. But I think I should stop digressing and return to the topic.

I try to analyse one aspect of the Ramayana – how immaturity leads to tragedy, and the learning that comes forth. My villain, for this blog, is Lakshmana. It is true that history is written by the winners – for in the versions of Ramayana that we know, Lakshmana was this dutiful brother who was willing to lay down his life for the sake of his elder brother. Well that is also true – because in reality there are no villains and heroes. There is only choice. Small choices of how we use our powers shapes the destinies that we are subjected to endure. The choice of which bend of the road we take decides the destination where the road takes us.

Ravana was arguably as great or greater King than Rama himself. While Rama was in the forest, he was just a king in exile and Ravana was still a king. Soorpanakha, the sister of Ravana, was a princess in her own rights. While sauntering in the forest, her gaze fell on Lakshmana – a handsome lad with a princely demeanour. Soorpanakha, the princess, so used to getting what she demanded, now desired Lakshmana himself – and went on to profess her feelings for him. As things turned out, our Lakshmana was not impressed by her and he refused. Being sister of the greatest king of the era – Soorpanakha was not used to hearing no, and she persisted in her attempt to woo Lakshmana.

Lakshmana has many choices then. To marry her and befriend a kingdom, or to politely but firmly refuse her advances. Maybe that would have been that. Maybe Lakshmana could even have run away. But no!! Our immature Lakshmana chooses to take out his bow and arrow and cut off Soorpanakha’s nose and ears!! For a young lady of marriageable age of that era, this meant she would never find a suitable groom. In the entire Ramayana, after that incident, Soorpanakha is seldom mentioned or seen. She must have ceased to even feel like a princess and therefore faded away into obscurity. Lakshmana’s foolish and immature decision had laid the foundation stone of the Ramayana as we know it today.

Which brother can hear of someone chopping off his sister’s nose and ears, and remain unmoved - and Ravana was king and one of the most learned names of that era. He had to make Lakshmana repay. Whether he abducted Sita thinking that Sita was Lakshmana’s consort or out of sheer rage is not known. But this is for sure that he would not have bothered with Rama or Sita had Soorpanakha’s nose and ears not been chopped.

Love has been spurned many times in history, and it is not necessary that every love professed must meet with an equal positive response. There are cases of obsession and punishment – but probably no reaction as violent as what Lakshmana had meted out to Soorpanakha.

  • ·         That was an immature act showing total disdain for the fact that Soorpanakha was a lady
  • ·         The act was foolish. Lakshmana chose to react without ever trying to find out who he was getting up against.
  • ·         That was an impulsive action because Lakshmana had many other ways to prove his manhood and superiority.

History, and the popular version of the Ramayana, may choose to bypass or ignore this key turning point of the Ramayana – however, in the temple in our heads, many shall continue to think and form their own conclusions … as I have made mine. Life has never been black and white – there are many shades of grey – and then there is colour which makes everything so beautiful. Lakshmana, immature as he was, chose black. Can we credit (or discredit) much of the Ramayana saga to Lakshmana, just we can credit (or discredit) Draupadi for igniting the Mahabharata? (The Kurukshetra Trigger)

Featured post

This "State-of-the-Mind" thing !! - part 1

The patient was gravely depressed. His attempt to commit suicide was just stopped by his family. He was crying and we could see that hi...