LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-14-2021, 02:45 PM   #1
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Rep: Reputation: Disabled
disk `hd0,4' not found


LFS 11.0

Cannot boot into either LFS or Debian.
My LFS root partition is SDA4.
Earlier I got these other error messages:
Code:
`/boot/vmlinuz-5.13.12-lfs-11.0' not found
and
Code:
`x86_64-efi/linux.mod' not found
Not having much luck with the Rescue Disk.
Thank you for your help!
 
Old 12-14-2021, 03:50 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Post /boot/grub/grub.cfg
fdisk -l
 
Old 12-14-2021, 04:00 PM   #3
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Thanks for the help!
This is what I got:

Code:
grub> cat /boot/grub/grub.cfg
error: file `/boot/grub/grub.cfg' not found
Code:
grub> fdisk -l
error: can't find command `fdisk'.
 
Old 12-14-2021, 04:42 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
The commands are from the host system, not from the grub prompt.
From the grub prompt post the output of
set
ls
 
Old 12-14-2021, 04:53 PM   #5
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
I cannot access the host system (Debian bullseye).
I'm having to type what I see on the screen into a different computer.
Here are a few of the results from "set":
Code:
cmdpath=(hd0,msdos1)/EFI/BOOT
grub_platform=efi
prefix=(hd0,msdos1)/grub/grub
root=hd0,msdos1
That root value could be wrong, as my LFS is sda4.
 
Old 12-14-2021, 05:51 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
what is the ouput of
Code:
grub>ls
grub>ls /grub
grub>ls /grub/grub

Last edited by colorpurple21859; 12-14-2021 at 05:53 PM.
 
1 members found this post helpful.
Old 12-14-2021, 06:01 PM   #7
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Code:
grub> ls
(hd0) (hd0,msdos1) (hd1) (hd2)
Code:
grub> ls /grub
grub/
Code:
grub> ls /grub/grub
x86_64-efi/ locale/ fonts/ grubenv
 
Old 12-14-2021, 06:04 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
insert the following commands and post output of ls.
Code:
insmod part_gpt
ls
 
1 members found this post helpful.
Old 12-14-2021, 06:07 PM   #9
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Code:
grub> ls
(hd0) (hd0,msdos1) (hd1) (hd1,gpt4) (hd1,gpt3) (hd1,gpt2) (hd1,gpt1) (hd2)
 
Old 12-14-2021, 06:11 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Code:
insmod part_gpt
linux (hd1,4)/boot/vmlinuz-5.13.12-lfs-11.0 root=/dev/sdb4
boot
the sdb4 maybe sda4 or sdc4
for debian try /boot/vmlinuz /boot/initrd.img or /vmlinuz /initrd.img with whatever drive it is on.

Last edited by colorpurple21859; 12-14-2021 at 06:13 PM.
 
1 members found this post helpful.
Old 12-14-2021, 06:20 PM   #11
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
I got
Code:
error: file `/boot/vmlinuz-5.13.12-lfs-11.0' not found
grub> boot
error: you need to load the kernel first.
 
Old 12-14-2021, 06:31 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Your list all your drives/partitions
Code:
ls (hd1,4)/
ls (hd1,3)/
ls (hd0,1)/
and so forth to find the location of kernels.
 
1 members found this post helpful.
Old 12-14-2021, 06:44 PM   #13
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Code:
grub> ls (hd1,1)/
efi/
grub> ls (hd1,1)/efi/
debian/ lfs/
grub> ls (hd1,1)/efi/lfs
grubx64.efi
 
Old 12-14-2021, 06:50 PM   #14
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Code:
grub> ls (hd1,1)/efi/debian/
shimx64.efi grubx64.efi mmx64.efi fbx64.efi bootx64.csv grub.cfg
 
Old 12-14-2021, 07:01 PM   #15
bayou self
Member
 
Registered: Sep 2018
Location: Louisiana
Distribution: Debian 11.1 (bullseye)
Posts: 81

Original Poster
Rep: Reputation: Disabled
Code:
grub> ls (hd1,2)/
lost+found/ boot/ etc/ media/ vmlinuz.old var/ bin usr/ sbin lib lib32 lib64 libx32 dev/ home/ proc/ root/ run/ sys/ tmp/ mnt/ srv/ opt/ initrd.img.old vmlinuz initrd.img
 
  


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] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
error: hd0 out of disk. (???) oznola Linux - General 7 06-27-2012 09:00 AM
[SOLVED] grub hd0,0 hd0,1 clarification for using single /boot partition zeebra Linux - General 2 02-28-2012 03:07 PM
Ubunutu 11.10 grub2 can boot but error hd0 no disk from bootable usb config help craig6398 Linux - Newbie 1 02-06-2012 05:10 AM
Fresh 11.4 usb hard drive install results hd0 out of disk grub console natlose Ubuntu 23 01-17-2012 10:58 AM

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

All times are GMT -5. The time now is 06:29 AM.

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