Missing directories and bad permissions for $LFS
Could someone explain what could be going on here? I'm still kind of new to linux, but have made a bit of headway. The first 3 or 4 times this happened I just assumed I did something to mess it up, but I've been over the directions in detail at least three times (as well as restarting the project). I've read about HDD issues that could cause this, but I don't believe that to be the case at this time. I am planning to run some tools in dos tonight to doublecheck integrity regardless.
Quote:
|
Okay let's start at the beginning:
Question 1: What distribution are using using as a base to build LFS off from? This question might solve everything now and yet to come for you if answered correctly. Most distributions aren't out of the box LFS friendly, even if you have the appropriate packages. Question 2: Judging from how you've progressed up till this point, and you should be posting the chapter you get stuck on BTW, it seems you may have exited as the LFS user and attempted to regain access as root. Good tip: Often at times sudo is not friendly with building LFS, and you should be logged in as root. If you can't login as root, or entering command "su" does not grant you access to the superuser/root account through the shell, we can help you fix this. |
Quote:
You're right about exiting the LFS user back into root too. I was getting permission denied when trying to create directories on the lfs partition as $LFS and didn't know what else to try. It was early enough in the project that I just dismounted the lfs partition, re-formatted the partition, then started over after installing bash 3.2 which I thought might have something to do with the permissions problem. Things were starting to get a lot smoother project wise until the directories disappeared. Edit: I'll be sure not to use sudo anymore. I have just been avoiding it because it has caused me problems with permissions in the past. |
Best of luck on the build. Just a suggestion/recommendation, but I would recommend building and installing the software listed in LFS Chapter 9.3 as well as completing Section 2 - Chapter 3 of the BLFS book.
If you want a good tip, install them in this order (list may include dependencies): dhcp-client or dhcpcd GPM sudo (you'll need it for installing some packages in X and KDE) openssl openssh wget lynx (build with --with-ssl) Certificate Authority Certificates LVM2 parted This will give you a well rounded base system that expands the usefulness of LFS into a proper useful OS that's still minimal, yet well rounded and functional. From there, you have BLFS and you can virtually start anywhere, though I do recommend installing X-Windows as some dependencies in some files will ask for libraries found in X-Windows. Just a suggestion, but try to avoid PAM unless you absolutely need it. Lastly, since this is your first LFS possibly, always build recommended dependencies even if not required. They will help with problem solving if you run into any. |
Quote:
I am curious though if you had some suggestions on how to fix the problems that I posted up (other than not repeating the same mistakes). |
go back to the start of the book, read it
pay special attention to chapter 4 |
Quote:
I've ran into issues also when I built using SalixOS with permissions. It just happens sometimes even though they're unintended. If you get through the initial prelim system without stopping, usually you'll never have to worry about permissions as afterwards most work will be done as root rather than the lfs user. The best point, take your time and read each chapter carefully before proceeding as you'll often see extra hints such as optional build flags you may want (such being with openssl support in lynx is mentioned in an afterword rather than the main because it's optional), and then download, unpack, build, and install. Trust me, you'll have a good experience with LFS. And when you need help, just ask. There are more than enough friendly people here at LQ with a vast wealth of knowledge who are willing to help you out, step by step... ...and the majority of us won't be like that guy above rudely thumping a book. |
Quote:
|
Does anyone think it would be a bad thing to try a switch to Arch Linux first and then come back to LFS? I've been extra "special" lately, and was thinking that it might be a more gradual learning curve...
|
Quote:
Quote:
I recommend, as Ubuntu root, with the partition mounted... 1. Create /mnt/lfs/tools (section 4.2). 2. If an empty directory named /tools was accidentally created in the Ubuntu root directory, then delete it. 3. Create the link in the Ubuntu root directory to /mnt/lfs/tools (section 4.2). Then, if you created the lfs user (section 4.3), granted it access to /tools and /sources (section 4.3), and created its .bash_profile and .bashrc files (section 4.4)... 1. Somehow log in as the lfs user and/or start a new shell as lfs (I forgot which for Ubuntu). 2. Check that $LFS echoes "/mnt/lfs". 3. Begin again Binutils-2.23.2 - Pass 1. Stay in that shell as the lfs user to the end of chapter 5. If you stop and log out while still working in chapter 5, you only have to start a new shell as the lfs user to resume work. Later, in chapters 6-9, stopping and resuming is slightly more complicated because you will be working in chroot then. But the steps for that are in the book for when that time comes. |
All times are GMT -5. The time now is 06:09 PM. |