Jaap Vossers' SharePoint Blog

Just another WordPress.com site

Archive for September 2009

Increasing the size of your VM disk using VMWare and GParted

with one comment

UPDATE: Although the instructions below still work, it appears that this method is a bit outdated since there is a much easier method out there!  VMWare ConverterCredits to Peter vd Berg, thanks!

Disclaimer: playing with partitions is always a risky thing and can mess up your machine. I cannot be held responsible for any harm done to your machine as a result of following the instructions below. The instructions happened to work for me, but I cannot guarantee that they will work for you!

Let’s say you have a VM that has a C: drive that reports low disk space on daily basis, and you spend every day cleaning up log files, hoping to free up at least 100 mb of disk space in your VM so you can continue your development stuff for another day…

This situation is actually quite common I think, but it seems that still a lot of people don’t seem to know how to properly deal with it. I think the problem lies with the fact that a lot of people seem to think that increasing the size of disk also automatically increases the size of the partition on it – which is not true.

After having read a few articles on the web and some experimenting I have written down a summarised set of steps in my own words which will help you increase the size of your disk and your partition inside a VM, without having to buy any commercial partitioning tools like Partition Magic.

  1. Backup all vm files
  2. Run vmware-vdiskmanager.exe to increase the disk size (this does NOT increase the partition the drive).
    “C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe” -x 30Gb “D:\MY_VM.vmdk”
    Replace the value of –x parameter with the new size of the disk. vmware-vdiskmanager.exe comes with VMWare workstation, which unfortunately it’s not free – but you should be able to download a trial version from the VMWare site.
  3. Open the .vmx file with notepad and add the following line to make it easy to get into the bios:
    bios.bootDelay = “5000”
  4. Download the GParted live cd ISO image (open source alternative to partition magic) and mount it to the virtual machine using VMWare.
    http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=271779
  5. Start up the VM and use F2 to go to the bios. Change the boot order to have the cd drive on top and reboot.
  6. Run GParted to increase the size of the c: partition.
  7. Change back boot order, remove bootdelay and unmount cd.

DONE

Written by jvossers

September 22, 2009 at 1:24 pm

Posted in Virtualisation

New version of SharePoint InlineSiteSettings released (javascript only)

with one comment

SharePoint InlineSiteSettings is a tool which I originally released several months ago. It provides a quick way to access your Site Settings in SharePoint; it allows you to pop up the Site Settings of the current site – triggered by a keyboard shortcut – without navigating away from the current page. InlineSiteSettings uses jQuery to power its AJAX functionality.

After I was hinted by Jeroen Ritmeijer from Muhimbi that a javascript only version of SharePoint InlineSiteSettings (the previous version was implemented as a serverside WebControl spitting out javascript) would work very well with their free SharePoint Infuser product, I started my investigation and ended up implementing a new version of SharePoint InlineSiteSettings! I am quite pleased that it is now a very compact solution compared to it’s previous release.

You COULD use the new version SharePoint InlineSiteSettings without Muhimbi Infuser by pasting the script into a Content Editor Web Part on each page where you want to enable the SharePoint InlineSiteSettings functionality, BUT to be honest, this doesn’t really make sense and it would be very time consuming. What we really want is a solution that allows us to inject the script on every page and configure it only once. This is where SharePoint Infuser comes into play.

Please try it out and let me know your thoughts!

Download SharePoint InlineSiteSettings 1.2 from CodePlex

Written by jvossers

September 20, 2009 at 8:42 pm