Me, The programmer

Just another WordPress.com site

Monthly Archives: June 2011

Resizing a Root LVM Fedora Partition Running on Virtualbox

Alright, I just went through *A LOT* of trouble to resize a Fedora partition running on a VirtualBox. This is what I did.

  1. My previous VirtualBox had 8gb of space. I created a new one with 30gb
  2. VBoxManage.exe clonehd OldHD.vdi NewHD.vdi –existing (this will copy your current filesystem over to the new virtual hard drive)
  3. On the previous step the file system was copied over, but the extra space will be left as unallocated, so now we need to expand your root partition. In order to do this, you will need to usa a Fedora Live CD.
  4. After the CD has booted, open a terminal and elevate it with “su”.
  5. Run system-config-lvm
  6. Find the uninitialized entities and initialize them
  7. Close system-config-lvm
  8. On the terminal, run lvresize -L +XXXGB /dev/PARTITION_PATH. This will extend your partition.
  9. Your partition has been extended now, but your filesystem still doesn’t know about it. Now run resize2fs -p /dev/PARTITION_PATH and voilá.

Hope this helps.

Testing on Android across multiple activities

I have needed to test on Android across multiple activities multiple times and I always forget how to do it exactly. I’ve found myself researching on this subject multiple times, so I have decided to post the same link that always ends up answering all my questions:

http://stackoverflow.com/questions/1759626/how-do-you-test-an-android-application-across-multiple-activities