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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm tryint to install LFS but I'm stuck on the first part.
Is my assumption correct that you are trying to build LFS 6.7 stable and are stuck in chapter 2.2 (or possibly 2.3)?
Quote:
my hdd should be ...../sda but it wont open. Ive tried ..../hda but that opens my cd drive for some reason.
cfdisk also only finds my cd drive and treats it as a hdd.
Are you using the LFS liveCD or is there already an OS on the HD and are you running from that one?
Quote:
Not really sure what to do.
What is the output of the following commands (as root user):
Hi,
Is my assumption correct that you are trying to build LFS 6.7 stable and are stuck in chapter 2.2 (or possibly 2.3)?
Are you using the LFS liveCD or is there already an OS on the HD and are you running from that one?
What is the output of the following commands (as root user):
Code:
fdisk -l
and
Code:
dmesg | grep "[sh]da"
Hope this helps.
Hello,
Yes I am using 6.7 stable and am stuck in chapter 2.2.
When I run "fdisk -l" I get nothing on the screen.
Also, I was able to pass this point and even mount my filesystems with a Gentoo cd but I'm worried it won't follow the steps that are used in the LFS documentation.
How do I unmount, eject and mount another cd while I'm using the Gentoo shell?
You cannot. Live CD's need to stay mounted (there are one or two that don't but I don't think you can use those to build LFS).
Quote:
LFS doesnt support my harware because its a little outdated
How did you reach this conclusion? I've got a real new machine (about 2 months old, with all the new technologies) and the LFS liveCD (version: x86_64-6.3-r2145) works like a charm. Don't get me wrong, you could be right, but I kinda doubt it, especially when it comes to "normal" hard-drives
How about the other questions I asked?
- Output of dmesg | grep "[hs]da"
- Is there already an OS running on that machine?
Hi,
You cannot. Live CD's need to stay mounted (there are one or two that don't but I don't think you can use those to build LFS).
How did you reach this conclusion? I've got a real new machine (about 2 months old, with all the new technologies) and the LFS liveCD (version: x86_64-6.3-r2145) works like a charm. Don't get me wrong, you could be right, but I kinda doubt it, especially when it comes to "normal" hard-drives
How about the other questions I asked?
- Output of dmesg | grep "[hs]da"
- Is there already an OS running on that machine?
Hope this helps.
I was running OpenSuse on it but wiped it for a step by step LFS install.
I was looking through the documentation and found a note saying that LFS may not detect newer hardware such as hdds and since detection is no problem with Gentoo I came to the conclution that it wasnt supported. Also, my sata cdrom wasnt able to finish booting the live cd, saying it couldnt detect install media. I needed to swith it out with an IDE cd rom drive(not sata) drive which finished booting.
I'll try to get that output later today. Better to go through every step and make sure.
I was running OpenSuse on it but wiped it for a step by step LFS install.
That is too bad, you could have used openSuse (with some changes) to install LFS.......
You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements
Quote:
Originally Posted by Adol
Unfortunatly I don't know how to save the screen and transfer the contents to my other computer to past my dmesg message here.
Did you get any information when running the dmesg | grep "[hs]da" command? I don't see any output in your reply that contains either sda or hda entries (the grep part is important).
Quote:
Originally Posted by Adol
ATA1: Sata link down (SStatus 0 SControl 300) ------ 1-4 are the same.
Using SB 600_PATA: Not 100% native mode.
Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.
The LFS LiveCD Documentation also mentions using alternate drives when starting (near the bottom of the page). The all_generic_ide options might be worth a try. To use it boot the LFS liveCD and wait for the boot: prompt, then type linux all_generic_ide and press enter.
That is too bad, you could have used openSuse (with some changes) to install LFS.......
You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements
Did you get any information when running the dmesg | grep "[hs]da" command? I don't see any output in your reply that contains either sda or hda entries (the grep part is important).
Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.
The LFS LiveCD Documentation also mentions using alternate drives when starting (near the bottom of the page). The all_generic_ide options might be worth a try. To use it boot the LFS liveCD and wait for the boot: prompt, then type linux all_generic_ide and press enter.
Hope this helps.
Ok I copied down my dmesg | grep "[hs]da It looks like this:
ide0:BM-DMA at 0xfa00-0xfa07, BIOS settings: hdaMA, hdbio
hda:MatshitaDVD-ram LF-D521, ATAPI CD/DVD-ROM drive,
2048KB cach<4>hda:host side 80-write cable detection failed, limiting max speed to UDMA33
hda_codec:Unknown model for ALC882, trying auto-probe from BIOS...
Ok, let me know if I'm wrong.From this I can see that its not detecting any of my sata drives. I have 2 dvd drives installed and 1 HDD and its only detecting my IDE connector DVD drive not my HDD and DVD connected to my sata ports.
I tried the command "linux all_generic_ide" with no luck. Whats my next option? Is it the kernel thats not finding my drives? If so could load another kernel with the LFS cd?
It seems that you are only trying (parts) of what I suggest and don't do anything yourself:
Quote:
Originally Posted by Adol
I tried the command "linux all_generic_ide" with no luck.
Did you check the documentation I posted a link for in post #9? And can I assume you did check (and change?) your BIOS? Have you tried the PATA option?
Quote:
Originally Posted by Adol
Whats my next option?
Did you consider what I already wrote in post #9
Quote:
Originally Posted by druuna
You could re-install a minimal openSuse (or another distro) and use that as base for building LFS. Just make sure that you leave a partition free for LFS and that the chosen distro meets the lfs host requirements
Did you follow up on this hint I posted in post#9:
Quote:
Originally Posted by druuna
Searching for the Sata link down message gives a lot of (new and old) hits. Solutions range from devices that are not connected, (wrong) BIOS settings to adding boot options when starting the liveCD.
Seems to me you have a lot of things you can still try
I understand much more about linux now than when I first made this post.
The LFS boot cd doesnt load the correct module to support my sata chipset at startup. So I can't see my drives or use them without starting on another kernel or another distrobution.
I may try again going off of my Gentoo install to build a LSF system in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.