WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Issues with tce directory on exFAT partition  (Read 1697 times)

Offline m31

  • Newbie
  • *
  • Posts: 2
Issues with tce directory on exFAT partition
« 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.
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Issues with tce directory on exFAT partition
« Reply #1 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
The only barriers that can stop you are the ones you create yourself.

Offline m31

  • Newbie
  • *
  • Posts: 2
Re: Issues with tce directory on exFAT partition
« Reply #2 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.

Offline Dawn_Xu

  • Newbie
  • *
  • Posts: 2
Re: Issues with tce directory on exFAT partition
« Reply #3 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Issues with tce directory on exFAT partition
« Reply #4 on: September 09, 2024, 02:03:54 AM »
I couldn't say.
The only barriers that can stop you are the ones you create yourself.