PDA

View Full Version : Gigablue X2 crashes when trying to set mount for USB hard drive



point17
11-01-21, 01:53
I've been using a USB hard disk with my GBX2 for some time - it worked fine. Yesterday, as the GBX2 was not rebooting properly, I had to re-flash the GBX2 with the latest OpenVIX image (5.4.003) and following this I've been unable to get the box to mount the USB disk. The disk is working fine (can be plugged into a PC and used without a problem, and it has previously been used for the GBX2). In Information -> Devices the USB disk appears correctly but when I try to mount it in mount manager I get "Mount failed". If I try using Setup mounts (green button) to change the mount point to /media/hdd I get a crash. I've re-flashed and re-tried 3 times now so obviously I'm doing something wrong. Can anyone please provide some advice? Crash log attached (I think).

Thanks,
Dan
61223

twol
11-01-21, 06:56
I will have a look - you have 2 partitions on the usb disk???

twol
11-01-21, 08:08
OK - thats an interesting one as MoutManager has been changed since this version ... can you try copying this version (below) into /usr/lib/enigma2/python/Plugins/SystemPlugins/ViX
with putty login and thn enter init 4 (space between)
with filezilla login, rename existing MountManager and copy the new MountManager to /usr/lib/enigma2/python/Plugins/SystemPlugins/ViX
with putty enter init 6 (space between) and try again.

Let me know what happens!!

point17
11-01-21, 12:23
Thanks for helping. I followed your instructions and retried Setup mounts with the same result. New log file attached. I've also grabbed the fstab file and attached it (had to add a .txt extension so that this forum would allow it to be attached) but don't have the expertise to be able to interpret it. I saw a post somewhere that said you can hit problems like this if you leave the USB stick containing the new image plugged in too long after re-flashing - could that be what is happening here? I'm always nervous about taking out the USB stick with the new image on it too early because of the warnings about trashing your box if you remove it during the re-flashing process so maybe I left it in too long?

Perhaps I need to do a factory reset, re-flash, and try again?

Thanks,
Dan
6122561226

point17
11-01-21, 12:35
Doh! Hang on, I missed a couple of steps of your instructions so I haven't followed them properly yet. Let me do that now and then try again. One question, to rename the existing MountManager and replace it, is that the .pyo file or the .py file?

Apologies,
Dan

ccs
11-01-21, 12:44
Rename the .pyo file - the .py file is the source which is "compiled" when you restart, creating the new .pyo file.

point17
11-01-21, 13:35
Hmmm. I think I've now done what you suggested. I copied across the new MountManager.py, renamed the old MountManager.pyo and then after the restart I could see a fresh MountManager.pyo in that directory so the recompile seems to have happened. However, same result on trying to Setup mounts - new crash log attached. Some more information:
- In Information -> Devices the disk is showing with a reasonable figure for the size of the disk (5000.980 GB). It says "Free: full" but the disk is not full - I just checked by plugging it into a PC and there's at least 100GB free. I assume this is a red herring as this disk has been similarly full in the past and worked fine plugged into the GBX2.
- In Mount Manager there are 2 entries - I don't understand why. Both say "USB: Expansion Desk" with Size: unavailable, Mount: none, Device is /dev/sda1 for the first one and /dev/sda2 for the second. Type is listed as unavailable for both. Should there be 2 entries here? There's only one physical device plugged into a USB socket.
- Have tried connecting the disk first with one USB socket and then the other - same result.
- Have tried various combinations for changing the mount points - I tried just the first entry changed to /media/hdd, then tried both entries changed (to /media/hdd2 and /media/hdd3), then just the second entry changed, etc. I seem to get the same result whatever I try.
- If I try the blue button (Mount) instead of the green button, then it doesn't crash but I get an error: Mount failed, with various details including an error code. For some reason the error code is always 256 if I use the blue button on the first entry and 65280 if I use the blue button on the second entry.

Thanks for your continued help.
Dan

61227

twol
11-01-21, 15:15
Thanks for all that - I have only just come back in and I need to supply you with an updated version to give some debug.
A question for you. The dmesg indicates that you have both sda1 and sda2 on the usb, but its saying there are no partitions defined . Are sd1 and sda2 actually formatted correctly???
Dmesg .....
<4>[ 16.684000] UDF-fs: warning (device sda1): udf_fill_super: No partition found (2)
<4>[ 16.854000] UDF-fs: warning (device sda1): udf_fill_super: No partition found (2)
<4>[ 18.466000] UDF-fs: warning (device sda2): udf_fill_super: No partition found (2)
<4>[ 18.652000] UDF-fs: warning (device sda2): udf_fill_super: No partition found (2)

twol
11-01-21, 15:44
can you 1st turn on debug logs (menu/system/logs/settings ...... save somewhere reliable not flash!!), reboot (it should ask but if not reboot) and then try this and let me know the result. (again copy to /usr/lib/enigma2/python/Plugins/SystemPlugins/ViX).
You may see a message displayed on screen
Assuming it doesn't crash let me have debug log (post here)

