Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I have installed Ubunut 12.04 using WUBI. The "Installation size" options I chosen was 18GB i.e the amount of space you want to "give up" for WUBI. That is the space wubi's Ubuntu install is able to use. Wubi creates a disk image (loopmounted device) on your host system in/on which Ubuntu is installed. Now, I am running out of memory in primary partition.

Could anyone help me out to extend/stretch the partition size?

share|improve this question

marked as duplicate by Rinzwind, Mitch, Warren Hill, bcbc, guntbert Oct 8 '13 at 18:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
See this question: askubuntu.com/questions/118300/… –  Rinzwind Oct 8 '13 at 10:00

1 Answer 1

up vote 0 down vote accepted
  • -Boot from an Ubuntu Live CD

  • -Mount your NTFS partition that the root.disk file lives. For me it was sda3 but just check in GParted (included on the Live CD) In most cases it is the one that is largest, labeled OS. You must mount it
    with these commands (make sure that you mount the correct drive, if
    yours is sda1 then replace "sda3" in the command with "sda1"):
    sudo mkdir -p /media/win
    sudo mount /dev/sda3 media/win

  • -Check the size of your root.disk (optional) de -h --apparent-size /media/win/ubuntu/disks/root.disk

  • -Run fsck on root.disk fsck -f /media/win/ubuntu/disks/root.disk

  • -Resize root.disk (this command resizes it to 40GB, but you can resize it to whatever you want, ONLY IF YOU HAVE THE REQUIRED SPACE
    ON YOUR HARD DRIVE) resize2fs /media/win/ubuntu/disks/root.disk 40G

  • -Shutdown and boot into your WUBI installation

But if while doing this process some crash happens you can recover deleted files and folders from corrupted or formatted hard disk drive, memory card, SD cards and many more storage device use windows data recovery software

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.