.--------------------------.
.-' '-.
.' '.
/ \
| |
| .-----. |
| (gunther) |
| '-------' |
| |
\ /
|-.______________________________.-|
| o o o [] <> ||||||| |
|__________________________________|
[history]
donor = Michel van Soest
donation_date = 2026.09.28
trivia = This is a Mac mini which was labelled 24. It is the first donation from KABK. It formerly lived in the Computer Workshop and donated to the orphanage together with an iMac. It is a Macmini4,1 which is the last Mac mini with a CD drive. The drive was wiped when it arrived in the orphanage and not much more is known about its previous life.
[orphan] name = gunther os = NixOS architecture = x84_64 model = A1347 serial_number = C07D61EQDD6L
[current interests] active = false
A ventoy USB stick did not want to boot. With ventoy it is possible to put multiple linux live systems on a single stick. So, I tried if it boots a single linux live install disk.
First, create a live usb stick. I decided to give NixOS another chance, so my first attempt will be to run it on the orphan.
on other laptop:
$ # identify the usb stick
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 1.9G 0 disk
├─sda1 8:1 1 1.6G 0 part
└─sda2 8:2 1 3M 0 part
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot
├─nvme0n1p2 259:2 0 42G 0 part
├─nvme0n1p3 259:3 0 42G 0 part
├─nvme0n1p4 259:4 0 42G 0 part /nix/store
│ /
└─nvme0n1p5 259:5 0 805G 0 part /mnt/datar
$ sudo dd if=./nixos-minimal-26.05.7813.0dd31db7e6db-x86_64-linux.iso of=/dev/sda bs=1M status=progress && sync
then insert the usb stick in the mac Mini.
Hold UEFI boot
Wait until the stick booted.
then become root! there is no password in the live usb stick
$ sudo -i # become root, there is no password
quickly check the drive as it is now, to verify that we have EFI boot and a gpt partition table.
# fdisk -l /dev/sda
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS721010A9
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: AC87ECA3-5592-4A340-B175-2651251680B0
Device Start End Sectors Size Type
/dev/sda1 40 409639 409600 200M EFI System
/dev/sda2 409640 976264831 975755192 465.3G Apple HFS/HFS+
/dev/sda4 976264832 977434367 1269536 619.9M Apple boot
/dev/sda4 977434368 1953262983 975828616 465.3G Apple HFS/HFS+
Aaaaand we do! Fantastic. Also, the drive seems to be 1TB, so that's more than enough space. We might use this Mac mini to throw lots of data on it, for example file sharing? Website hosting?
Well, now that we know what we are dealing with, let's repartition the drive and make it ready for linux.
First, create a partition table.
# parted /dev/sda -- mklabel gpt
Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No?
Obviously, this is what I want, so I type
[...]
Yes/No? Yes
This takes a looooooong time. In between there are some logs that look funny. Something like
[ 439.0851218 ] brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
[ 854.1324031 ] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
... and so on
No idea what that means, but it doesn't look too worrying. It does say mac, but actually this doesn't refer to Mac as in Macintosh, but to MAC as in Medium Access Control and is used for networking. In this case brcmsmac is a broadcom wifi driver. We don't intend to use Wifi so this can be shelved under whatever. Besides, this is not even an error. Why am I still talking about it? Because it still takes a long time.
Ha! I noticed that I forgot to press enter. whoopsie.
I get a notice within a couple of splitseconds:
Information: You may need to update /etc/fstab
We'll get to that later, first the partitions:
Add the root partition. This will fill the disk except for the end part, where the swap will live, and the space left in front (512MiB) which will be used by the boot partition.
# parted /dev/sda -- mkpart root ext4 512MB -8GB
Next, add a swap partition. The size required will vary according to needs, here a 8GB one is created.
# parted /dev/sda -- mkpart swap linux-swap -8GB 100%
Note
The swap partition size rules are no different than for other Linux distributions.
Finally, the boot partition. NixOS by default uses the ESP (EFI system partition) as its /boot partition. It uses the initially reserved 512MiB at the start of the disk.
# parted /dev/sda -- mkpart ESP fat32 1MB 512MB
# parted /dev/sda -- set 3 esp on
Use the following commands:
For initialising Ext4 partitions: mkfs.ext4. It is recommended that you assign a unique symbolic label to the file system using the option -L label, since this makes the file system configuration independent from device changes. For example:
# mkfs.ext4 -L nixos /dev/sda1
For creating swap partitions: mkswap. Again it’s recommended to assign a label to the swap partition: -L label. For example:
# mkswap -L swap /dev/sda2
UEFI systems
For creating boot partitions: mkfs.fat. Again it’s recommended to assign a label to the boot partition: -n label. For example:
# mkfs.fat -F 32 -n boot /dev/sda3
Note: it warns about compatibility of lowercase labels on some systems. next time use BOOT.