MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
Yes he can.
I did just manage to get a "Partition must be ext or nfs" message. But it went away when I restarted the GUI so might just have been an artefact of moving a different disk into the /media/hdd position.
I suspect I confused myself by asking for the contents of /etc/fstab (which actually now contains auto, but did at one point contain ntfs-3g), but the code actually looks at /proc/mounts (which makes sense, as that won't ever contain "auto").
So yes, it does seem to be working, although it might take a few restarts to get it in place.
Also, how can you create the initial movie directory?
Last edited by birdman; 28-09-22 at 10:28.
MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD
The important thing is to make sure the disc is properly mounted and with the right name before trying to set up recording locations. The reason the OP had failures was because that was not the case.
birdman (02-01-22)
To OP, try this: Menu -> Setup -> System -> User interface -> Settings: Sort settings screens alphabetically YES
Funnily enough, I'm getting the "partition must be ext or nfs" error on OpenVix 6 2 010 on my Formuler F1 box (previously posted here)
I'm trying to save to a mounted ZFS partition - I've had to mount using nfsvers=4 option in /etc/fstab so I can get at all my datasets.
Looking at that commit, I notice the supported filesystem includes "nfs" but not the "nfs4" that df -Th shows me - could this be the reason for my problem?
Fair point! To be honest, I thought compiling the Python was a bit more difficult.
I did give it a go but it didn't work. I did a bit more debugging. Specifically, I added this to Timeshift.py as part of the isValidPartition function:
print("[Timeshift] DEBUG: mountpoint %s and filesystem %s" % (partition.mountpoint, partition.filesystem()))
Results I got as I was cycling through the various partitions was:
[Timeshift] DEBUG: mountpoint / and filesystem ubifs
I read that as it not actually checking the actually directory, but rather always / which is failing (because it's always ubifs)
Will do a bit more digging tomorrow hopefully
"/" is not a valid timeshift location.
This is what I get on my working system:
Code:for partition in Components.Harddisk.harddiskmanager.getMountedPartitions(): print("[Timeshift] DEBUG: mountpoint %s and filesystem %s" % (partition.mountpoint, partition.filesystem())) print("Valid", partition.filesystem() in supported_filesystems) if partition.filesystem() in supported_filesystems:Code:< 41323.0026> 10:21:58.5063 [Timeshift] DEBUG: mountpoint / and filesystem rootfs < 41323.0034> 10:21:58.5071 Valid False < 41323.0044> 10:21:58.5080 [Timeshift] DEBUG: mountpoint /media/hdd/ and filesystem ext4 < 41323.0050> 10:21:58.5087 Valid True < 41323.0060> 10:21:58.5096 [Timeshift] DEBUG: mountpoint /media/usb/ and filesystem ext4 < 41323.0067> 10:21:58.5103 Valid True
I get a different result. I tweaked the code:
These are the results in my log:Code:for partition in Components.Harddisk.harddiskmanager.getMountedPartitions(): print("[Timeshift] DEBUG: path %s, mountpoint %s and filesystem %s" % (path, partition.mountpoint, partition.filesystem())) print("Valid", partition.filesystem() in supported_filesystems) if partition.filesystem() in supported_filesystems: valid_partitions.append(partition.mountpoint)
So the getMountedPartitions() function is not picking up my mounted NFS partition (/beast). Not sure why - trying to track down the getMountedPartitions function to see what's going on.Code:< 210.0182> [Timeshift] DEBUG: path /beast/, mountpoint / and filesystem ubifs < 210.0202> Valid False < 221.3488> [Timeshift] DEBUG: path /media/, mountpoint / and filesystem ubifs < 221.3506> Valid False < 224.8464> [Timeshift] DEBUG: path /e2/timeshift/, mountpoint / and filesystem ubifs < 224.8483> Valid False < 228.7765> [Timeshift] DEBUG: path /beast/enigma2/timeshift/, mountpoint / and filesystem ubifs < 228.7786> Valid False
For reference, the partition does show up in mount:
(and equivalent in df)Code:172.30.1.2:/beast on /beast type nfs4 (rw,relatime,vers=4.0,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,port=0,timeo=14,retrans=2,sec=sys,clientaddr=172.30.1.18,local_lock=none,addr=172.30.1.2)
Harddisk.py
Code:def getMountedPartitions(self, onlyhotplug=False, mounts=None): if mounts is None: mounts = getProcMounts() parts = [partition for partition in self.partitions if (partition.is_hotplug or not onlyhotplug) and partition.mounted(mounts)] devs = set([partition.device for partition in parts]) for devname in devs.copy(): if not devname: continue dev, part = self.splitDeviceName(devname) if part and dev in devs: # If this is a partition and we still have the wholedisk, remove wholedisk. devs.remove(dev) # Return all devices which are not removed due to being a wholedisk when a partition exists. return [partition for partition in parts if not partition.device or partition.device in devs] def addMountedPartition(self, device, desc): for partition in self.partitions: if partition.mountpoint == device: return # Already_mounted. self.partitions.append(Partition(mountpoint=device, description=desc))
Gigablue Quad 4K & UE 4K
.........FBC Tuners:
------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
.......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
Zgemma H9 C/S into Giga4K
Recording is one thing, timeshift is another. The requirements for timeshift do not need to be applied to those for recording.
?... who are you replying to?