Unlike my sgs1 which has all its partitions used, the Galaxy Tab 10.1 appears to have a "hidden" partition that seems to do absolutely nothing (at least on CM10). I saw it on the siyah kernel thread. By adapting that idea to the GTab 10.1 you can run this script
Code:
mount -o,remount,rw /
mkdir /storage/sdcard1
busybox mount /dev/block/mmcblk0p10 /storage/sdcard1
busybox chmod -R 777 /storage/sdcard1
you will have access to that extra 295MB that's apparently just sitting there collecting virtual dust. It's indeed legitimate:
Code:
Filesystem Size Used Free Blksize
/dev 360M 48K 360M 4096
/mnt/asec 360M 0K 360M 4096
/mnt/obb 360M 0K 360M 4096
/system 568M 371M 197M 4096
/cache 440M 80M 360M 4096
/data 13G 8G 4G 4096
/efs 11M 4M 7M 4096
/storage/sdcard0 13G 8G 4G 4096
/storage/sdcard1 295M 12M 282M 4096
[email protected]:/ $ mount | grep mmcblk0p10
/dev/block/mmcblk0p10 /storage/sdcard1 ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
Just thought I would share the finding. You would have to run that script at boot or whenever you wanted it.
Nice find! Thanks for the info :thumbup:
Sent from my SGH-I747 using xda premium
Nice find, Where will it "put" the additional space, ie will it add it to the storage, system etc...
Sent from my GT-N7100 using Tapatalk 2
RavenY2K3 said:
Nice find, Where will it "put" the additional space, ie will it add it to the storage, system etc...
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
The script I suggested will make it like a second sd card. It will be in /storage/sdcard1.
Sent from my GT-I9300
Might try that. What terminal emulator did you use. There are so many?
rob2011 said:
Might try that. What terminal emulator did you use. There are so many?
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=jackpal.androidterm
thanks. ill give that a try
Some additional information...
On Toldo's rom these partition is used for other things.
Code:
/dev 360M 68K 360M 4096
/mnt/asec 360M 0K 360M 4096
/mnt/obb 360M 0K 360M 4096
/system 568M 513M 55M 4096
/cache 440M 7M 433M 4096
/data 13G 8G 4G 4096
/efs 11M 8M 3M 4096
/mnt/sdcard 13G 8G 4G 4096
[B]/preload 295M 216M 78M 4096[/B]
That partition is named /preload and holds some other things.
Code:
[email protected]:/preload # ls -a
CPW
Common_app
DBT
ITV
KOR
XEF
XEO
XEU
The only partion that holds data is /Common_app.
Code:
[email protected]:/preload/Common_app # ls -a
Aurora.apk
Bluesea.apk
HoloSpiralWallpaper.apk
Kobo.apk
PolarisOffice.apk
PressReader.apk
ReadersHub_EUR.apk
Swype.apk
Zinio.apk
So for users outside CM this partition is not free. It can be used but only 78MB are free.
I think this partition will be made while booting, so files on it will be copied while booting.
But i am can be totaly wrong. I have to searvh for it first.
Update about /preload:
What i have found is the following:
Code:
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
1 /efs ext4 /dev/block/mmcblk0p1 (null) 0
2 /recovery emmc /dev/block/mmcblk0p2 (null) 0
3 /boot emmc /dev/block/mmcblk0p3 (null) 0
4 /system ext4 /dev/block/mmcblk0p4 (null) 0
5 /cache ext4 /dev/block/mmcblk0p5 (null) 0
6 /data ext4 /dev/block/mmcblk0p8 (null) 0
7 [B]/preload[/B] ext4 /dev/block/mmcblk0p10 (null) 0
After a test i have seen that the partition is read only. But ES File Explorer says: rwx r-x r-x
Means that a User can read, write and excute, Group and Others only read and execute.
Lucky the guys who are using CM. But no issue at all, the USB post is working perfect for
external media. At the end a good find...
Related
After hours reading tons of posts I got my ADP1 (Android Developer Phone1) rooted. My current setup is
Phone: ADP1 G1 | 32B | HTC Dream
Rom: COS-DS (http://forum.xda-developers.com/showthread.php?t=950765)
Recovery: Amon RA-Dream-v1.7.0 (http://forum.xda-developers.com/showthread.php?t=566669)
Radio: 2.22.28.25 (http://forum.xda-developers.com/showthread.php?t=831139)
SPL: 1.33.0013d (http://forum.xda-developers.com/showthread.php?t=831139)
microSD: 96MB swap + 512MB ext4 + FAT32
Code:
~ # free
total used free shared buffers
Mem: 112616 110680 1936 0 604
Swap: 23548 20476 3072
Total: 136164 131156 5008
# cat /proc/partitions
major minor #blocks name
7 0 668 loop0
7 1 4508 loop1
7 2 1760 loop2
31 0 256 mtdblock0
31 1 5120 mtdblock1
31 2 2560 mtdblock2
31 3 93184 mtdblock3
31 4 27648 mtdblock4
31 5 93952 mtdblock5
253 0 23552 zram0
179 0 992000 mmcblk0
179 1 398437 mmcblk0p1
179 2 500000 mmcblk0p2
179 3 93562 mmcblk0p3
~ # mount
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/loop0 on /system/lib/modules type squashfs (ro,relatime)
/dev/block/loop1 on /system/fonts type squashfs (ro,relatime)
/dev/block/loop2 on /system/xbin type squashfs (ro,relatime)
/dev/block/vold/179:2 on /sd-ext type ext4 (rw,nodev,noatime,nodiratime,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,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=0702,dmask=0702,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)
I would like to know if there is any optimization?
Why should I do the customMTD? (http://forum.xda-developers.com/showthread.php?p=7061471#post7061471)
I'm not using ClockworksMOD as described by COS-DS. Should I? (http://forum.xda-developers.com/showthread.php?t=950765)
My partition order is different as described by COS-DS. Does it matter?
Using customMTD you could assign your cache memory (around 27MB) as internal memory.
Clockwork, I don't like much, but this is my personal opinion. Advantage(?) of Clockwork: you can flash unsigned zip files.
Partition layout probably matters, because on system startup there is a chance, that they are not mounted.
Sent from my Gingerbread on Dream using XDA App
I found customMTD to be difficult to install (I did it with firerat's Magpie ROM), but worth it for the extra space it gave me. Prior to, I was getting low on disk space messages and random shutdowns galore.
I don't recall why, but during my research I recall learning that Amon-Ra is stable and Clockwork isn't if you're going to use customMTD.
On my Samsung Galaxy Tab 10.1 WiFi, I don't see any boot partition and there is no file name "zImage" anywhere on the device. Does anyone know where the kernel image is on a Samsung Galaxy Tab 10.1 wifi?
Code:
C:\>adb -d shell
[email protected]:/ $ su
su
[email protected]:/ # ls boot
ls boot
boot: No such file or directory
[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 362M 76K 362M 4096
/mnt/asec 362M 0K 362M 4096
/mnt/obb 362M 0K 362M 4096
/system 568M 560M 8M 4096
/cache 440M 11M 429M 4096
/data 13G 463M 12G 4096
/efs 11M 4M 7M 4096
/mnt/sdcard 13G 463M 12G 4096
[email protected]:/ # find . -name "*zImage*"
find . -name "*zImage*"
[email protected]:/ # find . -name "*zimage*"
find . -name "*zimage*"
[email protected]:/ #
Please if someone have, upload your backedup mmcblk0_start with partition configuration data from mmcblk0p8, my tablet has only 7 partitions although My flash.cfg makes 8 partitions and last one is mmcblk0p8 with size FFFF... But after flashing it I get always same thing- when i boot into ubuntu and check my partitions I get only last one mmcblk0p7 who is data, so I can't flash second boot image and make dualboot+recovery. On picasso.init.rc i get just some words and digits, so I can not do anything with it, I tryed all EUU's, but get the same. So please if you can, upload it, if it wery hard then jus system.img it will be better than nothing. Thanks and sorry for bad English.
There is no such partition. It is only defined this way in nvflash flash.cfg but whole space is taken by the user data parition, which takes as much space as it can get (depending on emmc size) and this last one is not actually created.
yaworski said:
There is no such partition. It is only defined this way in nvflash flash.cfg but whole space is taken by the user data parition, which takes as much space as it can get (depending on emmc size) and this last one is not actually created.
Click to expand...
Click to collapse
So what I need to do that I can flash second boot image, and why mmcblk0p7 in nvflash .cfg is about just 7 or more megabytes? And http://projects.pappkartong.se/a500/ do you read it, in that table is write 8 partitions and mmcblk0p8 is data, then it is strange. Thanks for reply. Sorry for bad english.
Tautvaldas said:
Please if someone have, upload your backedup mmcblk0_start with partition configuration data from mmcblk0p8, my tablet has only 7 partitions although My flash.cfg makes 8 partitions and last one is mmcblk0p8 with size FFFF... But after flashing it I get always same thing- when i boot into ubuntu and check my partitions I get only last one mmcblk0p7 who is data, so I can't flash second boot image and make dualboot+recovery. On picasso.init.rc i get just some words and digits, so I can not do anything with it, I tryed all EUU's, but get the same. So please if you can, upload it, if it wery hard then jus system.img it will be better than nothing. Thanks and sorry for bad English.
Click to expand...
Click to collapse
If you don't have a mmcblk0p8 I would be interested to see what /proc/partitions and /proc/mounts looks like.
With mmcblk0p8:
Code:
$ cat /proc/partitions
major minor #blocks name
179 0 31259648 mmcblk0
179 1 5120 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 614400 mmcblk0p3
179 4 1253376 mmcblk0p4
179 5 4096 mmcblk0p5
179 6 102400 mmcblk0p6
179 7 10240 mmcblk0p7
179 8 29253632 mmcblk0p8
$
$ 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 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 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
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p3 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p8 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p4 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p6 /system/vendor ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
$
The partition table parsed from raw dump of /dev/block/mmcblk:
Code:
nvtegrapart: #0 [BCT ] start=0 size=6144 (6)
nvtegrapart: #1 [PT ] start=2048 size=1024 (1)
nvtegrapart: #2 [EBT ] start=3072 size=8192 (8)
nvtegrapart: #3 [GP1 ] start=11264 size=2048 (2)
nvtegrapart: #4 [SOS ] start=13312 size=10240 (10)
nvtegrapart: #5 [LNX ] start=23552 size=16384 (16)
nvtegrapart: #6 [APP ] start=39936 size=1228800 (1200)
nvtegrapart: #7 [CAC ] start=1268736 size=2506752 (2448)
nvtegrapart: #8 [MSC ] start=3775488 size=8192 (8)
nvtegrapart: #9 [FLX ] start=3783680 size=204800 (200)
nvtegrapart: #10 [AKB ] start=3988480 size=20480 (20)
nvtegrapart: #11 [UDA ] start=4008960 size=58507264 (57136)
nvtegrapart: #12 [GPT ] start=62516224 size=1024 (1)
Try the thread called rollback from ics leak, it has a rooted 3.2 image so uh, good luck with that
Sent from my A501 using xda app-developers app
Wery strange now, I got mmcblk0p8, but when I flash second boot image then my data is gone (can't boot into tegraowners 170 ROM) it says that can't use data partition and need data reset, after that it is same thing again. In root 3.2.1 is same as EUUs, same,.cfg, maybe I'm doing something wrong. Sorry for bad english. Now I have a501 stock ROM in my a500 and I will try flash second boot again. And thanks for replies.
Taks for help, it seems working now, maybe I should check what ROM I am using next time thanks. Sorry for bad english.
Haha i don't know who your referring to but uh if it worked , your welcome
Sent from my A501 using xda app-developers app
Just thought I'd post a quick note for those of you eyeing an Ubuntu load on a 32 GB machine. It does work, with a caveat: out of the box, recovery would not mount my sd card. So, after you apply the boot.img, you need to adb root/adb shell into the box and add "/dev/bloack/mmcblk1p1 /external_sd auto rw" to fstab. (i.e. adb pull /etc/fstab fstab, vim fstab, adb push fstab /etc/fstab)
At this point, mounting /external_sd works, and you can flash the zips to your device.
And, the df output, to prove it works:
1|[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 895.8M 48K 895.7M 4096
/mnt/secure 895.8M 0K 895.8M 4096
/mnt/asec 895.8M 0K 895.8M 4096
/mnt/obb 895.8M 0K 895.8M 4096
/system 2G 218.1M 1.8G 4096
/cache 541.9M 9.7M 532.2M 4096
/data 25.7G 1.2G 24.5G 4096
/lta-label 15.8M 4.7M 11M 4096
/mnt/qcks 895.8M 0K 895.8M 4096
/data/ubuntu/dev 895.8M 48K 895.7M 4096
/data/ubuntu/run 895.8M 68K 895.7M 4096
/data/ubuntu/run/shm 895.8M 72K 895.7M 4096
/data/ubuntu/run/lock 5M 0K 5M 4096
/data/ubuntu/system 2G 218.1M 1.8G 4096
/data/ubuntu/vendor 2G 218.1M 1.8G 4096
/data/ubuntu/data 25.7G 1.2G 24.5G 4096
/mnt/shell/emulated 25.7G 1.2G 24.5G 4096
Also, because it wasn't obvious from the docs, to get ssh installed after, you need to do:
adb root
adb shell
ubuntu_chroot shell
in order to get apt-get to work. At that point, apt-get install openssh-server works just fine, and you're off and running.
Enjoy!
themikem said:
Just thought I'd post a quick note for those of you eyeing an Ubuntu load on a 32 GB machine. It does work, with a caveat: out of the box, recovery would not mount my sd card. So, after you apply the boot.img, you need to adb root/adb shell into the box and add "/dev/bloack/mmcblk1p1 /external_sd auto rw" to fstab. (i.e. adb pull /etc/fstab fstab, vim fstab, adb push fstab /etc/fstab)
At this point, mounting /external_sd works, and you can flash the zips to your device.
And, the df output, to prove it works:
1|[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 895.8M 48K 895.7M 4096
/mnt/secure 895.8M 0K 895.8M 4096
/mnt/asec 895.8M 0K 895.8M 4096
/mnt/obb 895.8M 0K 895.8M 4096
/system 2G 218.1M 1.8G 4096
/cache 541.9M 9.7M 532.2M 4096
/data 25.7G 1.2G 24.5G 4096
/lta-label 15.8M 4.7M 11M 4096
/mnt/qcks 895.8M 0K 895.8M 4096
/data/ubuntu/dev 895.8M 48K 895.7M 4096
/data/ubuntu/run 895.8M 68K 895.7M 4096
/data/ubuntu/run/shm 895.8M 72K 895.7M 4096
/data/ubuntu/run/lock 5M 0K 5M 4096
/data/ubuntu/system 2G 218.1M 1.8G 4096
/data/ubuntu/vendor 2G 218.1M 1.8G 4096
/data/ubuntu/data 25.7G 1.2G 24.5G 4096
/mnt/shell/emulated 25.7G 1.2G 24.5G 4096
Also, because it wasn't obvious from the docs, to get ssh installed after, you need to do:
adb root
adb shell
ubuntu_chroot shell
in order to get apt-get to work. At that point, apt-get install openssh-server works just fine, and you're off and running.
Enjoy!
Click to expand...
Click to collapse
Noob here, but would this be the same for the SGP311?
telx85 said:
Noob here, but would this be the same for the SGP311?
Click to expand...
Click to collapse
For SGP311, you need no modifications, this only applies to the 32GB version.
mamenyaka said:
For SGP311, you need no modifications, this only applies to the 32GB version.
Click to expand...
Click to collapse
Sorry but that didn't make sense to me. Are you saying either:
1) won't work as it applies to the 32gb only, or...
2) will work and won't need to modify anything?
Sent from my SGP311 using Tapatalk 2
telx85 said:
Sorry but that didn't make sense to me. Are you saying either:
1) won't work as it applies to the 32gb only, or...
2) will work and won't need to modify anything?
Sent from my SGP311 using Tapatalk 2
Click to expand...
Click to collapse
2.
mamenyaka said:
2.
Click to expand...
Click to collapse
Cheers mate
Hi,
Samsung Galaxy A20e SM-A202F/DS Android 11
My intention is to delete some photos that have been accidentally deleted.
All Windows Trial Applications I tried require root to be able to execute deep scan.
Is it possible to execute deep scan without root?
For example using download or recovery mode or copy the data partition to PC and scan using testdisk?
And if not is it possible to undo root / reset the knox counter?
Thank you in advance.
How to recover a deleted file from /data partition?
I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need. Is it possible to create an image (.img or something similar) of the /data
android.stackexchange.com
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
a20e:/ $ mount | grep 'on /data'
/dev/block/mmcblk0p32 on /data type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
/dev/block/mmcblk0p32 on /data/user/0 type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
tmpfs on /data_mirror type tmpfs (rw,seclabel,nosuid,nodev,noexec,relatime,size=1394256k,nr_inodes=348564,mode=700,gid=1000)
/dev/block/mmcblk0p32 on /data_mirror/data_ce/null type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
/dev/block/mmcblk0p32 on /data_mirror/data_ce/null/0 type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
/dev/block/mmcblk0p32 on /data_mirror/data_de/null type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
/dev/block/mmcblk0p32 on /data_mirror/cur_profiles type ext4 (rw,seclabel,nosuid,nodev,noatime,journal_checksum,noauto_da_alloc,resgid=5678,i_version)
a20e:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.9G 3.8G 126M 97% /
tmpfs 1.3G 1.3M 1.3G 1% /dev
tmpfs 1.3G 0 1.3G 0% /mnt
/dev/block/dm-1 542M 467M 76M 87% /product
/dev/block/dm-2 504M 316M 188M 63% /vendor
tmpfs 1.3G 0 1.3G 0% /apex
/dev/block/mmcblk0p29 45M 24K 45M 1% /omr
/dev/block/mmcblk0p28 390M 17M 373M 5% /cache
tmpfs 1.3G 0 1.3G 0% /mnt/sde
/dev/block/mmcblk0p32 23G 11G 11G 51% /data
/dev/block/mmcblk0p4 16M 432K 15M 3% /efs
/dev/fuse 23G 12G 11G 51% /storage/emulated