Mount hdd not working after "use as HDD replacement"

zaxx

Vu+ Newbie
I can no longer re-mount the internal hdd after I briefly unmounted it to use a network hdd in hdd replacement mode. Device manager keeps showing the disk as not mounted after mount to /media/hdd command. Reboot is without effect. Can anyone help? Cheers.
 
There's obviously a problem with the "use as HDD replacement" implementation in MountManager: When this type of mount is created the /media/hdd folder is deleted and replaced by a symlink by the same name pointing to the network share. As a result it is not possible to re-mount the local hdd (e.g. /dev/sda1 in /etc/fstab) on /media/hdd once it is unmounted, since this folder no longer exists. The required line to mount the hdd on reboot is also not re-created in fstab.

So the solution to regaining the local hdd mount after a "use as HDD replacement" network mount is to:

1. Backup /etc/fstab before creating a "use as HDD replacement" network mount
2. Disable or delete the "use as HDD replacement" mount in MountManager*
3. Delete the /media/hdd symlink and create a /media/hdd folder
4. Replace /etc/fstab with the backup
5. Reboot

*Caution: Attempting to delete network mounts without disabling them first causes the "Please wait while updating your network mount..." info window to freeze. The only way out of this is to turn off the box!

The MountManager should take the /media/hdd symlink/folder situation into consideration when mounting/unmounting hdd replacement mounts and create/delete the symlink/folder as necessary. It should also mount/unmount the local hdd and update fstab to reflect the new situation.

Looks like there's some ironing-out to be done with the MountManager.
 
Addendum: Since only one mount can be used as an hdd replacement at a time MountManager should also update the list of mounts to reflect which is the active one (i.e. disable those that are not).
 
On further thought this situation also affects the device manager which will also need to keep track of which HDD replacement network mount is active in order to disable/enable it as a local hdd is mounted/dismounted. Either that or it will need to ask the user to do this manually. I do like the "use as HDD replacement" idea since it eliminates having to do various settings changes when switching to a network mount, but the implementation needs more thought to make it reliable.
 
A couple of principles could be implemented to simplify things and avoid problems:

1. In Mount Manager prompt the user to dismount the local HDD before attempting to create/enable a "use as HDD replacement" mount. Set "use as HDD replacement" option to "no" for all other mounts (enabled or disabled).

2. In Device Manager prompt the user to disable the active "use as HDD replacement" mount before attempting to mount a local HDD, or to set "use as HDD replacement" to "no" for this mount.
 
Another bug I found with the "use as HDD replacement" mode is that EPG data (epg.dat) is not saved to the network mount before rebooting or shutting down. It seems the mount is dismounted before the system can save epg.dat . As a result you lose the EPG info you load in hdd replacement mode everytime you reboot or shut down the box. It does, however, load epg.dat on boot: I was able get my EPG data back by putting epg.dat from the internal HDD into the root folder of the network mount and rebooting the box.
 
I forgot to mention that the points I discuss above concern the current Black Hole Vu+ Solo2 2.1.7 image.
 
Back
Top