Increase data partition - Galaxy S II Q&A, Help & Troubleshooting

I wish to repartition my internal card manually.
I think to do so :
- start in recovery
- mount my external card on which I have all the tools, such as gparted or rsync
- save the 2 partitions 10 (/data) and 11 (/sdcard0) with rsync on my EXT4 external card
- umount the 2 partitions
- repartition my internal card without touching the 12 (/preload)
- restore the 2 partitions saved
But I'am not sure with the "pit"

Related

Looking for a Partition Manager thats works with sdcards

I accidentally made an extra partition on my sd that i want to remove
im not looking to spend money on partition software
can anyone help me out
TIA
gparted should work and is free.
had no luck with that one......
Ra recovery can partion
The sd card for you if you're root
-------------------------------------
Sent via the XDA Tapatalk App
format the card in your phone from settings
format the card in your phone from settings
Click to expand...
Click to collapse
This fill only format the fat partition not any others. I thought the same when I partitioned my card with ext2, then formatted and my ext2 wad still there while the fat was clean.
-------------------------------------
Sent via the XDA Tapatalk App
t2noob said:
This fill only format the fat partition not any others. I thought the same when I partitioned my card with ext2, then formatted and my ext2 wad still there while the fat was clean.
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
thanks everyone i had success with this tutorial
maybe we can sticky this for anyone who needs it here you go
http://forum.xda-developers.com/showthread.php?t=534714
How about just booting into Amon_RA's recovery boot (v 1.6.2) and using "sdparted" ???
Note I said sdparted, not "parted".
Obviously, if you want to save junk from either the FAT or ext[2,3,4] partition on your card beforehand, you need to take steps to do so. (Hint: adb is running when Amon_RA recovery boots, and "adb pull" works recursively, if you want - but you will need enough Linux smarts to mount partitions on the SD card yourself).
Code:
$ adb shell
/ #
/ # sdparted --extsize 0M --swapsize 0
checking script requirements...done
unmounting all partitions...done
to continue, all existing partitions must be removed.
this action will remove all data from your sdcard.
do you want to continue? (Y/n) Y
removing all partitions...done
total size of sdcard=7948MB
the following actions will be performed:
-create 7948MB fat32 partition
do you want to continue? (Y/n) Y
performing selected actions...
creating fat32 partition...done
retrieving current sdcard information...
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 7948MB 7948MB primary fat32 lba
script log is located @ /data/sdparted.log
bftb0
bftb0 said:
How about just booting into Amon_RA's recovery boot (v 1.6.2) and using "sdparted" ???
Note I said sdparted, not "parted".
Obviously, if you want to save junk from either the FAT or ext[2,3,4] partition on your card beforehand, you need to take steps to do so. (Hint: adb is running when Amon_RA recovery boots, and "adb pull" works recursively, if you want - but you will need enough Linux smarts to mount partitions on the SD card yourself).
Code:
$ adb shell
/ #
/ # sdparted --extsize 0M --swapsize 0
checking script requirements...done
unmounting all partitions...done
to continue, all existing partitions must be removed.
this action will remove all data from your sdcard.
do you want to continue? (Y/n) Y
removing all partitions...done
total size of sdcard=7948MB
the following actions will be performed:
-create 7948MB fat32 partition
do you want to continue? (Y/n) Y
performing selected actions...
creating fat32 partition...done
retrieving current sdcard information...
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 7948MB 7948MB primary fat32 lba
script log is located @ /data/sdparted.log
bftb0
Click to expand...
Click to collapse
thanks friend but i got thigs all situated thanks to that tutorial i posted right above you i did everything like you said though....i think we should add the info to the stickies
DS36 said:
thanks friend but i got thigs all situated thanks to that tutorial i posted right above you i did everything like you said though....i think we should add the info to the stickies
Click to expand...
Click to collapse
My bad for not reading every post and all links. That one is much more comprehensive, including descriptions of possible errors.
LOL, that thread is written by the maintainer of the script used on Amon_RA's recovery. No wonder it's detailed!
One thing he didn't cover is that the script has a help menu, too; if you give
/ # sdparted --help
a shot, it's plain to see that that script should be easy enough for a noob to use...
..especially since it does protective checks and also does the post-partitioning FS formatting.
bftb0

[HOWTO] Mount 4th partition (CM7 Boot disk) as SD Card on Stock

Are you using a CM7 boot disk and another OS? By default the B&N stock will mount the first partition of the SD card. This is not what we want, as the 4th partition is the one where we are going to be storing data.
In order to change the mount point you need to edit the vold.fstab file located in /system/etc
You will find a line that points to the sd card for mounting:
Code:
dev_mount sdcard /mnt/sdcard auto auto /devices/platform/usb_mass_storage/lun1/devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Change the first "auto" to 4. This defines the 4th partition for mounting. As seen in the following:
Code:
dev_mount sdcard /mnt/sdcard 4 auto /devices/platform/usb_mass_storage/lun1/devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Now reboot your device and you should now have access to the 4th partition in the stock android OS.

CWM mounts and storage question.

CWM mounts and storage, what should be mounted or unmounted and what does it mean?
Mounted partition -> read/write permissions (RW)
Unmounted partition -> read only (RO)
Each partition is mounted automatically if needed (updater-script controls it).

Transferring Files Between SD Cards

I wanted to have the fast SD Card, just to make the overall performance of my phone just a little better, and since my phone model (LG Optimus F7 everything has to be linked to SD card because the "external sd card" is a partition of the built in internal giving 1.27 gig of space - On a current gen phone! Jellybean!)
So I have a SanDisk Ultra 32 gig chip - active chip - partioned into 2 partitions - 1 Fat 32 and 1 ext4
The new card is a Micro Center Circle(10) HC 32 gig chip - partitioned into 2 partitions - 1 fat 32, and 1 ext 4
I have a multi-card reader for my laptop, when I try my main chip the fat32 partition can only have the files copied off, and the ext4 partition won't mount. So I can't just copy the files because any files on second mount are inaccessable. (I just thought while typing this I could makesure partition 1 is bigger than 2, use built in file manager copy all of partition 2 onto 1 on sd card, copy onto computer).
Anyway, I'll try that, but I was wondering if I transfered as much material, then made a back up of my rom, factory reset, re-installed backed up rom but with other sd card in, wouldn't the rom put the files on the sd card where they were? It won't know I switched?
Running Ubuntu Linux -
Errors I get from Terminal, etc below
Code:
####ERROR######
Error mounting /dev/sdb2 at /media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3"' exited with non-zero exit status 32: mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
#####ERROR#####

Mount ext2 partition

How the heck do I mount my ext2 partition?
I have an lg stylo (t-mobile) rooted
My system dirs are all under various mmcblk0p#s
My ext sd is either mounted under mmcblk1 mmcblk1p1 or mounted via mount device by name script
All I want to do is get my ext2 partition mounted and visible.
Any help would be highly appreciated.

Categories

Resources