LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Why both files vmlinuz and vmlinuz-4.xx-something in distro? (https://www.linuxquestions.org/questions/linux-from-scratch-13/why-both-files-vmlinuz-and-vmlinuz-4-xx-something-in-distro-4175649730/)

AlexM202020 03-07-2019 12:03 PM

Why both files vmlinuz and vmlinuz-4.xx-something in distro?
 
I'm learning to boot a live distros and noted in one that casper folder contains two sets of vmlinuz and initrd, one like vmlinuz and other vmlinuz-4.xx-something. Interestingly when I open iso file of distro with archive manager vmlinuz-4.xx-something shows size zero, vmlinuz is not zero, when I mount iso file, both files are not zero and same size. grub.cfg menu entry have vmlinuz-4.xx-something file.

What could be the reason to have two files? (some redundancy, should ask those who made the distro?)
Why archive manager sees one file of size 0? (glitch?)

pan64 03-07-2019 12:26 PM

probably you can found already: vmlinuz is just a link to vmlinuz-XXX

AlexM202020 03-07-2019 08:41 PM

But neither file manager nor ls -l command says so for neither unpacked no mounted folder. Glitchy distro on which I work?

ADDED: now that I paid attention to detail I know about some number of links in ls output, which is different for folders for vmlinuz but same for vmlinuz inside folder and same for filesystem.squashfs across folders...

Just by logic I would guess number 2 means these files have links to each other, but that is for folder where there are both non-zero. And info about ls said its output is implementation specific...
Code:

-r--r--r-- 1 xxx filesystem.squashfs
-r--r--r-- 1 xxx vmlinuz
-r--r--r-- 1 0  vmlinuz-xxx

Code:

-r--r--r-- 1 xxx filesystem.squashfs
-r--r--r-- 2 xxx vmlinuz
-r--r--r-- 2 xxx vmlinuz-xxx

Final guess - don't use GUI archive manager to unpack system files even if it opens them? (or participate and fix source code)

pan64 03-08-2019 01:01 AM

Quote:

Originally Posted by AlexM202020 (Post 5971501)

Final guess - don't use GUI archive manager to unpack system files even if it opens them? (or participate and fix source code)

I don't know, but probably there was an option to follow symlinks (or something similar).

petelq 03-08-2019 03:16 AM

The vmlinuz link is a safety measure if you have boot problems. In grub console you can boot to just vmlinuz as you can't always remember the full file name, vmlinuz-xxx.
If you click on a link in file manager it will take you to the original file so it always shows as if it was the original file.


All times are GMT -5. The time now is 07:55 AM.