Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started 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
- 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.
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:
/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.
-
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
-
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.
-
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?
-
I couldn't say.