LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-07-2019, 12:03 PM   #1
AlexM202020
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Rep: Reputation: Disabled
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?)
 
Old 03-07-2019, 12:26 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
probably you can found already: vmlinuz is just a link to vmlinuz-XXX
 
Old 03-07-2019, 08:41 PM   #3
AlexM202020
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
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)

Last edited by AlexM202020; 03-07-2019 at 09:31 PM.
 
Old 03-08-2019, 01:01 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by AlexM202020 View Post

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).
 
Old 03-08-2019, 03:16 AM   #5
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] replace any line in all files that contains "string <something>" with "string something else" Quakeboy02 Linux - Software 6 04-17-2017 03:30 PM
[SOLVED] Why my system keeps so many vmlinuz files ? czezz Ubuntu 7 08-21-2016 03:34 AM
[SOLVED] Samba config can read both directions but not write both directions lhiggie Linux - Enterprise 2 05-14-2013 12:33 PM
Something depends on something else but something else is to be installed javascriptninja Linux - Newbie 3 02-05-2012 04:22 PM
[SOLVED] How to user vmlinuz-generic instead of vmlinuz-huge-smp? cola Slackware 12 09-15-2009 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration