LinuxQuestions.org
Review your favorite Linux distribution.
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 04-01-2023, 01:06 AM   #1
vsayanam
LQ Newbie
 
Registered: Jan 2009
Posts: 22

Rep: Reputation: 10
i cant boot into new LFS installation


I have successfully done both LFS-9.0 and 9.1 by copying into /boot/grub/grub.cfg by slightly modifying the lines given by the book. This time I tried in Acer laptop having both SSD and hard disk. In legacy mode my host OS was Ubuntu-22.04.
This is what the book says:
=========================================================================
set default=0
set timeout=5

insmod ext2
set root=(hd0,2)

menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
linux /boot/vmlinuz-6.1.11-lfs-11.3 root=/dev/sda2 ro
}
==========================================================================
The LFS is installed in /dev/sda3. Can anyone please help me in modifying /boot/grub/grub.cfg? "set root=(hd1,3) and linux /boot/vmlinuz.... root=/dev/sda3 ro did not help.
 
Old 04-01-2023, 05:40 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,681
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
If the drive is sda, then I think GRUB calls that hd0, not hd1.
 
Old 04-01-2023, 08:29 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Quote:
The LFS is installed in /dev/sda3.
should be this;
Code:
set default=0
set timeout=5

insmod ext2
set root=(hd0,3)

menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
linux /boot/vmlinuz-6.1.11-lfs-11.3 root=/dev/sda3 ro
}
grub counts drives from 0, partitions from 1.
 
  


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] i cant boot into new LFS installation (lfs 7.5) sholizar Linux From Scratch 33 12-20-2021 06:55 AM
New build of LFS I'm experimenting with. (OpenRC+ZFS+B/LFS) ReaperX7 Linux From Scratch 26 07-19-2015 09:17 PM
I cant boot into deepin linux even though i installed into my hp laptop bluerangerx11 Linux - Newbie 2 06-25-2015 12:54 AM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
cant boot cant repair, cant reinstall... can i recover my files?? AnimaSola SUSE / openSUSE 4 08-07-2007 07:58 PM

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

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