Time Machine From Dmg Image

It is a lot of easier when it comes to creating macOS bootable USB installer on a Mac as it has built-in as well as third-party tools to do that. However, you won't be that lucky if you were on a Windows 10 PC. So in here, we will introduce a free way to create bootable macOS USB on PC by creating a macOS virtual machine with the help of free VirtualBox software.

If you collect artifacts into a DMG file (using option 'dmg' or 'ro-dmg'), you can convert it into E01. $ brew install libewf $ hdiutil attach -nomount xxxxxxYYYYMMDDhhmmss.dmg $ diskutil list - confirm device name which DMG has been mounted $ ewfacquire -t evidence -v /dev/disk4s1 - create evidence.E01 from /dev/disk4s1 $ hdiutil detach. Apple's Time Machine is the go-to backup method for many Mac users. Apple's termination of the AirPort/Time Capsule series, however, puts some users in a lurch over how they will be continuing to back up their Macs using Time Machine. Luckily there are Apple approved Time Machine backup options sans Time Capsule.

Part 1: Download macOS ISO File or Virtual Disk

VirtualBox only supports ISO and virtual machine image file so the first thing you need is to convert macOS DMG file to ISO. Since this could lead to file corruption and other problems, it's much better to use a third-party source and download it from here, which is more straightforward and will help you avoid a lot of conversion and other issues. Below is a list of samples:

macOS Catalina ISO Image: http://www.mediafire.com/file/Catalina_10.15.5.iso

macOS Mojave ISO Image: https://mega.nz/folder/KGZDgIZQ#Nct0_zq5-LABTtFDo1hTjQ

Time Machine From Dmg Image

macOS High Serria ISO Image: https://archive.org/download/MacOSXHighSierra10.13.iso

macOS Catalina Virtual Machine Image: https://drive.google.com/file/d/1oACRx z/view

macOS Mojave Virtual Machine Image: https://drive.google.com/file/d/1OJ SJe/view

macOS High Serria Virtual Machine Image: https://www.mediafire.com/macOS_High_Sierra_Final

Part 2: Create a macOS Virtual Machine in VirtualBox on Windows 10 PC

Step 1:Open VirtualBox on Windows 10 PC

Assuming you've already installed VirtualBox on your Windows 10 computer, launch it and create a new VM called BigSur, with the OS option being set to Mac OS X and the version as Mac OS X (64-bit). Please note that Big Sur won't be available as an option until the next VirtualBox update, if at all.

Step 2:Set RAM Capacity for new Virtual Machine

As you follow the VM creation process, you'll need to set the RAM limit for the virtual machine. The recommended limit is 4096MB or about 4.0GB, but you can allocate more if you have enough RAM on your Windows 10 PC.

Step 3: Set Hard Drive Volume

The next step is to set the hard drive for new VM, for which you can pick the Create a Virtual Hard Disk Now option, choose VDI for the drive type, select the option for a fixed drive size, and set the drive size to about 20 to 25GB. You can allocate more if you think you'll be using a lot of apps on the macOS installation.

Step 4: Configure macOS Virtual Machine

In VirtualBox, you should be able to have a view of the VM you just created, along with the specs you chose. Go to Settings SystemMotherboard and uncheck the Floppy option under Boot Order. Hard Disk and Optical can be checked.

Next to Motherboard is the Processor tab. Go there and set the processor setting to at least 2 CPUs. In the navigation panel on the left, go to DisplayScreen Video Memory and set it to a minimum of 128MB. Next, under StorageEmptyAttributes, click on the Optical Drive icon on the right and select the ISO image for Big Sur that you created. Click OK and - this is very important - shut down VirtualBox.

Step 4:Final Preparation in Command Line

Although you've successfully created and configured your VM on VirtualBox, some steps still remain that must be completed in Command Prompt as admin. The following commands should be run one at a time, with a wait time in between for each command to run successfully:

cd 'C:Program FilesOracleVirtualBox'

