You are not logged in.

#1 2021-07-18 04:52:35

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Me vs New HP laptop round 2: Installing Grub

So I've been trying to install Arch again when I have some free time. I have not been successful both times and have just wound up reinstalling Ubuntu. The issue is with Grub. IT WILL NOT WORK NO MATTER WHAT I DO. I have installed it in /boot, /boot/efi and /efi. I have made sure to use efibootmgr (I have even tried leaving the UEFI partition created by Ubuntu and installing Grub again and mkconfiging it that worked bug generated a Grub Menu that had no option to boot Arch Linux and trying to add it manually was unsuccessful, despite getting a menu option on it wouldn't just boot because of some issue with finding hd1 (/dev/sdb where it was when I booted the USB) or hd0 (I changed it to this thinking it may've somehow changed and it still didn't work) and finding vmzlinuz etc. no matter what I do whenever I'm done installing Arch and reboot I always get a "missing operating system" style error.

How do I fix this?

Offline

#2 2021-07-18 04:56:46

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Me vs New HP laptop round 2: Installing Grub

If any of this is relevant. Here's the output of a sudo lshw command:

[name redacted]-hp-laptop-17-cn0xxx 
    description: Notebook
    product: HP Laptop 17-cn0xxx (37P29UA#ABA)
    vendor: HP
    version: Chassis Version
    serial: 5CG1146BRZ
    width: 64 bits
    capabilities: smbios-3.3.0 dmi-3.3.0 smp vsyscall32
    configuration: boot=normal chassis=notebook family=103C_5335KV HP Notebook sku=37P29UA#ABA uuid=12B834C9-F067-4FB9-A871-4BA1E4C42277
  *-core
       description: Motherboard
       product: 883C
       vendor: HP
       physical id: 0
       version: 69.16
       serial: PLKTQ00WBF17HI
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: AMI
          physical id: 0
          version: F.03
          date: 03/11/2021
          size: 64KiB
          capacity: 8MiB
          capabilities: pci upgrade shadowing cdboot bootselect edd smartbattery biosbootspecification netboot uefi
     *-memory
          description: System Memory
          physical id: 11
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM [empty]
             physical id: 0
             slot: Bottom - Slot 1 (left)
        *-bank:1
             description: SODIMM DDR4 Synchronous 3200 MHz (0.3 ns)
             product: HMA81GS6DJR8N-XN
             vendor: SK Hynix
             physical id: 1
             serial: 7489D726
             slot: Bottom - Slot 2 (right)
             size: 8GiB
             width: 64 bits
             clock: 3200MHz (0.3ns)
     *-cache:0
          description: L1 cache
          physical id: 29
          slot: L1 Cache
          size: 96KiB
          capacity: 96KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-cache:1
          description: L1 cache
          physical id: 2a
          slot: L1 Cache
          size: 64KiB
          capacity: 64KiB
          capabilities: synchronous internal write-back instruction
          configuration: level=1
     *-cache:2
          description: L2 cache
          physical id: 2b
          slot: L2 Cache
          size: 2560KiB
          capacity: 2560KiB
          capabilities: synchronous internal write-back unified
          configuration: level=2
     *-cache:3
          description: L3 cache
          physical id: 2c
          slot: L3 Cache
          size: 6MiB
          capacity: 6MiB
          capabilities: synchronous internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
          vendor: Intel Corp.
          physical id: 2d
          bus info: cpu@0
          version: 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 2804MHz
          capacity: 4100MHz
          width: 64 bits
          clock: 100MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear flush_l1d arch_capabilities cpufreq
          configuration: cores=2 enabledcores=2 threads=4
     *-pci
          description: Host bridge
          product: Intel Corporation
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 01
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             logical name: /dev/fb0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
             configuration: depth=32 driver=i915 latency=0 mode=1600x900 visual=truecolor xres=1600 yres=900
             resources: iomemory:600-5ff iomemory:400-3ff irq:147 memory:6002000000-6002ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
        *-generic:0
             description: Signal processing controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 4
             bus info: pci@0000:00:04.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: driver=proc_thermal latency=0
             resources: iomemory:600-5ff irq:16 memory:6003200000-600321ffff
        *-generic:1 UNCLAIMED
             description: System peripheral
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 8
             bus info: pci@0000:00:08.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: latency=0
             resources: iomemory:600-5ff memory:6003245000-6003245fff
        *-generic:2
             description: Signal processing controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: a
             bus info: pci@0000:00:0a.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress pm cap_list
             configuration: driver=intel-pmt latency=0
             resources: iomemory:600-5ff irq:0 memory:6003230000-6003237fff
        *-raid
             description: RAID bus controller
             product: Volume Management Device NVMe RAID Controller
             vendor: Intel Corporation
             physical id: e
             bus info: pci@0000:00:0e.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: raid msix pciexpress pm bus_master cap_list
             configuration: driver=vmd latency=0
             resources: iomemory:600-5ff iomemory:600-5ff irq:0 memory:6000000000-6001ffffff memory:52000000-53ffffff memory:6003100000-60031fffff
        *-usb
             description: USB controller
             product: Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci cap_list
             configuration: driver=xhci_hcd latency=0
             resources: iomemory:600-5ff irq:142 memory:6003220000-600322ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 5.11.0-22-generic xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 5.11
                capabilities: usb-2.00
                configuration: driver=hub slots=12 speed=480Mbit/s
              *-usb:0
                   description: Video
                   product: HP True Vision HD Camera
                   vendor: SunplusIT Inc
                   physical id: 5
                   bus info: usb@1:5
                   version: 0.02
                   capabilities: usb-2.01
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:1
                   description: Bluetooth wireless interface
                   product: Bluetooth Radio
                   vendor: Realtek
                   physical id: a
                   bus info: usb@1:a
                   version: 1.10
                   serial: 00e04c000001
                   capabilities: bluetooth usb-1.10
                   configuration: driver=btusb maxpower=500mA speed=12Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 5.11.0-22-generic xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 5.11
                capabilities: usb-3.10
                configuration: driver=hub slots=4 speed=10000Mbit/s
        *-memory UNCLAIMED
             description: RAM memory
             product: Tiger Lake-LP Shared SRAM
             vendor: Intel Corporation
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 20
             width: 64 bits
             clock: 33MHz (30.3ns)
             capabilities: pm cap_list
             configuration: latency=0
             resources: iomemory:600-5ff iomemory:600-5ff memory:600323c000-600323ffff memory:6003244000-6003244fff
        *-serial:0
             description: Serial bus controller
             product: Tiger Lake-LP Serial IO I2C Controller #0
             vendor: Intel Corporation
             physical id: 15
             bus info: pci@0000:00:15.0
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:27 memory:4017000000-4017000fff
        *-serial:1
             description: Serial bus controller
             product: Tiger Lake-LP Serial IO I2C Controller #1
             vendor: Intel Corporation
             physical id: 15.1
             bus info: pci@0000:00:15.1
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:40 memory:4017001000-4017001fff
        *-communication
             description: Communication controller
             product: Tiger Lake-LP Management Engine Interface
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: iomemory:600-5ff irq:145 memory:6003241000-6003241fff
        *-generic:3 UNCLAIMED
             description: System peripheral
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 17
             bus info: pci@0000:00:17.0
             version: 00
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
        *-pci
             description: PCI bridge
             product: Tiger Lake-LP PCI Express Root Port #9
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 20
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:122 ioport:3000(size=4096) memory:54000000-540fffff
           *-network
                description: Wireless interface
                product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: wlp1s0
                version: 00
                serial: 80:d2:1d:d6:9d:93
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=rtw_8821ce driverversion=5.11.0-22-generic firmware=N/A ip=10.0.0.26 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:146 ioport:3000(size=256) memory:54000000-5400ffff
        *-isa
             description: ISA bridge
             product: Tiger Lake-LP LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 20
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-multimedia
             description: Multimedia audio controller
             product: Tiger Lake-LP Smart Sound Technology Audio Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 20
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=sof-audio-pci latency=32
             resources: iomemory:600-5ff iomemory:600-5ff irq:148 memory:6003238000-600323bfff memory:6003000000-60030fffff
        *-serial:2
             description: SMBus
             product: Tiger Lake-LP SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: pci@0000:00:1f.4
             version: 20
             width: 64 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: iomemory:600-5ff irq:16 memory:6003240000-60032400ff ioport:efa0(size=32)
        *-serial:3 UNCLAIMED
             description: Serial bus controller
             product: Tiger Lake-LP SPI Controller
             vendor: Intel Corporation
             physical id: 1f.5
             bus info: pci@0000:00:1f.5
             version: 20
             width: 32 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:50400000-50400fff
     *-sata
          description: SATA controller
          product: Intel Corporation
          vendor: Intel Corporation
          physical id: 17
          version: 20
          width: 32 bits
          clock: 66MHz
          capabilities: sata msi pm ahci_1.0 bus_master cap_list
          configuration: driver=ahci latency=0
          resources: irq:143 memory:52000000-52001fff memory:52002800-520028ff memory:52002000-520027ff
     *-pnp00:00
          product: PnP device HPQ8001
          physical id: 1
          capabilities: pnp
          configuration: driver=i8042 kbd
     *-pnp00:01
          product: PnP device PNP0c02
          physical id: 2
          capabilities: pnp
          configuration: driver=system
     *-pnp00:02
          product: PnP device PNP0b00
          physical id: 3
          capabilities: pnp
          configuration: driver=rtc_cmos
     *-pnp00:03
          product: PnP device INT3f0d
          physical id: 4
          capabilities: pnp
          configuration: driver=system
     *-pnp00:04
          product: PnP device PNP0c02
          physical id: 5
          capabilities: pnp
          configuration: driver=system
     *-pnp00:05
          product: PnP device PNP0c02
          physical id: 6
          capabilities: pnp
          configuration: driver=system
     *-pnp00:06
          product: PnP device PNP0c02
          physical id: 7
          capabilities: pnp
          configuration: driver=system
     *-pnp00:07
          product: PnP device PNP0c02
          physical id: 8
          capabilities: pnp
          configuration: driver=system
     *-scsi
          physical id: 9
          logical name: scsi1
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: TOSHIBA MQ04ABF1
             vendor: Toshiba
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/sda
             version: 7C
             serial: 21IYT6QMT
             size: 931GiB (1TB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=4da6ecf4-2fbe-41a5-8ff7-7070a6d5b008 logicalsectorsize=512 sectorsize=4096
           *-volume:0 UNCLAIMED
                description: Windows FAT volume
                vendor: mkfs.fat
                physical id: 1
                bus info: scsi@1:0.0.0,1
                version: FAT32
                serial: 8c12-d228
                size: 510MiB
                capacity: 511MiB
                capabilities: boot fat initialized
                configuration: FATs=2 filesystem=fat name=EFI System Partition
           *-volume:1
                description: EXT4 volume
                vendor: Linux
                physical id: 2
                bus info: scsi@1:0.0.0,2
                logical name: /dev/sda2
                logical name: /
                version: 1.0
                serial: 9ce766de-90fa-44f7-a896-fa1da3abcd2b
                size: 931GiB
                capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                configuration: created=2021-07-17 23:06:25 filesystem=ext4 lastmountpoint=/ modified=2021-07-17 23:42:59 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro mounted=2021-07-17 23:43:03 state=mounted
  *-battery
       description: Lithium Ion Battery
       product: HW03041X
       vendor: 333-42-34-A
       physical id: 1
       version: 01/07/2021
       serial: 33356 01/07/2021
       slot: Primary
       capacity: 41000mWh
       configuration: voltage=11.3V

Last edited by PythonLinux (2021-07-19 03:12:43)

Offline

#3 2021-07-18 12:20:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,467

Re: Me vs New HP laptop round 2: Installing Grub

It's probably been mentioned before , but please use [ code ] tags for such content so the post stays readable .
see https://bbs.archlinux.org/help.php#bbcode for details / examples .

Grub2 is a powerful bootloader with lots of tools to automate things.
It also tends to be hard to configure manually and tricky to troubleshoot.


https://wiki.archlinux.org/title/Arch_boot_process#Under_UEFI wrote:

Under UEFI

    System switched on, the power-on self-test (POST) is executed.
    After POST, UEFI initializes the hardware required for booting (disk, keyboard controllers etc.).
    Firmware reads the boot entries in the NVRAM to determine which EFI application to launch and from where (e.g. from which disk and partition).
        A boot entry could simply be a disk. In this case the firmware looks for an EFI system partition on that disk and tries to find an EFI application in the fallback boot path \EFI\BOOT\BOOTx64.EFI (BOOTIA32.EFI on systems with a IA32 (32-bit) UEFI). This is how UEFI bootable removable media work.
    Firmware launches the EFI application.
        This could be a boot loader or the Arch kernel itself using EFISTUB.
        It could be some other EFI application such as a UEFI shell or a boot manager like systemd-boot or rEFInd.

Both rEFInd[1] and systemd-boot[2] are much easier to setup & troubleshoot then grub .

[1] https://wiki.archlinux.org/title/REFInd
[2] https://wiki.archlinux.org/title/Systemd-boot

Last edited by Lone_Wolf (2021-07-18 12:21:56)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2021-07-19 00:10:51

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 137

Re: Me vs New HP laptop round 2: Installing Grub

If your laptop is not a multi-boot machine (you are going to have only one operating system), you do not need any bootloaders. See EFISTUB.
And even if you are going to have more OSes installed, I would still use EFISTUB.

Offline

#5 2021-07-19 02:58:29

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Me vs New HP laptop round 2: Installing Grub

Lone_Wolf: Real sorry for not editing properly. Will take more care in the future.
dif: May try that soon.

I have some new updates but I'll probably post them tomorrow.

Offline

#6 2021-07-19 03:07:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Me vs New HP laptop round 2: Installing Grub

PythonLinux wrote:

Lone_Wolf: Real sorry for not editing properly. Will take more care in the future.

Take care now. Fix the post so that people reading the thread don't have to spend the rest of their lives scrolling...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2021-07-19 03:13:48

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Me vs New HP laptop round 2: Installing Grub

Jasonwryan, you're totally right. Taken care of. I'll report back after trying dif's suggestion when installing

Offline

#8 2021-07-19 03:45:42

loqs
Member
Registered: 2014-03-06
Posts: 18,690

Re: Me vs New HP laptop round 2: Installing Grub

If the only grub that worked was that supplied by Ubuntu,  is secureboot enabled?  What is the output of `bootctl`?

Offline

#9 2021-07-19 18:49:11

PythonLinux
Member
Registered: 2021-06-25
Posts: 102

Re: Me vs New HP laptop round 2: Installing Grub

Secureboot is disabled. I had to do that in order to boot the Arch USB. Someone mentioned something about RAID and AHPI (not sure that's right) in an ealirer thing but I can't remember what they said off-hand.

Anyway the update, I tried to do systemd myself but since I'm not a pro I couldn't get it fully recognizing Arch  (If I spent a couple hours doing this in a virtual machine I could probably figure it out eventually) so I tried selecting the systemd option with the unofficial Arch Install scripts (IK these are unofficial and I'm not requesting any support for them, they were just mentioned on the wiki so figured it was worth a try.) It installed Systemd and got Arch recognized but the startup stopped due to an error with beginining the startup job (It displayed a UUID so I have my suspicions this was some sort of fstab issue). I'm going to try installing manually using the excellent arch wiki page on Efibootmgr next.

Offline

#10 2021-07-19 19:11:40

loqs
Member
Registered: 2014-03-06
Posts: 18,690

Re: Me vs New HP laptop round 2: Installing Grub

RAID mode can cause issues so AHCI mode is generally a safer option if you have the choice.
If it was failing to find the root filesystem would be a boot loader issue (or at least an issue with the parameters it has configured for the root FS).  Other file-systems would agree with it being an fstab issue.

Offline

Board footer

Powered by FluxBB