# DietPi on a 2012 Mac Mini

**URL:** <https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689>\
**Category:** General Discussion\
**Created:** [2 December 2020 18:10 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689 "2020-12-02T18:10:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doctorbeefy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@Doctorbeefy](https://dietpi.com/forum/u/Doctorbeefy)\
**Post date:** [2 December 2020 18:10 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/1 "2020-12-02T18:10:19Z")

</div>

I am wondering if it is possible to install Dietpi on a Mac Mini or if there is a guide on this. I did do some looking around and it looks like it is possible to install Debian on a Mac Mini so I would assume it is possible with DietPi.

I want to turn this old Mac Mini into a home server, I would also like it to be the main OS on the device.

Please let me know if this is possible and where I can find a guide or a build I can use. This is mainly directed at MichaIng .

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [2 December 2020 18:17 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/2 "2020-12-02T18:17:14Z")

</div>

Hi,

many thanks for your message. If you are able to install Debian, you could have a look to the PREP script [https://github.com/MichaIng/DietPi/issues/1285](https://github.com/MichaIng/DietPi/issues/1285)

---

<div class="post-metadata">

**Author:** ![Doctorbeefy](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@Doctorbeefy](https://dietpi.com/forum/u/Doctorbeefy)\
**Post date:** [2 December 2020 18:58 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/3 "2020-12-02T18:58:17Z")

</div>

> [@](#):
>
> Hi,
> 
> many thanks for your message. If you are able to install Debian, you could have a look to the PREP script [PREP\_SYSTEM\_FOR\_DIETPI.sh | Automate · Issue #1285 · MichaIng/DietPi · GitHub](https://github.com/MichaIng/DietPi/issues/1285)

is there a certain post I should go off of in that thread or just the top one?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [2 December 2020 19:03 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/4 "2020-12-02T19:03:22Z")

</div>

First post contains instructions to be done.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [4 December 2020 12:09 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/5 "2020-12-04T12:09:57Z")

</div>

The regular x86\_64 UEFI image should work: [https://dietpi.com/docs/install/](https://dietpi.com/docs/install/) \> Install on native PC (UEFI)  
Otherwise, a more current documentation about DietPi-PREP: [https://dietpi.com/docs/hardware/#make-your-own-distribution](https://dietpi.com/docs/hardware/#make-your-own-distribution)

---

<div class="post-metadata">

**Author:** ![Reds](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Reds](https://dietpi.com/forum/u/Reds)\
**Post date:** [8 January 2021 13:07 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/6 "2021-01-08T13:07:13Z")

</div>

I just tried booting off the x86\_64 UEFI but I get ‘No bootable device’ error when attempting to boot off the USB stick.

Background, wanting to install DietPi on a 2011 MacMini (Core i5, 8GB RAM, 1TB SSD).

I used ApplePi Baker to flash a USB stick with the x86\_64 UEFI ISO file. That completed successfully. Holding down ‘alt’ to select a boot drive shows the Mac can see a partition on the USB key called ‘Windows’ but its not bootable.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 January 2021 13:13 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/7 "2021-01-08T13:13:07Z")

</div>

Maybe you can try to install plain Debian (NetInstall) directly on your MacMini. Once completed use PREP script to install DietPi on top

---

<div class="post-metadata">

**Author:** ![Reds](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Reds](https://dietpi.com/forum/u/Reds)\
**Post date:** [8 January 2021 14:02 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/8 "2021-01-08T14:02:01Z")

</div>

Agreed - I’ll be following this [https://wiki.debian.org/MacMiniIntel](https://wiki.debian.org/MacMiniIntel)

---

<div class="post-metadata">

**Author:** ![Reds](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Reds](https://dietpi.com/forum/u/Reds)\
**Post date:** [8 January 2021 18:08 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/9 "2021-01-08T18:08:34Z")

</div>

I completed this install this afternoon and it went through pretty smooth. The Prep scripts worked very well. The only thing I struggled with (and gave up on) was taking an image at the end of the prep script. Dietpi-imager couldn’t unmount the source drive to take the image as the source drive was also the boot drive.

Installed all my optimised software and the only thing that didn’t work was installing unbound. I submitted a bugreport using the built in report feature.

All up and running now and working great in a headless config on a 2011 MacMini! Many thanks Devs.

Would be great if we could get an image for this.

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [8 January 2021 21:26 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/10 "2021-01-08T21:26:12Z")

</div>

Best way to do a backup/image is to boot a livecd linux that will boot on the machine…then run the command to image the drive  
Clonezilla should be able to create an image of the drive and it does have a livecd version  
[http://johnsonyip.com/wordpress/2010/01/13/cloning-and-restoring-your-hard-drive-with-clonezilla-free-linux-livecd/](http://johnsonyip.com/wordpress/2010/01/13/cloning-and-restoring-your-hard-drive-with-clonezilla-free-linux-livecd/)

I recommend doing it asap…because if something borks, you have to go thru ALL that again to rebuild your dietpi

However…that is very very cool that you got dietpi running on a mac mini…believe it or not it will be a pretty good little server box

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 January 2021 23:29 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/11 "2021-01-08T23:29:20Z")

</div>

regarding unbound  
I would recommend to wait on next DietPi release 6.35. We will introduce quite some improvement on unbound

[https://github.com/MichaIng/DietPi/pull/4022](https://github.com/MichaIng/DietPi/pull/4022)  
[https://github.com/MichaIng/DietPi/issues/2409](https://github.com/MichaIng/DietPi/issues/2409)

---

<div class="post-metadata">

**Author:** ![Reds](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Reds](https://dietpi.com/forum/u/Reds)\
**Post date:** [9 January 2021 22:00 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/12 "2021-01-09T22:00:21Z")

</div>

Good to know - I shall await its release and try again.

FWIW, my 2011 MacMini is much faster than my overclocked Pi4 despite the Geekbench score being roughly the same. In real world usage its not very noticeable except in more intensive apps like NextCloud. Content loads _much faster_ than on the Pi4 and I was running mine off an SSD too.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [10 January 2021 14:29 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/13 "2021-01-10T14:29:26Z")

</div>

Just to be sure, the image you’re running now has GPT partition table, i.e. UEFI, right? fdisk -l /dev/sda | grep Disklabel  
We already use the most compatible CloneZilla “alternative” version for the installer image, so not sure how it can be made bootable on that Mac Mini then 🤔. Strange that it shows a “Windows” partition, as it was built on a Linux (DietPi) system, however the naming should not play a role as long as bootloader, partition table and EFI partition is fine.

---

<div class="post-metadata">

**Author:** ![Reds](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/ed655f/32.png) [@Reds](https://dietpi.com/forum/u/Reds)\
**Post date:** [10 January 2021 22:49 UTC](https://dietpi.com/forum/t/dietpi-on-a-2012-mac-mini/4689/14 "2021-01-10T22:49:08Z")

</div>

Yep, its GPT. The current Debian & Ubuntu 20 images both booted fine from USB. I wonder what the difference is?! 🤔

WarHawk Great idea, thanks for this. I’m going complete the build with all the software and then image using your method.
