Kai
IImmich
•Created by Kai on 4/21/2025 in #help-desk-support
Problems with setting up EXT4 partition to work with postgres on WSL
So, I've started setting up immich and only now read that postgres needs to be on a ext4 partition (I'm on Windows 10).
So, what I tried:
opened powershell as Administrator
ps:wmic diskdrive list brief wsl --mount \.\PHYSICALDRIVE5 --bare wsl -d Ubuntu
wsl:sudo fdisk -l sudo fdisk /dev/sdf
Welcome to fdisk (util-linux 2.39.3). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-1000215215, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-1000215215, default 1000215215): +5120M Created a new partition 1 of type 'Linux' and of size 5 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.exit
In Windows' partitionmanager the drive shows up as offline ps:wsl --unmount \.\PHYSICALDRIVE5
it's online again, was locked before... But now I can't access the ext4 partition from wslwsl --mount \.\PHYSICALDRIVE5 --partition 1 --bare wsl -d Ubuntu
wsl:sudo fdisk -l
both partitions (so, the whole disk) show up. the disk is offline again. I tried only mounting the specific partition, but I guess that didn't work.The question I have now is how do I set it up on windows? I've seen people succeed here, so I'm obviously missing something.
41 replies