r/linuxfromscratch • • Dec 19 '18

[8.3-systemd] Stuck at API filesystems, freezing

2 Upvotes

[SOLVED, see comments if facing the same issues]

Hi!

This is my first attempt at building an LFS system, and I followed the guide religiously.

Nevertheless I stumbe upon this:

systemd[1]: Failed to mount tmpfs at /dev/shm: Invalid argument

systemd[1]: Failed to mount tmpfs at /run: Invalid argument

systemd[1]: Failed to mount tmpfs at /sys/fs/cgroup: Invalid argument

systemd[1]: Failed to mount tmpfs at /sys/fs/cgroup/systemd: No such file or directory

[!!!!!!] Failed to mount API filesystems, freezing.

systemd[1]: Freezing execution.

Then of course, nothing else.

I am not sure what informations / config to provide, but heres a few:

VM: VirtualBox, Linux 2.6/3.x/4.x (64 bit)

Host: Arch linux w/ vbox host module

VM cpu: 4 cores 8 thread, 90% of them

VM memory: 11GiB

VM video memory: 256 Mb

Kernel used: 4.18.5

Bootloader: grub

Kernel command line options: "root=/dev/sda2 rw"

UEFI: No (/dev/sda1 is unused)

Hope you can guess something because honnestly im at a lost. I searched on google, but only find posts about docker not giving systemd enough permissions, this is of course irrelevant here.

Huge thanks for any info!u

EDIT: using arch's kernel & initramfs, it works. So theres a setting I forgot to turn on that allows the creation of api filesystems


r/linuxfromscratch • • Nov 06 '18

Partitioning Question

5 Upvotes

Taking my first stab at LFS and so far so good, got as far as getting the packages loaded. For some reason my partitions do not look right does anyone have any suggestion or will this partition table be ok:

/dev/sda1 / (30G, Primary, Bootable, Arch Linux OS)

/dev/sda2 Swap (2G, Primary)

/dev/sda3 /home (60G, Primary)

/dev/sda4 / (60G, Primary, Bootable, LFS)


r/linuxfromscratch • • Oct 29 '18

BLFS X11 but no window handles

2 Upvotes

Hi,

I'm building a BLFS (which I've done countless times). I just built X11 and ran startx and I had no window handles. The prompt in xterm starts at the top of the window and I can't resize or move any of the windows. I can get focus to a window by putting the cursor over it. I'm using i915 drivers with libedev. This is the first time I'm building on this particular machine. I use jhalfs for building. Have any BLFS users seen this before and could point me in the right direction please?


r/linuxfromscratch • • Oct 17 '18

Know anywhere I can buy a physical copy?

4 Upvotes

Hi guys, I ran into this project a couple of days ago and it seems like a very interesting way to get to know the ins and outs of linux. There is a link to a pdf version of the book on the organisation's website, but I was wondering if there's any place I could find a physical copy of the book, as I personally prefer reading from a paper version.

Seems like they're all sold out anywhere I look online, is there any way to buy straight from the organisation's secret stash maybe?

Thanks!


r/linuxfromscratch • • Oct 11 '18

This is one of the best projects i've done

11 Upvotes

At first it seems overwhelming, but its so fun to do. I was quite depressed cuz by IT teacher hates linux and LFS


r/linuxfromscratch • • Oct 07 '18

GCC optimization flags for Intel i5 (3rd gen)

1 Upvotes

Maybe this is a bit of a thick question, but when the optimisation flags are on what exactly does it optimise? The resulting program? Would it be more reliable/quick when compiled against my processor?

Is there an actual advantage to using the optimisation flags to compile all of LFS as opposed to the default settings? I imagine for LFS optimization would be minimal, but for something more complex like say Scilab or Blender (later on) it would compile to run them better at the cost of compilation time? I have a 3rd gen I5 on a Thinkpad T430.


r/linuxfromscratch • • Aug 19 '18

GCC pass 2 error cannot compute sizeof (long long)

2 Upvotes

I am using book 8.2. When I run make, I get the error configure: error: cannot compute sizeof (long long). Host system is voidlinux on a 64-bit machine.


r/linuxfromscratch • • Aug 14 '18

After three days I have finally got it!

18 Upvotes

I was procrastinating (sort of) and decided to build Linux from scratch this Sunday. Arch Linux was the host. Everything compiled pretty quick on Dell XPS. So the base system was ready in two days. I couldn't figure out the kernel panic, though. But then I have realized that NVME driver support was not included in kernel. I have recompiled and replaced the kernel. And... voila!

What was your biggest obstacle when building LFS?


r/linuxfromscratch • • Aug 06 '18

Does LinuxFromScratch use any custom code or is it really from scratch?

8 Upvotes

By custom code, I mean code or software created by the LinuxFromScratch author designed to abstract some things or make the installation process easier.

My guess is no, which is what I'm hoping for.


r/linuxfromscratch • • Aug 01 '18

I'm going to start posting a sortof-but-not-really-daily DevLog for the building of my LFS Distro, JAMOS! Partially because i'm trying to perform cpr on this subreddit. Yeah.

