Posts

    Showing posts with label partition. Show all posts
    Showing posts with label partition. Show all posts

    Saturday, 1 December 2012

    Increase size of root partition in Linux

    Your root partition is out of juice and you cant afford to redo the installation procedure? Well today i am going to teach you how to solve this problem.
    There are two ways of solving this problem.

    1. Extend partition using gparted

    Install gparted.
    In ubuntu:
    $ sudo apt-get install gparted
    In fedora
    # yum install gparted
    Then resize your root partition to get more space for it using gparted.

    Note: This is risky and will not work on certain kind of partitions. If the above didn't work use second method.

    2. Using soft (symbolic) links

    Soft links are equivalent shortcuts in windows but these are more powerful. Here we can move files to other partition and create soft links of the files to their original places. However make sure that the other partition is always mounted. See this if you want to know how to auto mount devices.

    There are certain files which are not very crucial but are necessary for some application to perform
    for example ~/.cache folder has all the cache of applications including browsers..etc. Music,Video, Downloads, Documents are other such folders.
    1. Move all the folders to another partition, say it is /media/Ambusher/.
    2. Open terminal and create soft links
      $ ln -s /media/Ambusher/cache ~/.cache
      $ ln -s /media/Ambusher/music/* ~/Music/
      $ ln -s /media/Ambusher/videos/* ~/Video/
      $ ln -s /media/Ambusher/documents/* ~/Documents
      $ ln -s /media/Ambusher/downloads/* ~/Downloads
    3. Similarly create soft links for other folders also.
    Now you would have freed up a lot of space for your root partition.

    Sometime you may have to delete all the soft links in a folder. To remove all soft links in a folder do this:
    find FOLDER -maxdepth 1 -type l -exec rm -f {} \;
    For example:
    find ~/Pictures -maxdepth 1 -type l -exec rm -f {} \;
    Note: Soft links won't work if the disk partition type is FAT 16/32 or WIN 16/32 but works perfectly fine on NTFS
    Have a nice day!!

    Increase your internal memory of your Android phone

    I have seen people struggling to install apps on their android due to the fact that they have less internal memory. Today i will show you how to increase your internal memory i.e i will show you how to use your SD card as your internal memory
    There are two ways of doing it one the noob way(easy and safe) and the other geek way(difficult and risky).
    Anyway for either of them you have to do this

    1. BACKUP YOUR SD CARD as all contents on the SD card will be lost.
    2. Download clockwork mod for your phone. Just Google it :P . And then place it in your SD card (don't unzip it).
    3. Reboot to recovery mode. It is different in different phones. In my phone (Samsung Galaxy Y) while starting the phone i have to hold the power up+home button+power button to go to recovery mode.
    4. Click on install zip from SD card. Note that volume buttons must be used to go up and down in the menu and home button to select.
    5. Select cwm.zip (clockworkmod file which you downloaded)
    6. Now CWM will open. Go to advanced.
    7. Select Partition your SD card 
    8. Select how much you memory you want to allocate to your phone. Don't select more than 2048.
    9. If you don't want swap select 0 for swap( swap will speedup your phone to some extent but not necessary ).
    10. Reboot phone
    11. Download Link2SD from Google play and select the format to ext4. If it shows some error retry selecting ext3. If that also doesnt work try ext2. If that also doesn't work go to Mt. Everest and throw your phone. Just kidding :P

    Noob way

    Simply use Link2SD to create links to your apk, dex(dalvik-cache) and cache files. And enjoy with more apps :P

    Geek way

    Do something like this (creating softlinks part) on your phone!! This will make your phone hard to manage but much much efficient than simply using Link2SD.