View previous topic :: View next topic |
Author |
Message |
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Mon Oct 14, 2024 6:00 pm Post subject: Installing Gentoo journey (+ other problems) |
|
|
I want to dual boot Gentoo with Arch, how can I dual boot?
Context: I want to install Gentoo and dual boot it with Arch, so I need help to see how can I do it.
Last edited by BluePy_251 on Sat Nov 02, 2024 3:08 pm; edited 1 time in total |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1786 Location: Germany
|
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Mon Oct 14, 2024 8:03 pm Post subject: |
|
|
Thank you for the help |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sat Oct 19, 2024 1:52 pm Post subject: |
|
|
I installed yesterday, today I wake up to see that I couldn't boot it, and to my surprise, I had created /mnt/gentoo on my Arch partition, not on the desired Gentoo one, so I guess Arch auto-deleted all /mnt/gentoo files, because the directory was completely empty, idk if it was the guide I followed or smth, but I'm so confused because I even got a screenshot of a fastfetch done alongside Arch (since you can apparently use any OS to install) |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Sat Oct 19, 2024 2:26 pm Post subject: |
|
|
If you used /mnt/gentoo as a mountpoint yesterday, and did not mount it today, then yes, it would be empty today, even if your files are intact. What is the output of blkid? On what partition did you create the root filesystem for Gentoo? |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sat Oct 19, 2024 4:26 pm Post subject: |
|
|
The supposed partition was dev/nvme0n1p5, but /mnt/gentoo was in nvme0n1p3, also blkid won't help because I stupidly removed the partitions. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sun Oct 20, 2024 4:36 pm Post subject: |
|
|
Now after creating partitions again nvme0n1p5 is mounted to /run/media/<user>/<uuid>, why is that like it? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Sun Oct 20, 2024 4:42 pm Post subject: |
|
|
Are you asking about a behavior observed in the Arch Linux you used for the install, or observed in the resulting Gentoo install? /run/media is typically used by desktop environments that are trying to be "helpful." |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sun Oct 20, 2024 5:02 pm Post subject: |
|
|
Gentoo was removed, so it was Arch after creating with gparted, so I will just unmount it because I mounted it again to /mnt/gentoo, but, does it matter where /mnt/gentoo is? |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sun Oct 20, 2024 8:34 pm Post subject: |
|
|
Installing Gentoo again as I speak, this time reading the Handbook. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Tue Oct 22, 2024 12:02 am Post subject: |
|
|
Nevermind, installation failed again, this time the initramfs didn't work, and I even enabled the flag in the file it said on the Handbook, and my battery died (unrelated but true), so, should I install it on the official ISO or should I just try again? Because my system started failing aftert removing the Gentoo partitions, even though I fixed it, it wasn't pleasant. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Tue Oct 22, 2024 12:50 am Post subject: |
|
|
I recommend against running on battery while trying to install Gentoo. The time requirement will vary with your experience level and choices, but if you have many packages build from source, the demand on the battery could be significant.
Installing from Arch should be fine. If it was going to be a problem, it would have been apparent quite early on. Beyond that general bit of commentary, the best I can offer is that if you need help, you need to give us something with which we can work. Right now, your posts are too vague for us to understand what you did or what has gone wrong. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Tue Oct 22, 2024 7:11 pm Post subject: |
|
|
Ok, so one, Arch, whenever I tried to run the dracut command myself, for some reason it would ALWAYS connect it to my Arch system's kernel,.second, my system started failing when I messed up my fstab (fixed by just re-running from emergency mode), and when I deleted the partitions to start again another day(same solution) so, to avoid having those problems, I think installing from Arch won't happen again. Also, where should I put the dracut flag so it can actually run an initramfs while compiling? |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Thu Oct 24, 2024 12:31 am Post subject: |
|
|
What do I do now? |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Thu Oct 24, 2024 12:46 am Post subject: |
|
|
I do not use dracut, and cannot advise you on it. Perhaps someone else will help you. |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 506
|
Posted: Thu Oct 24, 2024 8:47 am Post subject: |
|
|
BluePy_251 wrote: | Ok, so one, Arch, whenever I tried to run the dracut command myself, for some reason it would ALWAYS connect it to my Arch system's kernel,.second, my system started failing when I messed up my fstab (fixed by just re-running from emergency mode), and when I deleted the partitions to start again another day(same solution) so, to avoid having those problems, I think installing from Arch won't happen again. |
Without information it is not possible to help. Please describe your disk layout and the different mountpoints for the different installed systems.
What does "dracut connect it to your Arch system's kernel" mean? Do you share a partition between Arch and Gentoo? If so, why do you think that this is a good idea?
Did you chroot into Gentoo before generating the initramfs?
Which fstab did you mess up? The fstab from the live system, from the installed Arch Linux or from Gentoo?
Restarting an installation and doing the same mistakes again will lead to the same problems again.
BluePy_251 wrote: | Also, where should I put the dracut flag so it can actually run an initramfs while compiling? |
Set USE=dracut for sys-kernel/installkernel. Depending on your bootloader, you might add also other flags. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Thu Oct 24, 2024 3:57 pm Post subject: |
|
|
It would use my Arch Linux's kernel instead of the Gentoo one even on a chroot, no, they don't share any partitions (other than the swap), and it was my Arch fstab, and thanks.
Also, I got the LiveGUI to install it from there, so hopefully, it won't actually use any other kernel other than its own. Man, have I had a ride with Gentoo that has taught me a lot.
My mount points:
/mnt - Arch on /dev/nvme0n1p3, boot is nvme0n1p1
/mnt/gentoo - Future Gentoo install on nvme0n1p5, boot is nvme0n1p4
The formats:
0n1p1/4 - fat32
0n1p3 - ext4
0n1p5 - btrfs
0n1p2 - swap |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Fri Oct 25, 2024 9:10 pm Post subject: |
|
|
And again... And this time it somehow deleted my whole disk, losing lots of important files in the process ehile trying to delete /mnt/gentoo, man, I am so confused right now
Edit: nvm, thing was still there, but damage was irreversible, so there goes 6 months of hard work.
Last edited by BluePy_251 on Fri Oct 25, 2024 9:27 pm; edited 1 time in total |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2739 Location: Here and Away Again
|
Posted: Fri Oct 25, 2024 9:22 pm Post subject: |
|
|
BluePy_251 wrote: | And again... And this time it somehow deleted my whole disk, losing lots of important files in the process ehile trying to delete /mnt/gentoo, man, I am so confused right now |
While still fresh in memory perhaps, what exactly did you do?
If possible, share the exact commands executed, and steps that you went through. _________________ Kindest of regardses. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Fri Oct 25, 2024 9:30 pm Post subject: |
|
|
I deleted nvme0n1p4, then tried unmount nvme0n1p5, fails because mountpoint is busy, then I try removing the directory, fails witha giant error log, then I reboot to find I couldn't boot to anything, then I download Arch and put it into a USB using another machine, then I see my filesystem was intact, so I chroot into it, hoping to restore it, only to find I couldn't run grub-mkconfig, nor pacman -Syu without errors, meaning it was unsaveable. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Fri Oct 25, 2024 9:39 pm Post subject: |
|
|
If you have more details than you have shared, we might be able to fix this. Otherwise, I would refer you to your most recent backup.
What exactly did you do to "delete" nvme0n1p4? I can think of a few interpretations of that statement, with varying degrees of destructiveness.
In general, I would reiterate Chiitoo's hint: make note of, and show us, the exact commands you ran. Summarizing your actions makes it hard for us to understand what you did, and if we do not know what you did, then it is hard for us to identify what you did wrong. I also suggest that, when next you find yourself in a hole, you stop digging and seek help. Making further changes just increases the chance you will do irreparable damage while trying to correct the prior mistake. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Fri Oct 25, 2024 10:04 pm Post subject: |
|
|
Ok, so I used gparted to unmount and delete, because it was the meaningless boot partition for Gentoo, so I try to do the same with the root partition, it fails because it's mountpoint was busy, so I try deleting the directory using the terminal, it fails saying that it couldn't remove the directory with a very verbose output stating all directories which couldn't be removed. Then I reboot to see what I could do with the Arch system, only to see the ominous screen: Please install an operating system on your computer. So I download Arch into a USB, then, I check with chroot after seeing with cfdisk that the partitions were fine, but grub-mkconfig fails saying something I can't quite remember, then I try running pacman -Syu, only to see it had failed due to "insufficient disk space", when it wasn't even close to full, so I gave up because of all the stress the one thing that caused my mistake did.
So, dracut always complained about not finding the modules, and even after minutes of research I still couldn't find how to set those up. So I just had a small mental breakdown and I rage quit the installation, because of dracut complaining. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sat Oct 26, 2024 1:48 am Post subject: |
|
|
At this point I think I could have run fsck -a to fix. |
|
Back to top |
|
|
BluePy_251 n00b
Joined: 14 Oct 2024 Posts: 28 Location: Costa Rica
|
Posted: Sat Nov 02, 2024 3:02 pm Post subject: |
|
|
I think I might have the answer to my module problem. Do you have to write or do something with usr/src/linux? If so, what? Because most of the time emerge would complain about something not being in said directory. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22806
|
Posted: Sat Nov 02, 2024 3:51 pm Post subject: |
|
|
fsck should only be used in specific circumstances, and nothing you wrote here leads me to believe that fsck would have been appropriate. If I had to guess from the very limited information you provided, I would say that you removed the wrong partition or recreated a partition incorrectly, resulting in the filesystem metadata not being found.
As for your module problem, there are a small number of ebuilds that require a previously configured kernel to be present. If you tried to merge one of those without a configured kernel, then I think a diagnostic would be expected. Per Guidelines item #4, please show us exactly what you did that caused emerge to generate the message about which you want help, and the full text that you were shown. |
|
Back to top |
|
|
|