MacBook-pro-Ubuntu

Dual Boot MacBook pro 2012 &  Ubuntu 

  • The information provided on this website is intended to provide a basic understanding of certain technologies and is not intended to be a comprehensive guide. 
  • Therefore, it should not be relied upon as the sole source of information and should not be used as a substitute for professional advice or expert analysis.
  • Please exercise caution when visiting or downloading from websites mentioned on this website and verify the safety of the website and software. 
  • Some websites and software may be flagged as malware by antivirus programs.
  • The reader assumes all responsibility for their use of the information contained on this website and any consequences that may arise.
  • The author disclaims any liability for any damages or losses that may result from the use of this website or the information contained herein.
  • The author reserves the right to update or change the information contained on this website at any time without prior notice.
  • Any attempts to perform penetration testing or ethical hacking on systems or networks should be done with the explicit permission of the system/network owner. 
  • Unauthorized access is illegal and can result in serious legal consequences.
  • It is important to fully understand the scope of the testing and to only test within that scope. Testing outside the agreed upon scope is considered unauthorized and may result in legal action.
  • Any findings or vulnerabilities discovered during testing should be reported to the system/network owner immediately and kept confidential until a fix can be implemented.
  • It is recommended to use a separate, dedicated testing environment rather than testing on a live production system to minimize the risk of accidentally causing damage or downtime.
  • It is important to take steps to protect your own identity and prevent accidental data leaks or exposure of sensitive information during testing.
  • It is also recommended to follow a standard code of ethics for ethical hacking and penetration testing.

References 

https://linuxhint.com/install_linux_on_mac/
https://linuxnewbieguide.org/how-to-install-linux-on-a-macintosh-computer/
https://www.makeuseof.com/tag/install-linux-macbook-pro/
https://sourceforge.net/projects/refind/
https://www.makeuseof.com/tag/disable-system-integrity-protection-shouldnt/

************************************************************************************************

EFI Boot Option.

Hold Option+ Power button to enter EFI boot mode

Changing partition on MacBook Pro 

  • can use a MacOS bootup pen-drive and change partition 
  • or
  • Use Native Disk Utility 
  • Creating three partitions 
    • 1 larger size for macOS
  • Following Drive format can be in hfs+ format or fat 32 : format can be changed during Linux installation 
    • 2 Less larger size for Linux : 
    • 3. Small size 10Gb for SWAP partition. 


Errors: Ubuntu Installation USB

  • after selecting *try or install Ubuntu 
    • ioapic 2 has no mapping iommu error
    • kernel panic not syncing no working init found 
  • When screen is back on this menu *try or install Ubuntu 
  • Just press "e"
The following window appears: somewhat similar 

setparams "Try Ubuntu  without installing"
     set gfxpayload=keep
     linux /casper/vmlinux file=/cdrom/preseed/ubuntu-mate.seed  quiet splash ---
     initrd /casper/initrd

Change to code as follows 

setparams "Try Ubuntu  without installing"
     set gfxpayload=keep
     linux /casper/vmlinux file=/cdrom/preseed/ubuntu-mate.seed  boot=casper  quiet splash  nomodeset---
     initrd /casper/initrd

  • Press F10 
  • Then should boot to Ubuntu desktop then select install Ubuntu 

Errors: After Ubuntu installation not booting

  • after selecting  *Ubuntu 
  • ioapic 2 has no mapping iommu error
  • kernel panic not syncing no working init found 

  • When screen is back on this menu *Ubuntu / Advance Ubuntu
  • Just Press "e"
    • then wait for 5 minutes
  • press esc to Grub menu
  • In Grub type normal then enter
    • Grub: Normal 
  • select Ubuntu. 
  • should boot into ubuntu. 

Error: due to Kernel : 6.5.0-27-generic

  • While Booting press options key  
  • Select Advance Ubuntu
  • select lower version kernel  : 6.5.0-18-generic
After Logging into Ubuntu : remove the corrupted kernel upgrade
  • sudo apt remove linux-headers-6.5.0-27-generic linux-image-6.5.0-27-generic linux-modules-extra-6.5.0-27-generic  linux-modules-6.5.0-27-generic
  • Then use autoremove purge to remove residues 
  • sudo apt autoremove --purge 
  • sudo apt update 
  • sudo apt upgrade -y


 rEFInd : An EFI boot manager utility

System Integrity Protection (SIP) 

  • enter macOS Recovery to disable SIP
  •  Utilities ->  Terminal 
  • bash-3.3#: csrutil disable
  • Reboot 

Download : rEFInd : An EFI boot manager utility

  • Enter in Macos, download the refind  from source.
  • Click & Drag the refind-install file  to Terminal window then  Enter.
  • Helped in rectifying the errors 
    • ioapic 2 has no mapping iommu error
    • kernel panic not syncing no working init found 
rEFInd : An EFI boot manager utility
 rEFInd : An EFI boot manager utility


************************************************************************************

Upgrading to Ubuntu 25.04

Macbook 2012 : Ubuntu not booting after upgrade to "Ubuntu 25.04" 


Updating to 25.05

Initial Update sequence 

  • sudo apt update
  • sudo apt upgrade -y
  • sudo apt full-upgrade -y
  • sudo apt dist-upgrade -y
  • sudo apt --fix-broken install -y
  • sudo apt autoremove -y

  • sudo apt install ubuntu-release-upgrader-core -y
Next step : 
    • sudo nano /etc/update-manager/release-upgrades
      • Change from Prompt=lts
      • to Prompt=Normal
    Final Step : 

    • sudo do-release-upgrade




    Issue : not-able to boot from Linux kernel 6.14 generic, 
    but able to  boot from linux kernel 6.11 generic 


    Potential solutions:

    Step 01:

    Boot into Recovery Mode:
    Access the GRUB menu: 
    Esc or option+ Shift key to access the GRUB menu. 
    Select Advanced options for Ubuntu: 

    Options 1: 

    Boot to last know Kernel version 

    Download files from : https://kernel.ubuntu.com/mainline/v6.14.11/

    Test amd64/build succeeded (rc=0, on=amd64, time=0:31:51, log=amd64/log)
      amd64/linux-headers-6.14.11-061411-generic_6.14.11-061411.202506101206_amd64.deb
      amd64/linux-headers-6.14.11-061411_6.14.11-061411.202506101206_all.deb
      amd64/linux-image-unsigned-6.14.11-061411-generic_6.14.11-061411.202506101206_amd64.deb
      amd64/linux-modules-6.14.11-061411-generic_6.14.11-061411.202506101206_amd64.deb

    Next Install all 4 headers
    sudo dpkg -i linux-*.deb
    sudo reboot


    Options 2:

    Boot into recovery mode: Select the last know kernel with "recovery mode". 

    Drop to a root shell: From the recovery menu, select the "root" option to drop into a root shell. 
    Attempt to repair the system:
    Run sudo apt update
    sudo apt upgrade
    Run sudo apt install --reinstall ubuntu-desktop 
     sudo apt --fix-broken install
    sudo reboot

    Option 3: 

    If you are looking to uninstall the Linux Kernel 6.14 from Ubuntu,
    sudo apt remove linux-headers-6.14* linux-image-*-6.14* linux-modules-6.14*

    ******************************************************************


    Comments

    Popular Posts

    Marriage Registration Online steps [Tamil Nadu]

    HOME LAB : HANDS-ON

    Contacts of Helpline for: Child rescue, Food wastage, blood group