[Q} Terminal commands - partitions - General Questions and Answers

Hi.
I had ext4 partition on my sd card and i want to change it to ext2. I found that i can use commands to delete it and than create new.
First i used
#parted /dev/block/mmcblk0
Click to expand...
Click to collapse
than
(parted)rm 2
Click to expand...
Click to collapse
to delete ext4 (t was second partition). Now i want to make new ext2 partition using this command:
(parted)mkpartfs primary ext2 X X
Click to expand...
Click to collapse
but i dont know some things:
1. it must be primary partition?
2. what should i give under X? deleted partition had START: 15.3GB and END: 15.8GB, but im not sure if i need to give it in GB, MB or maybe KB or i dont know.
3. and last: how to move apps from sdcard fat32 partition to new ext2,3,4 without uninstalling them? and which file system is the best for apps?

Related

Easiest way to Partition SD to EXT4:

Using this app you can easily Partition your SD card to ext 4....
You will have a make a swap partition also...
Recommended Sizes:
512 Ext4 and 128mb SWAP
__
or
__
1gb Ext 4 and 250 mb SWAP
--------------------------------
/!\ WARNING: THIS WILL ERASE ALL YOUR DATA ON YOUR SD. PLEASE BACKUP YOUR IMP. DATA /!\
why not using 4ext recovery instead?
or rmd, or amonRA 2.0.1
why do people need swap? alot of roms dont use it
Or GParted if you at a pc.
3f1f37 said:
Or GParted if you at a pc.
Click to expand...
Click to collapse
For me, this ^^^. Every time.
I use partition wizard home edition. Since I'm using windows. Why so much SWAP? I'm having 0MB of that.
O Sophos said:
I use partition wizard home edition. Since I'm using windows. Why so much SWAP? I'm having 0MB of that.
Click to expand...
Click to collapse
I hate minitool. Awful. You're lucky it works for you. I always recommend everyone stays away from it to be honest. Gparted is bootable so you can use it regardless of OS. EXT is not a native windows format.
rootSU said:
Gparted is bootable so you can use it regardless of OS.
Click to expand...
Click to collapse
Thats why i roll with Ubuntu 10.4 and Gparted cd's in my cd spindle so that i am prepared to "work" anywhere
I'm way too lazy to reboot into gParted, I just boot to recovery and partition using parted in the adb shell
4EXTRecovery user here - muuuuch easier to partition with that than this thing!
hi,
i used gparted to create a partition but i made it ext3
i then ran a aligned program which converted it to ext4
its working fine, is this ok or should i have created a ext4 from the start ?

[GUIDE] Swap Partition

How to use Swap Partition on external sdcard
Q: Why use a swap-partition instead of a swap-file?
A: You are able to mount your first partition on computer, with swapfile you are not.
Attention
mmcblk1 = external_sdcard if you use mmcblk0 you will hardbrick your phone. Some apps like swapper 2 use mmcblk0pX as default value, if you want to use these apps make sure to change this in settings.​
Test if Kernel supports swap
Code:
$ free
Find your swappartition
Code:
$ fdisk -l /dev/block/mmcblk[COLOR="Red"]1[/COLOR]
Output:
Code:
Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 1 3849 30916015+ c Win95 Fat32 (LBA)
/dev/block/mmcblk1[COLOR="red"]p2[/COLOR] 3849 3880 250084 82 [COLOR="Red"]Linux swap[/COLOR]
Activate Swap (Linux swap)
Code:
$ swapon /dev/block/mmcblk1[COLOR="red"]p2[/COLOR]
Optional change swappiness
Code:
$ echo 10 > /proc/sys/vm/swappiness //default value is 60
Test if all works
Code:
$ free //There should be some numbers behind swap
$ cat /proc/sys/vm/swappiness //current swappiness value
init.d script
Code:
#!/system/bin/sh
swapon /dev/block/mmcblk1[COLOR="red"]p2[/COLOR]
echo 10 > /proc/sys/vm/swappiness
Faq:
1. Does my Kernel support swap?
free \\there should be on line
Code:
Swap: 0 0 0
2. What is Swappiness?
Lower values: Old cache is deleted rather than swapped
Higher vales:
Since sdcards are not that fast lower values should be better for performance.
3. Which sdcard class should i use?
the faster the better: class 10, but using class 6 (maybe 4) could speed up your phone, too. Slower sdcard == smaler swappiness.
I created linux swap partition in my extsdcard using minitools.. after using the find swap partition code I got some weird message in terminal like
- "partition 2 does not end on cylinder boundary.. why is this happening?? Any solution for this??
Please check the screenshot attached
AW: [GUIDE] Swap Partition
You can ignore this. It is a warning not an error. Did you try to partition your external SD in recovery? Before doing that save all your data, cause it will be deleted.
buffo1987 said:
You can ignore this. It is a warning not an error. Did you try to partition your external SD in recovery? Before doing that save all your data, cause it will be deleted.
Click to expand...
Click to collapse
I dont know how to partition from recovery mode so I did it from pc using minitool..!!
Im confused about what format I should used to create swap partition- ext3 or linuxSwap or someother format..??
thunderrr0 said:
I dont know how to partition from recovery mode so I did it from pc using minitool..!!
Im confused about what format I should used to create swap partition- ext3 or linuxSwap or someother format..??
Click to expand...
Click to collapse
from recovery you do not have to care about that. swap is right
buffo1987 said:
from recovery you do not have to care about that. swap is right
Click to expand...
Click to collapse
Can u help me with this recovery method??procedure?
I use galaxy s advance I9070..stock JB..custom kernel CoCore 4.4..
I guess the recovery method will be same for most o the galaxy series phones??
thunderrr0 said:
Can u help me with this recovery method??procedure?
I use galaxy s advance I9070..stock JB..custom kernel CoCore 4.4..
I guess the recovery method will be same for most o the galaxy series phones??
Click to expand...
Click to collapse
be good to your phone and dont flash anything that doesnt belong to your phone!
AW: [GUIDE] Swap Partition
Recovery should be same for all phones.
Bricked :/
Hey guys!
I used an other tutorial that I found in google. The author of the article didn't tell us to change anything in Swapper2. Everything worked fine until I tried to reboot my phone. It turned off and then nothing, not even a single sign of life. Question is, what can I do with it? Is there a way to revive it?
vricsi94 said:
Hey guys!
I used an other tutorial that I found in google. The author of the article didn't tell us to change anything in Swapper2. Everything worked fine until I tried to reboot my phone. It turned off and then nothing, not even a single sign of life. Question is, what can I do with it? Is there a way to revive it?
Click to expand...
Click to collapse
If you have a S Plus and you touched any partition bellow mmcblk0p8 such as mmcblk0p2 or 3 your device bootloader got corrupted and you won't be able to boot anything anymore (nor Download Mode, Recovery Mode or System).
vricsi94 said:
Is there a way to revive it?
Click to expand...
Click to collapse
Sorry..... No..... In case you activated swappartion in advanced options without changing the given location You formatted the third partition of Your system...... This isn't reversible.
Gr.
B.
sent from my i9001 using Tapatalk2
Thanks for the replies! However, I remembered a little wrong, I did change some of the settings, I did everything as per this tutorial: http://forum.xda-developers.com/showthread.php?t=1659231
As a last idea, I thought about buying a USB jig. Could that help me in any way?

[Q]How to mount the 2nd partition of my SDCARD?

I just created a 2nd partition on my 8GB SD card so that i could move apps to it using link2sd...but when i open link2sd and select the file system of my SD card's 2nd partition (ext4) i get an error:
Mount script cannot be created.
mount: No such device.
ext4 may not be supported on your device. Try FAT32 on the second partition.
Click to expand...
Click to collapse
Other small question : Do I really need to mount the 2nd partition if I just wanna install custom ROMs?
Need help ASAP! thanks in advance .
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
ptcpayme said:
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Click to expand...
Click to collapse
I made the second partition as FAT 32 and it worked.
Now the only doubt i have is...will ROMS work on FAT32 partition?
kingcola said:
I made the second partition as FAT 32 and it worked.
Now the only doubt i have is...will ROMS work on FAT32 partition?
Click to expand...
Click to collapse
If you are on Stock then maybe FAT32 partition may have worked.. or even otherwise maybe it will work,.. haven't used a FAT32 sd partition since JaggyROM 2.x.x ( obviously my 1st partition is fat32 ) ... My second partition is an ext and it is advisable to have an ext partition cause there are many scripts like int2ext , s2e, etc which work well with an ext partition...
A partition is Not necessary to made in order for other ROMs to work.. They will work just as well without a partition .. only thing is your internal memory will remain to be 150 mb.. Which is the memory allocated in our phone's nand..
NOTE: Sense 4.0a is the only ROM that you necessarily need to have an SD-EXT Partition of at least 1 GB. Otherwise it won't boot.
thanks for helping me..
I partitioned (1GB of memory to fat32) my sdcard with MiniTool Partition Wizard to facilitate to link2sd long back. Now I am unable to recover that memory and merge into a single partition. Do you guys have solution for this?
delete the partition in disk mgmt..
kingcola said:
I just created a 2nd partition on my 8GB SD card so that i could move apps to it using link2sd...but when i open link2sd and select the file system of my SD card's 2nd partition (ext4) i get an error:
Other small question : Do I really need to mount the 2nd partition if I just wanna install custom ROMs?
Need help ASAP! thanks in advance .
Click to expand...
Click to collapse
If anyone still have the above issue then just change ur sdcard partition type to ext3. Reboot mobile. Better to use link2sd for this.
smartksr said:
I partitioned (1GB of memory to fat32) my sdcard with MiniTool Partition Wizard to facilitate to link2sd long back. Now I am unable to recover that memory and merge into a single partition. Do you guys have solution for this?
Click to expand...
Click to collapse
do it through mini partition tool..delete the created partition..now right click on the 1st partition..slect extend..n drag the cursor till end...n click apply...done
Use Other Kernel
The reason for your second partition is not recognized is you may be at Stock Rom and Stock kernel....
Stock kernel do not support ext partitions...
Use ateeq kernel or cranium kernel for ext4 partition support....
Also use Mounts2sd instead of link2sd...!!!!
I used mounts2sd after I created sd card partition(ext3) but this app said partition not mounted; but link2sd recognised n created scripts.
Sent from my GT-S5830i using xda app-developers app
RajeevBN said:
I used mounts2sd after I created sd card partition(ext3) but this app said partition not mounted; but link2sd recognised n created scripts.
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
Assuming you have the right kernel, install the startup script and change the driver in mounts2sd settings to ext3.
Sent from my Explorer A310e using XDA Premium 4 mobile app
Thanks mate!! Your ext3 suggestion worked perfectly for Link2SD on my droid.
BleedingIris said:
Make ext3 partitions
No need of second partition for cyanogen. You may need it for sense
LâTêS†↭ⓛⓘⓝⓚⓢ™CM10 HTC A310E.
If I haven't given you link, it's above. Just click it
Click to expand...
Click to collapse
Thanks mate!! Your ext3 suggestion worked perfectly for Link2SD on my droid. :good:
hey guys, is it possible to access the 2nd partition on Android or under Windows? Link2SD sees my 2nd partition and mounts it correctly, but assuming I want to copy e.g. music files to the 2nd partition using Root Explorer or using my PC, how do I do that? I tried both and they don't see my 2nd SD partition at all...
chaoscreater said:
hey guys, is it possible to access the 2nd partition on Android or under Windows? Link2SD sees my 2nd partition and mounts it correctly, but assuming I want to copy e.g. music files to the 2nd partition using Root Explorer or using my PC, how do I do that? I tried both and they don't see my 2nd SD partition at all...
Click to expand...
Click to collapse
Use EXt2FS search in google you will get it..
Install it in your windows.. reboot your pc.. Then connect your card.. You will get the second partiton to see plus you can copy paste as well..
THANKS jynt_panwar!!!!! I WAS LOKING FOR THIS FOR A YEAR!!!!!!!!!! The Link2sd don't work for my phone (ZTE Blade L3 stock rom 4.4.2), but the Mounts2sd saved my life!!! Also I followed the instructions in this site: INCREASE YOUR ANDROID INTERNAL MEMORY || BY MOUNTS2SD (BEST WAY) in androcustomroms site. Maybe it can help more people... And thanks XDA of course!

SD card 2nd partition is not getting mounted

Hi Friends
Yesterday I flashed my HTC Explorer with CM10.1 Beta 5 ([DEV][ROM][JDQ39E][4.2.2] CyanogenMod 10.1.2 | BETA#5 | 25/07/13 | WILD FOR THE NIGHT) . But with this build my phone is not mounting the second partition of size 2GB (total 16gb card) which I have created from recovery menu. I have tried with the Mini partition tool on windows for FAT32 too, but still its not mounting my either Link2SD, mount2SD or by the kernel (About Phone -> System partion).
Please help me as without mounting the 2nd partition I can not install any other app as very very less space is available after CM 10.1.
Thank you.
Use Int2sd+ for cm10.1
You can Google it & download
Note: you when flash ROM when mount system, data,sd-ext..and make ext3 partition
thekoolanie said:
Use Int2sd+ for cm10.1
You can Google it & download
Note: you when flash ROM when mount system, data,sd-ext..and make ext3 partition
Click to expand...
Click to collapse
Its still not working. I wonder, if we can do so many things in CM, why can not we simply integrate the script in to the rom itself. I'm damn sure 100% of HTC explorer users must be searching for a way to increase the internal memory of the phone also now a days sd cards are damn cheap.
There is a link
http://androidicablog.wordpress.com...rnal-memory-script-for-4-2-1-romsgalaxy-mini/
You can see my memory in this attachment
There is a link
http://androidicablog.wordpress.com...rnal-memory-script-for-4-2-1-romsgalaxy-mini/
You can see my memory in this attachment
---------- Post added at 06:04 AM ---------- Previous post was at 05:55 AM ----------
There is a link
http://androidicablog.wordpress.com...rnal-memory-script-for-4-2-1-romsgalaxy-mini/
You can see my memory in this attachment
mount2sd NOT mounted SD-EXT on Samsung Galaxy Y Pro Duos
hi,
I have a rooted Samsung GT-B5512. Init.d and mountd2sd installed.
Android 2.3.6, kernel: 2.6.35.7.
Trying to move a lot to SD card, including some system files since this is a low end device with little memory. Even with apps like link2sd after a large number of apps the int storage was full :/ therefore trying the mount2sd but it doesn't want to mount the sd partition.
The card (16GB) is formatted as follow: 13 GB FAT32, 1 GB EXT3.
In the section Storage\External mount2sd says Not mounted.
the busybox is installed, the startup script too. Driver is set to EXT but most of fields are grayed out.
Please help.
xda_keevvee said:
hi,
I have a rooted Samsung GT-B5512. Init.d and mountd2sd installed.
Android 2.3.6, kernel: 2.6.35.7.
Trying to move a lot to SD card, including some system files since this is a low end device with little memory. Even with apps like link2sd after a large number of apps the int storage was full :/ therefore trying the mount2sd but it doesn't want to mount the sd partition.
The card (16GB) is formatted as follow: 13 GB FAT32, 1 GB EXT3.
In the section Storage\External mount2sd says Not mounted.
the busybox is installed, the startup script too. Driver is set to EXT but most of fields are grayed out.
Please help.
Click to expand...
Click to collapse
remove any sd. ext you made..create new ext partition using recovery and try..
shubhojit89 said:
remove any sd. ext you made..create new ext partition using recovery and try..
Click to expand...
Click to collapse
thank you, I was struggling with this alone for too long ...
Did as you say but same results. Mount2sd doesn't see the SD-EXT.
FYI - I did not install the ClockworkMod,just run it from the Android recovery shell. Anyway it was able to successfully create partitions on the SD.
Don't know if that matters ...
Do you want me to post any screens, or log files (actually mount2sd log is empty, even though debug mode is checked).
Marek
xda_keevvee said:
thank you, I was struggling with this alone for too long ...
Did as you say but same results. Mount2sd doesn't see the SD-EXT.
FYI - I did not install the ClockworkMod,just run it from the Android recovery shell. Anyway it was able to successfully create partitions on the SD.
Don't know if that matters ...
Do you want me to post any screens, or log files (actually mount2sd log is empty, even though debug mode is checked).
Marek
Click to expand...
Click to collapse
ya u can post the screenshots..
vice ereafe
See enclosed. The log file is empty but check the debug
xda_keevvee said:
See enclosed. The log file is empty but check the debug
Click to expand...
Click to collapse
create partition through recovery and make it ext4 coz ext4 is mounted easily..
shubhojit89 said:
create partition through recovery and make it ext4 coz ext4 is mounted easily..
Click to expand...
Click to collapse
My ClockWordMod (CWM-6102) does only ext3 (did not find setting to change type). I'm not sure is there higher CWM for my cell.
I've made the ext4 using MiniTool Part under Windows but it looks like the Mount2SD does not support ext4 in my case. I can choose ext2, ext3, fat, auto but the ext4 is dimmed (could it be Android kernel related?).
Tried then also sd-ext and FAT, still Not Mounted ...
xda_keevvee said:
My ClockWordMod (CWM-6102) does only ext3 (did not find setting to change type). I'm not sure is there higher CWM for my cell.
I've made the ext4 using MiniTool Part under Windows but it looks like the Mount2SD does not support ext4 in my case. I can choose ext2, ext3, fat, auto but the ext4 is dimmed (could it be Android kernel related?).
Tried then also sd-ext and FAT, still Not Mounted ...
Click to expand...
Click to collapse
change to philz recovery.. i m using it for months.. it supports ext4.. ext4 is easily mounted.. i use ext4 and i never faced any kinda issue you r facing..
shubhojit89 said:
change to philz recovery.. i m using it for months.. it supports ext4.. ext4 is easily mounted.. i use ext4 and i never faced any kinda issue you r facing..
Click to expand...
Click to collapse
it was kernel thing (BTW - there are very few recovery binaries for this phone, CWM is for example mostly in use as a temporary executed, loaded each tip from ZIP).
I have updated kernel to this:
http://forum.xda-developers.com/showthread.php?t=1913349
and things automatically got mounted (even made a partition using my PC and working same good)
thanks for participation

[Q] SD Card Partition Problem

I Have 2gb mmc in my mobile and created 1gb partition from CWM 2.0.6.9 but the problem is the partition is not seen setting > apps and phone memory . It Shows 78mb is fulled and 80 mb free . i have used partition software it shows ext 3 partition . please help me what should i do . i am totally noob
rkumbhar said:
I Have 2gb mmc in my mobile and created 1gb partition from CWM 2.0.6.9 but the problem is the partition is not seen setting > apps and phone memory . It Shows 78mb is fulled and 80 mb free . i have used partition software it shows ext 3 partition . please help me what should i do . i am totally noob
Click to expand...
Click to collapse
try to create a partition using pc and create a ext4..
delete the present and create a new one.
rkumbhar said:
I Have 2gb mmc in my mobile and created 1gb partition from CWM 2.0.6.9 but the problem is the partition is not seen setting > apps and phone memory . It Shows 78mb is fulled and 80 mb free . i have used partition software it shows ext 3 partition . please help me what should i do . i am totally noob
Click to expand...
Click to collapse
Are you using any memory increasing script or any overclock kernel?
dude,which rom you use? i flashed a lot roms these days. using mounts2sd. set "driver" in the options to ext3 and reboot (be sure you installed the startup script in the application settings!)
and check the rest of the settings... learning by doing
holy 1ne said:
dude,which rom you use? i flashed a lot roms these days. using mounts2sd. set "driver" in the options to ext3 and reboot (be sure you installed the startup script in the application settings!)
and check the rest of the settings... learning by doing
Click to expand...
Click to collapse
where 2 get start up script ...
shubhojit89 said:
try to create a partition using pc and create a ext4..
delete the present and create a new one.
Click to expand...
Click to collapse
how create partition using pc , can you explain me process or give me link
holy 1ne said:
dude,which rom you use? i flashed a lot roms these days. using mounts2sd. set "driver" in the options to ext3 and reboot (be sure you installed the startup script in the application settings!)
and check the rest of the settings... learning by doing
Click to expand...
Click to collapse
I have flashed HTC sense 4.0 lite build9 final for HTC pico, where do i get startup script
satvik7star said:
Are you using any memory increasing script or any overclock kernel?
Click to expand...
Click to collapse
no nothing
rkumbhar said:
no nothing
Click to expand...
Click to collapse
if you are using htc sense build 9 then no need of any memory increasing script..
for partition:
use any partition wizard..
connect mmc using card reader and open the software on pc
see the drive of your card.
select the that drive and delete it..
now after delete click on that.
create new partition with ext4 driver
format it.
remaining one click on create partition fat32 and format.
shubhojit89 said:
if you are using htc sense build 9 then no need of any memory increasing script..
for partition:
use any partition wizard..
connect mmc using card reader and open the software on pc
see the drive of your card.
select the that drive and delete it..
now after delete click on that.
create new partition with ext4 driver
format it.
remaining one click on create partition fat32 and format.
Click to expand...
Click to collapse
ok will try it as soon as possible

Categories

Resources