question: /system partition resize without USB connection? - TouchPad Q&A, Help & Troubleshooting

I want to install evervolv 6.0.1p upgraded from earlier jculin OS.
I have 32gb hp touchpad, it's usb connection is broken.
I have installed twrp 3.0.2 which has resize2fs command in terminal mode.
I have 700mb /system partition now.
df -h result:
tmpfs size 436.9m available 436.8m mounted on /dev
tmpfs size 436.9m available 436.8m mounted on /tmp
/dev/mapper/store-cm--cache size 196.8m available 192.6m mounted on /cache
/dev/mapper/store-cm-data size 26.9G available 16.7G mounted on /data
/dev/mapper/store-cm-data size 26.9G available 16.7G mounted on /sdcard
/dev/mapper/store-media size 887.1m available 193.9m mounted on /external_sd
How can I expand 700mb to 10000mb only via terminal mode?
I want to use f2fs. so I can format data and cache directories to f2fs via twrp gui.
Because of broken USB connection, all adb, parted, TP Toolbox doesn't work.
I don't know how to use resize2fs or fdisk, because its partition name like mmcblk0 or LVM are complicated.
I have clicked twrp internal GUI resize button, but it does not work for my condition.
Please let me know how-toes.
Thank you.

Related

Low Space / Memory even after a hard reset

