View previous topic :: View next topic |
Author |
Message |
Tep04Ka n00b
Joined: 22 Jun 2020 Posts: 12
|
Posted: Sun Aug 22, 2021 3:47 pm Post subject: [SOLVED] Kernel fails to recognize partitions |
|
|
I am building a gentoo server (for personal/education purpose), and now I'm facing the problem that the kernel (as I think) just doesn't see any partitions, unless these partitions are vFat. Let me drive you into details.
The hardware is kind of old --- here is output of dmidecode (but I also can share hwinfo and lshw).
The installation went smooth; I've bootstraped and used distcc (for COMMON_FLAGS I used this command). Partition scheme is (BIOS/GPT): 1M (for BIOS) + 512M (/boot:ext4) + the rest (LVM on LUKS, rootfs is on BTRFS). For LUKS I am using serpent-xts-plain64 with sha512 hash; the key is on the usb stick. The profile is "Hardened/Numultilib/SELinux/OpenRC".
Kernel is decided to be full module-less, hardened and was configured manually, checked with the output of lsmod (from the liveCD), and verified the hardering with this script --- here is the resulting kernel config.
Initramfs is also custom, but not compiled into the kernel (I can provide its structure, if needed).
The problem comes with the kernel initializing SCSI SATA HDDs --- on any drive attached only one partition is recognized (dmesg, sda is root hdd, which itself contains 3 partitions, as shown above). When attemping to mount the partition, there is following error: Code: | mount: mounting /dev/sda1 on /mnt/root failed: Invalid argument | ; the same situation with the key-storing usb stick, which contains only 1 partition. The problem is still even with another HDD (containing also 1 partition) connected.
All that drives, and hence their partitions contain ext4 fs (/boot parittion, key-storing usb-stick and external HDD), or LUKS, as in the root HDD; but, when I accidentally connected gentoo minimal liveCD usb, not only I got all partitions recognized (kernel log), but I even got succeeded to mount /dev/sdb2 and access in rw mode --- that partition is vFAT!
How do I get right recognizing of this drives?
Here is additional information:
I'm happy to provide any additional information.
Thank you in advance!
Last edited by Tep04Ka on Sun Aug 22, 2021 6:50 pm; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sun Aug 22, 2021 3:53 pm Post subject: |
|
|
Your kernel is has no support for GPT partiton table, is your sda GPT?
Your terminology is a bit off, you do not mount partitions, you mount filesystems (which may or may not reside on a partition).
Can't see your dmesg, the link seems to point some binary file instead of text. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Tep04Ka n00b
Joined: 22 Jun 2020 Posts: 12
|
Posted: Sun Aug 22, 2021 4:16 pm Post subject: |
|
|
Jaglover wrote: | Your kernel is has no support for GPT partiton table, is your sda GPT? |
Yes, it is (BIOS/GPT).
Jaglover wrote: | Can't see your dmesg, the link seems to point some binary file instead of text. |
It's indeed binary photo, as I'm not able to mount anything to provide a full text log. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23076
|
Posted: Sun Aug 22, 2021 5:12 pm Post subject: |
|
|
By BIOS/GPT, do you mean you used a GUID Partition Table on a system that still uses a pre-UEFI firmware ("BIOS")? As Jaglover says, you omitted support for GPT. If you are using GPT, then enable the kernel support for GPT and try again: Code: | config EFI_PARTITION
bool "EFI GUID Partition support" if PARTITION_ADVANCED
default y
select CRC32
help
Say Y here if you would like to use hard disks under Linux which
were partitioned using EFI GPT. |
|
|
Back to top |
|
|
Tep04Ka n00b
Joined: 22 Jun 2020 Posts: 12
|
Posted: Sun Aug 22, 2021 6:50 pm Post subject: |
|
|
Yes, that was an error! Thank you all. |
|
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
|
|