10

Say I have downloaded Ubuntu ISO from the official website of Ubuntu: https://ubuntu.com/download/desktop

I have downloaded a file focal-desktop-amd64.iso and the extracted contents of this ISO file are

screenshot

I am not able to get similar files like in installed Ubuntu 19.10, I have these files

/boot/initrd.img-5.3.0-26-generic
/boot/vmlinuz-5.3.0-26-generic

Is there a way to get these file names from the Downloaded ISO without installing it on the system?

  • 1
    Another way is to visit cdimage.ubuntu.com/daily-live/current/… which lists linux-generic 5.4.0.9.11, linux-headers-5.4.0-9 5.4.0-9.12, linux-headers-5.4.0-9-generic 5.4.0-9.12, linux-headers-generic 5.4.0.9.11, linux-image-5.4.0-9-generic 5.4.0-9.12, linux-image-generic 5.4.0.9.11 – DK Bose Jan 21 at 5:24
  • Please explain what you try to do and why. -- It may work but it may also cause big problems, if you use a linux kernel that belongs to another version of Ubuntu. – sudodus Jan 21 at 8:39
  • So you have the answer in your question. Ubuntu 19.10 ISO has 5.3.0-26-generic kernel. – Pilot6 Jan 21 at 18:34
  • @Pilot6 that's an example for the Q... 19.10 is installed and thus I know those names.. I have asked for any other downloaded Ubuntu ISO from 0fficial site.. Without Installing on the system.. – PRATAP Jan 24 at 17:25
12

You can loop mount first the iso file and then the squashfs file,

Create mountpoints

sudo mkdir /mnt/lp1
sudo mkdir /mnt/lp2

Mount

sudo mount -o loop focal-desktop-amd64.iso /mnt/lp1
sudo mount -o loop /mnt/lp1/casper/filesystem.squashfs /mnt/lp2

Check for the kernel version

$ sudo find /mnt/lp2 -name "linux-image-[0-9.-]*-generic"
/mnt/lp2/usr/share/doc/linux-image-5.4.0-9-generic

My focal iso file was not downloaded today, you may find a newer kernel version.

Please note that there are several files, that belong to the kernel.

  • i.stack.imgur.com/txDml.png perfect.. thats nice from you admin@i7-4770:~$ sudo find /mnt/lp2 -name "linux-image-[0-9.-]*-generic" [sudo] password for admin: /mnt/lp2/usr/share/doc/linux-image-5.3.0-24-generic admin@i7-4770:~$ – PRATAP Jan 21 at 9:27
  • @YuganTej, I'm glad that I could help :-) sudodus is my username - a palindrome made from sudo. – sudodus Jan 21 at 9:30
  • I have tested it with my previous install of 18.04 ISO.. Perfect result i.stack.imgur.com/7fraB.png – PRATAP Jan 21 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.