View previous topic :: View next topic |
Author |
Message |
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 28
|
Posted: Mon Aug 19, 2024 11:05 am Post subject: install gentoo safely as stage 3 doesn't have kernel files. |
|
|
Hi I am Rupesh from India and I brought a new pc with AMD ryzen 5500GT Asus prime b450 motherboard. I have tried a number of Linux operating systems and at present I have installed successfully Fedora, Debian, and Arch Linux but I can't install gentoo safely.
I have tried the instructions specified in gentoo AMD handbook to install gentoo safely as follows
1) I have downloaded gentoo live iso image from the official gentoo website.
2) I created usb installation medium using dd in Arch Linux.
3) I booted into the gentoo live environment.
4) using Firefox web browser I have downloaded stage 3 desktop systemd tar ball.
5) I created 40 Gb xfs partition for new gentoo root.
6) I created 600 mb fat 32 alias vfat for gentoo efi.
7) I created 3 gb swap partition for new gentoo
I mounted 40 Gb xfs partition to /mnt/gentoo
9) I have mounted vfat partition to /mnt/gentoo/efi
10) I copied the stage 3 tar ball to /mnt/gentoo and extracted it as specified in handbook.
11) I modified the fstab file and added entries for root, efi and swap.
12) I added -march=znver3 to COMMON_FLAGS entry in /etc/portage/make.conf and made symbolic link to /etc/make.conf.
13) rebooted my system and entered into Arch Linux and issued the following command
sudo grub-mkconfig -o /boot/grub/grub.cfg
I found something as "found gentoo on /dev/nvme0n1p18
After that I entered the following command
grub install /dev/nvme0n1
14) I have rebooted my system and in grub I selected gentoo but I got error as kernel not found.
15) I restarted my system and entered into gentoo live environment and searched Firefox for gentoo install kernel and found article saying to install gentoo-kernel
So I done chroot into my new gentoo and issued the following command
emerge gentoo-kernel
16) After that I have rebooted my system and entered into Arch Linux and issued the following command
sudo grub-mkconfig -o /boot/grub/grub.cfg
After that I issued grub install in Arch Linux.
17) After that I have restarted my system and in grub I have selected gentoo but this time I got error something as
cannot open /dev/root
1 After that I have restarted my system and entered into gentoo live environment and searched for gentoo install kernel and this time I found an article saying that linux-firmware to install first before doing anything else.
Even though I issued the following command
emerge linux-firmware
19) After that I have restarted my system and entered into Arch Linux and issued grub commands as before.
20) As usually I restarted my system and in grub I have selected gentoo but unfortunately this time also I got the same error as
/dev/root: Cannot open blockdev
21) I tried a number of times to remove the installed kernel and compile it from source from the beginning but no use I am getting the same error as
/dev/root: Cannot open blockdev
If I want to install or remove packages I must enter into gentoo live environment and do chroot and do anything.
In the gentoo live environment chroot when I issue emerge command I am getting error as the current package is masked. For example the following command
emerge linux-firmware
I have searched portage for some packages like sudo, grub, network manager etc., and mostly I found 50 percent in the repository are masked.
Upto now I have used a number of Linux operating systems and upon installing them to my system I found a working kernel all utilities like sudo, grub, network manager etc.,.
I can't understand why gentoo stage 3 tar ball doesn't have kernel installation files and grub.
At present I am getting error /dev/root cannot open blockdev and in chroot environment sometimes I am getting error as "efi directory not found".
My requirement is I want a working Linux operating system through compilation of all packages optimised for my ryzen zen3 processor. For this I included -march=znver3 in /etc/.
Another requirement is if I issue the command "emerge kde" all the packages related to kde must be downloaded and compiled properly and the system must not be in a broken state.
Kindly try to suggest how to install gentoo properly and if you want I am ready to provide diagnostic output of the commands provided by you. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
Posted: Mon Aug 19, 2024 2:34 pm Post subject: . |
|
|
rupeshforu3,
Welcome to Gentoo Forums !
Your steps 1 - 12 were correct. I assume you did step 13 because you have other partitions (for other Linux distros) and ALREADY a working grub from Arch ... somewhere ... But I dont understand why you did after (the correct) grub-mkconfig a grub install again ?
Step 14 could be important. Here we would need the file /boot/grub/grub.cfg (from your Arch partition)
Side note:
rupeshforu3 wrote: | [1]I have searched portage for some packages like sudo, grub, network manager etc., and mostly I found 50 percent in the repository are masked.
[2]I can't understand why gentoo stage 3 tar ball doesn't have kernel installation files and grub. |
1) This is very strange ... I only know people have sometimes a problem with linux-firmware because of LICENSE ... (see chapter "kernel" in 3 below).
2) In our tarball is everything you need ... IF ... you had no error messages after extracting the tarball (once we had a problem with downloading the tarball; but this was immediately clear because of errors).
So, how to proceed ?
1. We must know which kernel you have installed. I recommend: gentoo-kernel-bin (for the beginning). Please read:
https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo
2. You must decide if you want use grub from Arch or from Gentoo ... the output of "lsblk", "blkid" and "parted -l" (or "fdsik -l") gives us an oversight of your parititons. Most important: Is this an UEFI system ? If yes, we need the output of "efibootmgr"
3. Do you want OpenRC or systemd as init system ? If OpenRC take a look into:
https://wiki.gentoo.org/wiki/User:Pietinger/Draft/Quick_Installation_OpenRC_for_an_UEFI_System _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 28
|
Posted: Mon Aug 19, 2024 4:33 pm Post subject: |
|
|
What is the meaning of
/dev/root: can't open blockdev
VFS: Cannot Open root device /dev/nvme0n1p18 or unknown-block(0,0): error -6
Please append a correct "root=" boot option
There are two entries for efi and so what are the meanings of them and what is the purpose and can I neglect them totally.
1) /boot/efi
2) /efi
At present I mounted newly created efi partition for/boot/efi
How to generate correct kernel image and initramfs which are detected by Arch Linux grub-mkconfig.
If you suggest to use native grub-mkconfig I am ready to use but can it detect other operating systems like Arch Linux and windows.
I found a number of making to packages in gentoo repository and even essential packages are also masked. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 28
|
Posted: Mon Aug 19, 2024 4:53 pm Post subject: |
|
|
I think that the first partition of my SSD which is efi mounted somewhere on gentoo is full and so how to remove old entries so that the problem may be solved. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
Posted: Mon Aug 19, 2024 6:04 pm Post subject: |
|
|
rupeshforu3 wrote: | What is the meaning of
/dev/root: can't open blockdev
VFS: Cannot Open root device /dev/nvme0n1p18 or unknown-block(0,0): error -6
Please append a correct "root=" boot option |
=>
Quote: | #define ENXIO 6 /* No such device or address */ |
It means there is either NO "root=" kernel command line parameter, or a wrong one. (0,0) means: No access to disk at all (if you would have a problem with a partition (e.g. no FS,module in kernel for for this FS) THEN you would see numbers).
rupeshforu3 wrote: | There are two entries for efi and so what are the meanings of them and what is the purpose and can I neglect them totally.
1) /boot/efi
2) /efi |
Where are two entries ? In efibootmgr ?
rupeshforu3 wrote: | At present I mounted newly created efi partition for/boot/efi. |
That is wrong ... have you read our AMD 64 Handbook and/or the links I have given you ?
rupeshforu3 wrote: | If you suggest to use native grub-mkconfig I am ready to use but can it detect other operating systems like Arch Linux and windows. |
If you have already grub THEN use it. Gentoo's grub does not always detect everything.
rupeshforu3 wrote: | I found a number of making to packages in gentoo repository and even essential packages are also masked. |
Which ?
If you need further help please provide us more informations about your system (and answer some questions) _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 28
|
Posted: Tue Aug 20, 2024 3:42 am Post subject: |
|
|
Hi I am providing the output of various commands specified by you so that you can track the problem and these commands were run in chroot environment.
Code: |
livecd / # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 3.3G 1 loop
sda 8:0 1 7.6G 0 disk
├─sda1 8:1 1 254K 0 part
├─sda2 8:2 1 2.8M 0 part
├─sda3 8:3 1 3.4G 0 part
└─sda4 8:4 1 300K 0 part
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 79.2G 0 part
├─nvme0n1p4 259:4 0 768M 0 part
├─nvme0n1p5 259:5 0 35.2G 0 part
├─nvme0n1p6 259:6 0 400M 0 part
├─nvme0n1p7 259:7 0 4.4G 0 part
├─nvme0n1p8 259:8 0 62G 0 part
├─nvme0n1p9 259:9 0 500M 0 part
├─nvme0n1p10 259:10 0 62.7G 0 part
├─nvme0n1p11 259:11 0 4.4G 0 part
├─nvme0n1p12 259:12 0 500M 0 part
├─nvme0n1p13 259:13 0 4.4G 0 part
├─nvme0n1p14 259:14 0 81.5G 0 part
├─nvme0n1p15 259:15 0 73.2G 0 part
├─nvme0n1p16 259:16 0 667M 0 part /boot/efi
├─nvme0n1p17 259:17 0 3G 0 part
└─nvme0n1p18 259:18 0 52.8G 0 part /
livecd / #
|
Code: |
livecd / # blkid
/dev/sda3: BLOCK_SIZE="2048" LABEL="gentoo-amd64-livegui" TYPE="hfsplus" PARTLABEL="HFSPLUS" PARTUUID="22409543-8908-41be-89b4-adf9654e2595"
/dev/nvme0n1p9: SEC_TYPE="msdos" UUID="6F45-34C5" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="ba841928-a60f-4e41-981b-74c13a7e9379"
/dev/nvme0n1p11: UUID="b865c221-bfd1-4f4a-bec4-01afc91fd39c" TYPE="swap" PARTUUID="a0404d87-0a4e-407b-b7a4-5b528b2040cd"
/dev/nvme0n1p7: UUID="2fbca5ac-7ecf-4f9e-a855-469018320e18" TYPE="swap" PARTUUID="c4cbab5b-8c1e-224b-9f0a-d7daa20264a4"
/dev/nvme0n1p5: LABEL="Work Windows" BLOCK_SIZE="512" UUID="F0A8E062A8E028B4" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a33f1a79-caf6-497b-b27e-115cae093496"
/dev/nvme0n1p18: UUID="9968296b-0071-4a2e-8656-3204ebb4c160" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="1f1982f9-9827-1d40-b7f7-d12563464cce"
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="52C663A1C66383D7" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8f4b93fb-2782-417a-99bb-25003804d809"
/dev/nvme0n1p16: UUID="7DFB-7F7C" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="adf9f266-d048-4d56-b1ad-6b100e486625"
/dev/nvme0n1p1: UUID="6C59-56D8" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="976ab300-21ee-4309-aad5-0475bb93808a"
/dev/nvme0n1p14: UUID="2be7564d-6480-44d1-ab60-6c987ed443fa" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="32d617c5-5ee0-47b7-b1e9-7642ecf5ab44"
/dev/nvme0n1p12: SEC_TYPE="msdos" UUID="0B43-A484" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ab763c41-8584-4e76-81bc-dd032dd74897"
/dev/nvme0n1p8: UUID="33b48ee5-e5bc-4246-9ab9-c79d16cfc138" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="fa7b90be-18db-3740-b47c-1ac7185506bf"
/dev/nvme0n1p10: UUID="78c2079f-6683-411c-9e10-fd96b2941ff7" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="9aa683f7-8f12-43bc-b9c6-1e1e4441f378"
/dev/nvme0n1p6: UUID="00B7-AEFD" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="253bcc86-a0c7-574c-9757-d5e4b14c444a"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="7484BA9684BA59F6" TYPE="ntfs" PARTUUID="abf15f7f-0384-4155-91e8-ed18d160227b"
/dev/nvme0n1p17: UUID="9d39cdfd-dbc0-4f46-94a6-8bd1251e1a2f" TYPE="swap" PARTUUID="b3528b0b-ddef-ab46-a9a2-d3e962ac5d5b"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="42ad4dfc-14e7-4b4d-ad02-bda823a33c06"
/dev/nvme0n1p15: LABEL="Devotion" UUID="9C23-836A" BLOCK_SIZE="512" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="367b3681-69c8-4e15-9cd3-83f3cc8f7c41"
/dev/nvme0n1p13: UUID="f25703bc-7b78-407d-b8d2-33faf4d46ce3" TYPE="swap" PARTUUID="57f21cde-16ed-4b88-b56c-e505ef9b142c"
/dev/loop0: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/sda4: PARTLABEL="Gap1" PARTUUID="22409543-8908-41be-89b3-adf9654e2595"
/dev/sda2: SEC_TYPE="msdos" UUID="5A1A-7F2E" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI boot partition" PARTUUID="22409543-8908-41be-89b5-adf9654e2595"
/dev/sda1: PARTLABEL="Gap0" PARTUUID="22409543-8908-41be-89b6-adf9654e2595"
livecd / #
|
Code: |
gentoo@livecd ~ $ parted -l
Warning: Not all of the space available to /dev/sda appears to be used, you can
fix the GPT to use all of the space (an extra 8934860 blocks) or continue with
the current setting?
Fix/Ignore? ^C
Model: Generic Flash Disk (scsi)
Disk /dev/sda: 8179MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 32.8kB 293kB 260kB Gap0 hidden, msftdata
2 293kB 3242kB 2949kB EFI boot partition boot, hidden, esp
3 3242kB 3604MB 3601MB hfs+ HFSPLUS hidden
4 3604MB 3604MB 307kB Gap1 hidden, msftdata
Model: CT500P3SSD8 (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI System Partition boot, esp, no_automount
2 106MB 123MB 16.8MB Microsoft reserved partition msftres, no_automount
3 123MB 85.2GB 85.1GB ntfs Basic data partition msftdata
4 85.2GB 86.0GB 805MB ntfs hidden, diag, no_automount
5 86.0GB 124GB 37.7GB ntfs Basic data partition msftdata
6 124GB 124GB 419MB fat32 bios_grub
7 124GB 129GB 4719MB linux-swap(v1) swap
8 129GB 195GB 66.6GB xfs
9 195GB 196GB 524MB fat16 EFI System Partition boot, esp
10 196GB 263GB 67.4GB xfs
11 263GB 268GB 4719MB linux-swap(v1) swap
12 268GB 269GB 524MB fat16
13 269GB 273GB 4719MB linux-swap(v1)
14 273GB 361GB 87.6GB xfs
15 361GB 440GB 78.6GB Basic data partition msftdata
16 440GB 440GB 699MB fat32 bios_grub
17 440GB 443GB 3251MB linux-swap(v1)
18 443GB 500GB 56.7GB xfs
gentoo@livecd ~ $
|
Code: |
livecd / # efibootmgr
BootCurrent: 0028
Timeout: 1 seconds
BootOrder: 0003,0005,0004,0002,0011,0001,0000,001A,0025,000B,0028,0027
Boot0000* Windows Boot Manager
HD(1,GPT,976ab300-21ee-4309-aad5-0475bb93808a,0x800,0x32000)/File(\EFI\
MICROSOFT\BOOT\BOOTMGFW.EFI)
57494e444f5753000100000088000000780000004200430044004f0042004a0045004300540
03d007b00390064006500610038003600320063002d0035006300640064002d003400650037
0030002d0061006300630031002d00660033003200620033003400340064003400370039003
5007d00000079000100000010000000040000007fff0400
Boot0001* Fedora HD(9,GPT,ba841928-a60f-4e41-981b-74c13a7e9379,0x16c10000,0xfa000)/File(\EFI\FEDORA\SHIMX64.EFI)
Boot0002* FreeBSD HD(1,GPT,976ab300-21ee-4309-aad5-0475bb93808a,0x800,0x32000)/File(\EFI\FREEBSD\LOADER.EFI)
Boot0003* arch HD(12,GPT,ab763c41-8584-4e76-81bc-dd032dd74897,0x1f34d000,0xfa000)/File(\EFI\arch\grubx64.efi)
Boot0004* Red Hat Enterprise Linux HD(1,GPT,976ab300-21ee-4309-aad5-0475bb93808a,0x800,0x32000)/File(\EFI\REDHAT\SHIMX64.EFI)
Boot0005* Rocky Linux HD(1,GPT,976ab300-21ee-4309-aad5-0475bb93808a,0x800,0x32000)/File(\EFI\ROCKY\SHIMX64.EFI)
Boot000B* Hard Drive
BBS(HD,,0x0)
0000474f00004e4f95000000010000006b00430054003500300030005000330053005300440
0380000000501090002000000007fff040002010c00d041030a000000000101060002020101
06000000031710000100000000a07501464c48527fff040001042e00ef47642dc93ba041ac1
94d51d01b4ce632003400300031003400360034004300340038003500320000007fff040000
00424f
Boot0011* debian HD(6,GPT,253bcc86-a0c7-574c-9757-d5e4b14c444a,0xe678000,0xc8000)/File(\EFI\DEBIAN\SHIMX64.EFI)
Boot001A* Fedora HD(9,GPT,ba841928-a60f-4e41-981b-74c13a7e9379,0x16c10000,0xfa000)/File(\EFI\FEDORA\SHIM.EFI)0000424f
Boot0025* debian HD(6,GPT,253bcc86-a0c7-574c-9757-d5e4b14c444a,0xe678000,0xc8000)/File(\EFI\DEBIAN\GRUBX64.EFI)0000424f
Boot0027* USB
BBS(HD,,0x0)
0000474f00004e4f9b000000010000005900470065006e006500720069006300200046006c0
061007300680020004400690073006b00200038002e00300037000000050109000200000000
7fff040002010c00d041030a000000000101060001020101060000000305060006007fff040
001042600ef47642dc93ba041ac194d51d01b4ce63400410038003200320036003000460000
007fff04000000424f
Boot0028* UEFI: Generic Flash Disk 8.07, Partition 2 PciRoot(0x0)/Pci(0x2,0x1)/Pci(0x0,0x0)/USB(6,0)/HD(2,GPT,22409543-8908-41be-89b5-adf9654e2595,0x23c,0x1680)0000424f
livecd / #
|
At present I am reading articles given by you.
Cast word-wrap on long lines to make the forum layout behave. —Chiitoo _________________ Regards,
Rupesh. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
Posted: Tue Aug 20, 2024 11:01 am Post subject: |
|
|
We have already had experience with various UEFIs here in the forum; some have not adhered to the UEFI specifications at all, others have only accepted a single ESP. You have a very lenient UEFI, because it even accepts an ESP that is not labeled as an ESP [see *].
At the moment you have booted from a USB stick:
Without a USB stick, your system would boot this:
Code: | BootOrder: 0003, ...
Boot0003* arch HD(12,GPT,ab763c41-8584-4e76-81bc-dd032dd74897,0x1f34d000,0xfa000)/File(\EFI\arch\grubx64.efi)
/dev/nvme0n1p12: SEC_TYPE="msdos" UUID="0B43-A484" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="ab763c41-8584-4e76-81bc-dd032dd74897"
12 268GB 269GB 524MB fat16 |
*) there is no "boot, esp" flag in the output of parted for this partition; but your UEFI accept it; be happy
You have already 4 ESP ... your /dev/nvme0n1p16 should become the fifth ESP ...
If you install Gentoo strictly according to our AMD64 Handbook, then you will have a fifth ESP where a grub is started that will (for now) only start your Gentoo. You then have to select the distribution to boot via the UEFI BIOS boot menu.
If you do not install grub, then you can also configure the existing grub from Arch to optionally boot your gentoo as well. The /boot/grub/grub.cfg from the Arch partition (I guess: /dev/nvme0n1p14) is here important.
Another option is to boot the Gentoo kernel directly from UEFI (without a grub in between) ... but you should differentiate whether you want to boot a manually configured kernel (without initramfs), or our Gentoo distribution kernel (which always has an associated initramfs). For the latter, just read this thread:
https://forums.gentoo.org/viewtopic-p-8805827.html#8805827 _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 28
|
Posted: Tue Aug 20, 2024 1:00 pm Post subject: |
|
|
Hi in Arch Linux grub.cfg file for the entry of gentoo there is no vmlinuz as Arch Linux has and there's no initrd entry.
To solve this issue in gentoo I ran grub-mkconfig and copied the output to text file and then copied the text file to Arch Linux.
In Arch Linux I ran grub-mkconfig -o /boot/grub/grub.cfg after that I copied last line present in the output of gentoo grub-mkconfig to the last line of the entry of gentoo.
The copied line is
initrd: amd-ucode initramfs...
At present I have restarted my system and in the grub screen I selected gentoo and I am able to boot into gentoo fully.
Previously I used other linux distributions like Fedora Debian and Arch Linux etc., and all have the entries for kernel initrd and vmlinuz but unfortunately gentoo doesn't have vmlinuz.
My requirement is not to boot into gentoo directly through UEFI but I want to boot through grub.
I want to boot through gentoo native grub but I suspect that it can't detect other operating systems properly.
Finally I am requesting you to answer the following
1) What does /efi mean and what is the partition type for this file system.
2) What does /boot/efi mean and what is the partition type of this file system.
3) What does /boot mean and what is the partition type for this file system.
In other linux distributions there are only two entries ie /boot and /boot/efi related to boot but gentoo has another /efi
I think I may do wrong when I partition /boot with vfat and mount it under / file system of gentoo.
Somewhere I read that /boot must be formatted with vfat.
So can you please suggest which of the following to use for /boot
1) vfat
2) ext4
3) xfs
I asked you a number of questions sorry for that but I want to clarify my doubts so that everything works fine on my system. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5132 Location: Bavaria
|
Posted: Tue Aug 20, 2024 4:19 pm Post subject: |
|
|
rupeshforu3 wrote: | At present I have restarted my system and in the grub screen I selected gentoo and I am able to boot into gentoo fully. |
Great to hear that !
rupeshforu3 wrote: | 1) What does /efi mean and what is the partition type for this file system.
2) What does /boot/efi mean and what is the partition type of this file system.
3) What does /boot mean and what is the partition type for this file system.
In other linux distributions there are only two entries ie /boot and /boot/efi related to boot but gentoo has another /efi
I think I may do wrong when I partition /boot with vfat and mount it under / file system of gentoo.
Somewhere I read that /boot must be formatted with vfat.
So can you please suggest which of the following to use for /boot
1) vfat
2) ext4
3) xfs |
1+3) /efi is a directory of the Linux root directory ... /boot is also a directory ... you can use both as MOUNTPOINT ... please read:
https://forums.gentoo.org/viewtopic-t-1165115-highlight-.html
2) ... now you know all about /boot/efi ...
What you really have to know is:
1. The ESP (EfiSystemParition) must be a FAT variant (recommended: FAT32) ... and because Gentoo follows the Discoverable Partitions Specification of the UAPI Group you should mount the ESP to /efi (if you need it; usually you will need it only when updating the grub (seldom); I use the option "noauto" in my fstab for it).
2. TODAY we will NOT mount anything to /boot ... so it is only a directory of the root directory and therefore part of the root partition. You can use whatever FS you want for your root partition. The official Gentoo recommendation in the AMD64 Handbook is xfs ... I like EXT4 more ... and many other too ->
https://forums.gentoo.org/viewtopic-t-1130286-highlight-.html
... but it is clearly your decision.
rupeshforu3 wrote: | I asked you a number of questions sorry for that but I want to clarify my doubts so that everything works fine on my system. |
No problem ... please dont worry ... IMHO it is even better to ask first to avoid problems later ... _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
|
|
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
|
|