Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo journey (+ other problems)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Mon Oct 14, 2024 6:00 pm    Post subject: Installing Gentoo journey (+ other problems) Reply with quote

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
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1752
Location: Germany

PostPosted: Mon Oct 14, 2024 6:28 pm    Post subject: Reply with quote

Hello and welcome to the forums.

You need a bootloader: https://wiki.gentoo.org/wiki/Bootloader and configure it: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Mon Oct 14, 2024 8:03 pm    Post subject: Reply with quote

Thank you for the help :)
Back to top
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sat Oct 19, 2024 1:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Sat Oct 19, 2024 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sat Oct 19, 2024 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sun Oct 20, 2024 4:36 pm    Post subject: Reply with quote

Now after creating partitions again nvme0n1p5 is mounted to /run/media/<user>/<uuid>, why is that like it?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Sun Oct 20, 2024 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sun Oct 20, 2024 5:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sun Oct 20, 2024 8:34 pm    Post subject: Reply with quote

Installing Gentoo again as I speak, this time reading the Handbook.
Back to top
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Tue Oct 22, 2024 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Tue Oct 22, 2024 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Tue Oct 22, 2024 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Thu Oct 24, 2024 12:31 am    Post subject: Reply with quote

What do I do now?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Thu Oct 24, 2024 12:46 am    Post subject: Reply with quote

I do not use dracut, and cannot advise you on it. Perhaps someone else will help you.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 498

PostPosted: Thu Oct 24, 2024 8:47 am    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Thu Oct 24, 2024 3:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Fri Oct 25, 2024 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2733
Location: Here and Away Again

PostPosted: Fri Oct 25, 2024 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Fri Oct 25, 2024 9:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Fri Oct 25, 2024 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Fri Oct 25, 2024 10:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sat Oct 26, 2024 1:48 am    Post subject: Reply with quote

At this point I think I could have run fsck -a to fix.
Back to top
View user's profile Send private message
BluePy_251
n00b
n00b


Joined: 14 Oct 2024
Posts: 27
Location: Costa Rica

PostPosted: Sat Nov 02, 2024 3:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22705

PostPosted: Sat Nov 02, 2024 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum