This was very useful, thank you. Mounting using a
SXXexecutablescriptname in the
/mod/etc/init.d folder was one way to get a USB drive mounted at boot time with a consistent path based on the mount point being the same, i.e. disc is
sda. Might change if I have two NTFS drives connected and they don't always get seen by the Humax in the same order, but a good stopgap for now.
Updates to ntfs-3g and mvdisks are on their way to the beta repository.
The main changes to ntfs-3g are a replacement for the patch above which fixes some failed mounts and now supports spaces in volume names.
mvdisks has been rewritten in order to support the new scheme.
Ah. Are you saying that the patch in the (code) tags above will be implemented in the forthcoming betas, meaning it's just a case of waiting for the package updates rather than manually applying the script above?
I was under the impression that the drive idle time could be saved to its internal flash memory, perhaps this is not the case.
Yes I was too, but apparently Seagate chooses not to do that, or let you modify and save
hdparm type values in their Dashboard software if drives are taken out of one enclosure and put into another, for example. Why would I take a drive out of the enclosure it came in? Weird choices to do with the control unit in the Seagate provided enclosure. I remember looking at the 5TB when it was hooked up to a desktop PC by SATA-II after I got it and it was partitioned very strangely, to the point where the test data I wrote on it wasn't accessible. So if the control unit got fried you couldn't just hook the drive up to another enclosure or internally to a desktop. Dumb. If I put that 5TB drive back in the enclosure it came in it would format it and use it's own weird partitioning scheme without warning. I know because I dropped a spare 2TB Hitachi in the Seagate USB enclosure and it did the very same thing. I know they're doing it to get around the problem older systems have with MBR/GPT - the very reason you're doing these beta updates to ntfs-3g on the Fox T2 here - but there are better ways. Do it in Windows/Linux/OS X software, not on the controller in hardware.
The spin down on my 5TB drive is ridiculous, literally a matter of seconds idle and it goes into standby, also dumb. The noise when it spins the platters back up is horrendous, it actually sounds like the heads are colliding with them. It isn't otherwise the drive would have been toast ages ago but because it sounds so hard on the mechanism I'm careful to disable it. I'd rather set a more reasonable 15 minute or so standby (it's a noisy drive too), however I've noticed even on a Windows PC some types of enclosure cause the drive to disappear from being mounted after going into standby. Disabling it is just easier. Definitely prefer HGST or WD drives now, far less grief and do run quieter, especially any of the WD AV-GP drives with the EURX in the model number (specifically made for DVR type uses). But anyway... enough rambling about Seagate.
Here is a patch against the beta version which renames the mount point to match the volume label. It is still work in progress, there could be some situations which break it. It could easily be modified to use the UUID instead of th evolume label but that would require a map file or database to map the UUID to user friendly names. The WebIF would then have to be modified to allow modification of the mapping file. This might be easier than changing the volume label which requires unmounting the partition first.
I personally don't mind just seeing the UUID on the
Storage menu, or manually coming up with some sort of "if UUID = this then change name to that" script with a little help. As long as the mount point is consistent it's not hard to tell from the directory structure of the drives which is which. As much as I've struggled to get my head around some of the rudiments of Linux and do simple things like this - well, simple when you know how - it's been an interesting learning curve.
---
EDIT: That reminds me, editing the
/mod/etc/exports file was a MUCH easier way to configure NFS, the whole thing with the
[ModSettings] folder was just confusing. Hand entering the mount points to share RW was much easier, and gets around the SMB server using an old protocol that won't mount on OS X (well it will via Kodi because it has SMB written into it - impressive work actually - but on the Finder it won't). NFS is better anyway... seems to buffer quicker because of the smaller overheads and Kodi also has that built in.