View previous topic :: View next topic |
Author |
Message |
IncognitoBurrito n00b
Joined: 21 Jul 2024 Posts: 5
|
Posted: Sun Jul 21, 2024 5:34 am Post subject: error: attempt to read or write outside of partition |
|
|
So I've done this twice now. Initially installed gentoo and everything was fine, then installed the nvidia-drivers and started getting https://ibb.co/L5npxwx right before the grub menu (everything still works fine and loads). So I thought I messed something up and reinstalled grub and initramfs like 100x. Rebuilt again without nvidia drivers this time and reinstalled grub and initramfs and it worked. Went back again and redid, and it showed up again Any ideas? |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Tue Jul 23, 2024 3:05 am Post subject: how |
|
|
How are you installing grub, kernel, nvidia-drivers?
Please provide the basic info:
- emerge --info
- emerge -pv grub nvidia-drivers
- emerge -pv (your kernel package - gentoo-sources or gentoo-kernel or gentoo-kernel-bin etc)
|
|
Back to top |
|
|
sitquietly Apprentice
Joined: 23 Oct 2010 Posts: 150 Location: On the Wolf River, Tennessee
|
Posted: Tue Jul 23, 2024 4:37 am Post subject: Re: error: attempt to read or write outside of partition |
|
|
IncognitoBurrito wrote: | ... Any ideas? |
I had this error message show up on my systems recently to great frustration because like you I thought something had corrupted my partition table or boot code. I saw a mention somewhere (?) that this was caused by recent update of xfs filesystem -- I switched my next installation to ext4 and there was no longer any error.
I sure would appreciate any confirmation on the cause of the r/w outside partition error. Is xfs ok? For now out of caution I avoid xfs (generally using btrfs). |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2179
|
Posted: Tue Jul 23, 2024 9:55 am Post subject: |
|
|
A thought - based on the comments above, it appears the problem occurs very early in GRUB processing, and might be related to the choice of root filesystem. I've been hit by GRUB''s f2fs module not being able to read filesystems created with extra attributes. Perhaps the xfs problem is similarly a bug in GRUB's xfs module. That said, I've no idea how nvidia-drivers gets involved. _________________ Greybeard |
|
Back to top |
|
|
IncognitoBurrito n00b
Joined: 21 Jul 2024 Posts: 5
|
Posted: Tue Jul 23, 2024 2:50 pm Post subject: Re: how |
|
|
kimchi_sg wrote: | How are you installing grub, kernel, nvidia-drivers?
|
I basically just followed the handbook step for step.
Installing kernel:
set package use sys-kernel/installkernel dracut
emerge --ask sys-kernel/gentoo-kernel
grub-install --target=x86_64-efi --efi-directory=/efi --removable // had to use removable for motherboard
grub-mkconfig -o /boot/grub/grub.cfg
// at first used nouvea driver then decided to isntall nvidia and followed https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
set USE="dist-kernel"
also set VIDEO_CARDS="nvidia"
then did a emerge --ask --update --deep --newuse --verbose @world
I wasn't sure if I needed to but I emerged x11-drivers/nvidia-drivers
I missed adding the dbus step so I then reran the above steps to redo grub
Everything works fine currently, and I can see it's loaded, just those pre grub boot errors.
https://pastebin.com/x7e92x7r -- emerge info
https://pastebin.com/QKLc6tf6 -- emerge -pv grub nvidia-drivers
https://pastebin.com/LRwgce5A -- emerge -pv gentoo-kernel
Let me know if I did anything wrong, very new to gentoo outside of the one install I did back in about 2004 I think.
Last edited by IncognitoBurrito on Tue Jul 23, 2024 2:55 pm; edited 1 time in total |
|
Back to top |
|
|
IncognitoBurrito n00b
Joined: 21 Jul 2024 Posts: 5
|
Posted: Tue Jul 23, 2024 2:53 pm Post subject: Re: error: attempt to read or write outside of partition |
|
|
sitquietly wrote: | IncognitoBurrito wrote: | ... Any ideas? |
I had this error message show up on my systems recently to great frustration because like you I thought something had corrupted my partition table or boot code. I saw a mention somewhere (?) that this was caused by recent update of xfs filesystem -- I switched my next installation to ext4 and there was no longer any error.
I sure would appreciate any confirmation on the cause of the r/w outside partition error. Is xfs ok? For now out of caution I avoid xfs (generally using btrfs). |
Goverp wrote: | A thought - based on the comments above, it appears the problem occurs very early in GRUB processing, and might be related to the choice of root filesystem. I've been hit by GRUB''s f2fs module not being able to read filesystems created with extra attributes. Perhaps the xfs problem is similarly a bug in GRUB's xfs module. That said, I've no idea how nvidia-drivers gets involved. |
This is defintely something I can try out, I'll do a clean reinstall with ext4 or btrfs and see if things change. What is weird is that it works on first kernel? maybe the recompile with new use flags has something to do with it and it's not related to nvidia and just the recompile and the FS. Just speculating, but definitely is something I can try, thanks for the ideas. |
|
Back to top |
|
|
lars_the_bear Guru
Joined: 05 Jun 2024 Posts: 521
|
Posted: Tue Jul 23, 2024 2:54 pm Post subject: |
|
|
FWIW I see this screen-full of error messages on Gentoo installations on VirtualBox -- but I don't have it on real hardware. I don't have any NVIDIA stuff on VirtualBox, so far as I know.
Whatever the explanation, it's not stopping the machine from booting, so (with some discomfort) I'm ignoring it.
BR, Lars. |
|
Back to top |
|
|
IncognitoBurrito n00b
Joined: 21 Jul 2024 Posts: 5
|
Posted: Tue Jul 23, 2024 8:33 pm Post subject: |
|
|
Well, I just reinstalled using btrfs and it seems like my issue has gone away, so maybe it is a bug in xfs. |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2179
|
Posted: Wed Jul 24, 2024 9:12 am Post subject: |
|
|
IncognitoBurrito wrote: | Well, I just reinstalled using btrfs and it seems like my issue has gone away, so maybe it is a bug in xfs. |
Not necessarily xfs, more likely the GRUB xfs module. GRUB has to have modules to read all the filesystems it supports. It can't use say the Linux ones, as there's no Linux kernel available when GRUB is running, so the GRUB developers have to write their own ones from scratch. _________________ Greybeard |
|
Back to top |
|
|
IncognitoBurrito n00b
Joined: 21 Jul 2024 Posts: 5
|
Posted: Wed Jul 24, 2024 4:50 pm Post subject: |
|
|
Goverp wrote: | IncognitoBurrito wrote: | Well, I just reinstalled using btrfs and it seems like my issue has gone away, so maybe it is a bug in xfs. |
Not necessarily xfs, more likely the GRUB xfs module. GRUB has to have modules to read all the filesystems it supports. It can't use say the Linux ones, as there's no Linux kernel available when GRUB is running, so the GRUB developers have to write their own ones from scratch. |
Makes sense, thanks! |
|
Back to top |
|
|
|