Hi
I recently acquired a Nexus One that I'm having memory issues with. I'm running Gingerbread 2.3.4 (GRJ22). I've tried all sorts of options in erasing / clearing memory. After each of these attempts, it always only shows 13MB free. No extra applications are even installed!
I've done the following:
* Factory Data Reset
* Clear Storage during HBOOT
* Wipe data/factory reset during RECOVERY
* Wipe cache partition during RECOVERY
Any other ideas? I've recently rooted it too.
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
There is a possibility that your internal memory is filled with bad sectors.
As noted above, please post the output of the "df -h" command, so it'll be more clear.
I have 19.45kb free with CM7 + gapps only (edit - that is for /system and that too only 40KB free).
when I give that df command in terminal I get
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
what does that mean?
munchy_cool said:
I have 19.45kb free with CM7 + gapps only
when I give that df command in terminal I get
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
what does that mean?
Click to expand...
Click to collapse
Just do
df -h
and you'll see the headings...
filesystem size used available use% mounted
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
so that means I have 155.2M free on /data.
that's good but my /system is only 40.0k free (cm 7 +gapps) only ..bad sectors?
bassmadrigal said:
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
Click to expand...
Click to collapse
I can't seem to install terminal thru the marketplace. I think the low memory is preventing any additional application installs. Is that possible?
Is there another method to access a shell prompt on the device?
im sure you can use adb so plug it in!
daftsynth said:
I can't seem to install terminal thru the marketplace. I think the low memory is preventing any additional application installs. Is that possible?
Is there another method to access a shell prompt on the device?
Click to expand...
Click to collapse
Doesn't CM7 already come with Terminal installed...check your app drawer.
What gapps are you using? Because CM7 on mine has 8.56MB free after having gapps installed and DarkTremor's a2sd. If you are using one of the gapps that adds gmail, maps, facebook, etc... then that is probably your problem. That is why we have the smaller gapps (and to have gapps that are independent of the screen resolution). All those separate apps can be downloaded from the market. The tiny gapps gives you all the apps and framework needed to get onto the market so you can download the other apps.
And yes, Terminal is normally included with CM7...
You should definitely have more free on /system on a CM7 install with gapps.
bassmadrigal said:
You should definitely have more free on /system on a CM7 install with gapps.
Click to expand...
Click to collapse
How much is CM 7 + gapps from CM team on the /system (coz I use gapps which has gmail etc).
I don't know as I also have DarkTremor's a2sd installed, but I still have over 8.5MB available... so I would guess just over 10MB free.
I had low space problems on my old Eris. I just rooted & installed GingerShedBread (CM7) & have over 100MB free after installing 45 apps to internal storage.
GSB also supports moving all apps to sd including system.
Sent from my Vortex using XDA App
bassmadrigal said:
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
Click to expand...
Click to collapse
running df, I get this:
Filesystem Size Used Free Blksize
/dev 192M 32K 192M 4096
/mnt/asec 192M 0K 192M 4096
/mnt/obb 192M 0K 192M 4096
/system 145M 128M 16M 4096
/data 196M 183M 12M 4096
/cache 95M 2M 92M 4096
/mnt/sdcard 1G 536K 1G 4096
/mnt/secure/asec 1G 536K 1G 4096
I can't seem to run "df -h". I get this error:
-h: No such file or directory
tsaxda said:
I had low space problems on my old Eris. I just rooted & installed GingerShedBread (CM7) & have over 100MB free after installing 45 apps to internal storage.
GSB also supports moving all apps to sd including system.
Sent from my Vortex using XDA App
Click to expand...
Click to collapse
I've just done some partition tweaks and now have 200+ apps with 118 mb free... xD
daftsynth said:
running df, I get this:
Filesystem Size Used Free Blksize
/dev 192M 32K 192M 4096
/mnt/asec 192M 0K 192M 4096
/mnt/obb 192M 0K 192M 4096
/system 145M 128M 16M 4096
/data 196M 183M 12M 4096
/cache 95M 2M 92M 4096
/mnt/sdcard 1G 536K 1G 4096
/mnt/secure/asec 1G 536K 1G 4096
I can't seem to run "df -h". I get this error:
-h: No such file or directory
Click to expand...
Click to collapse
That is weird that the -h option isn't working. It works on mine. Anyway, I guess it is the default with the df command (designed to show things in MB or GB instead of just bytes).
Now we will figure out what is using all the space in your /data directory.
Code:
su
cd /data
du -hd 1
This will show a listing of your data directory with sizes next to each folder. Normally the data and app directories will be your largest (maybe app-private if you have a lot of private apps installed). You can cd into each of the directories and run the same command and if you add "| grep M" it will only show items that have a capital 'M' in it which will show you all the files that are rated in MB vs KB.
So the command would read
Code:
du -hd 1 | grep M
Hopefully you can then figure out what is taking up all your space.
bassmadrigal said:
That is weird that the -h option isn't working. It works on mine. Anyway, I guess it is the default with the df command (designed to show things in MB or GB instead of just bytes).
Now we will figure out what is using all the space in your /data directory.
Code:
su
cd /data
du -hd 1
This will show a listing of your data directory with sizes next to each folder. Normally the data and app directories will be your largest (maybe app-private if you have a lot of private apps installed). You can cd into each of the directories and run the same command and if you add "| grep M" it will only show items that have a capital 'M' in it which will show you all the files that are rated in MB vs KB.
So the command would read
Code:
du -hd 1 | grep M
Hopefully you can then figure out what is taking up all your space.
Click to expand...
Click to collapse
It appears that I have bad sectors. The actual total size of /data is less than what shows up in "df". Any ideas on how I would repair the bad blocks?
I was able to run Ubuntu and get my Nexus One recognized by it. How do I fix the nexus one /data partition from Ubuntu? I'm assuming I would need to mount it.
I'm able to mount the /sd partition but can't see the other partitions. GParted only sees the SD partition as well when its attached with USB Storage turned on.
I don't have my Ubuntu box to confirm, but you should be able to mount /data as rw through adb (you only need the Linux adb, not the whole sdk).
Should look something like:
$ adb-linux shell
$ su
# mount /dev/block/mtdblock5 /data yaffs2 rw
...I'm sure someone will correct me if I'm wrong.
danger-rat said:
I don't have my Ubuntu box to confirm, but you should be able to mount /data as rw through adb (you only need the Linux adb, not the whole sdk).
Should look something like:
$ adb-linux shell
$ su
# mount /dev/block/mtdblock5 /data yaffs2 rw
...I'm sure someone will correct me if I'm wrong.
Click to expand...
Click to collapse
I will try this when I get home. But when you execute the mount cmd above, wouldnt that just mount the partition locally on the nexus one?
daftsynth said:
I will try this when I get home. But when you execute the mount cmd above, wouldnt that just mount the partition locally on the nexus one?
Click to expand...
Click to collapse
Yes it would mount it locally. I don't know if you would be able to mount the data partition onto the computer due to it not passing any disc info other than the sdcard. But, while in adb, you could try and run an e2fsck. I am not sure on the exactness of these commands, but I think it would be something like this in adb while in recovery.
Code:
adb-linux shell
mount system
e2fsck -pcfv /dev/block/mtdblock5
You may need to issue an 'su' command, but I think when you use adb it automatically logs in as root.

[Q] How to increase internal phone storage?

I know this is a total noob thing to be asking, but I have researched and tried out various solutions and am still running out of space on my internal phone storage. I've installed the CM6.1 Magpie on a partitioned 8GB SD card with all apps set to install to sd-ext. I partitioned off 1GB for sd-ext, which seems to have worked as I can see some apps installed there.
I think I must have it set up incorrectly or incompletely despite my best efforts, as from what I understand I should be seeing my internal phone storage as being larger than 91.75MB. It's a problem as I now only have 15MB free, and it seems to be causing phone crashes.
I followed my_former_self's cm6.1.0 ds guide with magpie successfully, as far as I can tell. I am not certain if I also need to be using Firerat's customMTD... Can anyone offer some advice? I've done a lot of searching, but the info is so fragmented that I'm at a bit of a loss. (fr'instance, on the customMTD page the version is 1.5.6., but in the download area I see there's a 1.5.8 version too...)
Thanks for any help or pointers to any threads!
Phone: T-Mobile G1
ROM: Magpie-DS-CM6.1
Recovery: Amon-Ra
Can you please go into a terminal session
(or use
Code:
adb shell
) and type
Code:
df -h
and send the output here?
Probably you have done right everything, but your internal space is used by data ...
Sent from my Gingerbread on Dream using XDA App
df -h
AndDiSa said:
Can you please go into a terminal session
(or use
Code:
adb shell
) and type
Code:
df -h
and send the output here?
Probably you have done right everything, but your internal space is used by data ...
Sent from my Gingerbread on Dream using XDA App
Click to expand...
Click to collapse
I managed to free up some space last night by using Titanium's "integrate updates into ROM". That resulted in me having to reinstall Google Maps, but it did free up some space.
Here's my disk space usage:
Code:
$ adb -s HT94PGZ05646 shell
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 55.0M 0 55.0M 0% /dev
tmpfs 55.0M 0 55.0M 0% /mnt/asec
/dev/block/mtdblock3 91.0M 90.8M 200.0K 100% /system
/dev/block/mtdblock5 91.8M 57.1M 34.7M 62% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /sd-ext
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /cache
/dev/block/mtdblock4 27.0M 1.1M 25.9M 4% /dev/cache
/dev/block/vold/179:1
6.5G 404.6M 6.1G 6% /mnt/sdcard
/dev/block/vold/179:1
6.5G 404.6M 6.1G 6% /mnt/secure/asec
"SD card & phone storage" shows internal phone storage available space as 34.67MB now, which seems to match /data.
I'm pretty sure I have all the pieces, I just can't put them together So if I *have* done things right, how do I get the system to mount /data elsewhere?
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
ah so!
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
That's reassuring, your solutions reads like the general instructions I found on the firerat customMTD thread. That thread was a bit confusing and I was worried about mixing & matching things, especially given that the latest versions didn't match the versions in the thread. I shall report back!
Definitely an improvement!
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
Excellent! I am now seeing 117MB for total space and 59.66MB free. However, I worry that this won't be enough in the future. Can you advise me on how to create more space? Or will it do so automagically?
mtdpartmap.txt not read?
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
Hm... I am not sure it is reading mtdpartmap.txt, as the /system partition seems to be the same size:
Code:
# cat /sdcard/mtdpartmap.txt
mtd 91 2
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 55.0M 0 55.0M 0% /dev
tmpfs 55.0M 0 55.0M 0% /mnt/asec
/dev/block/mtdblock3 91.0M 90.8M 200.0K 100% /system
/dev/block/mtdblock5 116.8M 57.1M 59.6M 49% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /sd-ext
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /cache
/dev/block/mtdblock4 2.0M 776.0K 1.2M 38% /dev/cache
/dev/block/vold/179:1
6.5G 807.9M 5.7G 12% /mnt/sdcard
/dev/block/vold/179:1
6.5G 807.9M 5.7G 12% /mnt/secure/asec
Any thoughts on that?
Hmm ... creating more internal space will be difficult, because the G1 has only 196MB
The only chance you have, if this isn't sufficient for you: use a2ext, i.e. put all applications to sd card and keep only the data ofthe applications on internal memory. I am doing so (~100 application installed) and normally I've still around 30MB free.
If that is still not sufficient for you, you can use data2sd. Firerat's all in one patch should work with your rom. Choosing the ddb option will move app data to sd-ext and will free internal space. Disadvantage of this option: if you have a slow sd card you will notice a performance decrease.
AndDiSa said:
Hmm ... creating more internal space will be difficult, because the G1 has only 196MB
The only chance you have, if this isn't sufficient for you: use a2ext, i.e. put all applications to sd card and keep only the data ofthe applications on internal memory. I am doing so (~100 application installed) and normally I've still around 30MB free.
If that is still not sufficient for you, you can use data2sd. Firerat's all in one patch should work with your rom. Choosing the ddb option will move app data to sd-ext and will free internal space. Disadvantage of this option: if you have a slow sd card you will notice a performance decrease.
Click to expand...
Click to collapse
Thanks for the info. I'm already using a2ext, as it's built into Magpie and I've locked app installations to ext in the cyanogen mod settings. However, if you're running 100+ apps and having no probs, I doubt I will either. Thanks again!

Which partition is equal to /recovery in other android devices?

I am new to Android, want to customize the system follow the tutorials, but found the Note is different to other Android phones:
for other phone, there will be a /proc/mtd and list all the partitions with mount point, but on Note I can only found /proc/fs, with 3 folders: ext4 jbd2 nfsd
and the mount table is like this:
rootfs on / type rootfs (ro,relatime)
...
/dev/block/mmcblk0p9 on /system type ext4
/dev/block/mmcblk0p7 on /cache type ext4
/dev/block/mmcblk0p1 on /efs type ext4
for other devices, e.g., HTC Wildfire, the partition will like below:
mtd1: recovery
mtd3: system"
...
I downloaded the CF-Root flasher, by Chainfire, found basiclly it's flashing a zImage into /dev/block/mmcblk0p5. I mount the partition before flash and seems there is only some picture files there. how can we know the machine will boot to this partition in recovery mode?
nobody knows? so far what I get seems that the phone do not use the /recovery partition, but use same kernel to handle the recovery state. during boot it will search for /system/etc/install-recovery.sh, maybe that will trigger the recovery process?
The Note, like many other Samsung phones, does not use or follow the mtd layout - at all.
Indeed there is a single kernel for both normal boot and recovery. Normal boot uses init.rc script, recovery boot uses recovery.rc script.
There is a "spare" partition that is both called recovery and available, but it isn't used.

[9001]Mounting external SD Card as ext3

Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
FaxXer said:
Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
Click to expand...
Click to collapse
u need a kernel that supports ext3. u can ask one of the guys compiling at the moment if they have time to add an ext3 module for u.
May be a stupid question:
would ext4 work instead? I thought the system partition would use this FS.
filesystem is already ext4
wintel_mac said:
May be a stupid question:
would ext4 work instead? I thought the system partition would use this FS.
Click to expand...
Click to collapse
well the system uses ext4 so it should work, but i'm not sure what u're trying to achieve. i use a 16 gb class 10 formatted fat32
Blumdum said:
filesystem is already ext4
Click to expand...
Click to collapse
He's talking about formatting external sd-card
When I get him right, he has a file that exceeds the 4GB FAT32 limit.
So he looks for an alternative to FAT32, which might be some kind of ext*-FS.
wintel your right!
In the Android-Hilfe Forum someone said the system expect first an vfat partition and then the ext. I think thats wrong cause its not working but somehow it has to go.
Hmm should I write these mount command I postet in the init.rc? Or something else. Would be very nice if you post your ideas!
Thanks
init.rc+ ext3 module/object included in kernel
Hmm okay thats good but how do I use them? So I can read and write to my external sd card with an ext3 or ext2 partition.
Thanks
Come on guys where are the great developers?!
Ok I did a test with busybox inbuilt mount, but I tried only with an image.
Not with a real SD card! This worked for me:
On a linux box:
# dd if=/dev/zero of=/tmp/image bs=1M count=1k
# mkfs.ext4 /tmp/image
Copy file to your phone. Then:
On the phone with terminal:
# mkdir /sdcard/mmnt
# busybox mount -o loop /sdcard/image /sdcard/mmnt
To unmount:
# busybox umount -l /sdcard/mmnt
Anybody tried that?
If I understand u right u puting an image file (ext3/4) on the sd and mount that as a virtual disk. Wouldn't the image file be bound to the same restrictoins as other content on a fat32 file system? Like the 4 gig limit!
YOU WILL LOSE ALL DATA ON YOUR SDCARD IF YOUR FDISK
BACKUP WHATEVER IS ON THERE FIRST!!!
YOU'VE BEEN WARNED
using a photon 4g but....
what i did was get an external sdcard reader writer...
(used ubuntu) and let it mount
fdisk device and DELETE ALL PARTITIONS
write
fdisk again
create a linux primary type 83
type mount and grab the /dev/sdcX value (it was /dev/sdc1 for me)
umount that
then
mkfs.ext3 /dev/sdcX ... ( heres the thing though with cyanogen mod 7 kernel 2.6.32.9 SMP PREEMPT)
had to reboot twice for it to be seen in file manager...
its buggy but it does work for the most part
Reviving an old thread, but I just found that I can format a MicroSD under NTFS and it will work with Paragon's NTFS module. At the very least, my phone will mount the drive. I partitioned and formatted it with ext4 on my Linux machine and it didn't recognize it, but I did have it use the GUID partition table. Hoping to be able to load up some videos to take with me.
ext4 sdcard mount works
FaxXer said:
Hey,
I like to mount my external SD Card as ext3 to support large files. The SD Card is formatted with ext3 but now Android shows only an empty folder.
So i tried to remount the SD:
Code:
mount -o rw,remount -t ext3 /dev/block/vold/197:33 /mnt/sdcard/externald_sd
But it doesnt use something... Does anybody has an idea? Some Example or sthing else?
Greetz
Click to expand...
Click to collapse
The problem is with the shell interpreting the special character ":"
To make it work, first create a symlink to the device node:
Code:
ln -s /dev/block/vold/197\:17 /dev/sd2
Then mount it:
Code:
busybox mount /dev/sd2 /mnt/tmp
Code:
sh-4.1# ls -l /dev/sd2
lrwxrwxrwx root root 2013-11-16 14:45 sd2 -> /dev/block/vold/179:17
sh-4.1# mount|grep sd2
/dev/sd2 /mnt/tmp ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
success mounting ext formatted SD Card on Android
An improvement in technique to mount ext formatted SDcard:
1) be root and open terminal
2) insert the card
3) see the block device and partition names from dmesg
4) mount device to location of choice (create the directory if needed)
Below is an example of an SD card with one ext4 partition on it
Code:
bash-4.1# dmesg | tail | grep mmc
<6>[20230.719541] mmc1: new high speed SDHC card at address 0007
<6>[20230.722803] mmcblk1: mmc1:0007 SD32G 29.3 GiB (ro)
<6>[20230.728352] mmcblk1: p1
bash-4.1# busybox mount /dev/block/mmcblk1p1 /data/mnt/sdcard2
tribh said:
An improvement in technique to mount ext formatted SDcard:
1) be root and open terminal
2) insert the card
3) see the block device and partition names from dmesg
4) mount device to location of choice (create the directory if needed)
Below is an example of an SD card with one ext4 partition on it
Code:
bash-4.1# dmesg | tail | grep mmc
<6>[20230.719541] mmc1: new high speed SDHC card at address 0007
<6>[20230.722803] mmcblk1: mmc1:0007 SD32G 29.3 GiB (ro)
<6>[20230.728352] mmcblk1: p1
bash-4.1# busybox mount /dev/block/mmcblk1p1 /data/mnt/sdcard2
Click to expand...
Click to collapse
Would this work just the same way with i9000?
After this, no more access to the extSD by the Windows PC but only with Ubuntu, right?
tetakpatak said:
Would this work just the same way with i9000?
After this, no more access to the extSD by the Windows PC but only with Ubuntu, right?
Click to expand...
Click to collapse
Since it's generic Linux kernel and busybox functionality it should work on any 'droid. The SDcard device name might be different than in the above example - you will see the correct device and partition names after you insert SDcard and run `dmesg | tail` on the tablet or phone.
(of course your device must be rooted and have busybox...)
Typically Windows is engineered not to recognise anything that does not come from Microsoft, so you will not be able to mount the Linux partition via Windows.

[Q] [HELP] Swap sdcard with sdcard-ext

I've edited vold.fstab so that sdcard and sdcard-ext are swapped. But this doesn't work on my XT894. Nothing happens in my case.
Then I found this topic.
In short, you run a script containing:
Code:
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:97 /mnt/sdcard
if busybox mount | busybox grep vold/179:97; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
After running this script the result is that both sdcard and scard-ext are in fact pointing to my external 32GB card. So in a way I'm happy. Now I can install games and all navigational maps without any hassle. But, I would like my internal 8GB of storage back. To do so I take it "something" has to be mounted to /mnt/sdcard-ext.
My Linux/Unix is of n00b quality so here I am asking for help :cyclops:
I've tried adding these two lines:
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:1 /mnt/sdcard-ext
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:1 /mnt/sdcard-ext
Hoping 179:1 pounted to the internal sdcard and /mnt/sdcard-ext would mount it at exactly that. But it didn't work.
Can anyone explain to me what these commands do? Why vfat and exfat? Is this done so that you always mount the correct filesystem? And what about the vold/179:xx? Does anyone know which one points to the internal sdcard on an XT894 running ICS?
Trust me, I've Googled all I can. I have tried several options, multiple scripts, but my lack of Linux/Unix knowledge is killing me.
Edit:
When I connect as USB Mass storage I get my internal 8GB back. It is accessible on the laptop. When I switch back to MTP it shows a different directory (maybe due to vold/179:1 !?). After I re-run the script sdcard is back to my external 32GB. For now this will do.
I will update later. Sygic is downloading 2GB of data. After that I will switch back and forth between USB M / MTP with and without running the script.
Edit 2
After I connect as MTP, Internal Storage seems to be pointing to an unknown space. There is an .android directory which I am unable to find on the phone.
When I switch to USBMS (from MTP) it seems to switch back to the original setup, sdcard 8GB and sdcard-ext 32GB.
When I disconnect the USB cable everything is back to normal. But, all I need to do is re-run the script and sdcard points back to my external SD.

Categories

Resources