No harm trying.
I was hoping you could work out why the tests fail, but lets just do it.
SUCCESS!!!Have Gentoo and LFS booting on separate drives, with Gentoo controlling grub and booting first.
LFS is booting on my Dell Inspiron 530 machine,with only 4GB of ram and a core2 CPU, so the skipping of the GCC-14.2.0 tests, had no issue for getting LFS to boot.
Now comes buiding BLFS!!!
Will try to get a photo of the boot menu screen!!!
Good on you. It was worth the try.
The tests may yet come back to haunt you.
Only 4Gb… I thought you purchased some more ram?
That was for my one of two Dell laptops!!!
Maybe!!! The only real problem I had was configuring the /etc/boot/grub/grub.cfg that LFS uses. cannot use grub-mkconfig, like Gentoo!!!
Does LFS use update-grub?
No! You install a /boot/grub/grub.cfg script and use vi /etc/boot/grub/grub.cfg to configure gru.cfg
You normally only edit those files if grub is having difficulty booting something.
After editing those files , I think you still need to do update-grub ( or mkconfig) to build the new /boot/grub/grub.cfg file.
Anyway, you got Gentoo grub setup to boot both itself and LFS.
I suppose for BLFS you work in LFS itself?
It is now independent.
No, LFS states, do not use grub-mkconfig, you edit the script and set, in my case with “HD0,1” for the /boot partition and “root=/dev/sda3 ro” for the / root partition, no update-grub or grub-mkconfig.
If you look close, you can see LFS!!!
Both drives wii boot on their own.
Yes I can see an LFS boot and an LFS recovery.
Both drives will boot? … you mean the internal disk and the USB? That means you have grub on both drives.
Did you edit /etc/boot/grub/grub.cfg in LFS?.. Yes that makes sense… Gentoo does not have that directory.
So LFS must configure grub differently to Gentoo… Gentoo has /boot/grub/grub.cfg and if you edit that it is temporary… disappears at boot. It is in /boot so it is visible at startup time before / is mounted. I wonder how LFS gets on with it in /etc/boot?
No USB boot, both are internal HDD drives I had laying around catching dust
Yes, with vi!!! Had it wrong when I first booted LFS!!! Installed the drive that has Gento and a grub-mkconfig found the vmlinu and the LFS root partition and I was able to boot back into LFS and correct the grub.cfg file.
LFS is lot harder to learn and work with than Gentoo ever was.
Congratulations! Now we’ll see how the BLFS will be. What’s your plan? Desktop with a window manager?
I wonder why LFS puts grub.cfg in /etc/boot?
It is normally in /boot
I wonder if your edits will persist after an update? Or doesnt LFS have updates?
Well done. You needed that.
It isn’t, only the config script!!!
From what I read, you can update individual packages or just compile a new version of LFS!!!
Do you think I could mount LFS from Gentoo and use chroot for icompiling
Got the LFS internet working and am able to ping google and gentoo!!!
Not real sure on how to proceed with BLFS, right now it boots to a bash CLI prompt, I am hoping I can use Gentoo and chroot and mount LFS from Gentoo.
Can one ssh from one drive to the other, on the same PC!!!
You can only ssh into a running OS.
I think what you want is a mount of the LFS partition onto a Gentoo mount point… then you can see the LFS filesystem from Gentoo. Right?
I would use Neville’s approach and mount LFS when on Gentoo.
Then I use chroot?
Like this?
Do I need to mount all the partitions or just LFS /root?
Do you think I could use Ubuntu to ssh into LFS?
From another machine , yes.
LFS would need
- networking set up
- sshd running
Ubuntu would need
- networking set up
- ssh client
Mount LFS root filesystem in Gentoo
Use chroot
Mount any other LFS filesystems in the chroot
Use ch
@nevj
I have an issue with my /dev/sdb drive that is running Gentoo!!! Did the fsck and it advised running the e2fsck -b 32768 /dev/sdb and this is the results!!
"
e2fsck 1.47.1 (20-May-2024)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193
or
e2fsck -b 32768
/dev/sdb contains `DOS/MBR boot sector’ data
livecd /home/gentoo # e2fsck /dev/sdb1
e2fsck 1.47.1 (20-May-2024)
/dev/sdb1: clean, 383/128016 files, 101658/512000 blocks
Although the drive work, but it will not show any mounted partitions
but it still boots from sdb1 /boot any thoughts!!!
This is the drive and partitions!!!