point17
11-01-21, 18:33
Thanks for all that - I have only just come back in and I need to supply you with an updated version to give some debug.
A question for you. The dmesg indicates that you have both sda1 and sda2 on the usb, but its saying there are no partitions defined . Are sd1 and sda2 actually formatted correctly???
Dmesg .....
<4>[ 16.684000] UDF-fs: warning (device sda1): udf_fill_super: No partition found (2)
<4>[ 16.854000] UDF-fs: warning (device sda1): udf_fill_super: No partition found (2)
<4>[ 18.466000] UDF-fs: warning (device sda2): udf_fill_super: No partition found (2)
<4>[ 18.652000] UDF-fs: warning (device sda2): udf_fill_super: No partition found (2)


Apologies - have been on (ongoing) childcare duties.....

The disk that's plugged in is correctly partitioned - it's just a single NTFS partition. It reads and writes fine plugged into the PC and, until yesterday, worked fine on the GBX2. But the dmesg is wrong in saying that there are two devices on the USB - only one is plugged in.

I'll look at your other message later this evening. Not sure I can save the debug logs anywhere other than the flash because, of course, I have no disk storage until the problem is fixed. Will see what can be done. Do I need to install the new MountManager again?

Thanks,
Dan

cactikid
11-01-21, 18:44
Normally if i was setting up a new usb i would format on windows pc,then insert into box powered off.

format and initialize and it should show as ext4 as unsure if you already did that.

point17
11-01-21, 18:58
can you 1st turn on debug logs (menu/system/logs/settings ...... save somewhere reliable not flash!!), reboot (it should ask but if not reboot) and then try this and let me know the result. (again copy to /usr/lib/enigma2/python/Plugins/SystemPlugins/ViX).
You may see a message displayed on screen
Assuming it doesn't crash let me have debug log (post here)


It did crash, but it first displayed an error message - something different from previous behaviour. Of course it was gone before I could note down what it said but I did note that it made some reference to a Microsoft reserved partition. Maybe it's in the debug logs.

I tried again but behaviour has now reverted to previous - crashing without the error message. I've attached a few debug logs - hope these are useful.

Thanks,
Dan

61229
61230
61231

twol
11-01-21, 19:00
Apologies - have been on (ongoing) childcare duties.....

The disk that's plugged in is correctly partitioned - it's just a single NTFS partition. It reads and writes fine plugged into the PC and, until yesterday, worked fine on the GBX2. But the dmesg is wrong in saying that there are two devices on the USB - only one is plugged in.

I'll look at your other message later this evening. Not sure I can save the debug logs anywhere other than the flash because, of course, I have no disk storage until the problem is fixed. Will see what can be done. Do I need to install the new MountManager again?

Thanks,
Dan
Yes, you need to copy over the latest MountManager - it has added debug.
The hardware is seeing sda1 & sda2 allocated on the usb
Flash is OK for this test!
Assuming this test doesn‘t cause a crash, I would post the debug, then completely reformat the usb

BrokenUnusableAccount
11-01-21, 19:10
The disk that's plugged in is correctly partitioned - it's just a single NTFS partition.
Presumably you need the ntfs plugin for the box to see that.
So perhaps check the ntfs plugin from the feeds is still installed.

twol
11-01-21, 19:29
Presumably you need the ntfs plugin for the box to see that.
So perhaps check the ntfs plugin from the feeds is still installed.

Good thinking - might simplify the code in this area

point17
11-01-21, 21:37
Fantastic! Thanks both. I just KNEW it would come down to something stupid I had done, or forgotten to do. In my defence I have only done this once before and it was some time ago, so it's not entirely unexpected that I would have completely forgetten that I needed NTFS drivers installed.

Seems to be working now. In Information -> Devices the correct free space is being picked up, and the disk mounted with no problems. I've even got it visible as a network drive on my Windows PC via Samba.

One minor suggestion: do you agree it would be nice if the absence of the NTFS drivers could be picked up by MountManager, rather than resulting in a crash?

Thanks again for your help.
Dan

twol
11-01-21, 22:25
Fantastic! Thanks both. I just KNEW it would come down to something stupid I had done, or forgotten to do. In my defence I have only done this once before and it was some time ago, so it's not entirely unexpected that I would have completely forgetten that I needed NTFS drivers installed.

Seems to be working now. In Information -> Devices the correct free space is being picked up, and the disk mounted with no problems. I've even got it visible as a network drive on my Windows PC via Samba.

One minor suggestion: do you agree it would be nice if the absence of the NTFS drivers could be picked up by MountManager, rather than resulting in a crash?

Thanks again for your help.
Dan
I am looking to do that! Did you try the MountManager from last post?

point17
12-01-21, 17:19
I think this was with the revised MountManager - hopefully you can tell from the logs. I can't quite work out which of the logs corresponds to when the mount was successful (following installation of the NTFS plugin) so I've just included them all. Let me know if I missed the one you need.

Thanks,
Dan

61232
61233
61234
61235