Tiny Core Base > TCB Talk

Issues with tce directory on exFAT partition

(1/1)

m31:
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

* In drive "sda", partition 1, install GRUB
* In drive "sda", partition 1, set up the files for the kernel, core, modules and rootfs inside /boot
* In drive "sdb", partition 1, set up folders for tce, opt, etc. at /Linux/Core/{tce,opt,*}
* Set up the boot script shown below and boot.
--- Code: ---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

--- End code ---

Mount status

The partition where the persistent directories are has an exFAT filesystem and is mounted as:

--- Code: ---/dev/sdb1 on /mnt/sdb1 type exfat (rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)

--- End code ---

Politeness

Though this is usually unwelcome in fora: thank you for your time.

curaga:
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

m31:
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.

Dawn_Xu:

--- Quote from: 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

--- End quote ---
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?

curaga:
I couldn't say.

Navigation

[0] Message Index

Go to full version