Questions tagged [lfs]

(LFS) - Linux From Scratch is a Linux distribution that you build from source (scratch) piece by piece.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Auto detect network interface card, network init.d

I have build my LFS linux that based in this book, it's working fine and network interface card is working. Even it's configuring IP automatically with using dhcpcd service. According chapter 9 in ...
user avatar
0 votes
0 answers
19 views

Linux From Scratch/LFS 11.0 Systemd kernel boots to black screen

I have a new build of LFS 11.0-systemd on a bare metal Thinkpad X250. Everything is compiled and setup with Fedora 36 as the host system. I'm using BIOS boot mode. The system boots to GRUB, but when I ...
user avatar
0 votes
1 answer
31 views

annoying clocksource alert/warning in bash prompt periodically

So I just build LFS system and it's working fine, but the annoying part is there's alert that every periode show like every 3 second. It said root@LFS:# clocksource: timekeeping watchdog on CPU0: ...
user avatar
0 votes
0 answers
11 views

Kernel Panic: VFS cannot open root device or unknown block - Linux - LFS 11.0

First of all I understand there are many similar questions had been asked on many forms but those all are really not helping in my case. I'm using Ubuntu 20 on vmware workstation. in that vmware I ...
user avatar
-1 votes
0 answers
21 views

do i have less packages available on Gentoo or LFS [closed]

I am currently using arch linux. i am thinking about moving to gentoo or lfs but i am not sure. i feel like the application available on this distros are limited and there isn't much guides comparing ...
user avatar
0 votes
1 answer
22 views

Perform backup (and restore) from my current LFS (Linux From Scratch) progress with dd command

I have my LFS proyek, currently I'm in chapter 10 so far according this book https://www.linuxfromscratch.org/lfs/view/stable/chapter10/grub.html . I want to perform backup of my LFS progress so if ...
user avatar
0 votes
2 answers
51 views

checking whether the C compiler works... no

I'm trying to build Linux From Scratch (LFS) I'm just following this books https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html I have this error after I run ./configure in eudev ...
user avatar
0 votes
0 answers
27 views

Make a virtualbox hard drive from virtual block device

I'm trying to create LFS (linux from scratch) but copying to usb is so slow so I created a virtual disk file of 3GB using created partition and formatted to ext4. sudo dd if=/dev/zero of=./lfs.img bs=...
user avatar
  • 108
0 votes
0 answers
15 views

Which script for LFS with runit? (there are two)

Building LFS with runit here, i came across two different scripts for installing and configuring LFS with runit. The first one is in the official hints repository and the other one is independent, ...
user avatar
  • 1
0 votes
0 answers
14 views

Can I build CLFS with runit?

I wanted to ask if its possible to use runit with CLFS, im aware there is a git repo for LFS with runit, but im not sure if its the same process to do so.
user avatar
  • 1
0 votes
1 answer
51 views

Linux From Scratch 11 can not verify any SSL certificates

I have built an LFS 11.0 system and installed wget from the BLFS book. I also have openssl and gnutls installed, but whenever do wget for a site with ssl, it says it can't verify the cert. It does ...
user avatar
1 vote
1 answer
69 views

Install GRUB on LFS USB drive

I have built a Linux From Scratch system onto a flash drive with the kernel and everything. When I boot into it via the GRUB instance on the host computer's hard drive, it works fine. I would like to ...
user avatar
0 votes
0 answers
80 views

LFS Chapter 3.1 zsh: command not found: wget

Hi I am making LFS on Black Arch VM. I am currently at Chapter 3.1 I ran command wget https://www.linuxfromscratch.org/lfs/view/11.0/wget-list But I got error zsh: command not found: wget. I run ...
user avatar
1 vote
1 answer
164 views

Kernel cannot find init

I am learning to build a linux from scratch systemd edition, following the instructions at https://www.linuxfromscratch.org/lfs/view/stable-systemd/index.html on VirtualBox 6.1 but when I was booting ...
user avatar
  • 21
0 votes
0 answers
69 views

LFS 3.1 Prepare binutils for compilation

I am currently at chapter 5 in LFS guide and I am trying to prepare binutils for compilation. I ran : make install -j1 And it gave me output: lfs:/mnt/lfs/sources/binutils-2.37/build$ ls -l /mnt/lfs ...
user avatar
0 votes
1 answer
48 views

LFS chapter 5.2. Binutils-2.37 problem

Hi I am currently making LFS and I am in Chapter 5.2. And I am trying to run this command lfs:/mnt/lfs/sources$ tar -xvf binutils-2.36.1.tar.xz But it gave me the following output: tar: binutils-2.36....
user avatar
0 votes
0 answers
29 views

Chapter 3 Packages and patches virtual box problems

I am making LFS I am curently at packages and patches. I ran command pushd $LFS/sources md5sum -c md5sums popd and it gave me pushd $LFS/sources md5sum -c md5sums popd /sources /sources acl-2.3.1....
user avatar
0 votes
1 answer
50 views

How to create mkfs for LFS? [closed]

I am trying to run following command mkfs -v -t ext4 /dev/sda1 to create file system but I got an output /dev/sda1 is apparently in use by the system; will not make a filesystem here!. How can I ...
user avatar
0 votes
0 answers
240 views

Glibc 2.34 cross-compiling issue for aarch64 on x86_64

aarch64-linux-gnueabihf-gcc ../sysdeps/gnu/getutmpx.c -c -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -...
user avatar
  • 101
0 votes
0 answers
42 views

How to create a LFS LiveCD?

I wanna make a complete Linux distro using LFS, but i'm struggling to find how I can build a LiveCD and export it to other people
user avatar
-1 votes
2 answers
44 views

reliable way to find added/modified files by make install

i was about to ask this question yesterday and when i hit the review button, the "similar questions" window has been modified to show me this one: How to find out which files get installed ...
user avatar
0 votes
1 answer
316 views

When configuring Glibc prior to compiling it I recieve an error concerning kernel headers telling me to use "--with-headers"

I am using the latest stable Linux from Scratch book version. In Step 5.5.1, when configuring Glibc I run the provided script, and receive an error telling me to use the --with-headers configure ...
user avatar
  • 45
0 votes
0 answers
409 views

Fix too many levels of symbolic links. Linux from scratch

I was trying to follow the Linux from scratch book but I'm having trouble compiling glibc, I think this is related to the problem I'm having with the tools directory. On one part of the book, I was ...
user avatar
0 votes
0 answers
47 views

Can I use an extra 'etc' folder inside /usr in linux?

I'm experimenting with linux from scratch. I'm using stow to install extra packages into /usr/local/stow/. I'm using the command stow <package dir> -t /usr which symlinks everythin to /usr/bin, /...
user avatar
1 vote
1 answer
153 views

I am building an LFS system for the first time. Should the Grub Bios Partition be primary or extended?

I'd assume it would be primary, but I'd prefer to be sure before beginning. Many thanks in advance.
user avatar
  • 45
0 votes
0 answers
78 views

How to configure LFS for multilib support?

I managed to install FLS pure 64-bit, but i want to "upgrade it" so it supports 32-bit also. I don't want to build LFS from ground up again. Is there a way to install multilib support on an ...
user avatar
1 vote
1 answer
148 views

LFS GCC-10.2.0 Pass 2 Fails with source-code error in crtstuff.c

When I'm trying to run Chapter 6.18 of the LFS (with systemd) book, make fails because in the file crtstuff.c, line 695, there is an undefined reference to __CTOR_END__. This seems like some sort of g+...
user avatar
0 votes
1 answer
25 views

What are you supposed to do for "pass 2" sections in LFS

I'm trying to build an LFS system but I've hit a roadbloack, what am I supposed to do for the 2nd passes. I thought maybe I had to re-untar again then compile their but that didn't make a new ...
user avatar
0 votes
1 answer
118 views

compiling bash doesn't work, LFS

I have been following the instructions of the LFS manual so far but have come to an error when making bash, I ran make in the bash-5.1 folder but it displayed an error at the end of the command output:...
user avatar
0 votes
1 answer
84 views

How can we alter the Linux file system hierarchy to something that's mine?

I am building LFS & for some non-obvious reasons, I wanted to modify the file structure as MacOS has. For example: All libraries are in one directory All headers are in one directory All binaries ...
user avatar
  • 5
0 votes
1 answer
23 views

Alsa-lib kernel options

I'm installing Qt to install KDE on my VMware LFS virtual machine. The BLFS guide says to do some kernel configurations appropriate for the hardware, but I don't know what things should I enable and ...
user avatar
  • 113
0 votes
1 answer
137 views

cfdisk showing more than 4 partitions

I was trying to make a swap partition, but an error message came saying Primary Partition Not Available I checked the internet and found out there can't be more than 4 partitions because Linux only ...
user avatar
0 votes
1 answer
69 views

Why can't I view any available networks in linux

I use a custom built Linux distro. When I try to enable wifi I cannot view any existing networks. My wifi card is Intel Wifi link 5100 and the output of lspci -vv is Subsystem: Intel Corporation WiFi ...
user avatar
1 vote
0 answers
169 views

Linux from scratch moving from VirtualBox to USB drive

I have successfully created Linux from Scratch based distribution in VirtualBox. I have dynamically allocated storage of max size 64 GB, with less than 7 GB space used in the .vdi file, and I want to ...
user avatar
  • 39
1 vote
1 answer
882 views

Keyboard & mouse not responding in X11 / XWindows

I’ve built a Linux from Scratch (LFS) instance. It is based on version 10 of LFS, it is SystemV based. I’ve been working on getting XWindows working. When I run the xinit or startx, XWindows displays ...
user avatar
  • 13
1 vote
0 answers
76 views

No WIFI in BLFS 8.4

I have built the BLFS 8.4 but WIFI doesn't work on it. The boot gives an error message Starting wpa_supplicant on the wlan0 interface...Could not read interface wlan0 flags: No such device Could not ...
user avatar
0 votes
1 answer
45 views

Tar up the whole BLFS system

I have successfully installed BLFS 8.4 and now I want to transfer it to another machine. Would it work if I tar up the whole BLFS system and then untar it on an empty partition on another machine? If ...
user avatar
1 vote
2 answers
232 views

Is there any package manager for BLFS?

I have successfully installed BLFS 8.4 and now I want to install a package manager to keep my system up to date. I want to know if it's possible and how.
user avatar
0 votes
0 answers
51 views

How to make an iso of BLFS 8.4 to distribute

I have successfully created BLFS 8.4 and now I want to make its iso file so that I can transfer it to my other laptop like any other Linux distribution such as Ubuntu, Mint, Manjaro, etc. is installed ...
user avatar
1 vote
1 answer
177 views

No sound in LFS

I'm trying to install BLFS 8.4 I have successfully installed alsa-lib and alsa-utilities, the alsa-mixer also works fine. My sound card is "HDA Intel". speaker-test also works but gives an ...
user avatar
0 votes
0 answers
35 views

Optional packages in LFS ( do I need to install a package again after I install an optional package later? )

I am building BLFS 8.4 If I install an optional package later, then do I need to install all the previous packages again so that they can take the benefit of the optional package?
user avatar
0 votes
1 answer
44 views

Error while installing slang-2.3.2

Error while installing slang-2.3.2 I am trying to build BLFS 8.4 An error occurs while installing slang. This is the configuration, make and installing script: ./configure --prefix=/usr \ -...
user avatar
1 vote
1 answer
578 views

configure: error: libmpfr not found or uses a different ABI (including static vs shared)

Heyo all, I've recently been working on a small side project regarding a custom Linux distro, not with the LFS instructions. Currently, I'm compiling a cross-compiler for gcc. Anyways, I get this ...
user avatar
  • 367
1 vote
2 answers
85 views

Packages cannot locate QT5 (BLFS 8.4)

I'm trying to install BLFS 8.4 I've installed QT5 but somehow other packages that need QT5 cannot find it. E.g. while installing highlight, after the command make gui, it says qmake command not found. ...
user avatar
0 votes
1 answer
143 views

Unable to build Apache-ant-1.10.5

I'm trying to build BLFS 8.4 An error occurs when trying to download the runtime dependencies using the fetch.xml ant build script: bootstrap/bin/ant -f fetch.xml -Ddest=optional Error: BUILD FAILED /...
user avatar
0 votes
1 answer
58 views

CLASSPATH error while configuring JAVA Environment (Java Development Kit)

After installing JAVA(JDK) whenever I reboot the system or switch to normal user a message is displayed: bash: ${AUTO_CLASSPATH_DIR}: invalid variable name bash: ${AUTO_CLASSPATH_DIR}: invalid ...
user avatar
0 votes
1 answer
46 views

Installing Packages From Source

I have been trying different Linux distributions lately to learn as much as about Linux. Lately, I have encountered with installing packages from source while trying to learn about the core elements ...
user avatar
1 vote
1 answer
113 views

How do I make chroot run a command?

I have a problem with compiling an LFS system on Linux Mint 20 with Cinnamon. My problem is that when I get to the (third?) pass of Glibc, chroot doesn't let me run any commands, telling me that they ...
user avatar
1 vote
0 answers
251 views

I cannot access XFCE when launched via LightDM

As a personal project I decided to start building a Linux From Scratch (System V Edition, 9.1) on a virtual machine. Everything went out correctly until the moment of entering the system through ...
user avatar
  • 11
0 votes
1 answer
433 views

`chown -Rv tester .` will not change ownership of files

The process keeps saying retained as root when I run chown -Rv tester . How do I make file ownership switch from root to tester? (lfs chroot) root:/sources/gcc-10.2.0/build# chown -Rv tester . 2>&...
user avatar