Linux From ScratchThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ok I have a situation I would like to resolve.
Story so far, I have a pc I tried to put lfs on but cant build it on there, so I built on another machine dd over to drive but cant install grub.
Now what I intend to do is install grub from a local machine to the remote machine.
I have mounted the drive from remote machine to local/mnt/lfs dir local, (hope that makes sense). I have mounted the virtual kernel file system and chrooted into the remote drive I want to install grub, grub-install /dev/sda.
Now the thing thats stopped me proceeding, will this change the grub on the local machine or will it install into the remote drive, I am chrooted into the remote drive
Distribution: Linux From Scratch, Slackware64, Partedmagic
If you have mounted your host /dev to the chrooted system then /dev/sda whatever will be pointing to your local machine NOT the remote machine even though you have chrooted into the drive.
Do you physical access to the remote machine? If so I would boot from something like the partedmagick live CD and install grub from there, if you muck it up you may end up not being able to boot the local machine, make sure you have an alternative boot medium and/or a backup.
Yes this is why I didn,t install grub as I thought it would point to local machine drive.
I dont have a grub disc at the moment i.e super grub and cant boot off a live cd. I did find another option grub-install --root-directory=/mnt/lfs /dev/sda but again the /dev/sda stops me.
I have thought about grub-install user@ip:/dev/sda
The local machine is the 1 that built the lfs for remote.
Wots it like with time to waste!!!
Did you dd the drive from usb?
1. If so put the drive back in usb install grub to sdb, it will overwrite grub in sda.
2. Add sda to the boot menu on sdb.
3. reboot system select the entry for sda.
4. Unmount usb drive sdb & remove from machine.
5.reinstall grub on sda.
I know this works because I keep a usb drive with debian on it, just for that purpose.