A brand-new Galaxy Nexus, rooted, installed many apps w.o. problems. (e.g. sshd, Total Commander, ConnectBot, OpenVPN, ...) Tried to install Midnight Commander as seen here:
http://forum.xda-developers.com/showthread.php?t=1243699&page=6
No success, so I tried from scratch, copied files into /system dir and subdirs. It works. But in some subdirs the mc has no read-permission, e.g. /system, /data... I'm wondering, able to listing contents of these directories directly from console. Also able to copy files into /system or /etc with F5.
Any Hints?
Thanks, Charmin.
.
Thread moved to Q&A due to it being a question. Would advise you to read forum rules and post in correct section.
Failure to comply with forum rules will result in an infraction and/or ban depending on severity of rule break.
Same problem on ICS (cm-9.0.0-RC1-maguro.zip)...
I do not have the solution but I may have a clue. When mc attempts to access /system, strace shows:
Code:
chdir("/system") = 0
getcwd("/system", 4096) = 8
stat64("/system", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/system", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/system", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, 0xbe98d868) = -1 EOVERFLOW (Value too large for defined data type)
close(3) = 0
Hopefully someone will find that info to be helpful...
Similar problem, cannot access sdcard, Resurrection Remix 2.6.1 on SGS2
strace:
ioctl(0, TIOCLINUX, 0xbecc07c7) = -1 EINVAL (Invalid argument)
chdir("/mnt/sdcard") = 0
getcwd("/mnt/sdcard", 4096) = 12
stat64("/mnt/sdcard", {st_mode=S_IFDIR|075, st_size=32768, ...}) = 0
stat64("/mnt/sdcard", {st_mode=S_IFDIR|075, st_size=32768, ...}) = 0
stat64("/mnt", {st_mode=S_IFDIR|0775, st_size=0, ...}) = 0
open("/mnt/sdcard", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x80000) = 3
fstat(3, 0xbecbf6f8) = -1 EOVERFLOW (Value too large for defined data type)
close(3) = 0
select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout)
Thank you,
An additional data point...
I tried midnight commander on the standard AOSP ICS via the emulator that comes with the SDK (platform 4.1). No problem! Access to any directory (i.e. /system) is error free...
This issue appears to be specific to Cyanogenmod (at least with my version cm-9.0.0-RC1-maguro.zip).
Is the source code (w/ android specific configure options and patches) for this version of Midnight Commander available somewhere?
I decided to build my own version of Midnight Commander so I could fix this bug for myself. You can find it here (in n00b URL syntax):
www dot noid dot net slash mc-android
Why not use Ghost Commander? Free and works well, it's available from Google Playstore.
demonoflust said:
Why not use Ghost Commander? Free and works well, it's available from Google Playstore.
Click to expand...
Click to collapse
Ghost Commander looks great and I'll probably use that too... It's great to have both!
The Ghost Commander is a GUI app that runs on your device's screen as a normal Android application does.
This version of Midnight Commander that I've made is a console app. It runs in a terminal. So, to use it on your device's screen, you would first need to start a "terminal emulator" application. But that's not where it really shines because (on a phone at least) it's very small and the default soft-keyboard does not have function keys, etc..
This version of Midnight Commander is ideal if you are using your home PC (with a full keyboard) and you SSH into your device. For example, if you are running DroidSSHd on your device and you use PuTTY from you home PC to connect. Now you're really cooking!
So they're both good (but different)...
charminbear said:
A brand-new Galaxy Nexus, rooted, installed many apps w.o. problems. (e.g. sshd, Total Commander, ConnectBot, OpenVPN, ...) Tried to install Midnight Commander as seen here:
http://forum.xda-developers.com/showthread.php?t=1243699&page=6
No success, so I tried from scratch, copied files into /system dir and subdirs. It works. But in some subdirs the mc has no read-permission, e.g. /system, /data... I'm wondering, able to listing contents of these directories directly from console. Also able to copy files into /system or /etc with F5.
Any Hints?
Thanks, Charmin.
Click to expand...
Click to collapse
The same for a brand-new Samsung Galaxy S2 ( ICS 4.0.4) , rooted
Dont list /system, /data a its subfolder...
---------- Post added at 04:37 PM ---------- Previous post was at 04:23 PM ----------
a.human said:
Same problem on ICS (cm-9.0.0-RC1-maguro.zip)...
I do not have the solution but I may have a clue. When mc attempts to access /system, strace shows:
Code:
chdir("/system") = 0
getcwd("/system", 4096) = 8
stat64("/system", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/system", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("/system", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, 0xbe98d868) = -1 EOVERFLOW (Value too large for defined data type)
close(3) = 0
Hopefully someone will find that info to be helpful...
Click to expand...
Click to collapse
I have one idea =
looks like that listing doesnt work, because both mounts /system and /data larger then 500GB
# df
Filesystem Size Used Free Blksize
/dev 413M 76K 413M 4096
/mnt/asec 413M 0K 413M 4096
/mnt/obb 413M 0K 413M 4096
/system 503M 498M 5M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 426M 1G 4096
---------- Post added at 04:43 PM ---------- Previous post was at 04:37 PM ----------
yariks7 said:
The same for a brand-new Samsung Galaxy S2 ( ICS 4.0.4) , rooted
Dont list /system, /data a its subfolder...
I have one idea =
looks like that listing doesnt work, because both mounts /system and /data larger then 500GB
# df
Filesystem Size Used Free Blksize
/dev 413M 76K 413M 4096
/mnt/asec 413M 0K 413M 4096
/mnt/obb 413M 0K 413M 4096
/system 503M 498M 5M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 426M 1G 4096
Click to expand...
Click to collapse
correct large /mnt/sdcard also not listable by mc!
Filesystem Size Used Free Blksize
/system 503M 498M 5M 4096
/data 1G 442M 1G 4096
/mnt/sdcard 11G 305M 11G 32768
---------- Post added at 04:50 PM ---------- Previous post was at 04:43 PM ----------
yariks7 said:
The same for a brand-new Samsung Galaxy S2 ( ICS 4.0.4) , rooted
Dont list /system, /data a its subfolder...
---------- Post added at 04:37 PM ---------- Previous post was at 04:23 PM ----------
I have one idea =
looks like that listing doesnt work, because both mounts /system and /data larger then 500GB
# df
Filesystem Size Used Free Blksize
/dev 413M 76K 413M 4096
/mnt/asec 413M 0K 413M 4096
/mnt/obb 413M 0K 413M 4096
/system 503M 498M 5M 4096
/cache 98M 4M 94M 4096
/efs 19M 8M 11M 4096
/data 1G 426M 1G 4096
---------- Post added at 04:43 PM ---------- Previous post was at 04:37 PM ----------
correct large /mnt/sdcard also not listable by mc!
Filesystem Size Used Free Blksize
/system 503M 498M 5M 4096
/data 1G 442M 1G 4096
/mnt/sdcard 11G 305M 11G 32768
Click to expand...
Click to collapse
strange but large submounts accessible and listable
/dev/block/vold/259:3 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard 0 0
tmpfs /mnt/sdcard/external_sd tmpfs rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,size=0k,mode=755,gid=1000 0 0
tmpfs /mnt/sdcard/usbStorage tmpfs rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,size=0k,mode=755,gid=1000 0 0
/dev/block/vold/179:9 /mnt/sdcard/external_sd vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:9 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
[email protected]:/mnt/sdcard/Alarms # df
Filesystem Size Used Free Blksize
/dev 413M 76K 413M 4096
/mnt/asec 413M 0K 413M 4096
/mnt/obb 413M 0K 413M 4096
/system 503M 498M 5M 4096
/mnt/sdcard 11G 305M 11G 32768
/mnt/sdcard/external_sd 7G 6G 1G 32768
/mnt/sdcard/external_sd 7G 6G 1G 32768
/mnt/secure/asec 7G 6G 1G 32768
so /mnt/sdcard not listable ,
but large /mnt/secure/asec and /mnt/sdcard/external_sd is listable too.
Hello guys,
I've double checked MC and everything seems ok, on my phone it works (it has 16Gb internal memory from which about 10Gb are assigned to /storage/sdcard, and I added 16gb external SDCARD which it mounts under /storage/extSdCard).
Code:
[[email protected]]/sdcard# busybox df -k
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 426612 84 426528 0% /dev
tmpfs 426612 0 426612 0% /mnt/asec
tmpfs 426612 0 426612 0% /mnt/obb
/dev/block/mmcblk0p3 20144 8372 11772 42% /efs
/dev/block/mmcblk0p9 1548144 863612 684532 56% /system
/dev/block/mmcblk0p8 1007896 17280 990616 2% /cache
/dev/block/mmcblk0p12
11901576 8123632 3777944 68% /data
/dev/fuse 11799176 8123632 3675544 69% /storage/sdcard0
/dev/block/vold/179:17
15613952 14060896 1553056 90% /storage/extSdCard
I'm using an S3 with rooted stock firmware and stock kernel and I can navigate everywhere without incidents.
The only question that now comes to mind is if you somehow formatted the the /mnt/sdcard with ext2/3 filesystem ? Or is it FAT32 single partition ?
Hello viulian,
thank your reply .
I think you are right - it depends on filesystem type (and it size also) .
Large /mnt/sdcard/external_sd (vfat) is listable,
but large ext4 partition /system and /data is NOT listable.
here is my
#busybox df -k
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 423444 76 423368 0% /dev
...[skipped]...
/dev/block/mmcblk0p9 516040 510032 6008 99% /system
/dev/block/mmcblk0p10 2064192 720956 1343236 35% /data
/dev/block/vold/259:3 12063840 2676224 9387616 22% /mnt/sdcard
tmpfs 31154688 2222432 28932256 7% /mnt/sdcard/external_sd
/dev/block/vold/179:9
31154688 2222432 28932256 7% /mnt/sdcard/external_sd
...[skipped]...
1|[email protected]:/sdcard #
1|[email protected]:/sdcard # mount
/dev/block/mmcblk0p9 /system ext4 ro,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p10 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/259:3 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharse
t=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard 0 0
tmpfs /mnt/sdcard/external_sd tmpfs rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,size=0k,mode=755,gid=1000 0 0
/dev/block/vold/179:9 /mnt/sdcard/external_sd vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
viulian said:
Hello guys,
I've double checked MC and everything seems ok, on my phone it works (it has 16Gb internal memory from which about 10Gb are assigned to /storage/sdcard, and I added 16gb external SDCARD which it mounts under /storage/extSdCard).
Code:
[[email protected]]/sdcard# busybox df -k
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 426612 84 426528 0% /dev
tmpfs 426612 0 426612 0% /mnt/asec
tmpfs 426612 0 426612 0% /mnt/obb
/dev/block/mmcblk0p3 20144 8372 11772 42% /efs
/dev/block/mmcblk0p9 1548144 863612 684532 56% /system
/dev/block/mmcblk0p8 1007896 17280 990616 2% /cache
/dev/block/mmcblk0p12
11901576 8123632 3777944 68% /data
/dev/fuse 11799176 8123632 3675544 69% /storage/sdcard0
/dev/block/vold/179:17
15613952 14060896 1553056 90% /storage/extSdCard
I'm using an S3 with rooted stock firmware and stock kernel and I can navigate everywhere without incidents.
The only question that now comes to mind is if you somehow formatted the the /mnt/sdcard with ext2/3 filesystem ? Or is it FAT32 single partition ?
Click to expand...
Click to collapse
Hello,
I am unable to install busybox
it says that "it looks like the installation of busybox was not successful.." and asks to install in some other location.
I tried Xbin and Bin but it could not be installed properly.
All app which need root permission are working fine.
I tried to uninstall and re install ..re install using busybox installer.
Also I re-flash CM 10 beta 6 ( Format /System ) deleted xbin , bin directory and reflashed rom) but nothing works
Its confusing that even after deleting xbin, bin directory formatting /system reflashing CM10 yet busybox is not installing.
PS: Busybox was installed successfully on stock ROM it was for a brief period was installed successfully on CM 10 as well. But when I reflash my rom (due to some reason) and tried to install busybox since then I am having problems
Any help is appreciated.
Thanks!
Nikhil_android said:
Hello,
I am unable to install busybox
it says that "it looks like the installation of busybox was not successful.." and asks to install in some other location.
I tried Xbin and Bin but it could not be installed properly.
All app which need root permission are working fine.
I tried to uninstall and re install ..re install using busybox installer.
Also I re-flash CM 10 beta 6 ( Format /System ) deleted xbin , bin directory and reflashed rom) but nothing works
Its confusing that even after deleting xbin, bin directory formatting /system reflashing CM10 yet busybox is not installing.
PS: Busybox was installed successfully on stock ROM it was for a brief period was installed successfully on CM 10 as well. But when I reflash my rom (due to some reason) and tried to install busybox since then I am having problems
Any help is appreciated.
Thanks!
Click to expand...
Click to collapse
Htc? if so then: S-off?
Check the space on the /system partition.
Do you have read and write permissions for root on /system/xbin?
Deleting xbin and bin will make you unable to install busybox for sure.
What application are you using to install busybox?
Run the commands below on your phone or through adb.
Code:
su
df
chmod /system/xbin/
chown 0:0 /system/xbin/
ls -l /system
Post the output from the commands above here.
Lgrootnoob said:
Htc? if so then: S-off?
Check the space on the /system partition.
Do you have read and write permissions for root on /system/xbin?
Deleting xbin and bin will make you unable to install busybox for sure.
What application are you using to install busybox?
Run the commands below on your phone or through adb.
Code:
su
df
chmod /system/xbin/
chown 0:0 /system/xbin/
ls -l /system
Post the output from the commands above here.
Click to expand...
Click to collapse
Yes HTC - S-off rooted and running on CM10
I have tried busybox Stephen (Stericson) latest version
and when it was not getting installed I have trued busybox installer as well
while installing /system/xbin has R/W permission
I deleted files in xbin as coz I didnt know what to do .. I deleted only those files which were created by busybox and then I immediately flashed the ROM, but even after flashing (and wiping /system through cwm) those files were still there.
Here is the output:
/system/xbin mounted as R/W as usual
Code:
[email protected]:/ $ su
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 206.4M 48K 206.4M 4096
/mnt/asec 206.4M 0K 206.4M 4096
/mnt/obb 206.4M 0K 206.4M 4096
/system 235.3M 229.6M 5.7M 4096
/cache 59M 2.3M 56.7M 4096
/data 554.1M 447.8M 106.4M 4096
/data/misc 150M 2.5M 147.5M 4096
/data/property 150M 2.5M 147.5M 4096
/data/radio 150M 2.5M 147.5M 4096
/storage/sdcard0 6.8G 4.7G 2.1G 4096
/mnt/secure/asec 6.8G 4.7G 2.1G 4096
/mnt/asec/com.startv.gumrah-1 4M 2.3M 1.7M 4096
[email protected]:/ # chmod /system/xbin/
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
10|[email protected]:/ # chown 0:0 /system/xbin/
[email protected]:/ # ls -1 /system
ls: Unknown option '-1'. Aborting.
1|[email protected]:/ #
/system/xbin mounted as r/o purposely
Code:
[email protected]:/ $ su
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 206.4M 48K 206.4M 4096
/mnt/asec 206.4M 0K 206.4M 4096
/mnt/obb 206.4M 0K 206.4M 4096
/system 235.3M 229.6M 5.7M 4096
/cache 59M 2.3M 56.7M 4096
/data 554.1M 447.5M 106.7M 4096
/data/misc 150M 2.5M 147.5M 4096
/data/property 150M 2.5M 147.5M 4096
/data/radio 150M 2.5M 147.5M 4096
/storage/sdcard0 6.8G 4.7G 2.1G 4096
/mnt/secure/asec 6.8G 4.7G 2.1G 4096
/mnt/asec/com.startv.gumrah-1 4M 2.3M 1.7M 4096
[email protected]:/ # chmod /system/xbin/
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
10|[email protected]:/ # chown 0:0 /system/xbin/
Unable to chown /system/xbin/: Read-only file system
10|[email protected]:/ # ls -1 /system
ls: Unknown option '-1'. Aborting.
1|[email protected]:/ #
Thanks
Nikhil_android said:
Yes HTC - S-off rooted and running on CM10
I have tried busybox Stephen (Stericson) latest version
and when it was not getting installed I have trued busybox installer as well
while installing /system/xbin has R/W permission
I deleted files in xbin as coz I didnt know what to do .. I deleted only those files which were created by busybox and then I immediately flashed the ROM, but even after flashing (and wiping /system through cwm) those files were still there.
Here is the output:
/system/xbin mounted as R/W as usual
Code:
[email protected]:/ $ su
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 206.4M 48K 206.4M 4096
/mnt/asec 206.4M 0K 206.4M 4096
/mnt/obb 206.4M 0K 206.4M 4096
/system 235.3M 229.6M 5.7M 4096
/cache 59M 2.3M 56.7M 4096
/data 554.1M 447.8M 106.4M 4096
/data/misc 150M 2.5M 147.5M 4096
/data/property 150M 2.5M 147.5M 4096
/data/radio 150M 2.5M 147.5M 4096
/storage/sdcard0 6.8G 4.7G 2.1G 4096
/mnt/secure/asec 6.8G 4.7G 2.1G 4096
/mnt/asec/com.startv.gumrah-1 4M 2.3M 1.7M 4096
[email protected]:/ # chmod /system/xbin/
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
10|[email protected]:/ # chown 0:0 /system/xbin/
[email protected]:/ # ls -1 /system
ls: Unknown option '-1'. Aborting.
1|[email protected]:/ #
/system/xbin mounted as r/o purposely
Code:
[email protected]:/ $ su
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 206.4M 48K 206.4M 4096
/mnt/asec 206.4M 0K 206.4M 4096
/mnt/obb 206.4M 0K 206.4M 4096
/system 235.3M 229.6M 5.7M 4096
/cache 59M 2.3M 56.7M 4096
/data 554.1M 447.5M 106.7M 4096
/data/misc 150M 2.5M 147.5M 4096
/data/property 150M 2.5M 147.5M 4096
/data/radio 150M 2.5M 147.5M 4096
/storage/sdcard0 6.8G 4.7G 2.1G 4096
/mnt/secure/asec 6.8G 4.7G 2.1G 4096
/mnt/asec/com.startv.gumrah-1 4M 2.3M 1.7M 4096
[email protected]:/ # chmod /system/xbin/
Usage: chmod [OPTION] <MODE> <FILE>
-R, --recursive change files and directories recursively
--help display this help and exit
10|[email protected]:/ # chown 0:0 /system/xbin/
Unable to chown /system/xbin/: Read-only file system
10|[email protected]:/ # ls -1 /system
ls: Unknown option '-1'. Aborting.
1|[email protected]:/ #
Thanks
Click to expand...
Click to collapse
Ok, it looks like your system partition does not have enough space on this rom.
Please remove some unneeded system apps with something like titanium backup to make /system space.
Looks like we are making progress.
Lgrootnoob said:
Ok, it looks like your system partition does not have enough space on this rom.
Please remove some unneeded system apps with something like titanium backup to make /system space.
Looks like we are making progress.
Click to expand...
Click to collapse
Done. It got installed successfully thanks
Nikhil_android said:
Done. It got installed successfully thanks
Click to expand...
Click to collapse
Glad to see it worked.
Please consider checking out my other work in my signature or donating to me.
Have a good day.