LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Chapter 6, accidentally removed grub-2.02.tar.xz (https://www.linuxquestions.org/questions/linux-from-scratch-13/chapter-6-accidentally-removed-grub-2-02-tar-xz-4175657723/)

duncandonuts 07-19-2019 09:00 PM

Chapter 6, accidentally removed grub-2.02.tar.xz
 
Hi, I'm new to this and would appreciate any help, I'm currently at chapter 6 of LFS. As a result of me just being sloppy and not paying attention, I accidentally typed "rm -Rf grub-2.02.tar.xz" while trying to remove groff-1.22.4. When I tried "tar -xvf grub-2.02.tar.xz" it of course says that there's no such file now.

I've I tired wget followed by the grub link while still in the sources directory, but that didn't work. Is it possible to add grub-2.02.tar.xz to the sources directory again?

Thank you

Terry Coats 07-20-2019 04:14 AM

Code:

wget http://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz
Worked for me.

duncandonuts 07-20-2019 02:40 PM

Thanks for the reply.

This is what happens when I try:


(lfs chroot) root:/sources# wget http://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz
bash: wget: command not found

Do I need to be outside of the sources directory? or under a different user? wget worked for me at earlier parts of the book.

Terry Coats 07-23-2019 05:41 PM

If you're in chroot then wget has not yet been installed.
If it was me I'd use wget from the host system to download
http://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz and then mount
the system you are building and either copy or move the tar.xz
over to sources directory on the lfs system that is being
built. It's sometimes complicated I know if you are new.

Do you really need grub? I use the grub2 that is installed
on my host Ubuntu system to do the grub stuff. The lfs you
are building requires only a kernel in /boot. I run "update-grub"
from my host system and it sees and picks up the lfs system
and adds it to the grub boot menu. You need grub only on
one system to boot any other systems on your disks.
Just a thought for you to consider.


All times are GMT -5. The time now is 01:24 PM.