Results 1 to 6 of 6

Thread: Accidently overwrites mac

  1. #1
    Join Date
    Jul 2018
    Beans
    3

    Exclamation Accidently overwrites mac

    Hi,

    I dual booted my mac with ubuntu using a tool called reFInd, But after finishing the process, I can't access my mac partition again and ubuntu takes up all the hard disk spaces on my mac.
    .
    And after shutting down or restarting, it goes straight to ubuntu without showing the reFInd menu and I can't access the macOS.

    Any help is really appreciated because my backup isn't up to date and I'm yet to backup some important files on the mac partition.

    Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Accidently overwrites mac

    Backups sound like the only solution to this problem. Not having them would mean that data is gone.
    To start, let's see if what you've described really happened.

    Run
    Code:
    sudo fdisk -l
    Post the output using code tags (Adv Reply #), like I did.

    Let's cross out fingers that you are mistaken.

  3. #3
    Join Date
    Jul 2018
    Beans
    3

    Re: Accidently overwrites mac

    Here is the output

    Code:
    Disk /dev/sda: 113 GiB, 121332826112 bytes, 236978176 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: F901A259-DF51-4F59-A6E9-953131BC1799
    
    Device         Start       End   Sectors   Size Type
    /dev/sda1       2048      4095      2048     1M BIOS boot
    /dev/sda2       4096 220323839 220319744 105.1G Linux filesystem
    /dev/sda3  220323840 236976127  16652288     8G Linux swap
    
    
    Disk /dev/sdd: 14.7 GiB, 15728640000 bytes, 30720000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x05473618

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Accidently overwrites mac

    Moved to Apple sub-forum, since a Mac.

    You show a BIOS type install on a Mac which normally is UEFI(EFI).
    Your sda1 as bios boot is default for BIOS installs on gpt partitioned drives.
    UEFI would normally have first (or near first) partition as ESP - efi system partition, FAT32 and boot flag or other codes to indicate it is the UEFI system boot partition.
    In erasing the ESP, you also erased rEFInd which is a boot manager installed in the ESP in a separate folder.
    Restore from your backups is about the only choice. Testdisk or photorec may find some data.

    There is testdisk to find old partitions, but since a lot of data was overwritten its deeper search may not find anything. If it does immediately copy to another drive.
    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

    If you had some vital data you may be able to recover some of it, but a long process as you have to scan drive for anything that looks like a file and it only recovers file extension.
    http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Jul 2018
    Beans
    3

    Re: Accidently overwrites mac

    I've run photorec and I got 1614 recup_dir folders, most of which are text files with random text. A sample screenshot can be found here : https://ibb.co/k9xEzJ
    Last edited by imraj3; July 22nd, 2018 at 04:46 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Accidently overwrites mac

    When I ran photorec, I got valid extensions like .txt, but no file names.

    So then I sorted by size to approximate which files were which and then started doing compares with my backup which was a bit old. Took weeks to do compares. Photorec found all the deleted copies some older than backup, so a lot of work to try to figure out which was correct. Or learned to do better backups.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •