Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
i'll give you the short answer then i will edit this post with the long answer
short answer.
you use the resize command in parted on your ext3 and linux-swap partition. if you have used parted from the recovery console a few times before this will be easy but i will post through instructions in a minute
Long answer
go into the recovery console. (recovery screen then last option)
then type (if you want to use adb just type adb shell then do the commands)
Code:
parted /dev/block/mmcblk0
print (you will need the start and end points for your ext3 and linux-swap partitions)
resize 2 [start point] [end - 64mb]
resize 3 [start - 64mb] [end]
print (to verify it worked)
quit
upgrade_fs
reboot
there you go.
I have not tested the resize command on an ext3 partition but i do not think (key word think) it will destroy your data on ext3, but back up just to make sure.
to back up your ext3
with adb (since i assume you have it from the first post)
Code:
adb pull /system/sd [dir on computer]
to restore on empty card
Code:
adb shell mkdir /system/sd
adb push [dir on computer] /system/sd
thanks for the great reply. Will test out now and see what happens!
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
mr_roboto said:
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
Click to expand...
Click to collapse
Yes, it works. And yes it *can* corrupt/delete some data from the ext3 depending on how much extra space you have. To be safe, just back-up. The easiest way is doing a BART or switchrom backup (Which backs up you ext) move the backup from the FAT partition to a computer (not necessary but you seem worried about your ext, so just to be safe) resize the partitions and restore your backups.
or just use amon recovery
Thanks for the response guys, I went and started reading about switchrom.
I am planning to do the following steps:
switchrom.sh -s // to store my rom
resize my partitions
switchrom.sh -r
The thread says it stores the nandroid and the app data, I am assuming that means nandroid and ext partition right?
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
I don't think this is the same, but I am running a hero rom and was wondering what "swappiness" is? I keep reading stuff like "swappiness of 96mb", etc. Is this just referencing the linux swap file size? and with me running a hero rom, what is the best setup for my SD card? I am currently running simply a fat32 partition and an ext3- thanks
i have ongoing problems installing new roms inc hero one , i have correct spl and radio , i wipe ext partitions repair partitions and wipe factory data but i still have problems with no installs working
one thing i did find after i got a hero rom working is that it started to download some programs that i had installed previously on the phone , how do i completley wipe the phone memory ? as i think this is now my problem ?
mrcgibb said:
i have ongoing problems installing new roms inc hero one , i have correct spl and radio , i wipe ext partitions repair partitions and wipe factory data but i still have problems with no installs working
one thing i did find after i got a hero rom working is that it started to download some programs that i had installed previously on the phone , how do i completley wipe the phone memory ? as i think this is now my problem ?
Click to expand...
Click to collapse
im using cyans recovery 1.4 and when you come to the boot screen for it, theres an option for wiping memory. ive had to wipe whenever switching from one rom to the next.
if your using cyanogenmod v1.4 its alt+w to wipe clean.. then wipe your ext with alt+f as well
Problems with new ROM's huh?
Well...it could also possibly be your micro SD card,in which I found out was my problem about a week ago. I found Paragon Partition Manager on the internet.The free version called Partition Manager 9.0 Special Edition. Anyways...used Partition Manager to delete my old FAT32,EXT3,and Linux-Swap partitions and reformatted the entire micro SD then created new EXT3 and Linux-Swap partitions on my SD. Just thought this may be a solution to your problem. Good luck!
I'm not sure alt+f wipes your ext. there are commands you have to type.
to completely wipe your ext2 and ext3 you have to type:
mount /system/
rm -rf /system/sd/
or at least that's what I always used until I upgraded to ext3.
PlatinumMOTO said:
I'm not sure alt+f wipes your ext. there are commands you have to type.
to completely wipe your ext2 and ext3 you have to type:
mount /system/
rm -rf /system/sd/
or at least that's what I always used until I upgraded to ext3.
Click to expand...
Click to collapse
Code:
mke2fs -j /dev/block/mmcblk0p2
that will actually reformat and its less chars
Is their a way to check what Ext partition im on?
I haven't flashed a rom in ages and I totally forgot what Ext im on.
Odds are your gonna wipe it anyways, So it really doesnt matter.
MotoMudder77 said:
Odds are your gonna wipe it anyways, So it really doesnt matter.
Click to expand...
Click to collapse
Odds are this doesn't answer my question.
I second this question. I too need to know if I'm on Ext3 or 4. Couldn't remember the last time I partitioned and I totally forgot what it is now.
Aznneedlovetoo said:
Is their a way to check what Ext partition im on?
I haven't flashed a rom in ages and I totally forgot what Ext im on.
Click to expand...
Click to collapse
nmw407 said:
I second this question. I too need to know if I'm on Ext3 or 4. Couldn't remember the last time I partitioned and I totally forgot what it is now.
Click to expand...
Click to collapse
Open command prompt while your phone is connected
Enter
adb shell mount
And somewhere on the bottom you should see ext2, ext3 or ext4. That's your answer.
Most of the times it's accurate.
MotoMudder77 said:
Odds are your gonna wipe it anyways, So it really doesnt matter.
Click to expand...
Click to collapse
Even if you wiped your ext partition, it doesn't change the partition type. If your format it to an ext3 then wipe it... it remains as ext3. And your ext partition type usually does matter because some roms may not support ext4. Most support ext3 with the exception of some of the older roms which support ext2. I recommend ext3 because it has journaling. Just my opinion though.
Hi Guys,
I guess I have a lot of bad sectors on my N1.
After installing CM 7 + gapps I have only 19.4 KB free (add to that I have removed most of the built in ringtones from the media folder) in the /system partition.
Does anyone else have problems with bad sectors, and are there any ways to get rid of these. Also now that I have them, how do i minimize them coz I guess a day will come when I may not be able to flash CM
Regards,
Munchy
You can try formatting the system partition (with clockwork or temasek's extreme wipe). If that doesn't work, hook the phone up to a Linux machine and use gparted to repair the partition. You can run Linux from a live CD on windows...
danger-rat said:
You can try formatting the system partition (with clockwork or temasek's extreme wipe). If that doesn't work, hook the phone up to a Linux machine and use gparted to repair the partition. You can run Linux from a live CD on windows...
Click to expand...
Click to collapse
I was waiting for you and the Doc to answer.
Well I already have Ubuntu on dual boot, can you guide me how to use gparted.
Also, I wiped using Amon_Ra, should I give a try using CWM, also please point me to temasek's extreme wipe.
thanks
Amon doesn't wipe the system partition, so you should try clockwork our temaseks extreme wipe.
Here's a link to the later (flash through recovery)...
http://db.tt/fH1vZNM
If that doesn't work, we can give gparted a shot...
danger-rat said:
Amon doesn't wipe the system partition, so you should try clockwork our temaseks extreme wipe.
Here's a link to the later (flash through recovery)...
http://db.tt/fH1vZNM
If that doesn't work, we can give gparted a shot...
Click to expand...
Click to collapse
all right buddy , will try temaseks and PM you in case I need help on gparted
The "extreme wipe" doesn't do a low-level format of the system, just a standard high-level format, it won't force it to recheck sectors marked as "bad". I don't believe that's possible without using external hardware.
knightnz said:
The "extreme wipe" doesn't do a low-level format of the system, just a standard high-level format, it won't force it to recheck sectors marked as "bad". I don't believe that's possible without using external hardware.
Click to expand...
Click to collapse
Any idea how this can be done with Ubuntu? I'm having a hard time mounting the /data partition to Ubuntu. Is this even possible?
Hi S5830 users (S5830 only)
I tried using TWRP and CWM to repartition my 32GB Class 10 SD card but failed, only MiniTool for Windows works, but I can't seem to use Link2SD to do an sd2ext
ROM: CM11 modded
Kernel: MA6
BachMinuetInG said:
Hi S5830 users (S5830 only)
I tried using TWRP and CWM to repartition my 32GB Class 10 SD card but failed, only MiniTool for Windows works, but I can't seem to use Link2SD to do an sd2ext
ROM: CM11 modded
Kernel: MA6
Click to expand...
Click to collapse
Can you tell me exactly what the error is? Are you able to create the mount scripts? You only have one sd-ext partition right?
mahithm said:
Can you tell me exactly what the error is? Are you able to create the mount scripts? You only have one sd-ext partition right?
Click to expand...
Click to collapse
According to MiniTool Partition Wizard, yes, I have 1 FAT32 (about 30GB) and another Ext3 partition. However, the device doesn't read it, and I cannot partition through either TWRP or CWM. I'm testing Cronmod on CM10.1 now, will update.
Sent from my GT-S5830 using XDA Premium 4 mobile app
BachMinuetInG said:
According to MiniTool Partition Wizard, yes, I have 1 FAT32 (about 30GB) and another Ext3 partition. However, the device doesn't read it, and I cannot partition through either TWRP or CWM. I'm testing Cronmod on CM10.1 now, will update.
Sent from my GT-S5830 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
TWRP or CWM should not be used to create a new ext partition if your sdcard already have another ext partition. Meaning you should have only one ext partition in your sdcard. So delete the ext3 partition and the fat32 partition, then create a single new fat32 partition on the 32BG sdcard. Now use the recovery mod to create the ext partition. That should work. Between Link2SD and CronMod, I would always go for CronMod. Then again its my opinion. Any way if you have any problem, just post here and I'll be glad to help
mahithm said:
TWRP or CWM should not be used to create a new ext partition if your sdcard already have another ext partition. Meaning you should have only one ext partition in your sdcard. So delete the ext3 partition and the fat32 partition, then create a single new fat32 partition on the 32BG sdcard. Now use the recovery mod to create the ext partition. That should work. Between Link2SD and CronMod, I would always go for CronMod. Then again its my opinion. Any way if you have any problem, just post here and I'll be glad to help
Click to expand...
Click to collapse
Is a Primary partition fine, or do I have to use a Logical partition?
EDIT: I used a Primary partition, and got this:
Partitioning SD Card...
Removing partition table...
Creating FAT32 partition...
Creating EXT partition...
E:Unable to create EXT partition.
Updating partition details...
(TWRP says 'Failed')
EDIT 2: I used a Logical partition, and got this:
E:Unable to mount '/sdcard'
Partitioning SD card...
Creating FAT32 partition...
Creating EXT partition...
E:Unable to create EXT partition.
Updating partition details...
EDIT 3: I think I might have found the problem: http://forum.xda-developers.com/showthread.php?t=1585572
I will test this and get back!
BachMinuetInG said:
Is a Primary partition fine, or do I have to use a Logical partition?
EDIT: I used a Primary partition, and got this:
Partitioning SD Card...
Removing partition table...
Creating FAT32 partition...
Creating EXT partition...
E:Unable to create EXT partition.
Updating partition details...
(TWRP says 'Failed')
EDIT 2: I used a Logical partition, and got this:
E:Unable to mount '/sdcard'
Partitioning SD card...
Creating FAT32 partition...
Creating EXT partition...
E:Unable to create EXT partition.
Updating partition details...
EDIT 3: I think I might have found the problem: http://forum.xda-developers.com/showthread.php?t=1585572
I will test this and get back!
Click to expand...
Click to collapse
If possible, can you try with CWM? Here is the link,
CWM 5.0.2.6 fix for Samsung Galaxy Ace S5830
Hope I Helped
mahithm said:
If possible, can you try with CWM? Here is the link,
CWM 5.0.2.6 fix for Samsung Galaxy Ace S5830
Hope I Helped
Click to expand...
Click to collapse
Tried with that, and it said
Partitioning SD Card... please wait...
Done!
(Copying my files back now, waiting to test)
BachMinuetInG said:
Tried with that, and it said
Partitioning SD Card... please wait...
Done!
(Copying my files back now, waiting to test)
Click to expand...
Click to collapse
That's pretty much it. Fingers crossed. Waiting for your reply
mahithm said:
That's pretty much it. Fingers crossed. Waiting for your reply
Click to expand...
Click to collapse
Steps taken: Copied files directly through Cronmod ZIP (INt2EXtV2+) to respective places (i.e. /system/etc/init.d/) using FX File Explorer, rebooted, and it BOOTS!
Hang on a minute, let me check my disk space, it still reads '16MB free, 162MB used'. is that normal? The script has already been put into the- Wait a minute, the space just increased to 24MB free, 154MB used.
Oh my gosh. Link2SD is saying that there is no second partition.
Apparently the other init.d files are rwxr-xr-x, root, shell, but 40int2ext is rwxr-xr-x, root, root. Is that normal too?
P.S. Sorry, my Shift key is malfunctioning
EDIT: I'm manually flashing Cronmod again, instead of copying directly, as TWRP and CWM 6 didn't allow. CWM 5 works like a charm.
EDIT 2: Still 15MB free *Cries*
BachMinuetInG said:
Steps taken: Copied files directly through Cronmod ZIP (INt2EXtV2+) to respective places (i.e. /system/etc/init.d/) using FX File Explorer, rebooted, and it BOOTS!
Hang on a minute, let me check my disk space, it still reads '16MB free, 162MB used'. is that normal? The script has already been put into the- Wait a minute, the space just increased to 24MB free, 154MB used.
Apparently the other init.d files are rwxr-xr-x, root, shell, but 40int2ext is rwxr-xr-x, root, root. Is that normal too?
P.S. Sorry, my Shift key is malfunctioning
Click to expand...
Click to collapse
BTW what rom are you using now?
---------- Post added at 12:18 PM ---------- Previous post was at 11:57 AM ----------
BachMinuetInG said:
Steps taken: Copied files directly through Cronmod ZIP (INt2EXtV2+) to respective places (i.e. /system/etc/init.d/) using FX File Explorer, rebooted, and it BOOTS!
Hang on a minute, let me check my disk space, it still reads '16MB free, 162MB used'. is that normal? The script has already been put into the- Wait a minute, the space just increased to 24MB free, 154MB used.
Oh my gosh. Link2SD is saying that there is no second partition.
Apparently the other init.d files are rwxr-xr-x, root, shell, but 40int2ext is rwxr-xr-x, root, root. Is that normal too?
P.S. Sorry, my Shift key is malfunctioning
EDIT: I'm manually flashing Cronmod again, instead of copying directly, as TWRP and CWM 6 didn't allow. CWM 5 works like a charm.
EDIT 2: Still 15MB free *Cries*
Click to expand...
Click to collapse
You should know that CronMod and Link2SD doesn't work together. Since CronMod is present, Link2sd can't find the ext partition. What is the size of your ext partition. What rom are you using now? For every 512MB sd-ext partition you need a 100MB space on /data. So please limit your sd-ext patition to 1GB max.
mahithm said:
BTW what rom are you using now?
---------- Post added at 12:18 PM ---------- Previous post was at 11:57 AM ----------
You should know that CronMod and Link2SD doesn't work together. Since CronMod is present, Link2sd can't find the ext partition. What is the size of your ext partition. What rom are you using now? For every 512MB sd-ext partition you need a 100MB space on /data. So please limit your sd-ext patition to 1GB max.
Click to expand...
Click to collapse
I'm using Maclaw's CM10.1. I don't use CronMod and Link2SD together, when i figured out that CronMod didn't work I tried to use Link2SD. As for the /data, is it 100MB free?
BachMinuetInG said:
I'm using Maclaw's CM10.1. I don't use CronMod and Link2SD together, when i figured out that CronMod didn't work I tried to use Link2SD. As for the /data, is it 100MB free?
Click to expand...
Click to collapse
For our Samsung Galaxy Ace S5830, we have an internal memory of 150MB. So your ext partition size should not be more than 1GB for CronMod to work. BTW what is the size of your ext partition?
mahithm said:
For our Samsung Galaxy Ace S5830, we have an internal memory of 150MB. So your ext partition size should not be more than 1GB for CronMod to work. BTW what is the size of your ext partition?
Click to expand...
Click to collapse
If I'm not wrong... I chose 1024MB (1GB) at the selection screen.
BachMinuetInG said:
If I'm not wrong... I chose 1024MB (1GB) at the selection screen.
Click to expand...
Click to collapse
As a last resort, try to reflash this rom. Make sure to backup all the data. Take the rom file, extract it, put 40int2ext file inside /system/etc/init.d/ and then compress it back. Now go to CWM, do "Wipe Data/ Factory reset", "Wipe cache partitions", Mount & Storage> "Format /system" and "Format /sd-ext", Advanced> "Wipe Dalvik Cache" and "Wipe Battery Stats". Now reflash the custom rom. This should pretty much solve it. Restore all the necessary data.
mahithm said:
As a last resort, try to reflash this rom. Make sure to backup all the data. Take the rom file, extract it, put 40int2ext file inside /system/etc/init.d/ and then compress it back. Now go to CWM, do "Wipe Data/ Factory reset", "Wipe cache partitions", Mount & Storage> "Format /system" and "Format /sd-ext", Advanced> "Wipe Dalvik Cache" and "Wipe Battery Stats". Now reflash the custom rom. This should pretty solve it. Restore all the necessary data.
Click to expand...
Click to collapse
Thanks for your help I'll get back to you as soon as I've tried it :good::highfive:
BachMinuetInG said:
Thanks for your help I'll get back to you as soon as I've tried it :good::highfive:
Click to expand...
Click to collapse
No problem :good:
mahithm said:
No problem :good:
Click to expand...
Click to collapse
I've tried that already, and the device went into a bootloop. However, I used GParted to partition 777MB sd-ext, and the rest FAT32, and it boot up after flashing CM10.1 > GApps > CronMod INT2EXT4
The only problem was that the memory remained the same, and Partition info showed /sd-ext (EXT 0.00B/0.00B)
EDIT: For some reason sd-ext doesn't mount, but formats perfectly.
BachMinuetInG said:
I've tried that already, and the device went into a bootloop. However, I used GParted to partition 777MB sd-ext, and the rest FAT32, and it boot up after flashing CM10.1 > GApps > CronMod INT2EXT4
The only problem was that the memory remained the same, and Partition info showed /sd-ext (EXT 0.00B/0.00B)
EDIT: For some reason sd-ext doesn't mount, but formats perfectly.
Click to expand...
Click to collapse
Have you tried flashing the CronMod from CWM? Can you give it a try? Also try to use INT2EXT+ as it is much more stable than others. Hope I Helped
mahithm said:
Have you tried flashing the CronMod from CWM? Can you give it a try?
Click to expand...
Click to collapse
When I flash it from CWM sometimes it somehow finishes without incident, but the file doesn't get copied.
BachMinuetInG said:
When I flash it from CWM sometimes it somehow finishes without incident, but the file doesn't get copied.
Click to expand...
Click to collapse
Try to use INT2EXT+ as it is much more stable than others. Also you might need to mount /system from CWM before flashing if its not getting copied.