resize /boot under virtualbox ubuntu server, when no free space available

Discussion in 'Installation/Configuration' started by qiubosu, Aug 19, 2012.

  1. qiubosu

    qiubosu Member

    dear sir,

    installed ISPConfig3 in VirtualBox Ubuntu server in about 2 years ago, but now got serious problem. whenever start the server, there is "the volume "boot" has only 8.6 MB disk space remaining".

    run df -hT, got

    Filesystem Type Size Used Avail Use% Mounted on
    /dev/mapper/ispconfig-root
    ext4 1006G 11G 945G 2% /
    none devtmpfs 356M 244K 356M 1% /dev
    none tmpfs 360M 252K 360M 1% /dev/shm
    none tmpfs 360M 360K 360M 1% /var/run
    none tmpfs 360M 0 360M 0% /var/lock
    none tmpfs 360M 0 360M 0% /lib/init/rw
    /dev/sda1 ext2 230M 209M 8.6M 97% /boot

    want to run live gparted iso to resize the ext2 /boot size, but can't do it, due to there is no free space available. all the rest of space, nearly 1T, allocated to ext4 /.

    it is much appreciated if you can help for some good solutions, otherwise all the effort made before will become a waste, more serious has bad impact to the business.

    thanks.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Have you tried to delete some old. unused kernels? That will free up some space in /boot.
     
  3. qiubosu

    qiubosu Member

    dear sir,

    i know delete the old kernel is one option, but if there is other option that will be a lot better.

    apart from delete old kernels, are there any other better solutions?
     
  4. TiTex

    TiTex Member

    in order to extend the /boot partition you would have to reduce the / root partition from the start of it and i tried this a few times without success , every time the filesystem got corrupted, but maybe this will help you

    http://www.timelordz.com/blog/2010/01/resize-default-lvm-partitions-and-move-boot/

    --later edit--

    however i see that ubuntu is using grub 2 so that might not be the best way to solve you're problem
     
    Last edited: Aug 19, 2012
  5. Monotoba

    Monotoba Member

    I did it this way a few months ago....

    Create a new vdisk a larger than the current disk. If you don't have space for this, then remove some files from the host machine and store elsewhere.

    Copy the boot partition to the new disk. Resize, then copy the remaining partitions. I was working on a W7 guest/Ubuntu host so I used a combination of clonezilla/gparted and XMLBackup.

    Be sure to backup your current disk first. Just in case you muck something up.
     

Share This Page