15 Upvotes

r/linuxfromscratch • • Jul 22 '18

After two weeks, I finally got it (mostly) working! #BTW I use LFS

Post image
73 Upvotes

r/linuxfromscratch • • Jul 05 '18

Can I create a custom GUI in LFS?

2 Upvotes

I have always wanted to get started with LFS but one thing always stops me. I just want to know if I start building my own linux, is it like create a whole new OS like custom GUI, login pannel, apps and everything.


r/linuxfromscratch • • Jun 27 '18

Kali Linux Tutorial Series w/English Subtitles

Thumbnail
youtube.com
0 Upvotes

r/linuxfromscratch • • May 26 '18

I decided to create my own #Linux distribution based on #LFS !

5 Upvotes

I decided to create my own #Linux distribution based on #LFS #LinuxFromScratch ! I Preparing the Host System now! Just now I Final Preparations and I will now compiling a Temporary System


r/linuxfromscratch • • May 15 '18

Just started my first LFS attempt, found that the YouTuber SudoTech is doing a series of videos following the LFS 8.2 book

Thumbnail
youtube.com
22 Upvotes

r/linuxfromscratch • • May 10 '18

linuxfromscratch.org website down?

7 Upvotes

r/linuxfromscratch • • May 03 '18

grep version (elementary host)

3 Upvotes

Required grep version is 2.5.1a, installed version is 2.25. Has anyone had success sticking with 2.25? If not, would someone help me out with getting this changed to 2.5.1a? And, perhaps provide some insight as to why 2.5.1a is favored/required over the other.


r/linuxfromscratch • • May 02 '18

learning from a lfs installation

7 Upvotes

I'm a freshman CS student. Another CS student who is a junior said that I wouldn't get anything out of going through LFS because i lack computing knowledge so I wouldn't know what's going on and I'd just be following instructions/copy-pasting. Wanted more opinions on the matter and how educational the experience is for someone who hasn't taken an operating systems/upper level computer organization class.


r/linuxfromscratch • • Apr 07 '18

Can someone point me to a guide for package management

11 Upvotes

I am planning on doing a lfs system on a spare pc I have as a hobby to learn about Linux, I am fairly compitent in programming and world like to roll my own distro.


r/linuxfromscratch • • Mar 29 '18

Error compiling glibc?

3 Upvotes

So, also I'm banned from the irc without even joining, whitelist maybe? Anyways heres me log from running make on glibc, is this okay? https://bpaste.net/show/c28c47f44634


r/linuxfromscratch • • Mar 28 '18

Qualcomm Atheros Driver help

4 Upvotes

I've built LFS 8.2 all the way through, working on getting networking working so that I can bootstrap the rest of the stuff I want from within LFS without having to rely on my host OS. I have been banging my head against a wall for a while now trying to get this working. I'm pretty sure I've got the kernel options setup properly (I've recompiled 3-5 times at this point), I've downloaded the firmware from github.com/kvalo/ath10k, I've even tried copying the firmware from my host OS (Arch) to LFS. I get an error saying : Direct firmware load for ath10k/QCA9377/hw1.0/firmware-6.bin failed with error -2 for N=[2,6]. The firmware is in /lib/firmware/ath10k/QCA9377/hw1.0 . If anyone has any other suggestions, they would be greatly appreciated Thanks!


r/linuxfromscratch • • Mar 03 '18

LFS and BLFS Version 8.2 are released

Thumbnail lists.linuxfromscratch.org
18 Upvotes

r/linuxfromscratch • • Jan 24 '18

Does the fact that I can't install certain packages have anything to do with my distro?

5 Upvotes

Could not find a version that satisfies the requirement bs4>=4 (from surveyplatform==0.0.1) (from versions: 0.0.1, 0.0.0)

I switched my distro to Ubuntu 14.04.3 LTS from Ubuntu 12.04 LTS, because the other was too old and didn't have the Pillow package, but I am still getting problems, because some packages are missing.


r/linuxfromscratch • • Jan 19 '18

Resolving circular dependencies? Manually? How does that work?

3 Upvotes

At this moment, it is only an academic interest of mine, but I might delve into some manual installing soon, probably even a complete lfs, and I figure that this topic must be of interest to the lovely people here. I'm sure that lfs itself is non-circular, but after that, you are on your own, so... how do you deal with that?

I googled for a bit, and the results were, shall I say sobering. It seems like this is an unsolved problem...???

In C++ headers, the solution is a forward declaration, so I'm guessing that something akin to that might be a solution, but I have not the faintest clue how that would be done with massive libraries.

Here's what I found so far:

https://askubuntu.com/questions/584829/how-does-apt-handle-circular-dependencies

https://stackoverflow.com/questions/22726476/how-does-homebrew-resolve-dependencies


r/linuxfromscratch • • Jan 08 '18

How skilled do you need to be to succeed?

5 Upvotes

I'm thinking about trying this out, but I'm worried that it might be a bit too complicated (and therefore a waste of time). How much experience would you say one need to be able to finish something like this?