Page 2 of 2

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Thu Mar 24, 2016 3:38 pm
by zoelechat
I'd say /mtd_down/widgets/user/SamyGO/SamyGO/etc/init.d ? If you rooted your TV you should know :)
I'm not here to teach you everything from birth :D , better wheck wiki imho:
https://wiki.samygo.tv/index.php5?title ... cpu_models

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Thu Mar 24, 2016 9:49 pm
by rol
Sorry, I don't want to abuse, but I can't get it to work.

I've tried to add my own script in /mtd_down/widget/user/SamyGO/SamyGO/etc/init.d/. It is called 50_50_delete-mtd_contents.init and contains this:

Code: Select all

#!/bin/sh
rm -rf /mtd_contents/*
I've also changed the permissions to clone those of the other scripts already present in the directory, as you can see:

Code: Select all

10986884 drwxr-xr-x    1 root     0               0 Jan  1  1980 ./
3432977 drwxr-xr-x    1 root     0               0 Jan  1  1980 ../
10991407 -rwxr-xr-x    1 root     0             832 Nov  7  2011 01_01_catch_crap.init*
10991377 -rwxr-xr-x    1 root     0            2608 Apr  8  2011 01_03_hotplug.init.dis*
10991403 -rwxr-xr-x    1 root     0             803 Aug 26  2011 01_04_server_replacement.init*
10991362 -rwxr-xr-x    1 root     0            1123 Mar 29  2011 01_05_hiddev.init*
10991410 -rwxr-xr-x    1 root     0            4191 Jul 16  2011 02_04_replace_wifi_mod.init.dis*
10991365 -rwxr-xr-x    1 root     0            2684 Mar 29  2011 02_04_vusb.init*
10991440 -rwxr-xr-x    1 root     0            2352 Mar 29  2011 02_04_vusb.init.remi71*
10991368 -rwxr-xr-x    1 root     0            1121 Nov 23  2010 02_10_wakelan.init.dis*
10991371 -rwxr-xr-x    1 root     0             593 Mar 29  2011 03_01_fuse.init*
10991400 -rwxr-xr-x    1 root     0            1029 Mar 29  2011 03_03_djmount.init*
10991383 -rwxr-xr-x    1 root     0            2589 Mar 29  2011 03_03_nfsmount.init*
10991386 -rwxr-xr-x    1 root     0            3119 Mar 29  2011 03_03_nfsmount.init.remi71*
10991449 -rwxr-xr-x    1 root     0             445 Nov 10  2011 03_03_udpxy.init.dis*
10991374 -rwxr-xr-x    1 root     0            2015 Dec  6  2010 04_04_fusesmb.init.dis*
10991434 -rwxr-xr-x    1 root     0            1512 Sep 25  2011 04_04_httpfs.init.dis*
10991446 -rwxr-xr-x    1 root     0            2488 Oct  2  2011 04_04_samba.init*
10991380 -rwxr-xr-x    1 root     0            4500 Mar 29  2011 06_05_apache.init*
10991414 -rwxr-xr-x    1 root     0            2262 Apr  8  2011 06_05_bb_httpd.init.dis*
10991443 -rwxr-xr-x    1 root     0             671 Oct  2  2011 06_05_samba-server.init*
10991424 -rwxr-xr-x    1 root     0            1140 Mar 29  2011 06_06_obexpush.init.dis*
10991452 -rwxr-xr-x    1 root     0             343 Jan  1  1980 50_50_delete-mtd_contents.init*
10991421 -rwxr-xr-x    1 root     0             599 Mar 29  2011 70_70_arfix-sh.init.dis*
10991427 -rwxr-xr-x    1 root     0            4506 Mar 29  2011 80_80_record_to_nwshare.init.kayaweed*
10991396 -rwxr-xr-x    1 root     0            4309 Mar 29  2011 80_80_record_to_nwshare.init.remi71*
10991431 -rwxr-xr-x    1 root     0            1136 Mar 29  2011 90_90_injectso.init.dis*
10991417 -rwxr-xr-x    1 root     0            2073 May 31  2011 90_90_loadGameMains.init.dis*
10991389 -rwxr-xr-x    1 root     0             690 Mar 29  2011 99_99_start_exeDSP.init.disabled_by_default_to_protect_the_innocent*
That seems correct, or at least I think so. But after a reboot, the files are still in /mtd_contents. I don't understand why.

I've also tried to edit an existing script to simply add the command, but I don't know what command to use to edit a text file. I know vi but it seems that it is not included. Is it something else? If not, how can I edit a script? Should I copy it to my PC, edit it there, and put it back in the TV? If it's the normal method, the first script I've copied should work.

Any pointer? (I've found nothing on the wiki or forum that explains what should be done.)

BTW, I've already found that some files are the culprit of the problem of the TV hanging when it scans the drive. I still don't know exactly what files, but I've located the directory. And I've installed the NTFS "game" without problem. Thanks for the hint!

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Thu Mar 24, 2016 9:57 pm
by zoelechat

Code: Select all

chmod 755 /mtd_down/widget/user/SamyGO/SamyGO/etc/init.d/50_50_delete-mtd_contents.init
:?:

Otherwise yes better copy and edit scripts on PC. Use Notepad++ and be sure linefeeds are set to UNIX format (which also means: NEVER use Windows Notepad!!!)

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Thu Mar 24, 2016 10:32 pm
by rol
It's the chmod I've used. But I did not paid attention to the LF vs CR+LF ! That must be the reason. (I use PSPad, and it can convert the end of lines easily.) Thanks again!

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Thu Mar 24, 2016 10:35 pm
by zoelechat
Right, looks like I've been too lazy to scroll down :P

Code: Select all

-rwxr-xr-x

Re: Need to reset the internal storage of the TV for my external HDD

Posted: Sat Mar 26, 2016 6:40 pm
by rol
I can now confirm that the problem of the TV hanging when it scans the hard disc was due to the block size of the NTFS file system ! (I've used 8KB instead of the standard 4KB when I've formatted the disc for the first time.) I have reformatted the disc, this time with the default block size, and copied all original movie files back on the disc, and now the whole scan takes approximately 5 seconds, as it should. :-)

I've wasted a lot of time trying to figure out the problem, because the symptoms are very strange. It seems that the TV supports perfectly a certain number of files, but not more files, or not certain files. So, after having used my disc without problem during months, suddenly, it has stopped working fine and became ill because I've added a file or two! So, the lesson is that you should never change the "allocation unit size" when you format a disc for a Samsung TV! Keep the default settings proposed by Windows. I hope my bad experience will be useful to others.

Note that after having reformatted the disc, I have used the Paragon Alignment Tool (http://www.paragon-software.com/home/pa ... alignment/) to align the blocks of the filesystem with the physical clusters. Theoretically, that can somewhat speed up your disc. I don't think it's necessary for the TV, because by default Windows does not align the blocks. But that doesn't hurt.

Anyway, I've been lucky, because you've helped me much, zoelechat, and because I have received an empty disc for a couple of days from a friend, and I've been able to back my files up. Without that, I suppose I would have jumped on my TV! So, thanks again!

In the other hand, the R/W NTSF app doesn't work. It does something, and I see a flash when I launch it, but even after having waited several minutes, when I try to write on the NTFS partition, I see the "read-only filesystem" error. It's not a big problem. I don't need to access my discs with FTP, and I prefer the security of read-only NTFS partition, especially now that I know that NTFS is badly implemented in the OS of the TV. However, if a better solution to mount the NTFS partition in wr mode exists, I would like to try it. That may be useful sometimes.

Anyway, thanks again to SamyGO and this forum. Without you, the Samsung TVs are crap!