Results 1 to 4 of 4

Thread: Removing obsolete initrd.img files?

  1. #1
    Join Date
    Mar 2007
    Beans
    1,116

    Removing obsolete initrd.img files?

    I just upgraded from 18.04 to 20.04 and I noticed that there are two initrd.img files for kernels that are not longer installed.
    Code:
    initrd.img-4.4.0-103-generic  
    initrd.img-4.4.0-112-generic
    Can these files simply be deleted?

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,893
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Removing obsolete initrd.img files?

    rsteinmetz70112 - well ///

    Take a gander at what is installed:
    Code:
    dpkg -l | grep linux- 
    ls -al /boot #(vmlinuz -> vmlinuz-5.4.0-80-generic) in my use case
    What is the booting kernel:
    Code:
    uname -r
    Then see if the system will remove those old .img files for you safely - if it is not related to the booted kernel [safety is no accident].
    Code:
    sudo apt update
    sudo apt full-upgrade
    sudo apt --purge autoremove
    let the kernel do its thing
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Mar 2007
    Beans
    1,116

    Re: Removing obsolete initrd.img files?

    Code:
    #apt autoremove
    cleaned thigs up.

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,893
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Removing obsolete initrd.img files?

    rsteinmetz70112; Yay

    Pleased it wad as easy as pushing the button.

    all in the process
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

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
  •