[GT540 Optimus Android Development] lavero.burgos:
[HOW-TO] Create a EXT4 & SWAP partition on Windows / Linux

Thanks to pyroblazer from XDA!

*** PRINT THIS HOW-TO ***​

WINDOWS

What is needed:

* gParted / Ubuntu Live CD image

* Blank CD-R / WUBI for Ubuntu

* Software to burn a .iso image

* USB cable / card reader

1) Download the stable version of gparted Live CD (.iso) from here:

http://gparted.sourceforge.net/download.php (133.6 MB)

Or download Ubuntu (.iso) Live CD, which is always good to have:

http://www.ubuntu.com/download/ubuntu/download (685,29 MB)

If you already have an Ubuntu image good for you :D!

2) Once downloaded Burn it using your favorite burning software (i use Ultra ISO), it will burn as bootable by default.

If you don't have a blank CD-R and want to give ubuntu a try you can install it with WUBI on windows as any other program.

3) Restart your computer and enter to the BIOS (usually by pressing F2/del) ,in boot menu change the boot order to bring your CD drive on the top and then exit saving changes with F10

4) Once your computer restarts, it will boot from the CD and you will see some weird lines on ur screen, the you'll come to a page where u have 4 options, select the 1st one.

5) Once started it will ask you for preferred language, select ur language by typing the numbers given and hit enter, after that it will again give u 3 options PRESS 0 AND HIT ENTER

-----U Will get a blurred screen now bt dont worry -------

6) Now u should have booted into gparted, wait for a dialog to open, then you would be able to see your computer's hardisks

7) Plug your phone to the pc & Turn on USB storage / put your sdcard inside a card reader and connect it to the pc

8) On the right-hand side top corner you can select to see ur SD card (dropdown list of all the storage devices connected to the PC)

9) After selecting the SD card you will see ur SD card in the main screen(along with the partitions, if any)

10) Right Click on you FAT32 SD card partition and then click Resize partition

11) A box will appear to resize the space for a new partition. Choose the size you want to make it (Just think about the size of EXT4 partition + 32 MB [recommendable] SWAP you want to give in the 'Free space following box'. Leave it as PRIMARY and then clik add.

12) Now you'll see 2 partitions, one FAT32 and the other one is unallocated, right click on the unallocated one and click new then type 32 in the free space following box, make sure its also on PRIMARY in the create as box, and then u can select any file system you want (EXT2,3,4) then click add

13) Now only 32 MB will be shown as unallocated. Right click on that and click new, don't change anything, except the file system box, select it as linux SWAP, then click add

14) Now click apply. Congratulations!!!!!!! You are done with the partitioning of your SD card!!!!

On the top left of your screen u can see an icon named as exit/turn off, click on it and then select reboot and click ok... ur pc will restart and boot to windows....

UBUNTU LINUX

What is needed:

* USB cable / card reader

The proceedment is almost the same as above, because gParted belongs to linux and Ubuntu already comes with gParted application so that means you are ready to go!

1) Plug your phone to the pc & Turn on USB storage / put your sdcard inside a card reader and connect it to the pc

2) Open Gparted > Right Click on you FAT32 SD card partition and then click Resize partition

3) A box will appear to resize the space for a new partition. Choose the size you want to make it (Just think about the size of EXT4 partition + 32 MB [recommendable] SWAP you want to give in the 'Free space following box'. Leave it as PRIMARY and then clik add.

4) Now you'll see 2 partitions, one FAT32 and the other one is unallocated, right click on the unallocated one and click new then type 32 in the free space following box, make sure its also on PRIMARY in the create as box, and then u can select any file system you want (EXT2,3,4) then click add

5) Now only 32 MB will be shown as unallocated. Right click on that and click new, don't change anything, except the file system box, select it as linux SWAP, then click add

6) Now click apply. Congratulations!!!!!!! You are done with the partitioning of your SD card!!!!