Results 1 to 8 of 8

Thread: What is the meaning of these symlinks in /?

  1. #1
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    What is the meaning of these symlinks in /?

    Code:
    :/$ ls -ao
    
    lrwxrwxrwx   1 root    33 2010-11-30 08:03 initrd.img -> boot/initrd.img-2.6.32-26-generic
    lrwxrwxrwx   1 root    33 2010-09-29 13:29 initrd.img.old -> boot/initrd.img-2.6.32-25-generic
    
    lrwxrwxrwx   1 root    30 2010-11-30 08:03 vmlinuz -> boot/vmlinuz-2.6.32-26-generic
    lrwxrwxrwx   1 root    30 2010-09-29 13:29 vmlinuz.old -> boot/vmlinuz-2.6.32-25-generic
    I don't understand the inner workings of GRUB and the boot part and will try to spend more time on it coming weeks...but, I got /boot at a own partition. Why does these symlinks (from within /) exist and redirect to /boot? Won't it make a own /boot partition useless if / is still needed or are these symlinks not used at boot?

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!

    Re: What is the meaning of these symlinks in /?

    Quote Originally Posted by SaturnusDJ
    Code:
    :/$ ls -ao
    
    lrwxrwxrwx   1 root    33 2010-11-30 08:03 initrd.img -> boot/initrd.img-2.6.32-26-generic
    lrwxrwxrwx   1 root    33 2010-09-29 13:29 initrd.img.old -> boot/initrd.img-2.6.32-25-generic
    
    lrwxrwxrwx   1 root    30 2010-11-30 08:03 vmlinuz -> boot/vmlinuz-2.6.32-26-generic
    lrwxrwxrwx   1 root    30 2010-09-29 13:29 vmlinuz.old -> boot/vmlinuz-2.6.32-25-generic
    I don't understand the inner workings of GRUB and the boot part and will try to spend more time on it coming weeks...but, I got /boot at a own partition. Why does these symlinks (from within /) exist and redirect to /boot? Won't it make a own /boot partition useless if / is still needed or are these symlinks not used at boot?
    These are somewhat of a leftover from the oldschool way of booting, although they can still be used to advantage today if one chooses to.

    They link to your current kernel image and initrd (initial ramdisk) and the .old are your previous ones. Like GRUB keeps new and old lines after upgrade.

  3. #3
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the meaning of these symlinks in /?

    So...IF (I am not going to do it) I remove the links...nothing will change, and booting will still go as normal?

  4. #4
    Join Date
    Oct 2009
    Beans
    Hidden!

    Re: What is the meaning of these symlinks in /?

    You may remove them and if you're using GRUB in the default way your system will still boot.

    Likely the next kernel upgrade, when the version changes, would recreate the symlink for the new kernel though and the upgrade after that would likely rename to .old and write a new symlink. (I haven't tried that, can't be absolute sure what the package manager would do if it found none, but probably as I stated) However, they are just symlinks, don't take much room, if you really want to be sure you could try it and see.

    Think carefully about what you are asking, they are links that currently GRUB is not using for anything, how could their presence or absence affect the way GRUB boots your system? If you remove them, what will change is that they will no longer be there.
    Last edited by QLee; December 17th, 2010 at 06:06 PM. Reason: another typo

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: What is the meaning of these symlinks in /?

    Some with lots of installs, turn off osprober or do not run it when the other system is updated. But still boot the newest kernel using the symlink.

    from Ranch hand
    Note that this does not define the kernel. It defines the partition. It boots the newest boatable kernel that it finds at that partition.

    menuentry "Daily on sda13" {
    set root=(hd0,13)
    linux /vmlinuz root=/dev/sda13 ro quiet splash
    initrd /initrd.img
    }

    This way you do not have to boot into the install you use to boot to run osprober to get the updated kernel in any other install.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Oct 2009
    Beans
    Hidden!

    Re: What is the meaning of these symlinks in /?

    Quote Originally Posted by oldfred
    Some with lots of installs, turn off osprober or do not run it when the other system is updated. But still boot the newest kernel using the symlink.

    from Ranch hand
    Note that this does not define the kernel. It defines the partition. It boots the newest boatable kernel that it finds at that partition.

    menuentry "Daily on sda13" {
    set root=(hd0,13)
    linux /vmlinuz root=/dev/sda13 ro quiet splash
    initrd /initrd.img
    }

    This way you do not have to boot into the install you use to boot to run osprober to get the updated kernel in any other install.
    Yup, that what I was referring to in post 2. With "...although they can still be used to advantage today if one chooses to."

    However it's not what the OP was asking.
    Last edited by QLee; December 17th, 2010 at 06:37 PM. Reason: typo

  7. #7
    Join Date
    Sep 2008
    Location
    Netherlands
    Beans
    372
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the meaning of these symlinks in /?

    I indeed assumed they had no use. It would have been terrible when they had because it would mean you won't get anything if the OS partition is unavailable.

    I won't remove them. I just wondered what use they have.

  8. #8
    Join Date
    Oct 2009
    Beans
    Hidden!

    Re: What is the meaning of these symlinks in /?

    Quote Originally Posted by SaturnusDJ
    ... It would have been terrible when they had because it would mean you won't get anything if the OS partition is unavailable.
    ...
    Well, if the OS partition is unavailable you won't get anything anyway. In addition, if an unavailable partition is the partition that the MBR portion of GRUB is looking for /boot on, you won't even get the GRUB menu.

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
  •