Hi,
I’m a Linux newbie, and I’ve been trying to install Manjaro Linux (GNOME) for a couple of days. Calamares kept freezing at 90% and 93% (“Install bootloader.”), so I tried manually installing with a guide (apparently I’m not allowed to add links to my post). Everything was going fine, dopamine was being released, until this command:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro
The terminal froze, time froze again, and my whole screen froze. After a bit more research, I found a tutorial on the Arch wiki for Mac. I mounted my EFI partition to /mnt/boot
instead of /mnt/boot/efi
, and ran bootctl --path=/boot install
on chroot, and surprise, the live USB froze again.
I’m using dhcpcd
for ethernet connection.
lsblk
on chroot outputs:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 76.4M 1 loop
loop1 7:1 0 369.1M 1 loop
loop2 7:2 0 1.4G 1 loop
loop3 7:3 0 697.2M 1 loop
sda 8:0 1 57.3G 0 disk
|-sda1 8:1 1 2.6G 0 part
`-sda2 8:2 1 4M 0 part
nvme0n1 259:0 0 233.8G 0 disk
|-nvme0n1p1 259:1 0 300M 0 part /boot
|-nvme0n1p2 259:2 0 2G 0 part
|-nvme0n1p3 259:3 0 32G 0 part /
`-nvme0n1p4 259:4 0 199.5G 0 part /home
Please let me know what I am doing wrong.
Hello @anthon_l
Did you chroot before running these commands?
manjaro-chroot -a
Otherwise it will try to write to the live session and not to the local disk.
I used manjaro-chroot /mnt /bin/bash
@anthon_l ok
Mabye your Macbook have an 32bit EFI?
cat /sys/firmware/efi/fw_platform_size
Please also this:
sudo parted -l
Okay, here is the output of both:
[manjaro-gnome manjaro]# cat /sys/firmware/efi/fw_platform_size
64
[manjaro-gnome manjaro]# sudo parted -l
Model: USB SanDisk 3.2Gen1 (scsi)
Disk /dev/sda: 61.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 2801MB 2806MB 4194kB primary esp
Model: APPLE SSD AP0256M (nvme)
Disk /dev/nvme0n1: 251GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 316MB 315MB fat32 boot, esp
2 316MB 2463MB 2147MB linux-swap(v1) swap
3 2463MB 36.8GB 34.4GB ext4
4 36.8GB 251GB 214GB ext4
Seems to be correct… hm…
If you run manjaro-chroot /mnt /bin/bash
you need also load the efivar module. manjaro-chroot -a
does this automatically:
sudo modprobe efivarfs
sudo manjaro-chroot /mnt /bin/bash
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
And verify:
ls /sys/firmware/efi
Then try to install the bootloader again.
bootctl --path=/boot install
froze again.
I just executed manjaro-chroot -a
, and the output was:
[manjaro-gnome manjaro]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
==> Mounting (Manjaro) [/dev/nvme0n1p3]
--> mount: [/mnt]
mount: /mnt: /dev/nvme0n1p3 already mounted on /mnt.
[root@manjaro-gnome /]#
What the heck does this mean?
On nvme this can be ignored:
This just means, that this device is already mounted, so the script skip this step.
Sorry, no idea then. Never used a Macbook ever, but I guess the refind bootloader is the way to go if it comes to Apple Devices…
I have been “dropped into an emergency shell.”
(It won’t let me post an image?)
@megavolt
[ 0. 226022] ERROR: Unable to locate IoAPIC for GSI 34
:: running early hook [udev]
:: Triggering uevents...
ERROR: device '' not found. Skipping fsck
:: mounting '' on real root
mount: /new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
How do I fix this?
You must reach TrustLevel1 (TL1) for posting links and pictures. It is for spam prevention.
Possible a kernel and firmware problem.
You can add noapic
to the kernel parameter.
I enabled menuentry Linux
in the config and added the noapic
option, but I still got dropped.
You have add it here on your local installation, right? : /etc/default/grub
at GRUB_CMDLINE_LINUX_DEFAULT=
and run update-grub
in chroot…
But I’m using rEFInd because installing grub would hang then freeze. I’m using the config at /boot/EFI/BOOT/refind.conf
.
@anthon_l ok… Which kernel version?
uname -a
Maybe better full system information:
inxi -Fazy
Also try kernel 5.4 instead of kernel 5.10 , maybe there is an issue…
inxi -Fazy
:
System:
Kernel: 5.10.36-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC
misobasedir=manjaro misolabel=MANJARO_GNOME_2105 quiet systemd.show_status=1
driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1
Desktop: GNOME 3.38.4 tk: GTK 3.24.29 wm: gnome-shell dm: GDM 40.0
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Apple product: MacBookPro15,2 v: 1.0 serial: <filter>
Chassis: type: 9 v: Mac-827FB448E656EC26 serial: <filter>
Mobo: Apple model: Mac-827FB448E656EC26 v: MacBookPro15,2 serial: <filter>
UEFI: Apple v: 1554.100.64.0.0 (iBridge: 18.16.14556.0.0,0) date: 03/10/2021
Battery:
ID-1: BAT0 charge: 41.9 Wh (82.2%) condition: 51.0/58.0 Wh (87.9%)
volts: 12.6 min: 11.4 model: SWD bq20z451 type: Li-ion serial: N/A
status: Charging cycles: 258
CPU:
Info: Quad Core model: Intel Core i5-8279U bits: 64 type: MT MCP
arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10)
microcode: E0 cache: L2: 6 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 38408
Speed: 600 MHz min/max: 400/4100 MHz Core speeds (MHz): 1: 600 2: 600 3: 600
4: 600 5: 600 6: 600 7: 600 8: 600
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Iris Plus Graphics 655 vendor: Apple driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:3ea5 class-ID: 0300
Display: wayland server: X.org 1.20.11 compositor: gnome-shell driver:
loaded: i915 note: n/a (using device driver) - try sudo/root display-ID: 0
resolution: <missing: xdpyinfo>
OpenGL: renderer: Mesa Intel Iris Plus Graphics 655 (CFL GT3)
v: 4.6 Mesa 21.0.3 direct render: Yes
Audio:
Device-1: Intel Cannon Point-LP High Definition Audio driver: snd_hda_intel
v: kernel alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3
chip-ID: 8086:9dc8 class-ID: 0403
Device-2: Apple Audio driver: N/A bus-ID: 02:00.3 chip-ID: 106b:1803
class-ID: 0401
Sound Server-1: ALSA v: k5.10.36-2-MANJARO running: yes
Sound Server-2: JACK v: 0.125.0 running: no
Sound Server-3: PulseAudio v: 14.2 running: yes
Sound Server-4: PipeWire v: 0.3.27 running: no
Network:
Device-1: Broadcom BCM4364 802.11ac Wireless Network Adapter vendor: Apple
driver: N/A modules: brcmfmac port: 3040 bus-ID: 01:00.0 chip-ID: 14e4:4464
class-ID: 0280
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 4-2:2 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp6s0u2 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 291.07 GiB used: 1.93 GiB (0.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Apple model: SSD AP0256M
size: 233.76 GiB block-size: physical: 4096 B logical: 4096 B
speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> rev: 1161.100
temp: 38.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 type: USB vendor: SanDisk model: USB 3.2Gen1
size: 57.3 GiB block-size: physical: 512 B logical: 512 B serial: <filter>
rev: 1.00 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 55.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 301 Uptime: 1m wakeups: 16 Memory: 7.62 GiB
used: 1.63 GiB (21.3%) Init: systemd v: 247 tool: systemctl Compilers:
gcc: N/A Packages: pacman: 1203 lib: 293 flatpak: 0 Shell: Zsh v: 5.8
running-in: gnome-terminal inxi: 3.3.04
uname -a
:
Linux manjaro-gnome 5.10.36.2-MANJARO #1 SMP PREEMPT Tue May 11 19:38:44 UTC 2021 x86_64 GNU/Linux
This is in zsh
, not chroot
@anthon_l Also the journal log. Please run it in chroot and outside of chroot:
journalctl --boot=-0 --since=today --no-pager
Better use an external service for long logs. And surround the links with back ticks:
`https://mylink.com` → https://mylink.com
That is a workaround for TL0 user.
It says that no journal files were found…