Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No files listed #6

Closed
bsquared opened this issue May 13, 2012 · 6 comments
Closed

No files listed #6

bsquared opened this issue May 13, 2012 · 6 comments

Comments

@bsquared
Copy link

This is exactly what I need but...

I installed archlinux aur package http://aur.archlinux.org/packages.php?ID=58996,
which compiles from git with a patch. when I run mkdir /tmp/adbFS && adbfs /tmp/adbFS I get a the following output from ls.
$ ls
ls: cannot access .: No such file or directory
ls: cannot access ..: No such file or directory
ls: cannot access acct: No such file or directory
ls: cannot access cache: No such file or directory
ls: cannot access config: No such file or directory
ls: cannot access d: No such file or directory
ls: cannot access data: No such file or directory
ls: cannot access default.prop: No such file or directory
ls: cannot access dev: No such file or directory
ls: cannot access etc: No such file or directory
ls: cannot access init: No such file or directory
ls: cannot access init.goldfish.rc: No such file or directory
ls: cannot access init.poweroffcharge.rc: No such file or directory
ls: cannot access init.qcom.rc: No such file or directory
ls: cannot access init.qcom.sh: No such file or directory
ls: cannot access init.rc: No such file or directory
ls: cannot access init.zte.rc: No such file or directory
ls: cannot access mnt: No such file or directory
ls: cannot access persist: No such file or directory
ls: cannot access proc: No such file or directory
ls: cannot access res: No such file or directory
ls: cannot access root: No such file or directory
ls: cannot access sbin: No such file or directory
ls: cannot access sdcard: No such file or directory
ls: cannot access sys: No such file or directory
ls: cannot access system: No such file or directory
ls: cannot access ueventd.goldfish.rc: No such file or directory
ls: cannot access ueventd.rc: No such file or directory
ls: cannot access vendor: No such file or directory
?[0;0mdefault.prop?[0m ?[1;34m..?[0m ?[1;34mres?[0m
?[0;0mueventd.goldfish.rc?[0m ?[1;34m.?[0m ?[1;34mroot?[0m
?[0;0mueventd.rc?[0m ?[1;34macct?[0m ?[1;34msbin?[0m
?[1;32minit?[0m ?[1;34mcache?[0m ?[1;34msys?[0m
?[1;32minit.goldfish.rc?[0m ?[1;34mconfig?[0m ?[1;34msystem?[0m
?[1;32minit.poweroffcharge.rc?[0m ?[1;34mdata?[0m ?[1;36md?[0m
?[1;32minit.qcom.rc?[0m ?[1;34mdev?[0m ?[1;36metc?[0m
?[1;32minit.qcom.sh?[0m ?[1;34mmnt?[0m ?[1;36msdcard?[0m
?[1;32minit.rc?[0m ?[1;34mpersist?[0m ?[1;36mvendor?[0m
?[1;32minit.zte.rc?[0m ?[1;34mproc?[0m

Have I missed something?

thanks.
Brian

@isieo
Copy link
Owner

isieo commented May 13, 2012

hm, not sure what's going on, do you have busybox installed on your device?
what device are you using?

@bsquared
Copy link
Author

Thank you for reply. I am rooted with busybox. Android 2.3.4, ZTE X-500

When I run in debug mode it looks like it fails when looking for Trash.

$ adbfs -d /tmp/adbFS
---- exec_command: rm -rf /tmp/adbfs
FUSE library version: 2.9.0
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.16
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.18
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
unique: 1, success, outsize: 40
unique: 2, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 1118
LOOKUP /.Trash
getattr /.Trash
stat -t "/.Trash"
--
-- exec_command: adb shell busybox stat -t "/.Trash"
unique: 2, error: -2 (No such file or directory), outsize: 16
unique: 3, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 1118
LOOKUP /.Trash-1000
getattr /.Trash-1000
stat -t "/.Trash-1000"
--*-- exec_command: adb shell busybox stat -t "/.Trash-1000"
unique: 3, error: -2 (No such file or directory), outsize: 16

Regards,
Brian

@isieo
Copy link
Owner

isieo commented May 14, 2012

ah! try a different mount point, /tmp/adbfs is where it stores temporary files, you got a loop there :p

@bsquared
Copy link
Author

my mount point is /tmp/adbFS not /tmp/adbfs.
Is the filesystem case sensitive? I assume so since I am on linux.

Any how I tried this with same results. :(
$ mkdir /tmp/fsadb
$ adbfs /tmp/fsadb
--*-- exec_command: rm -rf /tmp/adbfs
$ ls /tmp/fsadb
ls: cannot access /tmp/fsadb/.: No such file or directory
ls: cannot access /tmp/fsadb/..: No such file or directory
ls: cannot access /tmp/fsadb/acct: No such file or directory
ls: cannot access /tmp/fsadb/cache: No such file or directory
ls: cannot access /tmp/fsadb/config: No such file or directory
ls: cannot access /tmp/fsadb/d: No such file or directory
ls: cannot access /tmp/fsadb/data: No such file or directory
ls: cannot access /tmp/fsadb/default.prop: No such file or directory
ls: cannot access /tmp/fsadb/dev: No such file or directory
ls: cannot access /tmp/fsadb/etc: No such file or directory
ls: cannot access /tmp/fsadb/init: No such file or directory
ls: cannot access /tmp/fsadb/init.goldfish.rc: No such file or directory
ls: cannot access /tmp/fsadb/init.poweroffcharge.rc: No such file or directory
ls: cannot access /tmp/fsadb/init.qcom.rc: No such file or directory
ls: cannot access /tmp/fsadb/init.qcom.sh: No such file or directory
ls: cannot access /tmp/fsadb/init.rc: No such file or directory
ls: cannot access /tmp/fsadb/init.zte.rc: No such file or directory
ls: cannot access /tmp/fsadb/mnt: No such file or directory
ls: cannot access /tmp/fsadb/persist: No such file or directory
ls: cannot access /tmp/fsadb/proc: No such file or directory
ls: cannot access /tmp/fsadb/res: No such file or directory
ls: cannot access /tmp/fsadb/root: No such file or directory
ls: cannot access /tmp/fsadb/sbin: No such file or directory
ls: cannot access /tmp/fsadb/sdcard: No such file or directory
ls: cannot access /tmp/fsadb/sys: No such file or directory
ls: cannot access /tmp/fsadb/system: No such file or directory
ls: cannot access /tmp/fsadb/ueventd.goldfish.rc: No such file or directory
ls: cannot access /tmp/fsadb/ueventd.rc: No such file or directory
ls: cannot access /tmp/fsadb/vendor: No such file or directory
?[0;0mdefault.prop?[0m ?[1;34m..?[0m ?[1;34mres?[0m
?[0;0mueventd.goldfish.rc?[0m ?[1;34m.?[0m ?[1;34mroot?[0m
?[0;0mueventd.rc?[0m ?[1;34macct?[0m ?[1;34msbin?[0m
?[1;32minit?[0m ?[1;34mcache?[0m ?[1;34msys?[0m
?[1;32minit.goldfish.rc?[0m ?[1;34mconfig?[0m ?[1;34msystem?[0m
?[1;32minit.poweroffcharge.rc?[0m ?[1;34mdata?[0m ?[1;36md?[0m
?[1;32minit.qcom.rc?[0m ?[1;34mdev?[0m ?[1;36metc?[0m
?[1;32minit.qcom.sh?[0m ?[1;34mmnt?[0m ?[1;36msdcard?[0m
?[1;32minit.rc?[0m ?[1;34mpersist?[0m ?[1;36mvendor?[0m
?[1;32minit.zte.rc?[0m ?[1;34mproc?[0m

Regards,
Brian

@isieo
Copy link
Owner

isieo commented May 16, 2012

hm, i can't seem to replicate your problem :/

can you try running the following?

adb shell busybox stat -t "/mnt/sdcard"

@bsquared
Copy link
Author

Calvin Tee
[email protected]
writes:

hm, i can't seem to replicate your problem :/

can you try running the following?

adb shell busybox stat -t "/mnt/sdcard"


Reply to this email directly or view it on GitHub:
#6 (comment)

$ adb -d shell busybox stat -t "/mnt/sdcard"
/mnt/sdcard 32768 64 403d 1000 1015 b301 1 14 0 0 0 0 0 32768

$ adbfs -d /tmp/mnt
---- exec_command: rm -rf /tmp/adbfs
FUSE library version: 2.9.0
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.16
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.18
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
max_background=0
congestion_threshold=0
unique: 1, success, outsize: 40
unique: 2, opcode: LOOKUP (1), nodeid: 1, insize: 47, pid: 1118
LOOKUP /.Trash
getattr /.Trash
stat -t "/.Trash"
--
-- exec_command: adb shell busybox stat -t "/.Trash"
unique: 2, error: -2 (No such file or directory), outsize: 16
unique: 3, opcode: LOOKUP (1), nodeid: 1, insize: 52, pid: 1118
LOOKUP /.Trash-1000
getattr /.Trash-1000
stat -t "/.Trash-1000"
--*-- exec_command: adb shell busybox stat -t "/.Trash-1000"
unique: 3, error: -2 (No such file or directory), outsize: 16

busybox ls -al

drwxr-xr-x 15 0 0 0 May 14 19:53 .
drwxr-xr-x 15 0 0 0 May 14 19:53 ..
drwxr-xr-x 3 0 0 0 May 14 19:53 acct
drwxrwx--- 1 1000 2001 2048 May 16 15:55 cache
dr-x------ 2 0 0 0 May 14 19:53 config
lrwxrwxrwx 1 0 0 17 May 14 19:53 d -> /sys/kernel/debug
drwxrwx--x 1 1000 1000 2048 May 13 18:15 data
-rw-r--r-- 1 0 0 118 Jan 1 1970 default.prop
drwxr-xr-x 14 0 0 3460 May 15 19:09 dev
lrwxrwxrwx 1 0 0 11 May 14 19:53 etc -> /system/etc
-rwxr-x--- 1 0 0 94224 Jan 1 1970 init
-rwxr-x--- 1 0 0 1677 Jan 1 1970 init.goldfish.rc
-rwxr-x--- 1 0 0 671 Jan 1 1970 init.poweroffcharge.rc
-rwxr-x--- 1 0 0 8459 Jan 1 1970 init.qcom.rc
-rwxr-x--- 1 0 0 6900 Jan 1 1970 init.qcom.sh
-rwxr-x--- 1 0 0 19887 Jan 1 1970 init.rc
-rwxr-x--- 1 0 0 8235 Jan 1 1970 init.zte.rc
drwxrwxr-x 6 0 1000 0 May 14 19:53 mnt
drwxrwx--x 1 1000 1000 2048 Jan 6 1980 persist
dr-xr-xr-x 155 0 0 0 Jan 1 1970 proc
drwxr-xr-x 3 0 0 0 Jan 1 1970 res
drwx------ 2 0 0 0 Oct 8 2011 root
drwxr-x--- 2 0 0 0 Jan 1 1970 sbin
lrwxrwxrwx 1 0 0 11 May 14 19:53 sdcard -> /mnt/sdcard
drwxr-xr-x 14 0 0 0 May 14 19:53 sys
drwxr-xr-x 1 0 0 2048 Oct 8 2011 system
-rw-r--r-- 1 0 0 0 Jan 1 1970 ueventd.goldfish.rc
-rw-r--r-- 1 0 0 6611 Jan 1 1970 ueventd.rc
lrwxrwxrwx 1 0 0 14 May 14 19:53 vendor -> /system/vendor

busybox ls -al /sdcard/

d---rwxr-x 14 1000 1015 32768 Jan 1 1970 .
drwxrwxr-x 6 0 1000 0 May 14 19:53 ..
d--------- 2 0 0 40 May 14 19:54 .android_secure
d---rwxr-x 3 1000 1015 32768 Feb 14 23:55 Android
d---rwxr-x 3 1000 1015 32768 May 13 12:50 Books
d---rwxr-x 3 1000 1015 32768 Mar 20 15:51 CSipSimple
d---rwxr-x 5 1000 1015 32768 May 16 04:28 DCIM
d---rwxr-x 2 1000 1015 32768 Feb 14 23:55 LOST.DIR
d---rwxr-x 2 1000 1015 32768 May 11 14:21 Pictures
d---rwxr-x 2 1000 1015 32768 Apr 15 15:32 Videos
d---rwxr-x 4 1000 1015 32768 Feb 20 11:36 backup
d---rwxr-x 2 1000 1015 32768 May 13 13:05 documents
d---rwxr-x 2 1000 1015 32768 May 3 22:36 download
d---rwxr-x 2 1000 1015 32768 May 14 20:25 dropbear
----rwxr-x 1 1000 1015 2179 Apr 29 17:58 rm_sys_app.sh

When run with debug flag the mount is not made; however, it is made when
run without debug flag.

Also, have you considred passing options to adb. I found that you
cannot use with multiple emulators/devices.

Regards,
Brian

@isieo isieo closed this as completed May 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants