Maintenance Mode Fixdisk can't unmount mnt/hd2

#1
Hi All,

I've got a few unallocated sectors turn up on my HDD so wanted to run fixdisk in maintenance mode but I got an error saying the mnt/hd2 couldn't be unmounted. I went into System command line mode and tried to unmount it manually but that didn't work either

humax# umount -f /dev/sdb2
umount: can't forcibly umount /dev/sdb2: Invalid argument

I also tried this with no luck
humax# umount -l /mnt/hd2

I checked my maintenance boot log (See below), is #73 in the log below of immportance?

Any other ideas? How can I find out what is locking hd2?

I'll try some more reboots to see if that helps.

Thanks

Rodp

----------------------------------------------
79 Displaying IP address: [192.168.1.4/4]
78 Done.
77 No wireless dongle detected.
76 killall: modinit: no process killed
75 Killing modinit
74 Killing run-and-gun
73 rmmod: can't unload 'bcmdriver': Resource temporarily unavailable
72 Unloading BCM kernel module...
71 Stopping dnsmasq process...
70 Stopping humaxtv process...
69 Waiting for network initialisation to complete...
68 still waiting... 30...
67 still waiting... 31...
66 still waiting... 32...
65 still waiting... 33...
64 still waiting... 34...
63 still waiting... 35...
62 still waiting... 36...
61 still waiting... 37...
60 still waiting... 38...
59 still waiting... 39...
58 still waiting... 40...
57 still waiting... 41...
56 [syncBoxInfo:1240] still waiting... 42...
55 ########################################
54 still waiting... 43...
53 ###### New Cert is Added
52 CertPath :rootcert_1k.pem
51 Domain :.bbc.co.uk
50 ########################################
49 ########################################
48 still waiting... 44...
47 ###### New Cert is Added
46 CertPath :hdrfoxt2_20101001.p12
45 Domain :.bbc.co.uk
44 ########################################
43 ########################################
42 still waiting... 45...
41 ###### New Cert is Added
40 CertPath :humax_tvportal_rootcert_2k_20101106_pub.pem
39 Domain :none
38 ########################################
37 ########################################
36 still waiting... 46...
35 ###### New Cert is Added
34 CertPath :htvdev_portal_ccert_2k_20101106.p12
33 Domain :.humaxtvportal.com
32 ########################################
31 still waiting... 47...
30 still waiting... 48...
29 [AP_BrowserManager_Proc:608] [AP_BrowserNetTime_startNetTimeTask:171] [AP_BrowserNetTime_startNetTimeTask:208] [scanFonts:448] [scanFonts:448] [scanFonts:448] still waiting... 49...
28 [DI_MEDIA_MP_GetStreamInfo] Error - Invalid Media Id.
27 [P_MEDIA_CheckValidMediaId] Invalid Media ID.
26 DRV_DSC_Init_Begin
25 still waiting... 50...
24 still waiting... 51...
23 still waiting... 52...
22 adding dns 192.168.1.254
21 adding dns 8.8.4.4
20 still waiting... 53...
19 route: SIOCDELRT: No such process
18 deleting routers
17 still waiting... 54...
16 Lease of 192.168.1.4 obtained, lease time 86400
15 Sending select for 192.168.1.4...
14 Sending discover...
13 udhcpc deconfig eth0 0.0.0.0
12 udhcpc (v1.20.2) started
11 Tue Nov 7 21:37:17 2017 Fan level: -1 -> 0 (ffffffff -> 0)
10 still waiting... 55...
9 still waiting... 56...
8 still waiting... 57...
7 still waiting... 58...
6 still waiting... 59...
5 Waiting for hardware initialisation to complete...
4 ... pid 245 ...
3 Starting humaxtv process...
2 Entering maintenance mode at Tue Nov 7 21:37:12 UTC 2017
1 Maintenance boot attempts remaining: 2
----------------------------------------------

upload_2017-11-7_22-34-6.png
 
OP
OP
R

rodp

Member
#2
Reading around a little I came across a telnet linux command which might tell me what in use and processes using it etc:

lsof /mnt/hd2

Next time I can reboot into maintenance mode I'll give that a go to see what I find what is locking hd2. Can anyone help me with the command choice after that - to kill the process / unlock the items I find so that I can then unmount the drive?

Thanks

Rodp
 
OP
OP
R

rodp

Member
#4
Black Hole, which part of the log tells you that?

I don't have any USB drives connected. I am however using the USB port to power my Chromecast but that's just for power. I will try disconnecting that though.

Cheers

Rodp
 

prpr

Well-Known Member
#6
lsof /mnt/hd2

Next time I can reboot into maintenance mode I'll give that a go to see what I find what is locking hd2. Can anyone help me with the command choice after that - to kill the process / unlock the items I find so that I can then unmount the drive?
It depends what lsof outputs. Be interested to know.
And you unmount a partition, not a drive (on the Humax anyway).
 
OP
OP
R
#7
Hi All, did some tests and this is what lsof returned with nothing changed on my system (ie chromecast still plugged in).

-------------------------------------------

Please select option: fixdisk
Any additional options (or press return for none):
Are you sure you wish to run the hard disk checker? [Y/N] Y
Running /var/lib/humaxtv_backup/mod/fix-disk

Checking disk sda (4096 byte sectors)

Partition /dev/sda1 is already unmounted
umount: can't umount /mnt/hd2: Device or resource busy
fix-disk: session terminated with exit status 1

-------------------------------------------

humax# lsof /mnt/hd2
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
lsof 1397 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
lsof 1398 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
humax# lsof /dev/sda1
humax#

-------------------------------------------
 
OP
OP
R
#8
and this is with the chromecast unplugged.. no change

-----------------------------------------

Humax HDR-Fox T2 (humax) 1.03.12/3.10

humax# lsof /mnt/hd2
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
lsof 1092 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
lsof 1093 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
humax# lsof /dev/sda1
humax#

-------------------------------------------

again still a problem trying to do a fixdisk via maintenance mode

Please select option: fixdisk
Any additional options (or press return for none):
Are you sure you wish to run the hard disk checker? [Y/N] Y
Running /var/lib/humaxtv_backup/mod/fix-disk

Checking disk sda (4096 byte sectors)

Unmounted /dev/sda1
umount: can't umount /mnt/hd2: Device or resource busy
fix-disk: session terminated with exit status 1

-----------------------------------------

So........ I still don't know what's locking /mnt/hd2

Any help much appreciated.

Thanks

Rodp
 

prpr

Well-Known Member
#9
Have you tried just going to the command line and doing this:
Code:
humax# umount /mnt/hd2
and see what happens? Repeat for hd1 and hd3.
Then 'exit' back to the menu and run fixdisk again.
 
OP
OP
R
#11
here's the full text... so lsof picks up two lines on hd2 and nothing for hd1 or hd3. I then type menu and try fixdisk but no luck.

-----------------------------------------------

Humax HDR-Fox T2 (humax) 1.03.12/3.10

humax# lsof /mnt/hd1
humax# lsof /mnt/hd2
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
lsof 1163 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
lsof 1164 root txt REG 8,2 146736 37831684 /mnt/hd2/mod/bin/lsof
humax# lsof /mnt/hd3
humax# menu
Menu version 1.22
Enter system PIN: ****

/---------------------------------------------\
| M A I N T E N A N C E M O D E M E N U |
\---------------------------------------------/

[ Humax HDR-Fox T2 (humax) 1.03.12/3.10 ]

fixdisk - Check and repair hard disk.
short - Run short hard-disk self test.
long - Run long hard-disk self test.
check - Check self-test progress.
gptf - Re-format disk using GPT scheme.
epg - Clear persistent EPG data.
dlna - Reset DLNA server database.
x - Leave maintenance mode (Humax will restart).
diag - Run a diagnostic.
cli - System command line (advanced users).

Please select option: fixdisk
Any additional options (or press return for none):
Are you sure you wish to run the hard disk checker? [Y/N] Y
Running /var/lib/humaxtv_backup/mod/fix-disk

Checking disk sda (4096 byte sectors)

Unmounted /dev/sda1
umount: can't umount /mnt/hd2: Device or resource busy
fix-disk: session terminated with exit status 1

Press return to continue:
 
OP
OP
R
#17
ok, so I've said No for the time being and gone and started to backup the data. I've plugged my portable HDD into the front USB, selected everything in video and told it to copy to my HDD. It working out at a speed of 4 MB/s. I was expecting more 20MB/s so that's a little odd. All the recordings are SD and already decrypted. Oh well, will leave it over night and hope that it doesn't turn itself off half way through.

So how broken do you think my HDD is if I get LBA 0 issue? (the number of reallocated sectors is now upto 24 so that's still really low but I'm assuming the LBA 0 is probably an important sector? I'm just reading through this post at the moment: https://hummy.tv/forum/threads/help-check-‘n-repair-keeps-reporting-“error-at-lba-0”.6076/

Thanks

rodp
 
OP
OP
R
#19
sorry prpr - I honestly thought I was on the latest - i should have checked... Still not sure about the LBA 0 and security thing and why this has happened.
 
OP
OP
R
#20
Just worked out it's going to take about 54 hours to transfer 790GB of data as I appear to only be getting a speed of about 4MB/s. Is this normal or should I expect a faster speed. I am using a WD elements USB 2TB drive formatted to fat32. I'm using the copy method via the remote control. I also tried the telnet 'cp' method but that it no quicker.

All the videos are decrypted

Thanks

Rodp
 
Top