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
0 answers
83 views

LFS libstdc failed - make: *** No targets specified and no makefile found. Stop

I am on chapter 5 of LFS. I am trying to compile LibSTDC. After cd'ing into the build directory I created and running: ../libstdc++-v3/configure \ --host=$LFS_TGT \ --build=$(../config.guess) \ --...
lfsthrowaway's user avatar
0 votes
1 answer
290 views

LFS Chapter 5.5 - Installing Glibc - cannot find /lib64/ld-linux-x86-64.so.2 inside /mnt/lfs

For some background, everything related to LFS has worked so far. After make-installing glibc, I ran these commands to sanity check: echo 'int main(){}' | $LFS_TGT-gcc -xc - readelf -l a.out | grep ld-...
lfsthrowaway's user avatar
0 votes
1 answer
291 views

Grub Install x86_64-efi doesn't exist - LFS

I've been following along with the stable systemd Linux from Scratch and have got to the final chapter where we configure grub to make the system bootable. So I've run grub-install /dev/sda1 (/dev/...
ScottishTapWater's user avatar
0 votes
0 answers
20 views

Beyond Linux from scratch 11.3 p11-kit not installing using Freebl library

I am going through the BLFS manual. I installed p11-kit-0.24.1 successfully. I then went on to install NSS-3.88.1 also successfully. When I went back to install p11-kit to make use of NSS, ninja ...
jrima12's user avatar
0 votes
0 answers
100 views

Generate ISO based on LFS image disk file

After finish building a LFS system, installed on a IMG file (system.img) and being able to run the system with qemu with the command: qemu-system-x86_64 -hda system.img -vga std -m 4G I want now ...
Kleber Mota's user avatar
3 votes
1 answer
14k views

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)

I have created a image file with this commands: dd if=/dev/zero of=linux.img bs=16M count=1024 cfdisk linux.img mkfs.ext4 linux.img and installed a linux system following the instructions from the ...
Kleber Mota's user avatar
0 votes
0 answers
117 views

rtw8822 firware does not load for custom kernel

Hi I am building Linux From Scratch, I managed to get a working linux! but now I cannot get wlan0 working. When I boot ubuntu I can see the wifi is rtw8822be, so I enabled it in .config, recompiled ...
exebook's user avatar
  • 194
2 votes
1 answer
74 views

Bash stopped working after touching some files, can I recover from it? (LFS)

I am doing as a project for my university; the first phase is to build LFS with some extras; the last requirement I have to meet is to show the prompt, and there I found that I still had to do all the ...
Joan Casals's user avatar
1 vote
1 answer
604 views

Unable to mount root filesystem in LFS

Lately, I've been building an LFS [Linux From Scratch] system for my Raspberry Pi Single Board Computer, and I'm currently on the very last step. I'm attempting to compile Linux 5.19.2 from the ...
rando's user avatar
  • 101
0 votes
1 answer
578 views

Black screen when loading linux kernel on laptop

I built the linux kernel in LFS and grub works, but when I load the linux kernel the screen just becomes black and nothing happens after that. What should I do? Im on a laptop btw if that matters. ...
IPmanfkawde's user avatar
1 vote
1 answer
248 views

EFI won't load linux kernel in LFS

Lately, I've been building an LFS [Linux From Scratch] system for my Raspberry Pi Single Board Computer, and I'm currently on the very last step. I'm attempting to compile Linux 5.15 from the ...
rando's user avatar
  • 101
0 votes
1 answer
690 views

Why pass "--prefix=/usr" to configure scripts in Linux from Scratch builds?

Why in Linux from scratch they are passing --prefix=/usr to configure scripts? For example here is the glibc configure script ../configure \ --prefix=/usr ...
IPmanfkawde's user avatar
1 vote
0 answers
97 views

Testing gcc command in Linux From Scratch?

Linux From Scratch tells me to run these commands to test that the new toolchain is working: echo 'int main(){}' | gcc -xc - readelf -l a.out | grep ld-linux So since I am testing the new toolchain, ...
IPmanfkawde's user avatar
3 votes
2 answers
142 views

How are binary packages isolated from host system?

How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to different libs depending on what exists on the host system? In the LFS project, to isolate the new ...
C. Lang's user avatar
  • 133
1 vote
0 answers
126 views

Reinstalling Windows 11 after LFS 11.2 has been built

I have my Product ID ready at hand. So, how would I install Windows 11 Home after I build LFS 11.2? I haven't started building yet... since I needed to be prepared for installing Windows 11 without ...
Aarav Gupta's user avatar
0 votes
0 answers
773 views

Segmentation Fault when entering chroot for LFS

I have been compiling an LFS [Linux From Scratch] operating system, and thus far there were no errors. However, when I was compiling the Linux Kernel, I accidentally tripped on the power cord to my PC ...
rando's user avatar
  • 101
0 votes
1 answer
64 views

Error with Systemd in LFS

LFS version: 11.0-systemd Host: Ubuntu20.04 Chapter in which the problem occurred: 9.5 Commands executed: timedatectl set-local-rtc 1 Error log: System has not been booted with systemd as init system (...
Anzu's user avatar
  • 1
0 votes
1 answer
5k views

GRUB2: error: disk `(hd0,)' not found

I had almost finished Linux From Scratch ; However, when I tried to started the new LFS system. GRUB couldn't launch the system: error: disk `(hd0,)' not found. Then I used grub> ls Output: (hd0) ...
user avatar
0 votes
0 answers
354 views

Linux from Scratch 11.1 Systemd edition: ERROR: Dependency "mount" not found, tried pkgconfig

So when I tried to install systemd-250 with LFS 11.1 systemd edition, it threw an error. Not much I can give, except the logs, and the fact that when I typed in the 'mount' command in the LFS chroot, ...
Aarav Gupta's user avatar
0 votes
0 answers
276 views

Linux from Scratch - readline-8.1.2 throwing an error

I was on my way with installing Linux from Scratch, when I was told to compile and install readline-8.1.2, in chapter 8.11, in LFS 11.1 systemd edition. I then went and got some old versions of ...
Aarav Gupta's user avatar
0 votes
1 answer
346 views

Sfdisk NVME issue, No such device or address

I have custom LFS installer which contains sfdisk, I am trying to add support for NVME disks on it. When I make partitions with sfdisk on a normal SATA disk, things go as expected but when I do the ...
Bart's user avatar
  • 101
1 vote
1 answer
127 views

Has the Debian kernel been modified and Linux From Scratch FAQ not been updated?

I was building an LFS (Linux From Scratch) system, and up until now, there have been absolutely no errors. However, when installing the "expect" package, make test errored out with:The ...
rando's user avatar
  • 101
0 votes
2 answers
464 views

How to Create ISO / Installation Image from Our Own LFS(Linux From Scratch) Operating System in Qemu? I want to Make my Qemu.qcow2 image my Host OS

I want to ask how to create an ISO, my OS is made with LFS 11.0 System V and I install it in Qemu. My Host OS is CAELinux. The main concern is: Is it possible to move the LFS OS installed in Qemu to ...
Freya the Goddess's user avatar
0 votes
1 answer
522 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 ...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
550 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 ...
pants_towel's user avatar
0 votes
1 answer
831 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: ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
919 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 ...
Mohit Swami's user avatar
0 votes
1 answer
144 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 ...
Muhammad Ikhwan Perwira's user avatar
0 votes
2 answers
12k 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 ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
224 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=...
Vaibhav.c's user avatar
  • 133
0 votes
1 answer
460 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 ...
Matthias Lee's user avatar
1 vote
1 answer
312 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 ...
Matthias Lee's user avatar
0 votes
0 answers
188 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 ...
Leviathan's user avatar
  • 113
1 vote
1 answer
1k 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 ...
luanphm's user avatar
  • 21
0 votes
1 answer
157 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....
Leviathan's user avatar
0 votes
0 answers
65 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....
Leviathan's user avatar
0 votes
1 answer
134 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 ...
Leviathan's user avatar
  • 113
0 votes
0 answers
932 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 -...
James's user avatar
  • 101
-1 votes
2 answers
234 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 ...
diggusbickus's user avatar
0 votes
1 answer
961 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 ...
Lukas's user avatar
  • 47
0 votes
0 answers
121 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, /...
Jonathan Wick's user avatar
1 vote
1 answer
378 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.
Lukas's user avatar
  • 47
0 votes
0 answers
153 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 ...
George Rabus's user avatar
1 vote
1 answer
472 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+...
Alexander P's user avatar
0 votes
1 answer
49 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 ...
Seb Ebse's user avatar
0 votes
1 answer
231 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:...
Seb Ebse's user avatar
0 votes
1 answer
237 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 ...
Hunny's user avatar
  • 5
0 votes
1 answer
44 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 ...
mswgen's user avatar
  • 113
0 votes
1 answer
394 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 ...
Abu Bakar Toha's user avatar
0 votes
1 answer
191 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 ...
Sai Maanas music's user avatar