Hi,
On 14/08/2024 11:40, Sean Whitton wrote:
For testing the git updates I've been working on, I needed a
case-insensitive scratch filesystem. The usual thing would be to make a
FAT32 loop mount, but I also needed 'ln -s' to work. I ended up with a
script to set up this an NTFS mount.[1]
This isn't really git-specific. I was thinking I could add a "tools"
subheading on [2]. Are others okay with me putting it there?
[1] https://git.spwhitton.name/dotfiles/tree/scripts/media/make-scratch-ntfs
[2] https://lts-team.pages.debian.net/wiki/TestSuites.html
Fine by me. The "autopkgtest" entry could be moved under "tools" as well :)
As for the script, I believe you can do without the partition table +
losetup, and work directly on the image:
fallocate -l 1G test.ntfs
/usr/sbin/mkfs.ntfs -F ... test.ntfs
sudo mount -o loop ... test.ntfs /mnt/t/
also 'umount -l' sounds like troubles :)
Cheers!
Sylvain Beucler
Debian LTS Team