View Single Post
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#254
Originally Posted by 7thd View Post
This is what home shows [attachment].

sdcard (/mmc) shows its subfolders fine, as does any other folder I checked. So I'd guess something could be wrong with partition. I experience no instability/faulty device otherwise.
Thanks for the screenshot. There are two easy ways to trace this down.

1. Start rockbox as root. May be it's a permission issue.
The binary is located in /opt/rockbox/bin/rockbox.

2. Install strace and capture the rockbox output.
Example command:
Code:
strace /opt/rockbox/bin/rockbox 2>&1 |grep -v clock_gettime |grep -v futex
When I enter into /home, the output looks like this:
Code:
open("/home", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 14
fstat64(14, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(14, F_SETFD, FD_CLOEXEC)        = 0
getdents(14, /* 6 entries */, 4096)     = 120
stat64("/home/user", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/user", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/home/lost+found", {st_mode=S_IFDIR|0700, st_size=16384, ...}) = 0
lstat64("/home/lost+found", {st_mode=S_IFDIR|0700, st_size=16384, ...}) = 0
stat64("/home/.apt-archive-cache", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
lstat64("/home/.apt-archive-cache", {st_mode=S_IFDIR|0755, st_size=77824, ...}) = 0
stat64("/home/..", {st_mode=S_IFDIR|0755, st_size=1632, ...}) = 0
lstat64("/home/..", {st_mode=S_IFDIR|0755, st_size=1632, ...}) = 0
getdents(14, /* 0 entries */, 4096)     = 0
close(14)                               = 0
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1x\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1z\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1|\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
gettimeofday({1324137064, 710845}, NULL) = 0
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1~\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1\200\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
gettimeofday({1324137065, 744750}, NULL) = 0
write(4, "\211\3\n\0\f\0\300\1\r\0\300\1 \3\340\1\0\0\0\0 \3\340\1\0\0\0\0\20\2\0-"..., 44) = 44
read(4, "\1\1\202\0\0\0\0\0\2\0\300\1l\352\n\0\310(4\0\0\0\0\0h>\4\0h>\4\0", 32) = 32
^C
HTH,
Thomas
 

The Following User Says Thank You to thomasjfox For This Useful Post: