Pixel 4a: mount system partition from Recovery - Google Pixel Questions & Answers

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 #

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)

[Q] Where's the mount point for the root file system?

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?

{WIP}{DEV}Penta T-pad WS702c{Rooting Guide}{help needed}

ROOTING GUIDE
I AM NOT RESPONSIBLE IF YOUR DEVICE GETS BRICKED/NUKED
I finally rooted this device with a little help from its predecessor.
(original guide by revanchdg {credits} found here - http://forum.xda-developers.com/showthread.php?p=34398150
1)Install Android SDK and copy the adb_usb.ini(attached post) file to .Android folder in C://your profile name/documents/.Android paste it here
2)Download PDAnet and connect your tablet with USB Debugging on and it installs the drivers
3)Open the SDK manager as administrator and install Android SDK Tools, Android SDK Platform tools and Google USB Driver
4)Goto C:/Program Files/Android/android sdk>>Goto platform tools>> Open Command line here by pressing Shift+Right mouse button
5)Type adb devices and see if some id with numbers and alphabets is displayed, if it is displayed then you can root using the "root_with_Restore_by_Bin4ry_v15" attached post below and extract it and then click on Runme.bat and chose normal and follow the onscreen instructions!
6)When it says that "rebooting device" just switch off the tab and switch back on.
IMP:under any circumstances DO NOT remove the USB cable untill finished.
attached files - http://forum.xda-developers.com/showpost.php?p=34157494&postcount=3
{help needed}
i got the cat /proc/mounts here -
Code:
[email protected]:/ # cat /proc/mounts
cat /proc/mounts
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/nandi /oem cramfs ro,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/nandd /system ext4 ro,relatime,user_xattr,barrier=0,data=ordered 0 0
/dev/block/nande /data ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=0,journal
_checksum,data=ordered,noauto_da_alloc 0 0
/dev/block/nandh /cache ext4 rw,nosuid,nodev,noatime,user_xattr,barrier=0,journa
l_checksum,data=ordered,noauto_da_alloc 0 0
/dev/block/vold/93:72 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,u
id=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset
=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/93:72 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,ioch
arset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/vold/179:1 /mnt/extsd vfat rw,dirsync,nosuid,nodev,noexec,relatime,ui
d=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=
ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,ioch
arset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/extsd/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
/dev/block/dm-0 /mnt/asec/com.gameinsight.mycountry-1 vfat ro,dirsync,nosuid,nod
ev,relatime,uid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocha
rset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/dm-1 /mnt/asec/com.vividgames.speedwaygp2012-1 vfat ro,dirsync,nosuid
,nodev,relatime,uid=1000,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,i
ocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
can any one tell me from this which is the boot and recovery partition?
i got this
Code:
/dev/block/nandd
as the system?right.
please anybody?

Tronsmart T428 - unable to move apps to SD Card

Hi,
I have a Tronsmart T428. I flashed a custom rooted ROM based on Android 4.2; but I don't have details about the name or the version of this ROM. But I'm sure that this ROM is better than the out of the box Chinese one.
Everything works fine, but I can't move apps to micro sd card: in the standard position (Settings -> Apps -> [click on move-able app]) there is no button to move apps to sd.
I guess that it's because sd card is not mounted correctly. Using a terminal emulator I can see that the sd card is mounted on "/storage/sdcard1":
Code:
[email protected]:/storage/emulated/legacy # busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 957.1M 36.0K 957.1M 0% /dev
tmpfs 957.1M 0 957.1M 0% /mnt/secure
tmpfs 957.1M 0 957.1M 0% /mnt/asec
/dev/block/dm-1 2.0M 508.0K 1.5M 25% /mnt/asec/org.videomap.droidmoteserver-2
tmpfs 957.1M 0 957.1M 0% /mnt/obb
/dev/block/mtd/by-name/system
511.5M 377.8M 133.7M 74% /system
/dev/block/mtd/by-name/userdata
6.5G 5.0G 1.5G 77% /data
/dev/block/mtd/by-name/cache
126.0M 4.0M 121.9M 3% /cache
/dev/fuse 6.5G 5.0G 1.5G 77% /mnt/shell/emulated
tmpfs 957.1M 0 957.1M 0% /storage/emulated
/dev/block/vold/179:1
29.3G 96.0K 29.3G 0% /storage/sdcard1
/dev/fuse 6.5G 5.0G 1.5G 77% /storage/emulated/0
/dev/fuse 6.5G 5.0G 1.5G 77% /storage/emulated/0/Android/obb
/dev/fuse 6.5G 5.0G 1.5G 77% /storage/emulated/legacy
/dev/fuse 6.5G 5.0G 1.5G 77% /storage/emulated/legacy/Android/obb
Code:
[email protected]:/storage/sdcard1 # mount
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/mtd/by-name/system /system ext4 rw,relatime,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mtd/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/block/mtd/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
tmpfs /storage/emulated tmpfs rw,nosuid,nodev,relatime,mode=050,gid=1028 0 0
/dev/block/vold/179:1 /storage/sdcard1 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 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/dm-1 /mnt/asec/org.videomap.droidmoteserver-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0
I see that internal card is mounted via "fuse", but SD Card is mounted differently.
Please find attached "vold.fstab" and "init.rc".
I know that it can be possible to workaround it using apps like Link2SD or FolderMount; but I'd like to have the standard "move to sd" button visible and working...
Is it a mount problem?

[Completed] Swap /data partition with sdcard HTC Legend

Hi, I am trying to swap mount points to increase internal memory on my device - HTC Legend.
I know that there is script for this purpose.
http://forum.xda-developers.com/showthread.php?t=902395 .
As I can guess here we just use /sd-ext partition to swap it with /data. But in my case I have no /sd-ext partition at all, only /sdcard.
Of course I have no device /dev/block/mmcblk0p2.
About installed firmware - Android 2.3.7 ExtremeLegendFuse_2 based on CM7.
Output of mount command.
Code:
rootfs on / type rootfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mtdblock3 on /system type yaffs2 (ro,relatime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev,relatime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
#
And df -h
Code:
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 145.7M 32.0K 145.7M 0% /dev
tmpfs 145.7M 0 145.7M 0% /mnt/asec
tmpfs 145.7M 0 145.7M 0% /mnt/obb
/dev/block/mtdblock3 240.0M 160.7M 79.3M 67% /system
/dev/block/mtdblock5 185.1M 18.9M 166.3M 10% /data
/dev/block/mtdblock4 40.0M 6.6M 33.4M 16% /cache
/dev/block/vold/179:1
967.6M 194.8M 772.8M 20% /mnt/sdcard
/dev/block/vold/179:1
967.6M 194.8M 772.8M 20% /mnt/secure/asec
#
Content of /system/etc/vold.fstab
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/usb_mass_storage/lun0 /devices/platform/msm_sdcc.2/mmc_host/mmc0
I have some basic knowledge, but I need help in this case.
Please help to swap storage to increase internal storage.
Thanks everyone in advance.
Hi,
You've provided me link that you need, so asking your questions in that thread is the best solution for receive an relevant answer.
XDA Assist is here to help members navigate thru the site, not support. And you've navigated it already. ��
Good luck!

Categories

Resources