Re: [gentoo-user] Grub, gpt partitions and BIOS, not uefi thing.

2024-04-27 Thread Wojciech Kuzyszyn
On Sat, 27 Apr 2024 11:53:25 -0500
Dale  wrote:

> Howdy,
> 
> I'm installing Gentoo on another old box.  To be consistent I like to
> use cgdisk, GPT I think it is called, to partition all my drives,
> regardless of size.  Thing is, Grub works differently with GPT than it
> does with the old DOS or whatever it is called, like fdisk does in the
> old days.  I did some research but still find myself in some muddy
> waters.  My take on some things I've read, I need a boot partition,
> not to be confused with the /boot for kernels, init thingys and such.
>  Where I get lost, most use gdisk.  I like cgdisk.  Before that I
> liked cfdisk.  Anyway, how do I set up that partition with cgdisk?
> Any minimum size requirements or tiny is enough?  Does it have to be a
> specific type?  Does it need to be in a specific place?  Formatted
> with a file system?  Also, when I do grub-install, do I still point to
> /dev/sda or to /dev/sda1, if sda1 is the special boot partition?
> 
> I tried to find a step by step howto with this info but the ones I
> find either don't work or leaves me more confused.  Given that the
> method is also aging out, it's hard to find good guides.  I'd be real
> happy just to have a link to a good howto that I can make sense of.
> I can save a copy local and even print it.  Maybe someone has some
> notes that will help.  I just need something to help clear up the
> muddy waters. 
> 
> Thanks to anyone who has a link, some notes or something.  :-D 
> 
> Dale
> 
> :-)  :-) 
> 

I don't use cgdisk nor gdisk. Here's a link to Arch's wiki about GPT on
BIOS systems:

https://wiki.archlinux.org/title/GRUB#GUID_Partition_Table_(GPT)_specific_instructions

I guess you need to set the same code as in gdisk, or something similar
to BIOS boot or bios_grub as are in other such tools.

Good luck!

Wojciech

-- 
xWK


pgphv3vlrm34X.pgp
Description: Podpis cyfrowy OpenPGP


Re: [gentoo-user] Hibernation without initramfs

2024-04-26 Thread Wojciech Kuzyszyn
On Fri, 26 Apr 2024 09:40:54 +0100
Michael  wrote:

> [*] Hibernation (aka 'suspend to disk')
> [*]   Userspace snapshot device
> (/dev/sdb6)Default resume partition 

My swap partition is /dev/nvme0n1p2 - this would work I assume, right?

> However, if you are using RAM heavily when you try to hibernate, e.g.
> because you are compiling some large package, have many memory hungry
> applications open, etc., you may find hibernation fails due to lack
> of space.  This would be more acute if your RAM is not large enough
> and swap is used on a regular basis.  With large enough RAM less swap
> space will be used, since swap would be virtually empty.  Therefore
> size your swap device accordingly.

I have oldschool swap - 2x RAM.


-- 
xWK


pgpoV0GlBa6Gb.pgp
Description: Podpis cyfrowy OpenPGP


[gentoo-user] Hibernation without initramfs

2024-04-25 Thread Wojciech Kuzyszyn
Hello!

Quick question: is it possible to use hibernation (suspend to disk)
with no initramfs? I don't have one and don't want to have one. So I'd
rather disable hibernate in kernel (so I won't do this by accident) or
leave it to use it happily when needed.

-- 
xWK


pgpeMbvAVQkat.pgp
Description: Podpis cyfrowy OpenPGP


Re: [gentoo-user] Getting WiFi to work

2024-04-09 Thread Wojciech Kuzyszyn
On Tue, 09 Apr 2024 14:23:31 +0100
Peter Humphrey  wrote:

> Hello list,
> 
> I want to move my Intel i5 NUC box to a place where Ethernet is not
> available, nor like to become so. That means I have to get WiFi
> working, but I've had no success so far. The wiki pages are many,
> confusing and contradictory, so I'd like the panel's advice on the
> way to proceed.
> 
> The first thing I tried was the traditional wpa_supplicant, which
> seemed to go well - except that I couldn't get the link out of the
> DOWN state.
> 
> Then I tried NetworkManager, and failed with that too.
> 
> This is the hardware:
> # lspci -v -s 00:14.3 
> 00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi
> WiFi (rev 01)
> --->8  
> Kernel driver in use: iwlwifi
> Kernel modules: iwlwifi
> 
> And this is dmesg:
> 
> $ dmesg | grep -i wifi
> [1.622343] Intel(R) Wireless WiFi driver for Linux
> [1.622432] iwlwifi :00:14.3: enabling device ( -> 0002)
> [1.625069] iwlwifi :00:14.3: Detected crf-id 0x400410, cnv-id
> 0x80400 wfpm id 0x8020
> [1.625121] iwlwifi :00:14.3: PCI dev 51f1/0094, rev=0x370, 
> rfid=0x2010d000
> [1.625313] Loading firmware: iwlwifi-so-a0-gf-a0-86.ucode
> [1.626644] iwlwifi :00:14.3: TLV_FW_FSEQ_VERSION: FSEQ
> Version: 0.0.2.41
> [1.626902] iwlwifi :00:14.3: loaded firmware version
> 86.fb5c9aeb.0 so- a0-gf-a0-86.ucode op_mode iwlmvm
> [1.643426] iwlwifi :00:14.3: Detected Intel(R) Wi-Fi 6E AX211
> 160MHz, REV=0x370
> [1.651382] iwlwifi :00:14.3: WRT: Invalid buffer destination
> [1.809375] iwlwifi :00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
> [1.809385] iwlwifi :00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
> [1.809394] iwlwifi :00:14.3: WFPM_AUTH_KEY_0: 0x90
> [1.809401] iwlwifi :00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
> [1.809403] Loading firmware: iwlwifi-so-a0-gf-a0.pnvm
> [1.810724] iwlwifi :00:14.3: loaded PNVM version e28bb9d7
> [1.810817] iwlwifi :00:14.3: RFIm is deactivated, reason = 4
> [1.825831] iwlwifi :00:14.3: Detected RF GF, rfid=0x2010d000
> [1.897387] iwlwifi :00:14.3: base HW address:
> f4:6d:3f:2a:33:3e
> 
> Would net-wireless/iwd get me a bit further?
> 
> Meanwhile, I'll keep on exploring with the results of
> sys-apps/hw-probe.
> 


Hello!

I have never managed to get WiFi working with iwlwifi, but iwd works
great for me. Give it a try!

-- 
xWK


pgpr1X7lPIT02.pgp
Description: Podpis cyfrowy OpenPGP


Re: [gentoo-user] Re: How to set up drive with many Linux distros?

2024-02-22 Thread Wojciech Kuzyszyn
Hello!

I guess most (all) of the distro's you are talking about use GRUB (or
at least they allow to do it). If that's true, I'm pretty sure you can
happily let them overwrite the GRUB in MBR as many times as they want,
since it's the same (or just probably minor version differences)
bootloader. Just make a copy of /boot/grub/grub.cfg and make sure it's
the same on every partition. Or, even better, if that's possible right
now, make a common /boot partition and after installing the new distro
just merge the (probably new) /boot/grub/grub.cfg with your old one.

I really think that *should* work!

Take care,
ks. Wojciech Kuzyszyn


pgp2uRUfi6EGx.pgp
Description: Podpis cyfrowy OpenPGP