Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: m31 on January 29, 2024, 01:56:46 PM

Title: Issues with tce directory on exFAT partition
Post by: m31 on January 29, 2024, 01:56:46 PM
Summary
I've set up a basic installation and confirmed that most of the commands are running smoothly.
The "tce-[X]" commands, however, failed upon running: the unprivileged user doesn't have write access to the "tce" directory.
The "tce" directory is mounted without the parameters required to allow non-privileged users to write to it (fmask=0022).

Question

How can I permanently add parameters to TC Linux's initial mounting of the drives it'll use for the persistent directories (like a more standard distro's /etc/fstab)?

Reproduction conditions
Code: [Select]
setparams 'Core Linux'
   echo "Loading vmlinuz"
   linux /boot/vmlinuz64 tce=UUID="[UUID]/Linux/Core/tce" opt=[...] home=[...] restore=[...]
   echo "Loading ramdisk"
   initrd /boot/rootfs.gz /boot/modules64.gz /boot/core.gz

Mount status

The partition where the persistent directories are has an exFAT filesystem and is mounted as:
Code: [Select]
/dev/sdb1 on /mnt/sdb1 type exfat (rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)

Politeness

Though this is usually unwelcome in fora: thank you for your time.
Title: Re: Issues with tce directory on exFAT partition
Post by: curaga on January 30, 2024, 03:29:22 AM
Using a non-linux fs for the tce dir is not supported.

There's a number of ways you can hack such a setup locally:
- remaster the fstab (fstab modifications are supported, but tce loading happens before backup restore)
- remaster rebuildfstab, adding options for exfat type mounts
- remount it in /opt/bootlocal.sh
Title: Re: Issues with tce directory on exFAT partition
Post by: m31 on January 30, 2024, 09:00:14 AM
Ah, fair. That makes sense.
I'll study a bit more about the order in which things are loaded in TC and try to solve it following one of the suggestions, since unfortunately I do have to use this partition at the moment.
I'll update the post tonight if I manage to make it work.
Title: Re: Issues with tce directory on exFAT partition
Post by: Dawn_Xu on September 08, 2024, 09:48:30 PM
Using a non-linux fs for the tce dir is not supported.

There's a number of ways you can hack such a setup locally:
- remaster the fstab (fstab modifications are supported, but tce loading happens before backup restore)
- remaster rebuildfstab, adding options for exfat type mounts
- remount it in /opt/bootlocal.sh
Hello, Curaga
recently I'm trying to remaster /usr/sbin/rebuildfstab for handling ExFAT mounting
but after that, wifi support and mnttool broken, it's so weird
So what's the wrong with it? Why VFAT and FAT32 works finely?
Title: Re: Issues with tce directory on exFAT partition
Post by: curaga on September 09, 2024, 02:03:54 AM
I couldn't say.