Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Disk initialisation order when waking up from Deep Standby

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
5.2.001
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Attachments
Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: Disk initialisation order when waking up from Deep Standby

  1. #1

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts

    Disk initialisation order when waking up from Deep Standby

    I've posted in the past about a problem with waking up from Deep Standby for a recording and not going back into Standby, but this problem I report here gave me a fright.

    I flashed my Mut@ant with OpenViX 5.2.001 and rebooted, restored settings, installed e2iplayer which was not reinstalled as part of restoring plugins and thought all was well done.

    Then thought of testing to see if waking up from Deep Standby worked as it used to some versions ago, so put it into Deep Standby and a couple of hours later when a recording was meant to have started I went back to it to see if it had succeeded to go into Standby, while it was recording a program. I was confronted with this error message:
    Code:
    Creating hardlink to timeshift failed!
    The filesystem on your Timeshift-Device does not support hard links.
    Make sure it is formatted in EXT2 or EXT3.
    [Errno 1] Operation not permitted.
    I checked the settings to make sure Timeshift was assigned to use the /media/hdd/ drive and not a USB stick I have plugged in for PICONS. The settings were all correct. I looked at the list of recorded programs and then I panicked because all the recordings were gone, except for the recording currently in progress.

    I also checked the Recordings settings to see they were assigned to the /media/hdd/ drive as they should be and this setting was also correct.

    I stopped the recording and deleted the current timer, unmounted both spinning disk and USB stick and run fsck on both of them. The USB had a dirty bit set. I rebooted and all my recordings were restored. Listing the contents of the USB drive revealed it had been initialised as /dev/sda1 instead of the HDD and therefore it was being used for recordings and timeshift.

    Any idea why this happened and how I can avoid this happening in the future? I am avoiding placing the Mut@nt into Deep Standby for now.
    Kind regards,

    Mick

  2. #2
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,365
    Thanks
    6,445
    Thanked 9,160 Times in 6,235 Posts
    Initialisation = format

    Your issue is not initialisation, but mounting. Go to Mount Manager and ensure mounts are as you need.

  3. #3
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,656
    Thanks
    65
    Thanked 655 Times in 511 Posts
    I've seen this type of problem a couple of times in the past immediately after performing an image update where a USB gets mounted on the reboot but not the hard disk. As a result the box attempts to put the timeshift and/or recordings on the stick (which has insufficient capacity). A cold reboot (switching off at the mains for 60 seconds) after an image update has always restored correct operation with respect to mounting the hard disk. Subsequent daily entry into deep standby has not shown the problem again.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  4. The Following User Says Thank You to adm For This Useful Post:

    abu baniaz (29-09-18)

  5. #4

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts
    @abu baniaz: Apologies for not using the correct nomenclature. I meant when the MoBo starts probing devices and udev initialises them, they are not initialised in the correct order and therefore they are mounted incorrectly. Where is the "mount manager"?

    @adm: I tried what you suggested. The same problem occurred:

    Before I powered down:

    # blkid | grep sd.1
    /dev/sda1: UUID="e639994e-9466-471a-8c77-285b59d9ff13" TYPE="ext4" PARTLABEL="primary" PARTUUID="1483c56d-85ce-4de1-a0be-e216dcf9b3c4"
    /dev/sdb1: LABEL="USB DISK" UUID="1043-0091" TYPE="vfat" PARTUUID="c3072e18-01"

    After I powered up:

    # blkid | grep sd.1
    /dev/sda1: LABEL="USB DISK" UUID="1043-0091" TYPE="vfat" PARTUUID="c3072e18-01"
    /dev/sdb1: UUID="e639994e-9466-471a-8c77-285b59d9ff13" TYPE="ext4" PARTLABEL="primary" PARTUUID="1483c56d-85ce-4de1-a0be-e216dcf9b3c4"

    This problem does not occur if I just reboot.
    Kind regards,

    Mick

  6. #5
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,423
    Thanks
    997
    Thanked 2,895 Times in 2,248 Posts
    Menu/setup/vix ——> Mountmanager
    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

  7. #6

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts
    Thank you twol, I just came across it as I was checking which drive is used to save backups and images. Here is a screenshot ofBBC ONE HD-2992018-1847.jpg what it shows, but this is not the order in which devices are mounted when the Mut@nt is woken up from a Deep Standby.
    Kind regards,

    Mick

  8. #7
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,365
    Thanks
    6,445
    Thanked 9,160 Times in 6,235 Posts
    IIRC, if you save the mount points in mount manager, the mount points use a different, more resilient method.

    Please confirm you have "saved" while in mount manager.

    May I ask why you need the USB stick and also in a non-linux file system.

  9. #8
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,634
    Thanks
    2,007
    Thanked 4,957 Times in 3,276 Posts
    You are in the correct screen. Open each device in turn and save the settings.
    Help keep OpenViX servers online.Please donate!

  10. #9
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,800
    Thanks
    237
    Thanked 1,659 Times in 1,307 Posts
    Quote Originally Posted by Mickkie View Post
    Listing the contents of the USB drive revealed it had been initialised as /dev/sda1 instead of the HDD and therefore it was being used for recordings and timeshift.

    Any idea why this happened
    It's an issue about which device responds first when the various communication buses are probed at boot time.
    This can be random, and also dependent on any "extra" USB devices present at boot time.
    The solution is to mount devices using their partition UUID, which is what will be set-up if you configure mount points in the Device/Mount Manager.
    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

  11. The Following User Says Thank You to birdman For This Useful Post:

    abu baniaz (30-09-18)

  12. #10

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts
    Thank you all for your replies. I've used the Mount Manager in the Vix menu to (re)confirm the devices were as shown and saved the results, rebooting each time as it asked me to do. I set the device into Deep Standby and when it woke up their order in which they were mounted was respected.

    Interestingly, /etc/fstab shows the devices with their UUIDs:

    Code:
    /dev/mmcblk0p1		/boot		auto		defaults	1  1
    rootfs			/		auto		defaults		1  1
    proc			/proc		proc		defaults		0  0
    devpts			/dev/pts	devpts		mode=0620,gid=5	0  0
    usbdevfs		/proc/bus/usb	usbdevfs	noauto				0  0
    tmpfs			/var/volatile	tmpfs		defaults				0  0
    /dev/mmcblk0p10 none swap defaults 0 0
    UUID=e639994e-9466-471a-8c77-285b59d9ff13	 /media/hdd	auto	defaults	0 0
    UUID=1043-0091	/media/usb	vfat	defaults	0 0
    @abu baniaz: I'm sure I read somewhere a USB stick is recommended for saving PICONS and for storing the EPG. I left it with a VFAT fs (as opposed to ext2) because this is what I use often to flash the Mut@nt with a new image and the various guides state the USB used for flashing should be formatted as VFAT.
    Kind regards,

    Mick

  13. #11
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,365
    Thanks
    6,445
    Thanked 9,160 Times in 6,235 Posts
    EPG is best on HDD.

    I'd only use a separate flash drive for picons if it is a large picon set. Internal flash is fine. Anyway, your issue should be resolved now.

  14. #12

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    613
    Thanked 418 Times in 270 Posts
    I use HDD for both EPG and picons without any issues

  15. #13
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,634
    Thanks
    2,007
    Thanked 4,957 Times in 3,276 Posts
    Quote Originally Posted by bbbuk View Post
    I use HDD for both EPG and picons
    Putting picons on the HDD means either the HDD is kept permanently awake, or the HDD has to spin up just to open the infobar. Either way, not something we would recommend.

    The only benefit of putting picons on a USB drive is that it is easy to transport them from box to box.
    Help keep OpenViX servers online.Please donate!

  16. #14
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,365
    Thanks
    6,445
    Thanked 9,160 Times in 6,235 Posts
    Or not having to reinstall after flashing

  17. #15
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,634
    Thanks
    2,007
    Thanked 4,957 Times in 3,276 Posts
    Quote Originally Posted by abu baniaz View Post
    Or not having to reinstall after flashing
    Mine are on USB and not added from the feeds, but means the picons go out of date over time.
    Help keep OpenViX servers online.Please donate!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.