Results 1 to 9 of 9

Thread: Resize boot partition with LVM

  1. #1
    Join Date
    Mar 2013
    Beans
    31

    Resize boot partition with LVM

    Hi all,

    I am trying to resize my /boot partition because it is almost full, and is causing errors when running apt-get upgrade.

    To put into context: I have two 1TB drives installed. One of them (sda) has 250 MB for an ext2 /boot partition (now almost full), and a LVM taking up the rest of the disk space, and spreading well into the other hard drive (sdb).

    When I try and resize the /boot partition using a live CD and gparted, I cannot do anything since there is no space left on the physical drive.

    I was hoping someone could tell me how to move LVM data from sda to sdb (there isn't enough to move all of it).

    Or if anyone else has another idea I am keen to hear it!

    Thanks!

  2. #2
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Resize boot partition with LVM

    get rid of unwanted kernels. simplest way
    reduce the LVM physical volumes. not difficult http://askubuntu.com/questions/19612...hysical-volume
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  3. #3
    Join Date
    Mar 2013
    Beans
    31

    Re: Resize boot partition with LVM

    Can't get rid of unwanted kernels because of bugs related to /boot partition full (i think, errors are lock file in use, but fuser returns nothing)

  4. #4
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Resize boot partition with LVM

    post the error u are getting when apt-get upgrading
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  5. #5
    Join Date
    Mar 2013
    Beans
    31

    Re: Resize boot partition with LVM

    http://pastebin.com/3XKEY0e1

    apt-get -f install (as prompted to by previous error) returns these errors (http://pastebin.com/kGbSfrzR), doing sudo apt-get autoremove returns same error as apt-get upgrade.

  6. #6
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Resize boot partition with LVM

    how many vmlinuz in ur boot partition?. get rid of the old ones. old initrd as well.

    that will free up some space.
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  7. #7
    Join Date
    Mar 2013
    Beans
    31

    Re: Resize boot partition with LVM

    I have 11 vmlinuz in the boot folder. Sort of new to fidling around with this and I really don't want to break anything here, could you tell me what ones to delete ? As well as the initrd files.

    Code:
    [ maxime @ neo /boot]
    $ l
    abi-3.2.0-29-generic  abi-3.2.0-45-generic     config-3.2.0-43-generic      initrd.img-3.2.0-39-generic  System.map-3.2.0-35-generic  System.map-3.2.0-48-generic  vmlinuz-3.2.0-44-generic
    abi-3.2.0-35-generic  abi-3.2.0-48-generic     config-3.2.0-44-generic      initrd.img-3.2.0-40-generic  System.map-3.2.0-36-generic  vmlinuz-3.2.0-29-generic     vmlinuz-3.2.0-45-generic
    abi-3.2.0-36-generic  config-3.2.0-29-generic  config-3.2.0-45-generic      initrd.img-3.2.0-41-generic  System.map-3.2.0-38-generic  vmlinuz-3.2.0-35-generic     vmlinuz-3.2.0-48-generic
    abi-3.2.0-38-generic  config-3.2.0-35-generic  config-3.2.0-48-generic      initrd.img-3.2.0-43-generic  System.map-3.2.0-39-generic  vmlinuz-3.2.0-36-generic
    abi-3.2.0-39-generic  config-3.2.0-36-generic  grub/                        initrd.img-3.2.0-44-generic  System.map-3.2.0-40-generic  vmlinuz-3.2.0-38-generic
    abi-3.2.0-40-generic  config-3.2.0-38-generic  initrd.img-3.2.0-29-generic  lost+found/                  System.map-3.2.0-41-generic  vmlinuz-3.2.0-39-generic
    abi-3.2.0-41-generic  config-3.2.0-39-generic  initrd.img-3.2.0-35-generic  memtest86+.bin               System.map-3.2.0-43-generic  vmlinuz-3.2.0-40-generic
    abi-3.2.0-43-generic  config-3.2.0-40-generic  initrd.img-3.2.0-36-generic  memtest86+_multiboot.bin     System.map-3.2.0-44-generic  vmlinuz-3.2.0-41-generic
    abi-3.2.0-44-generic  config-3.2.0-41-generic  initrd.img-3.2.0-38-generic  System.map-3.2.0-29-generic  System.map-3.2.0-45-generic  vmlinuz-3.2.0-43-generic
    Looking at this it looks to me (who knows nothing about this) as there aren't corresponding intrd files for vmlinuz 45 and up, is that a potential problem?

  8. #8
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: Resize boot partition with LVM

    if u don't understand the command lines below or don't trust them, delete the files you want one by one.
    Just leave at minimum the 3.2.0-44 files. that's the one u are using right now

    sudo rm config-3.2.0-[2-3][0-9]-generic will erase all twenties and thirties
    sudo rm config-3.2.0-4[0-3]-generic will leave 44 and above in /boot
    sudo rm initrd.img-3.2.0-[2-3][0-9]-generic initrd.img-3.2.0-4[0-3]-generic vmlinuz-3.2.0-[2-3][0-9]-generic

    and so on....
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  9. #9
    Join Date
    Mar 2013
    Beans
    31

    Re: Resize boot partition with LVM

    Thank you bluefrog (Tu es français non?). Having done this I am still getting error messages, though unrelated to full boot. Thank you for your help

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •