Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Could not find the block root device - HP Proliant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LaFigue
n00b
n00b


Joined: 16 Jul 2015
Posts: 3
Location: Montpellier, France

PostPosted: Thu Jul 16, 2015 9:37 pm    Post subject: [SOLVED] Could not find the block root device - HP Proliant Reply with quote

Hello everybody,

New to Gentoo I'm trying to install this OS on a HP Proliant ML350p Gen8.

I'm also trying to speak english...

I tried four or five time to install, reset the server to factory defaults, wipe the disks but still no success...

I have made a lot of searches on the Internet and in this forum but I didn't find anything that could help me to solve this.

Maybe the solution was in the pages I read but I didn't understand that it could apply to my problem...

The post is long but I choose to give all informations I gathered during installation, this could be also useful for other people...

The installation seems to be ok but after reboot I get this error message : !! Could not find the block root device in UUID=08486b40-6e58-4174-9c29-47bb5643ebc2

I followed this handbook : https://wiki.gentoo.org/wiki/Handbook:AMD64

The hardware :

HP Proliant ML350p Gen8
HP Bios P72 08/02/2014 (this is a legacy boot, there is no UEFI available)
There is a Hard RAID : HP Smart Array P420i Controller
There are 2 x 3TB SATA drive - RAID 1 (one logical volume of 2,7 TB)
32 MiB RAM (will add 32 MiB RAM more soon)

You'll find more details below.

Here is the whole process :

Local server
boot from livecd boot-repair-disk
Launch gparted and remove all partitions
Create a msdos partition table
quit gparted and shutdown

Then I boot from install-amd64-minimal-20150702.iso CD
Code:
loadkeys fr
/etc/init.d/sshd start
passwd
ifconfig eno1 --> inet 192.168.1.66


Laptop
I'm connecting from my laptop to the server
Code:

ssh root@192.168.1.66
livecd ~ # lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 62
Model name:            Intel(R) Xeon(R) CPU E5-2609 v2 @ 2.50GHz
Stepping:              4
CPU MHz:               2493.852
BogoMIPS:              4988.29
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              10240K

livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 DMI2 (rev 04)
00:01.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1a (rev 04)
00:01.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1b (rev 04)
00:02.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2a (rev 04)
00:02.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2b (rev 04)
00:02.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2c (rev 04)
00:02.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2d (rev 04)
00:03.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3a (rev 04)
00:03.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3b (rev 04)
00:03.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3c (rev 04)
00:03.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3d (rev 04)
00:04.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 0 (rev 04)
00:04.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 1 (rev 04)
00:04.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 2 (rev 04)
00:04.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 3 (rev 04)
00:04.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 4 (rev 04)
00:04.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 5 (rev 04)
00:04.6 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 6 (rev 04)
00:04.7 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 7 (rev 04)
00:05.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 VTd/Memory Map/Misc (rev 04)
00:05.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 IIO RAS (rev 04)
00:05.4 PIC: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 IOAPIC (rev 04)
00:11.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port (rev 05)
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 05)
00:1c.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 1 (rev b5)
00:1c.4 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 5 (rev b5)
00:1c.7 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation C600/X79 series chipset LPC Controller (rev 05)
00:1f.2 IDE interface: Intel Corporation C600/X79 series chipset 4-Port SATA IDE Controller (rev 05)
00:1f.5 IDE interface: Intel Corporation C600/X79 series chipset 2-Port SATA IDE Controller (rev 05)
01:00.0 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Slave Instrumentation & System Support (rev 05)
01:00.1 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200EH
01:00.2 System peripheral: Hewlett-Packard Company Integrated Lights-Out Standard Management Processor Support and Messaging (rev 05)
01:00.4 USB controller: Hewlett-Packard Company Integrated Lights-Out Standard Virtual USB Controller (rev 02)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
02:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
02:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
03:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Gen8 Controllers (rev 01)
1f:08.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 0 (rev 04)
1f:09.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 1 (rev 04)
1f:0a.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 0 (rev 04)
1f:0a.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 1 (rev 04)
1f:0a.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 2 (rev 04)
1f:0a.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 3 (rev 04)
1f:0b.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 UBOX Registers (rev 04)
1f:0b.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 UBOX Registers (rev 04)
1f:0c.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
1f:0c.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
1f:0d.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
1f:0d.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
1f:0e.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Home Agent 0 (rev 04)
1f:0e.1 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Home Agent 0 (rev 04)
1f:0f.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Target Address/Thermal Registers (rev 04)
1f:0f.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 RAS Registers (rev 04)
1f:0f.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
1f:0f.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
1f:0f.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
1f:0f.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
1f:10.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 0 (rev 04)
1f:10.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 1 (rev 04)
1f:10.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 0 (rev 04)
1f:10.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 1 (rev 04)
1f:10.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 2 (rev 04)
1f:10.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 3 (rev 04)
1f:10.6 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 2 (rev 04)
1f:10.7 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 3 (rev 04)
1f:13.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 R2PCIe (rev 04)
1f:13.1 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 R2PCIe (rev 04)
1f:13.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Registers (rev 04)
1f:13.5 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Performance Ring Monitoring (rev 04)
1f:16.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 System Address Decoder (rev 04)
1f:16.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Broadcast Registers (rev 04)
1f:16.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Broadcast Registers (rev 04)
20:00.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port in DMI2 Mode (rev 04)
20:01.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1a (rev 04)
20:01.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1b (rev 04)
20:02.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2a (rev 04)
20:02.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2b (rev 04)
20:02.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2c (rev 04)
20:02.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2d (rev 04)
20:03.0 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3a (rev 04)
20:03.1 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3b (rev 04)
20:03.2 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3c (rev 04)
20:03.3 PCI bridge: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3d (rev 04)
20:04.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 0 (rev 04)
20:04.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 1 (rev 04)
20:04.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 2 (rev 04)
20:04.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 3 (rev 04)
20:04.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 4 (rev 04)
20:04.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 5 (rev 04)
20:04.6 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 6 (rev 04)
20:04.7 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Crystal Beach DMA Channel 7 (rev 04)
20:05.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 VTd/Memory Map/Misc (rev 04)
20:05.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 IIO RAS (rev 04)
20:05.4 PIC: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 IOAPIC (rev 04)
3f:08.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 0 (rev 04)
3f:09.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 1 (rev 04)
3f:0a.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 0 (rev 04)
3f:0a.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 1 (rev 04)
3f:0a.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 2 (rev 04)
3f:0a.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 3 (rev 04)
3f:0b.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 UBOX Registers (rev 04)
3f:0b.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 UBOX Registers (rev 04)
3f:0c.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
3f:0c.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
3f:0d.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
3f:0d.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers (rev 04)
3f:0e.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Home Agent 0 (rev 04)
3f:0e.1 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Home Agent 0 (rev 04)
3f:0f.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Target Address/Thermal Registers (rev 04)
3f:0f.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 RAS Registers (rev 04)
3f:0f.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
3f:0f.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
3f:0f.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
3f:0f.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers (rev 04)
3f:10.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 0 (rev 04)
3f:10.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 1 (rev 04)
3f:10.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 0 (rev 04)
3f:10.3 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 1 (rev 04)
3f:10.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 2 (rev 04)
3f:10.5 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 3 (rev 04)
3f:10.6 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 2 (rev 04)
3f:10.7 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 3 (rev 04)
3f:13.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 R2PCIe (rev 04)
3f:13.1 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 R2PCIe (rev 04)
3f:13.4 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Registers (rev 04)
3f:13.5 Performance counters: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Performance Ring Monitoring (rev 04)
3f:16.0 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 System Address Decoder (rev 04)
3f:16.1 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Broadcast Registers (rev 04)
3f:16.2 System peripheral: Intel Corporation Xeon E7 v2/Xeon E5 v2/Core i7 Broadcast Registers (rev 04)


Code:
livecd ~ # parted -a optimal /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print                                                           
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start  End  Size  Type  File system  Flags


As you can see there is no partitions, only Disk /dev/sda: 3001GB with msdos label.

I will use GPT because I need a partition with more than 2 TB

Code:
(parted) mklabel gpt
Warning: The existing disk label on /dev/sda will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? y
(parted) unit mib                                                         
(parted) mkpart primary 1 3                                               
(parted) name 1 grub                                                     
(parted) set 1 bios_grub on                                               
(parted) mkpart primary 3 131                                             
(parted) name 2 boot                                                     
(parted) mkpart primary 131 131203                                       
(parted) name 3 swap                                                     
(parted) mkpart primary 131203 -1                                         
(parted) name 4 rootfs                                                   
(parted) print                                                           
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 2861556MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start      End         Size        File system  Name    Flags
 1      1.00MiB    3.00MiB     2.00MiB                  grub    bios_grub
 2      3.00MiB    131MiB      128MiB                   boot
 3      131MiB     131203MiB   131072MiB                swap
 4      131203MiB  2861555MiB  2730352MiB               rootfs

(parted) q                                                               
Information: You may need to update /etc/fstab.


Code:
livecd ~ # mkfs.ext2 /dev/sda2
mke2fs 1.42.12 (29-Aug-2014)
/dev/sda2 contains a ext2 file system
   created on Thu Jul 16 17:40:00 2015
Proceed anyway? (y,n) y
Creating filesystem with 131072 1k blocks and 32768 inodes
Filesystem UUID: 54187823-acfe-4baa-a073-3d62faa7a599
Superblock backups stored on blocks:
   8193, 24577, 40961, 57345, 73729

Allocating group tables: done                           
Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done


This is a little bit strange because the disk should not contain a previous ext2 file system.

Anyway I still follow the handbook...

Code:
livecd ~ # mkfs.ext4 /dev/sda4
mke2fs 1.42.12 (29-Aug-2014)
/dev/sda4 contains a ext4 file system
   last mounted on Thu Jul 16 15:49:32 2015
Proceed anyway? (y,n) y
Creating filesystem with 698970230 4k blocks and 174743552 inodes
Filesystem UUID: 08486b40-6e58-4174-9c29-47bb5643ebc2
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
   4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
   102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done


Strange again...

Code:
livecd ~ # mkswap /dev/sda3
mkswap: /dev/sda3: warning: wiping old swap signature.
Setting up swapspace version 1, size = 134217724 KiB
no label, UUID=c39a855d-6b2f-452f-a460-c960f9117d29


and again...

Code:
livecd ~ # swapon /dev/sda3
livecd ~ # mount /dev/sda4 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda2 /mnt/gentoo/boot
livecd ~ # date
Sat Aug  2 19:09:37 UTC 2014
livecd ~ # date 071618162015
Thu Jul 16 18:16:00 UTC 2015
livecd ~ # cd /mnt/gentoo
livecd gentoo # links https://www.gentoo.org/downloads/mirrors/


At this point I download gentoo-distfiles/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20150709.tar.bz2 and exit links

Code:
livecd gentoo # tar xvjpf stage3-*.tar.bz2 --xattrs
livecd gentoo # nano -w /mnt/gentoo/etc/portage/make.conf


Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j9"


I add the line MAKEOPTS="-j9", save the file and exit nano

Code:
livecd gentoo # cp -L /etc/resolv.conf /mnt/gentoo/etc/
livecd gentoo # cp -L /etc/resolv.conf /mnt/gentoo/etc/
livecd gentoo # mount -t proc proc /mnt/gentoo/proc
livecd gentoo # mount --rbind /sys /mnt/gentoo/sys
livecd gentoo # mount --make-rslave /mnt/gentoo/sys
livecd gentoo # mount --rbind /dev /mnt/gentoo/dev
livecd gentoo # mount --make-rslave /mnt/gentoo/dev
livecd gentoo # chroot /mnt/gentoo /bin/bash
livecd / # source /etc/profile
livecd / # export PS1="(chroot) $PS1"
(chroot) livecd / # emerge-webrsync
!!! Section 'x-portage' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/usr/portage'
!!! Invalid Repository Location (not a dir): '/usr/portage'
Fetching most recent snapshot ...
Trying to retrieve 20150715 snapshot from http://distfiles.gentoo.org ...
Fetching file portage-20150715.tar.xz.md5sum ...
Fetching file portage-20150715.tar.xz.gpgsig ...
Fetching file portage-20150715.tar.xz ...
Checking digest ...
Getting snapshot timestamp ...
Syncing local tree ...

Number of files: 181,385 (reg: 154,987, dir: 26,398)
Number of created files: 181,384 (reg: 154,987, dir: 26,397)
Number of deleted files: 0
Number of regular files transferred: 154,987
Total file size: 343.20M bytes
Total transferred file size: 343.20M bytes
Literal data: 343.20M bytes
Matched data: 0 bytes
File list size: 4.00M
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 156.36M
Total bytes received: 3.07M