VBoxManage.exe modifyvm 'Big Sur' --cpuidset 00000001 000306a9 04100800 7fbae3ff bfebfbff

VBoxManage setextradata 'Big Sur' 'VBoxInternal/Devices/efi/0/Config/DmiSystemProduct' 'MacBookPro11,3'

VBoxManage setextradata 'Big Sur' 'VBoxInternal/Devices/efi/0/Config/DmiSystemVersion' '1.0'

VBoxManage setextradata 'Big Sur' 'VBoxInternal/Devices/efi/0/Config/DmiBoardProduct' 'Mac-2BD1B31983FE1663'

VBoxManage setextradata 'Big Sur' 'VBoxInternal/Devices/smc/0/Config/DeviceKey' 'ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc'

VBoxManage setextradata 'Big Sur' 'VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC' 1

Part 3: Boot macOS Virtual Machine from PC

Launch VirtualBox again, click the VM called Big Sur, and click the Start button. At this point, you'll see a whole bunch of text running down your screen so you'll have to wait until it's over - about 5 minutes or so. When you see the option to choose a language, do so.

On the macOS Utilities page, click on Disk Utility and hit the Continue button on the bottom right. In Disk Utility, click View and select Show All Devices to see your Big Sur blank image on the left. Now, click on it and give the name Macintosh HD to the drive in the popup window pane; set APFS as your format and GUID Partition Map as the Boot Scheme. If the format is showing you just the Extended version or something else, that's fine. There have been some changes since macOS Catalina. Next, click Erase, which will erase the blank drive and take you back to the macOS Utilities window.

This time, click on Reinstall macOS and the Continue button. Agree to the Terms displayed on your screen and choose Macintosh HD as your hard drive. Click Install. The rest of the installation process will now be executed so this could take a while. However, at the end of the process, you'll be taken back to the installer. Don't worry, this is the expected result. Follow the final two steps below to complete the process. Patience is a virtue, you know!

The reason you were taken back to the installer is that VirtualBox can't boot from the virtual hard drive, for some reason. To counter that, turn the VM off and go to SettingsStorage and once again click the CD icon. In the menu options that pop up, select Remove Disk from Virtual Drive. Now turn the VM on again and you should be able to see the internal EFI shell. If you can see FS1 in yellow, you're on the right track. Type in fs1: and hit Enter after clicking the VM and allowing it to capture your keyboard and mouse. This will take you to the FS1 directory, where you'll need to run the following commands to get to where the installer is:

cd 'macOS Install Data'

cd 'Locked Files'

cd 'Boot Files'

boot.efi

Time machine from dmg imagery

You should eventually be able to see the installer in its GUI avatar. There's just one more step to go. Promise!

The macOS VM should now work on Windows 10 as it's supposed to and take you to the OS set up. Here, specify your country, identify the user and follow the rest of the steps until you see the Big Sur desktop. You have successfully run macOS Big Sur on Windows 10. Hurray!

Part 4: Create macOS Bootable USB Installer in VirtualBox

Step 1: Download macOS installation app from Mac App store by searching the name or you can get the dmg file from other websites.

Step 2: Install USB drive for macOS virtual machine and you should see the drive name in left sidebar in Finder App.

Step 3: Find the USB drive name using this command: diskutil list external

Step 4: Use the createinstallmedia command to create a bootable macOS USB installer:

Time Machine From Dmg ImageMachine

sudo /Applications/Install macOS Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume (Catalina)

sudo /Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume (Mojave)

sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume (Hihg Serria)

sudo /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X El Capitan.app (El Capitan)

Step 5: Wait for a few minutes and a bootable macOS USB installer is ready!

Final Note

It is a long and complicated work to create a bootable macOS USB installer with VirtualBox. Though it does work as promised, it is time consuming! Actually, there is alternative premium solution for this. That's UUByte DMG Editor, a GUI-based app to burn dmg file to USB on both PC and Mac.After burning, you will get a bootable USB installer for macOS. And you only need to wait for 5-10 minutes.

