LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 03-22-2018, 06:41 AM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
How do I find the kernel version in grub


I am stuck in grub on booting so I want to run this

grub> set root=(hd0,1)
grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
grub> initrd /boot/initrd.img-3.13.0-29-generic
grub> boot

I do not know the kernel version and when I try to auto complete in the second command here it does not auto complete.

How do I find out the version using grub?

Linux Mint 18.3 on a stick being used to install.

Help will be very much appreciated. Thanks in advance.
 
Old 03-22-2018, 06:56 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
The grub shell has a find command. Try "find /boot/vmlinuz"
 
Old 03-22-2018, 07:05 AM   #3
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by hazel View Post
The grub shell has a find command. Try "find /boot/vmlinuz"
Thanks did that says cannot find command find.

Thanks for your help
 
Old 03-22-2018, 07:39 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Oops! I think that was grub legacy. What happens if you type "ls (hd0,1)"
 
Old 03-22-2018, 07:47 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by bscho View Post
Linux Mint 18.3 on a stick being used to install.
If installing, nothing exists on the disk.
Tab completion should work if root is set correctly.

If you are trying to locate the kernel on the USB itself, the format is completely different.
 
Old 03-22-2018, 07:52 AM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by syg00 View Post
If installing, nothing exists on the disk.
Tab completion should work if root is set correctly.

If you are trying to locate the kernel on the USB itself, the format is completely different.
How do I set root on the grub correctly?

How do I locate the kernel on the USB?

Thanks
 
Old 03-22-2018, 04:46 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
How did you create the usb and when you mount it, what do you see? A standard bootable Mint usb should have the following directories/files:

Quote:
boot/ casper/ dists/ EFI/ install/ isolinux/ md5sum.txt pics/ pool/ preseed/ README.diskdefines ubuntu@
On a bootable usb, the kernel and initrd files are in the /casper directory as opposed to an installed system where they are in the /boot directory. If your usb is seen as sda on boot running the following should show the kernel and initrd.

Code:
ls (hd0,1)/casper/
Is the usb using Grub to boot or syslinux/isolinux? Depends upon how you created the usb. The grub commands you posted initially should work if you have the correct device/partition/kernel/initrd names. I would suggest running the ls command if you are getting a grub prompt to see which drive/partition you might need. You haven't indicated if you have an internal drive, multiple internal/external drives...?
 
Old 03-22-2018, 06:25 PM   #8
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
ls (hd0,1)/casper/ says file '/casper/' not found
I have internal drive
Thanks
typing ls returns
(hd0) (hd0,gpt3) (hd0),gpt2) (hd0,gpt1)

Last edited by bscho; 03-22-2018 at 06:34 PM.
 
Old 03-22-2018, 06:50 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
ls (hd0,1)/casper/ says file '/casper/' not found
That command is to find the kernel on a bootable Ubuntu/Mint usb, so then, you aren't trying to use a bootable Mint usb but rather an installed system. In that case, try the following when you are at the grub prompt (grub>):

Code:
ls (hd0,gpt1)/boot/
If that doesn't produce the required results, replace the gpt1 with gpt2 and try again. If that fails, try gpt3 as we have no idea which partition your boot directory is on. Part of the problem is that it wasn't clear from your posts whether you were trying to access an installed system or a bootable usb of Mint.
 
Old 03-22-2018, 06:59 PM   #10
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
ls (hd0,gpt1)/boot/ says file '/boot/' not found

ls (hd0,gpt2)/boot/ says error: unknown filesystem

ls (hd0,gpt3)/boot/ says error: unknown filesystem

ls (hd0)/boot/ says error: unknown filesystem

ls (hd0,gpt1)/efi/ says
./../ Microsoft/ Boot/hp/ ubuntu

The machine is a HP 14-BS044NA

Last edited by bscho; 03-22-2018 at 07:06 PM.
 
Old 03-23-2018, 07:22 AM   #11
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Does Windows boot for you?
 
Old 03-23-2018, 07:47 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
What is it are you trying to do? Post #10 would indicate that you have windows and Ubuntu installed, whereas your first post you mention
Quote:
Linux Mint 18.3 on a stick being used to install
 
Old 03-23-2018, 08:00 AM   #13
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by colorpurple21859 View Post
What is it are you trying to do? Post #10 would indicate that you have windows and Ubuntu installed, whereas your first post you mention
Trying to install Linux mint goes to grub. Unable to boot without knowing the kernel.

Fixed the problem now by pressing Ctrl+Alt+Del which makes it to install as normal.

Thanks for everyones help but never did find out how to find the kernel in grub.

Thanks all
 
  


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
How to find the kernel version chachan007 Linux - General 4 02-02-2007 11:01 AM
How do I find my kernel version? CrownAmbassador Linux - Newbie 3 08-26-2006 08:55 PM
Find my kernel version lacitpo Linux - Newbie 1 07-01-2005 05:53 PM
Find out distribution + version (NOT: kernel version!) Tajci Red Hat 5 06-08-2005 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 01:47 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