Resize Your Wubi/Mint4win Virtual Disk

I've come across a size-related problem in my Linux Mint...

When I installed Linux Mint using mint4win (windows installer for Linux Mint), I allocated 18GB (default selection) because I though that 18GB would be more than enough. But after installing updates and some applications, a notification suddenly appeared on the top right corner saying that I was out of disk space. This is really sucks, because mint4win is using a virtual disk as the root (that means software like gparted cannot resize it). So, I'm looking for a way to resize mint4win virtual disk, and stumbled upon this guide:

https://help.ubuntu.com/community/ResizeWubiDisk

That guide is for resizing Wubi virtual disk, but because Linux Mint is based on Ubuntu, we can do a similar way of resizing mint4win virtual disk. Here's how:

--Btw I'm doing this when running Linux Mint. That means I don't follow the very first instruction in the guide and strangely it works :D

1. Mount the NTFS partition where the Linux Mint installed (in my case it's already mounted as host because I'm running a Linux Mint when doing this. To check it just type "mount". If you're not sure about your disk "number" (such as 1 in /dev/sda1), type "sudo fdisk -l" to check the number based on its size)

*optional: you can check the size of the root disk by using this command:
du -h --apparent-size /host/linuxmint/disks/root.disk

2. Run fsck on the root.disk with this command:
fsck -f /host/linuxmint/disks/root.disk

3.Resize the root disk by using this command:
resize2fs /host/linuxmint/disks/root.disk 32G
The last 32G specify the new size that I wanted. Change it to whatever you desire.


++don't forget to replace /host/ with your NTFS partition mounting point if you are not mounting it as a host!

Hope it helps! :v

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Awesome. Thanks buddy! I knew it was possible because I see the resise2fs.exe file archived in mint4win.exe as outlined in the Ubuntu guide. Was trying to follow the Ubuntu guide, and it wasn't working. Because I was following the first instruction, and I was not doing it thru Mint; I was doing it thru Windows. So I was pointing at the \linuxmint\disks\root.disk raw image and it didn't work. Needed to see this mod method pointing to host or the ntfs mount point while mounted in Mint.

    ReplyDelete
  3. Also, not sure if you can make it any larger than 32GB, as this is the max size per most things I have read. Not sure if this is a Linux or Windows limitation, or just a stated erronious limition, but it is written all over the net.

    ReplyDelete
  4. Had to use e2fsck instead of fsck, but the rest works! Wrote a guide on Linux Mint Forums. Thanks again!!

    ReplyDelete

Post a Comment

Popular Posts