sent 156.36M bytes  received 3.07M bytes  6.25M bytes/sec
total size is 343.20M  speedup is 2.15
Cleaning up ...

Performing Global Updates
(Could take a couple of minutes if you have a lot of binary packages.)



 * IMPORTANT: 12 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

(chroot) livecd / # eselect news list
News items:
  [1]   N  2012-05-21  Portage config-protect-if-modified default
  [2]   N  2012-11-06  PYTHON_TARGETS deployment
  [3]   N  2013-06-07  Portage preserve-libs default
  [4]   N  2013-08-23  Language of messages in emerge logs and output
  [5]   N  2013-09-27  Separate /usr on Linux requires initramfs
  [6]   N  2014-06-15  GCC 4.8.3 defaults to -fstack-protector
  [7]   N  2014-10-26  GCC 4.7 Introduced the New C++11 ABI
  [8]   N  2014-11-07  Upgrade to udev >= 217 or eudev >= 2.1
  [9]   N  2015-01-28  CPU_FLAGS_X86 introduction
  [10]  N  2015-02-02  New portage plug-in sync system
  [11]  N  2015-03-28  True multilib support on amd64
  [12]  N  2015-06-08  udev-init-scripts-29 important changes

(chroot) livecd / # eselect news read


(very long output here...)

Code:
(chroot) livecd / # eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0 *
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/desktop/plasma
  [9]   default/linux/amd64/13.0/desktop/plasma/systemd
  [10]  default/linux/amd64/13.0/developer
  [11]  default/linux/amd64/13.0/no-multilib
  [12]  default/linux/amd64/13.0/systemd
  [13]  default/linux/amd64/13.0/x32
  [14]  hardened/linux/amd64
  [15]  hardened/linux/amd64/selinux
  [16]  hardened/linux/amd64/no-multilib
  [17]  hardened/linux/amd64/no-multilib/selinux
  [18]  hardened/linux/amd64/x32
  [19]  hardened/linux/musl/amd64
  [20]  default/linux/uclibc/amd64
  [21]  hardened/linux/uclibc/amd64

(chroot) livecd / # eselect profile set 1
(chroot) livecd / # emerge --info | grep ^USE
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

(chroot) livecd / # echo "Europe/Paris" > /etc/timezone
(chroot) livecd / # emerge --config sys-libs/timezone-data


Configuring pkg...

 * Updating /etc/localtime with /usr/share/zoneinfo/Europe/Paris

(chroot) livecd / # nano -w /etc/locale.gen


In the /etc/locale.gen I uncomment en_US.UTF-8 UTF-8, add fr_FR.UTF-8 UTF-8, save the file and exit nano

Code:
(chroot) livecd / # locale-gen
Generating 2 locales (this might take a while) with 1 jobs
(1/2) Generating en_US.UTF-8 ... [ ok ]
(2/2) Generating fr_FR.UTF-8 ... [ ok ]
Generation complete
(chroot) livecd / # locale -a
C
en_US.utf8
fr_FR.utf8
POSIX
(chroot) livecd / # eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   en_US.utf8
  [3]   fr_FR.utf8
  [4]   POSIX
  [ ]   (free form)
(chroot) livecd / # eselect locale set 3
Setting LANG to fr_FR.utf8 ...
Run ". /etc/profile" to update the variable in your shell.
(chroot) livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...

livecd / # emerge --ask sys-kernel/gentoo-sources
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/bc-1.06.95  USE="readline -libedit -static"
[ebuild  N     ] sys-kernel/gentoo-sources-4.0.5  USE="-build -deblob -experimental -symlink"

Would you like to merge these packages? [Yes/No] y


(very long output here...)

Code:
livecd / # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 18 16 juil. 20:59 /usr/src/linux -> linux-4.0.5-gentoo

livecd / # emerge --ask sys-kernel/genkernel


(very long output here...)

Code:
livecd / # nano -w /etc/fstab


According to the handbook I modify the line containing "/boot'

