Filesystem layout - files list

General forum talking area for K series TVs.

temporary333
SamyGO Project Donor
Posts: 7
Joined: Sun Dec 13, 2015 11:16 am

Re: Filesystem layout - files list

Post by temporary333 »

zoelechat wrote: Fri Mar 24, 2017 10:03 am
temporary333 wrote: Fri Mar 24, 2017 9:50 am do you have also parition dump which contains /opt from k/j series? Or its backup file /usr/data_backup.img?
Yeah /opt base contents is in that image, rest is user/online dependent.
I mounted provided image but /opt is empty. So where is the opt contents ? Backup image also not present.

Code: Select all

# ls -la
drwxr-xr-x 22 root     root       4096 Mar 24 09:38 .
drwxr-xr-x  4 root     root         93 Mar 24 09:38 ..
dr-xr-xr-x  2 root     root       4096 Mar 24 09:39 bin
dr-xr-xr-x  2 root     root          6 Feb  4  2016 boot
drwxr-xrwx  2 root     root          6 Jun 11  2016 core
drwxr-xr-x  2     5000     5000      6 Jun 11  2016 %{_datastore_dir}
drwxr-xr-x  3 root     root       4096 Mar 24 09:39 dev
drwxr-xr-x 58 root     root       4096 Mar 24 09:39 etc
lrwxrwxrwx  1 root     root          9 Mar 24 09:38 home -> /opt/home
dr-xr-xr-x  7 root     root       4096 Mar 24 09:38 lib
drwx------  2 root     root          6 Jun 11  2016 lost+found
drwxr-xr-x  2 root     root          6 Feb  4  2016 media
drwxr-xr-x  6 root     root         73 Mar 24 09:38 mnt
drwxr-xr-x  2 root     root          6 Jun 11  2016 opt
-rw-r--r--  1 root     root     125167 Jun 11  2016 prelink.cache
drwxr-xr-x  2 root     root          6 Jun 11  2016 proc
lrwxrwxrwx  1 root     root         14 Mar 24 09:38 root -> /opt/home/root
drwxr-xr-x  3 root     root         17 Mar 24 09:38 run
dr-xr-xr-x  2 root     root       4096 Mar 24 09:39 sbin
lrwxrwxrwx  1 root     root          8 Mar 24 09:38 sdcard -> /mnt/mmc
drwxr-xr-x  2 root     root         18 Mar 24 09:39 smack
drwxr-xr-x  2 root     root          6 Feb  4  2016 srv
drwxr-xr-x  2 root     root          6 Jun 11  2016 sys
drwxr-xr-x  2 root     root         31 Mar 24 09:39 tmp
drwxr-xr-x 13 root     root       4096 Mar 24 09:38 usr
lrwxrwxrwx  1 root     root          8 Mar 24 09:38 var -> /opt/var
drwxr-xr-x  3 root     root         23 Mar 24 09:38 zone

# ls opt/
#
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Filesystem layout - files list

Post by zoelechat »

Right, forgot to mention data_backup.img exists on J only. No idea where it is on K (->nowhere), mostly generated by TV I assume, and/or factory written.
I do NOT receive any PM. Please use forum.
dlabi
Posts: 9
Joined: Sat Mar 25, 2017 10:31 pm

Re: Filesystem layout - files list

Post by dlabi »

I accidentally discovered trick how to list content of /opt directory. It is not limited to opt you can list more folder this way. First create empty file in destination folder on your PC. It doesn't matter how it is named. Then use this command sdb pull /opt <file_you_created>. Then you will get list of error that you can not create that file with content of opt directory. My tv is KU6072.
dlabi
Posts: 9
Joined: Sat Mar 25, 2017 10:31 pm

Re: Filesystem layout - files list

Post by dlabi »

After further investigation of sdb I have found two interesting things. You can set bigger verbosity of sdb by setting environment variable SDB_DEBUG=all
There is another variable but don't know exactly what this does SDB_TRACE_PACKET=true
Second thing is undocumented sdb command
info: sdb launch -p <pkgid> -e <executable> -m <run|debug|da|oprofile> [-P <port>] [-attach <pid>] [-t <gtest,gcov>] [<args...>] which runs /usr/sbin/sdk_launch on TV
and sdb fork-server purpose of this command is not clear to me
Last edited by dlabi on Sun Mar 26, 2017 12:49 am, edited 1 time in total.
temporary333
SamyGO Project Donor
Posts: 7
Joined: Sun Dec 13, 2015 11:16 am

Re: Filesystem layout - files list

Post by temporary333 »

zoelechat wrote: Sat Mar 25, 2017 10:27 am Right, forgot to mention data_backup.img exists on J only. No idea where it is on K (->nowhere), mostly generated by TV I assume, and/or factory written.
Ok. But the dump is from J series. So data_backup.img is missing in dump. Could you upload it?
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

Re: Filesystem layout - files list

Post by sectroyer »

temporary333 wrote: Sun Mar 26, 2017 12:48 am Ok. But the dump is from J series. So data_backup.img is missing in dump. Could you upload it?
You have in /usr/ :)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
temporary333
SamyGO Project Donor
Posts: 7
Joined: Sun Dec 13, 2015 11:16 am

Re: Filesystem layout - files list

Post by temporary333 »

sectroyer wrote: Sun Mar 26, 2017 12:51 am
temporary333 wrote: Sun Mar 26, 2017 12:48 am Ok. But the dump is from J series. So data_backup.img is missing in dump. Could you upload it?
You have in /usr/ :)

It's not here.

# ls -la
total 192
drwxr-xr-x 13 root root 4096 Mar 24 09:38 .
drwxr-xr-x 22 root root 4096 Mar 24 09:38 ..
drwxr-xr-x 180 root root 8192 Mar 24 09:38 apps
dr-xr-xr-x 7 root root 20480 Mar 24 09:39 bin
drwxr-xr-x 3 root root 19 Mar 24 09:38 data
drwxr-xr-x 24 root root 4096 Mar 24 09:39 etc
drwxr-xr-x 2 root root 6 Jun 11 2016 include
dr-xr-xr-x 67 root root 73728 Mar 24 09:38 lib
drwxr-xr-x 6 root root 64 Mar 24 09:38 libexec
dr-xr-xr-x 2 root root 4096 Mar 24 09:39 sbin
drwxr-xr-x 126 root root 4096 Mar 24 09:38 share
drwxr-xr-x 5 root root 61 Mar 24 09:39 ssl
drwxr-xr-x 20 root root 4096 Mar 24 09:38 ug

I have dump from https://mega.nz/#!y51mwRza!BVUOgLCjP34A ... Bbt74FOhP4.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: Filesystem layout - files list

Post by zoelechat »

JZM (Jazz.M) is K :)
(...H=Golf, J=Hawk, K=Jazz, M=Kant...)
I do NOT receive any PM. Please use forum.
temporary333
SamyGO Project Donor
Posts: 7
Joined: Sun Dec 13, 2015 11:16 am

Re: Filesystem layout - files list

Post by temporary333 »

zoelechat wrote: Sun Mar 26, 2017 9:00 am JZM (Jazz.M) is K :)
(...H=Golf, J=Hawk, K=Jazz, M=Kant...)
Ok. Is Dump from J series available?
dlabi
Posts: 9
Joined: Sat Mar 25, 2017 10:31 pm

Re: Filesystem layout - files list

Post by dlabi »

nrbrt wrote: Thu Feb 09, 2017 6:10 pm Hi All,

on K series the iframe still can access the local files with simple code :

Code: Select all

<iframe style="background: #FFFFFF;" src="file:///proc/meminfo" height=1000 width=700>></iframe> 
What version of fw and tv model you have? I can not make it run.

Post Reply

Return to “[K] General”