Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Note the added -r. That will make the copy recursive so that not only files will be copied, but any directories and the files they contain will be copied as well. Since you are copying /usr, I am assuming you want every file and directory under it as well.
Heres a bit of an unrelated question, but I dont want to start a new topic just for this...
The thing is I have moved my Gentoo installation to different harddrives. I have pretty much backed up /, /usr and /home, switched harddrives and moved the files back again. Hopefully this will work. One thing that remains though is installing Grub to /dev/hda(one of the drives that were replaced).
When I installed Gentoo I ran this command, before installing Grub, in a chrooted environment:
grep -v rootfs /proc/mounts > /etc/mtab
Now im just booting from a livecd. Can I run this even though im not chrooted? That would make my life a bit easier as im feeling quite unsure of how the chrooting is done properly.
You want to start a new topic, so that those that have the answer will see the question. Burying it at the bottom of a solved thread will get no attention. It also makes it much harder for people to search, to find the answer themselves (which I assume you'll do, since installing grub from a bootcd is a common question).
Oh, sorry - I forgot to search. Happens easily when I start to approach things in an unnecessarily complicated way(that is, looking in the Gentoo handbook about installing Grub... reading strange commandlines and "chroot" - uh oh! confusion, etc. et al - "I better ask on this board"!). Yeah, well, sometimes my brain works that way so I need to be reminded to search. Thanks!
It was really a piece of cake. Mount root-partition, cd to /boot/grub, run 'grub' the, 'root (hd, partition)' and 'setup (hd)'(where you want Grub installed in mbr).