[Q] Where's the mount point for the root file system? - Android Software/Hacking General [Developers Only]

On my G1, I know that the internal flash memory is divided into several partitions used by the system. Running the busybox shell on a terminal emulator on the phone or through adb, I can run df and get the following:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 48852 0 48852 0% /dev
tmpfs 48852 0 48852 0% /mnt/asec
/dev/block/mtdblock3 92160 89048 3112 97% /system
/dev/block/mtdblock5 91904 77792 14112 85% /data
/dev/block/loop0 4096 4096 0 100% /system/xbin
/dev/block/mtdblock4 30720 1160 29560 4% /cache
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/sdcard
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/secure/asec
But strangely there's no mount point for /, the root file system. Yet there are lot of other files and directories directly in the root file system, like init scripts. Could anyone explain to me how this is? Is the root file system hidden somehow from df?

Related

[HELP]Cyanogen automatically apps2sd problem

HTC Magic G2
1, Used other Rom before
2, Current recovery is cm-1.4
3, SPL is the original SHIPMENT SPL HBOOT-1.33.0009H
Use cm-1.4 for 32A to Wipe,and apply any zip from sd to flash the Cyanogen_4.0.1-32a, but apps2sd cannot be automatically enabled,also autoswap
As we all know what would be the problem? SPL? Recovery? SD card partition? Currently used in the second partition is EXT3.
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 96.3M 12.0k 96.3M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 90.0M 62.0M 28.0M 69% /system
/dev/block/mtdblock5 295.8M 27.4M 268.4M 9% /data
/dev/block/mtdblock4 80.0M 1.3M 78.7M 2% /cache
/dev/block//vold/179:1
6.9G 4.6G 2.3G 67% /sdcard
after #mount -a
# mount
mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block//vold/179:1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=
1000,gid=1000,fmask=0711,dmask=0700,allow_utime=0022,codepage=cp437,iocharset=is
o8859-1,shortname=mixed,utf8)
/dev/block/mmcblk0p2 on /system/sd type ext3 (rw,errors=continue,data=ordered)

[hack+benchmark] Fastest file system for sd card on android.

I have successfully modified vold so that it can mount both xfs and ext2 file systems.
Why those two you say? because xfs is supposedly the fastest journaling file system and is probably the only competiton to ext4. why ext2 ?because it doesn't journal at all. I mounted both fs's with noatime and nodiratime option .the following is my result(and i've attacked the modified vold so just format your sdcard with fat,xfs or ext2 and after boot and successful mount do a chmod -R 777 /mnt/sdcard from adb shell).
Xfs:
mount:
Code:
/dev/block/vold/179:3 /mnt/sdcard xfs rw,noatime,nodiratime,attr2,logbufs=8,noquota 0 0
/dev/block/vold/179:3 /mnt/secure/asec xfs rw,noatime,nodiratime,attr2,logbufs=8,noquota 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
read: 8.8 Mb/s write: 22.2 Mb/s total: 279
ext2:
mount:
Code:
/dev/block/vold/179:3 /mnt/sdcard ext2 rw,noatime,nodiratime,errors=remount-ro 0 0
/dev/block/vold/179:3 /mnt/secure/asec ext2 rw,noatime,nodiratime,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
read: 6.2 MB/s write: 20.4 MB/s total: 251
the results clearly were a surprise to me since everyone I've talked to said that ext2 should be faster since it has no journaling and that xfs was designed for large video files and has journaling.
but the benchmark says it all,xfs is the clear winner.
I'd love to hear if anyone has any suggestion on a better file system or how to optimize either ext2 or xfs for android.
btw, my phone is nexus s(internal sdcard storage) the benchmark i used was antutu and i was running it at 1000Mhz (didn't overclock since i wanted to see the performance at stock clock speed).
oh and make sure to do mount -orw,remount tmpfs /mnt/sdcard/.android_secure
before doing a chmod -R 777 /mnt/sdcard
Can you post your changes to vold? I'm very interested on this.
i would also like to know the changes to vold, using your vold on infuse 4g makes the internal sdcard unsuable

[Q] Insufficient Storage Available

I'm getting insufficient storage available errors when upgrading applications. What is causing this? Only the cache partition appears to have space issues:
[email protected]:/ $ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 404.8M 76.0K 404.8M 0% /dev
tmpfs 404.8M 0 404.8M 0% /mnt/asec
tmpfs 404.8M 0 404.8M 0% /mnt/obb
/dev/block/mmcblk0p9 818.9M 795.2M 23.7M 97% /system
/dev/block/mmcblk0p7 196.8M 6.2M 190.6M 3% /cache
/dev/block/mmcblk0p1 19.7M 8.1M 11.6M 41% /efs
/dev/block/mmcblk0p10
27.2G 26.6G 571.9M 98% /data
/dev/fuse 27.2G 26.6G 571.9M 98% /mnt/sdcard
/dev/block/vold/179:9
14.9G 11.2G 3.7G 75% /mnt/sdcard/extStorages/SdCard
[email protected]:/ $
Sent from my GT-P6800 using xda app-developers app
I was using multiple apps. I've rebooted and managed to install the apps.
Sent from my GT-P6800 using xda app-developers app

Space missing after DotOS installing

Recently I installed DotOS on my Samsung SM-J320F. All good but internal space was reduced. This phone have 8 GB but I receive this when I run df:
~ # ←[6ndf
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 696068 204 695864 0% /dev
tmpfs 696068 28 696040 0% /tmp
/dev/block/mmcblk0p27
5027508 4601436 409688 92% /data
/dev/block/mmcblk0p27
5027508 4601436 409688 92% /sdcard
/dev/block/mmcblk0p24
197472 276 193100 0% /cache
/dev/block/mmcblk1p1 24862304 13880880 10981424 56% /extSdCard
~ # ←[6n
Also Windows says I have only 4.79GB
How can I recover 3GB of space?
No one know to solve my problem ?

Pixel 4a: mount system partition from Recovery

Hi
i don't want to use permanent root rights anymore.
But sometimes i have to edit some system files like /etc/hosts ...
my idea:
enable usb debugging
boot to recovery
mount system
adb root
adb shell
i have root rights
but i can't find the normal system files. the /mnt/system is only 1.3G
does anybody know how to mount it?
sunfish:/mnt # df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 2.7G 1.2M 2.7G 1% /dev
tmpfs 2.7G 0 2.7G 0% /mnt
tmpfs 2.7G 0 2.7G 0% /apex
tmpfs 2.7G 4.0K 2.7G 1% /linkerconfig
tmpfs 2.7G 32K 2.7G 1% /tmp
tmpfs 2.7G 0 2.7G 0% /storage
/dev/block/dm-0 2.2G 889M 1.3G 39% /mnt/system
sunfish:/mnt # id
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),1078(ext_data_rw),1079(ext_obb_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid),3012(readtracefs) context=u:r:su:s0
sunfish:/mnt #

Categories

Resources