Code:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2               /boot           ext2            defaults        0 2
/dev/ROOT               /               ext3            noatime         0 1
/dev/SWAP               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
/dev/fd0                /mnt/floppy     auto            noauto          0 0


Save /etc/fstab file and exit nano

Code:
livecd / # genkernel all


very long output here with a warning (that I can't understand) at the end :

Code:
* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.


Code:
livecd / # ls /boot/kernel* /boot/initramfs*
/boot/initramfs-genkernel-x86_64-4.0.5-gentoo  /boot/kernel-genkernel-x86_64-4.0.5-gentoo


Code:
livecd / # nano /etc/fstab


Code:
/dev/sda2               /boot           ext2            defaults,noatime        0 2
/dev/sda3               none            swap            sw              0 0
/dev/sda4               /               ext4            noatime         0 1


I modify the file with the three lines above, save and exit nano

Code:
livecd / # nano -w /etc/conf.d/hostname

# Set to the hostname of this machine
hostname="gentoo"


save and exit nano

livecd / # nano -w /etc/conf.d/net

# Set the dns_domain_lo variable to the selected domain name
dns_domain_lo="mynetwork"

save and exit nano

Code:
livecd / # emerge --ask --noreplace net-misc/netifrc

These are the packages that would be merged, in order:

Calculating dependencies... done!

 * net-misc/netifrc

Would you like to add these packages to your world favorites? [Yes/No] y
>>> Recording net-misc/netifrc in "world" favorites file...

livecd / # nano -w /etc/conf.d/net

# Set the dns_domain_lo variable to the selected domain name
dns_domain_lo="mynetwork"
config_eno1="dhcp"


save and exit nano

Code:
livecd init.d # ln -s net.lo net.eno1
livecd init.d # rc-update add net.eno1 default
 * service net.eno1 added to runlevel default

livecd init.d # nano -w /etc/hosts


I add a line in the /etc/hosts file

Code:
# IPv4 and IPv6 localhost aliases
127.0.0.1       localhost
::1             localhost
127.0.0.1       gentoo.mynetwork gentoo localhost


save and exit nano

Code:
livecd init.d # passwd
Nouveau mot de passe :
Retapez le nouveau mot de passe :
passwd : le mot de passe a été mis à jour avec succès

livecd init.d # nano -w /etc/rc.conf


I really don't know what to do with this file so I didn't modified it...

Code:
livecd init.d # nano -w /etc/conf.d/keymaps


I change keymap="us" to keymap="fr" in the /etc/conf.d/keymaps, save and exit nano

Code:
livecd init.d # nano -w /etc/conf.d/hwclock


Nothing to change in the /etc/conf.d/hwclock file

Code:
livecd init.d # emerge --ask app-admin/syslog-ng


(very long output here...)

Code:
livecd init.d # emerge --ask app-admin/logrotate


(very long output here...)

Code:
livecd init.d # rc-update add syslog-ng default
 * service syslog-ng added to runlevel default
 
livecd init.d # emerge --ask sys-process/cronie


very long output here with those lines at the end :

Code:
 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


Code:
livecd init.d # rc-update add cronie default
 * service cronie added to runlevel default

livecd init.d # emerge --ask sys-apps/mlocate


very long output here with those lines at the end :

Code:
 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


Code:
livecd init.d # rc-update add sshd default
 * service sshd added to runlevel default

livecd init.d # emerge --ask net-misc/dhcpcd


very long output here with those lines at the end :

Code:
 * IMPORTANT: 2 config files in '/etc' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.


Code:
livecd init.d # emerge --ask sys-boot/grub

livecd init.d # grub2-install /dev/sda
Installing for i386-pc platform.
Installation terminée, sans erreur.

Everything is fine, no error

Code:
livecd init.d # grub2-mkconfig -o /boot/grub/grub.cfg
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/kernel-genkernel-x86_64-4.0.5-gentoo
Image mémoire initiale trouvée : /boot/initramfs-genkernel-x86_64-4.0.5-gentoo
fait

Images found, done

Code:
livecd init.d # exit
exit
livecd gentoo # cd
livecd ~ # umount -l /mnt/gentoo/dev{/shm,/pts,}
livecd ~ # umount /mnt/gentoo{/boot,/sys,/proc,}
umount: /mnt/gentoo/sys: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
umount: /mnt/gentoo: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)


target is busy so I tried

