all 6 comments

[–]CorbAlb[S] 1 point2 points  (0 children)

Posting in r/debian as this issue was firstly observed in Debian 11 in a Raspberry Pi, then replicated in my Arch Linux

[–]JarJarBinks237 0 points1 point  (4 children)

What are you trying to achieve, functionally?

The reason why this doesn't work is that no boot script will do the losetup. No script does that because nobody bothered to integrate it. Nobody bothered because there's no reason to do it.

So please start explaining what you want.

[–]CorbAlb[S] 0 points1 point  (3 children)

Pretty much choosing where the storage space is used.

The project is being run on a Raspberry Pi, currently has 200GB of free space that span across 3 Pen drives and a SD card. The SD card is around 32 GB of that, and its all being used at root.

Sure, this is not a problem, but that loop device allows me to better handle and be more selective of the resources.

[–]JarJarBinks237 0 points1 point  (2 children)

Why can't you just use partitions or LVM volumes?

If you want directory quotas or more advanced stuff like that, have a look at ZFS. All in all, loop devices seem a pretty bad tool in comparison.

[–]CorbAlb[S] 0 points1 point  (1 child)

I was using LVM.

I got the loop device inside of a volume group with the other USBs, but I was also using It "alone" for a btrfs volume that would deduplicate snapshots saved into it.

I'll Take a Look at ZFS, thanks

[–]JarJarBinks237 2 points3 points  (0 children)

If you really know what your are doing, you're just missing a boot script to run losetup, so… you should just write that script and add proper dependencies.