LinuxQuestions.org
Help answer threads with 0 replies.
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 07-19-2019, 09:00 PM   #1
duncandonuts
LQ Newbie
 
Registered: Jul 2019
Posts: 2

Rep: Reputation: Disabled
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
 
Old 07-20-2019, 04:14 AM   #2
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
Code:
wget http://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz
Worked for me.
 
Old 07-20-2019, 02:40 PM   #3
duncandonuts
LQ Newbie
 
Registered: Jul 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-23-2019, 05:41 PM   #4
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
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.

Last edited by Terry Coats; 07-23-2019 at 05:57 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Boot grub menu list is accidentally removed from Ubuntu Jaunty and sysem boots to gru murtyvonna Ubuntu 2 08-11-2009 12:19 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
How do I un tar a .tar, .tar.z, .tar.gz file vofkid Linux - Newbie 4 03-15-2002 02:54 PM

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

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