Time Machine From Dmg Images

I have a large Time Machine backup on my Synology NAS and wanted to restore files from it to a computer other than the source of the backup. In fact, I wanted to only get (unknown) incremental changes from the backup. Because it was a separate computer I was not able to use the Apple interface easily plus I wasn’t sure what the incremental changes were. And so I was planning to use Unison with a forced direction to get all the latest files from a 2TB backup. Initially I mounted the sparsebundle backup image on the destination computer, unsurprisingly running Unison on this was extremely slow as Unison needed to read the 2TB over a Wifi connection. Next I thought it would be faster to mount the sparsebundle on the Synology and have a instance of Unison go through the files locally while communicating with another instance of Unison on the destination computer.

Below is a write up of how the time machine sparsebundle can be mounted in the Debian Chroot environment of the Synology, using sparsebundlefs and tmfs. This could be useful for others that want to access their Time Machine backup information directly from the Synology NAS side.

The first requirement is the Debian Chroot environment; see my previous post for instructions on the configuration of this. Next you will need to install the necessary dependencies in the chroot environment (use sudo for all commands to elevate your rights if you are not logged in as root). sparsebundlefs requires fuse-utils which is not included in Debian Jessie as a package, but is included in Debian Wheezy. We will need to add the wheezy main repository for it to be installed.

Edit the file /etc/apt/sources.list to include the following line:
deb http://ftp.debian.org/debian wheezy main

Next install the following packages:

apt-get update
apt-get -t wheezy install fuse-utils
apt-get install curl build-essential libfuse-dev libfuse2 parted pkg-config tmfs

Time Machine From Dmg Imagery

Download the latest sparsebundlefs source:
curl -L https://github.com/torarnv/sparsebundlefs/tarball/master | tar xvz
Enter the directory that was created and compile the source code:
make
The build should result in a binary executable called sparsebundlefs. This will allow you to mount the sparsebundle disk image (where iMac.sparsebundle is the name of my backup sparsebundle created by Time Machine on my Synology).
mkdir /mnt/sparsebundle
./sparsebundlefs iMac.sparsebundle /mnt/sparsebundle

You will find the sparsebundle available as a .dmg diskimage (/mnt/sparsebundle/sparsebundle.dmg) that we can mount. However, the disk image likely holds two partitions (the first being the EFI System Partition), and we only want to mount the partition with the backup data. We run parted to find out the start position and size of the HFS data partition.

parted /mnt/sparsebundle/sparsebundle.dmg unit B print

Which returns the following output for my backup:

Time Machine From Dmg Image

Model: (file)
Disk /mnt/sparsebundle/sparsebundle.dmg: 3221225472000B
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:


Number Start End Size File system Name Flags
1 20480B 209735679B 209715200B fat32 EFI System Partition boot, esp
2 209735680B 3221091233791B 3220881498112B hfsx disk image

Time Machine From Dmg Image Free

Use the Start position and size as reported by parted for the following:
losetup -f /mnt/sparsebundle/sparsebundle.dmg --offset 209735680 --sizelimit 3220881498112 --show
Which to me returned /dev/loop1, if it returned something else for you make sure you use the correct loop in the below step.
We can mount the offset partition:

mkdir /mnt/iMac
mount -t hfsplus /dev/loop1 /mnt/iMac

You can try to browse through the mounted backup, however you’ll notice that files are likely not accessible because these are stored as hardlinks and these are not supported on hfsprogs by default. So the last step is to re-mount the partition using tmfs which will make the hardlinks work.

mkdir /mnt/iMac_backup
tmfs /mnt/iMac /mnt/iMac_backup

Now you should be able to browse through the files at /mnt/iMac_backup without a problem! Note: if you want to browse the files on the Synology user interface, you’ll probably want to mount it on a location that is already available in the file manager.