Linux From Scratch Experience

This is my first time with LFS.
But first, I gotta rant as I have just wasted 6 days of my life trying to successfully build Hardened LFS. My biggest complaint about it is how the guide left out details that I needed to know in an event the build got interrupted before I can even finish. I was almost done (I was on Chapter 7), and then I accidentally ejected the DVD drive. For some reasons, my LiveCD distro froze. I thought it would resume as soon as I close the drive as everything is running in the RAM but it didn't.
But the weird thing is once I got to Chapter 7 and 8, I was unable to install GRUB, because the /dev/sda is not mounted which confused me. I tried checking using the fdisk command, but there was no output and it said it couldn't open anything in the /proc directory. I could have sworn I installed all packages as I was copying and pasting every texts in the book up to that point, and I was already done with the package installations in Chapter 5 and 6 before I had to reboot it. I wonder why couldn't I get the fdisk command to work properly in the environment that I chrooted in? I even remounted the partitions back the way they were and chrooted back in the system with the commands at the end of Chapter 6, and I still feel like I am missing an important set of instructions.
I'm done with LFS for a while. Not going back to it sometimes soon. My biggest mistake with HLFS is trying to manually type in every text with the terminal-only live distro the first four days when I can get through 5 and a half chapter in a day. I thought I would learn more from the first approach I did, but I don't feel like I am learning a lot from it other than knowing the minimum package requirement to run it. If I were you, I would just run the darn thing in VM. If only today isn't the 13th, I probably wouldn't have to deal with this.

But the weird thing is once I got to Chapter 7 and 8, I was unable to install GRUB, because the /dev/sda is not mounted which confused me. I tried checking using the fdisk command, but there was no output and it said it couldn't open anything in the /proc directory. I could have sworn I installed all packages as I was copying and pasting every texts in the book up to that point, and I was already done with the package installations in Chapter 5 and 6 before I had to reboot it. I wonder why couldn't I get the fdisk command to work properly in the environment that I chrooted in? I even remounted the partitions back the way they were and chrooted back in the system with the commands at the end of Chapter 6, and I still feel like I am missing an important set of instructions.
I'm done with LFS for a while. Not going back to it sometimes soon. My biggest mistake with HLFS is trying to manually type in every text with the terminal-only live distro the first four days when I can get through 5 and a half chapter in a day. I thought I would learn more from the first approach I did, but I don't feel like I am learning a lot from it other than knowing the minimum package requirement to run it. If I were you, I would just run the darn thing in VM. If only today isn't the 13th, I probably wouldn't have to deal with this.
Comments
If you enjoy using Linux, the effort really is worth it. I got some great satisfaction and to this day, I roll my own distro for my own needs. I still use my original floppy based version built with a 2.4 kernel.
If you want to get into it slowly - perhaps build your distro by bootstrapping it with another. Especially, if your intent is to build a version for your desktop. About 3 months ago, I decided to dust off my own linux lab and I pulled out a bootstrap floppy that I built several years back. I ended up using Gentoo (you can probably use Arch as well) as a bootstrap instead trying to update my old Linux distro. The primary reason is that the newer version of Xorg is modular and it's really not efficient to build X from scratch unless you really want to learn X internals. (I did an X windows port about 13 years ago so I've had my fill of X Windows
I hope you continue with your exploration and good luck.
brownwraps-linuxfromscratch.blogspot.com
I think its a great learning tool. I got to the point I had a bootable working system, but left off at trying to bring up X. Got involved with another certification, HBSS, and never got back to it. I still recommend it though.
I do not plan to abandon the LFS project completely, but I will revisit once I gain more knowledge from my cert study. I plan to study for the Linux+ starting with this UNIX guide but I'm debating skipping it and go straight to the RHCSA. Not sure if that's a wise thing to do. Should I pay $348 for 2 certs or $400 for a well-reputable RHCSA?
I wish I did not start with the outdated unstable HLFS version, but I can see how frustrating it can be to roll out your own distro when you have to keep up with the patches and updates. Did you have a package manager? I know the LFS and BLFS won't help with that. Next time, I plan to use the updated version of the basic LFS then do the BLFS. I think I will get back to it next year when I'm probably ready.
That's great to hear. Good luck next time around. Hmm. I really don't know enough about how the job market at those certs. With the RHCSA being more vendor specific, I don't know if that's better. But there are lots of companies that use Redhat. Perhaps someone who does Linux admin/engineering can comment...
BTW - I looked at that the book preview. It actually looks to be a great overview of UNIX and probably is a good way to learn UNIX and not just Linux. You may be able to get a lot of it. The way that I learned a lot about Linux was to start with something similar (4.3 BSD and MINIX).
I've never used a package manager before until recently. The current version of Xorg is highly modularized and the source code is no longer packaged into a single version. So for the latest desktop distro, I bootstrap-ed with Gentoo's portage so I could easily load X.
About the book, a bit pricey but good (I got 2nd ed. International). You can go for International Edition from ebay:
INTERNATIONAL EDITION Your Unix/Linux: The Ultimate Guide 3rd Das 9780073376202 | eBay
It's basically the same stuff. Same print quality, different cover. Also true for any other McGRAW / Pearson (text)book.
Your UNIX/Linux: The Ultimate Guide, 3rd edition: Sumitabha Das: Amazon.com: Kindle Store
Go for RHCSA directly. Skip Linux+. You can always read the Linux+ books anytime you want. RHCSA is a lab-based cert, much more valued than Linux+, and you will learn more studying for RHCSA.
I did not see this edition coming. Thanks for the heads up. I guess I better hurry up finishing up the edition that has been sitting on my shelf. I am sure many topics in the book are still relevant. The only differences I can think of now are the new boot loader and the file system.
Thank you. This is exactly what I need! An advice from an experienced certified Linux admin! I guess I will have to prepare carefully and throughout for the RHCSA. Failing the exam would be a huge gamble for me. I am not trying not to violate the NDA, but I hope I am not asking too much here. If I made one little mistake on the exam such as using the chmod 744 permission instead of 644 on a file, would I automatically fail the exam or will I see a warning or hint before the end of the exam? I would love to take the exam demo tutorial sort of like what Cisco does before you begin your exam so I can get a better idea what the test looks like.
Don't think like that. I know it's an expensive exam, but it is a difficult exam and the failure rate is not small. when I took the exam I had 5 years of experience in Unix (not Red Hat or Linux), and I kind of ignored the RHCSA part and focused on the RHCE part..guess what, I failed the RHCSA part and got 94% in the RHCE part, go figure
http://www.techexams.net/forums/lpi-rhce-sair/62016-passed-rhce.html
It's a difficult and expensive exam, but it's REALLY worth it. You will learn a lot, and the certification is really respected. It will open new doors for you
You will not get warnings for mistakes, but you should test these things your self. This is the beauty of a practical exam. For example, if you were asked to create a user, then it is easy to test that your creation is successful by simply logging in using that user. This is how you do it in the real world. I get asked to create a user and give it certain permissions, so as a habit I create it, and I login using that user and try to access files that I'm not supposed to see if my access control is working or not.
When you attach your machine to a naming services machine (say NIS for example), it is easy to test that as well. This is part of the exam, and part of your learning experience (something you never get to learn if you study for a multiple choice exam like Linux+).
There's nothing like that. While studying you must create a server and multiple clients and DO everything practically and test/verify it is working. This is how you prepare for this exam.
If you can afford it, then enroll in Red Hat official training classes. They're an excellent preparation for the exam and you WILL learn a lot! If not, then you can always take Red Hat's crash course right before the exam (after you've prepared properly of course).
Let me know if you need further help