Code:
umount -l /mnt/gentoo{/boot,/sys,/proc,}
livecd ~ # umount -l /mnt/gentoo{/boot,/sys,/proc,}
umount: /mnt/gentoo/boot: not mounted
umount: /mnt/gentoo/proc: not mounted


It seems to work, so it's time to reboot

Code:
livecd ~ # reboot


When the server restart here is what happen :

I see a quick message "Welcome to grub!"
Then I see the boot screen with two choices :
Gentoo GNU/Linux
Advanced options

Then the boot process begin but stops here

Code:
>> Determining root device...
!! Could not find the block root device in UUID=08486b40-6e58-4174-9c29-47bb5643ebc2
!! Please specify another value or:
!! - Press Enter for the same
!! - Type "shell" for a shell
!! - type "q" to skip...
root block device(UUID=08486b40-6e58-4174-9c29-47bb5643ebc2) ::


Thanks for your help.


Last edited by LaFigue on Sun Jul 19, 2015 10:53 am; edited 2 times in total
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3641

PostPosted: Thu Jul 16, 2015 10:11 pm    Post subject: Reply with quote

I didn't read all the details, but AFAIR I had a hard time with such a system a couple of years ago trying to boot on RAID1 with BOOT NG system disk to manage partitioning, which I've been using for ages now!!!
Installing Win2003 was a breeze though.
I suspect there is a strong bios routing there...

Good luck

Thks 4 ur attention.
Back to top
View user's profile Send private message
Xalogen
n00b
n00b


Joined: 07 Dec 2014
Posts: 3
Location: New York, United States

PostPosted: Thu Jul 16, 2015 10:43 pm    Post subject: Reply with quote

I've been in the same situation with installs in the past on a dedicated server in a data center, sometimes Grub doesn't effectively set the root= when it finishes installing and thus when you reboot it doesn't work.

I would suggest getting to a grub recovery console and trying out the steps highlighted at https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/ and seeing if you can get it to boot from there. If you get it to boot using that then I would suggest running grub2-mkconfig -o /boot/grub/grub.cfg again but inside of the now booted system then when you reboot everything should work as expected.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54343
Location: 56N 3W

PostPosted: Fri Jul 17, 2015 8:32 am    Post subject: Reply with quote

LaFigue

Welcome to Gentoo.

After fat fingering this post three times, I'll just say that you need the hpsa kernel driver. The kernel help says
Code:
  | Symbol: SCSI_HPSA [=n]                                                  | 
  | Type  : tristate                                                        | 
  | Prompt: HP Smart Array SCSI driver                                      | 
  |   Location:                                                             | 
  |     -> Device Drivers                                                   | 
  |       -> SCSI device support                                            | 
  | (1)     -> SCSI low-level drivers (SCSI_LOWLEVEL [=n])                  | 
  |   Defined at drivers/scsi/Kconfig:369                                   | 
  |   Depends on: SCSI_LOWLEVEL [=n] && PCI [=y] && SCSI [=y]               | 
  |   Selects: CHECK_SIGNATURE [=y]


Also, you don't get a 2.7TB partiton from two 2TB drives in raid1.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LaFigue
n00b
n00b


Joined: 16 Jul 2015
Posts: 3
Location: Montpellier, France

PostPosted: Fri Jul 17, 2015 7:25 pm    Post subject: Reply with quote

Thanks for your quick answers, really appreciate that.
CaptainBlood wrote:

I suspect there is a strong bios routing there...

That's what I thought too first. But after a few hours digging in the HP BIOS I'm quiet sure the BIOS is not guilty (see below)

Xalogen wrote:

I would suggest getting to a grub recovery console and trying out the steps highlighted at https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/

I followed your advice and learned a lot about grub recovery console, maybe there is a clue now.

Have a look at what I did :

At boot screen I press the "c" key

Code:
GNU GRUB version 2.02~beta2
grub> set pager=1


Let's have a look to partitonning
Code:
grub> ls
(hd0)  (hd0,gpt4)  (hd0,gpt3)  (hd0,gpt2)  (hd0,gpt1)


Just for information purpose
Code:
grub> ls (hd0,1)/
error : unknown filesystem

(error message translated from french)

Just for information purpose
Code:
grub> ls (hd0,3)/
error : unknown filesystem

(error message translated from french)

List the content of /dev/sda2
Code:
grub> ls (hd0,2)/
lost+found/ kernel-genkernel-x86_64-4.0.5-gentoo System.map-kernel-genkernel-x86_64-4.0.5-gentoo initramfs-genkernel-x86_64-4.0.5-gentoo grub/


List the content of /dev/sda2/grub
Code:
grub> ls (hd0,2)/grub/
i386-pc/  locale/  themes/ fonts/ grubenv grub.cfg


List the content of /dev/sda4
Code:
grub> ls (hd0,4)/
lost+found/ boot/ stage3-amd64-20150709.tar.bz2 sys/ bin/ usr/ media/ root/ dev/ proc/ tmp/ run/ lib var/ lib32/ etc/ mnt/ home/ lib64/ opt/ sbin/


List the content of /dev/sda4/boot
Code:
grub> ls (hd0,4)/boot/

grub>

This is empty as you can see

Just to be sure exit grub and reboot the server from install-amd64-minimal-20150702.iso CD

Code:
livecd ~ # mount /dev/sda4 /mnt/gentoo
livecd ~ # ls /mnt/gentoo/boot
livecd ~ #

This folder is empty as grub said

Code:
livecd ~ # mount /dev/sda2 /mnt/gentoo/boot
livecd ~ # ls /mnt/gentoo/boot
livecd ~ # lost+found/ kernel-genkernel-x86_64-4.0.5-gentoo System.map-kernel-genkernel-x86_64-4.0.5-gentoo initramfs-genkernel-x86_64-4.0.5-gentoo grub

Again, Grub was right

Now let's go back to grub, have a beer because it's friday, and according to https://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux/ let's try a couple of things.

Code:
grub> set root=(hd0,4)
grub> linux /boot/kernel-genkernel-x86_64-4.0.5-gentoo root=/dev/sda4

Obviously this is useless because there is nothing in /dev/sda4/boot/ as previously seen. Grub and the completion, which are smarter than me, tell me there is no available file here...
So I won't go further

Let's try another thing
Code:
grub> set root=(hd0,2)
grub> linux /kernel-genkernel-x86_64-4.0.5-gentoo root=/dev/sda2
grub> initrd /initramfs-genkernel-x86_64-4.0.5-gentoo
grub> boot


Then the boot process begin but stops here
Code:
>> Determining root device...
!! Block device /dev/sda2 is not a valid root device


Ok, now just a last dummy attempt

let's go back to grub and change argument for root=

Code:
grub> set root=(hd0,2)
grub> linux /kernel-genkernel-x86_64-4.0.5-gentoo root=/dev/sda4
grub> initrd /initramfs-genkernel-x86_64-4.0.5-gentoo
grub> boot


Then the boot process begin but stops here
Code:
>> Determining root device...
!! Block device /dev/sda4 is not a valid root device


Conclusion :

As far as I understand the boot process is looking for /dev/sda4/boot/kernel-genkernel-x86_64-4.0.5-gentoo and /dev/sda4/boot/initramfs-genkernel-x86_64-4.0.5-gentoo

Unfortunatly these files are located in /dev/sda2.
And these files are not yet mounted in /dev/sda4/boot/ (according to the fstab) when the boot process begin

NeddySeagoon wrote:

After fat fingering this post three times

Thank you for taking time reading this very long post
NeddySeagoon wrote:

I'll just say that you need the hpsa kernel driver

How do I achieve this using genkernel (if possible) ?

Another thing I don't understand :

You remember I have 4 partitions

Code:
(parted) print                                                           
Model: HP LOGICAL VOLUME (scsi)
Disk /dev/sda: 2861556MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start      End         Size        File system  Name    Flags
 1      1.00MiB    3.00MiB     2.00MiB                  grub    bios_grub
 2      3.00MiB    131MiB      128MiB                   boot
 3      131MiB     131203MiB   131072MiB                swap
 4      131203MiB  2861555MiB  2730352MiB               rootfs


But there is only 3 partitions in the /etc/fstab file

Code:
/dev/sda2               /boot           ext2            defaults,noatime        0 2
/dev/sda3               none            swap            sw              0 0
/dev/sda4               /               ext4            noatime         0 1


Did I miss something in the /etc/fstab file ?

Thanks for your help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54343
Location: 56N 3W

PostPosted: Fri Jul 17, 2015 8:28 pm    Post subject: Reply with quote

LaFigue,

First, a little about the boot process and the term root used in two different contexts to mean two different thngs.
The process is similar for both BIOS and EUFI so I will gloss over the detailed differences.

At power up, there is only empty RAM and the PC firmware. The firmware des its thing setting up the hardware, some testing, then loads your boot loader. Loading the boot loader is not simple, its in several pieces. Like a cascade of loaders, each one more capable than the last. In grub-legacy, its in three stages.

The boot loader shows you the menu. You make your choice ang the boot loader loads your kernel and optionally, your inirrd.
It then jumps to the kernel start address. The boot loader cannot use the kernels filesystem tree, nor can it use the kernel to read any files. The kernel isn't running. Indeed its in RAM but still compressed. Bootloaders must make their own arrangements to read your hard drives. Keep that in mind as you read the next fragment.

Code:
grub> set root=(hd0,4)
grub> linux /boot/kernel-genkernel-x86_64-4.0.5-gentoo root=/dev/sda4


The set root=(hd0,4) is telling grub where to find the files it will load. The (hd0,4) is grubspeak for the fourth partition on the first discovered HDD. It might be /dev/sda to the kernel later but that does not yet exist. We are still loading a kernel.
linux /boot/kernel-genkernel-x86_64-4.0.5-gentoo tells the file to load that can be executed. Normally a kernel.
root=/dev/sda4is passed to the kernel to tell it where the root filesystem is. The kernel cannot find out from /etc/fstab as the root filesystem is not yet mounted, so /etc/fstab cannot be read.

Notice the two different uses of root to mean different things.

Bootstrapping is all about breaking circular logic. Its named after the Greek mythological character who pulled himself up to heaven by tugging on his own bootstraps.

Code:
grub> ls (hd0,2)/
lost+found/ kernel-genkernel-x86_64-4.0.5-gentoo System.map-kernel-genkernel-x86_64-4.0.5-gentoo initramfs-genkernel-x86_64-4.0.5-gentoo grub/
This is clearly your boot partition. As it contains lost+found, we know that its the top level of a filesystem on a partition. It also contains kernels and initrd files. So you need
Code:
set root=(hd0,2)
to point grub here to load your kernel and initrd.

Code:
grub> ls (hd0,4)/
lost+found/ boot/ stage3-amd64-20150709.tar.bz2 sys/ bin/ usr/ media/ root/ dev/ proc/ tmp/ run/ lib var/ lib32/ etc/ mnt/ home/ lib64/ opt/ sbin/
This is a kernel root filesystem, so you have root=/dev/sda4The sda bit may not be correct but lets ignore that for now.

Your two partitions with no filesystems will be swap and a small grub partition. They are used directly by the kernel and grub.
swap should be listed in fstab but the grub partition shoud not.

This brings us on to the two different uses of boot and why (hd0,4)/boot is (correctly) empty.
You have a directory called /boot (leading /) on your root filesystem. You have a partition called boot (no /) which is (hd0,2)
The partition called boot is normally attached to the /boot directory, so the content of the boot partition appears at /boot.
When you look with grub the filesystem tree has not been assembed so you see all the bits on their own,

Genkernel has a -menuconfig option to allow you to make changes to the options before the build takes place.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LaFigue
n00b
n00b


Joined: 16 Jul 2015
Posts: 3
Location: Montpellier, France

PostPosted: Sun Jul 19, 2015 10:52 am    Post subject: Reply with quote

Thanks a lot NeddySeagoon, the server is up now !
NeddySeagoon wrote:

I'll just say that you need the hpsa kernel driver


That's it ! I made this :
Code:
genkernel --menuconfig all

Then I have activated the HP Smart Array SCSI driver, save the config and exit the menuconfig utility.
Then the compile process has started and ended normally.

I have rebooted the server and everything was fine.

Thank you for your support.

NeddySeagoon wrote:
Also, you don't get a 2.7TB partiton from two 2TB drives in raid1.

That's right there is 2 x 3 TB drives, I've edited my post to change that.

NeddySeagoon wrote:
First, a little about the boot process

Thanks for these explanations, I've learned a lot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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