You are not logged in.

#1 2024-07-19 13:13:24

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

[SOLVED] MacBook7,1 isn't booting

Starting a new thread for the new installation - I've reinstalled Arch with rEFInd for the bootloader, and the LTS kernel, just that I get dropped into an emergency shell at boot, and can't really do nothing else but power off.

So far, I've installed the nouveau packages (mesa, lib32-mesa, xf86-video-nouveau), the base system (LTS kernel, nano, efibootmgr) and the bootloader rEFInd, after I finished the installation process, a reboot to the SSD and it drops straight into an emergency shell.

Help please?

Last edited by adr77 (2024-07-20 22:18:38)


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#2 2024-07-19 13:17:50

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] MacBook7,1 isn't booting

Please share your installation process and full bootloader configuration.

The output of these commands from any live environment will probably help:

efibootmgr -u # or -uv if run from a Debian/Ubuntu system
blkid
parted --list

Thanks.


Jin, Jîyan, Azadî

Offline

#3 2024-07-19 14:25:35

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

Installation process was the same as the ArchWiki says, except for the LANG variable in /etc/locale.conf, now being en_IL.UTF-8, and locale.gen has en_IL.UTF-8, he_IL.UTF-8, ja_JP.UTF-8 and ru_RU.UTF-8 marked for the languages I write in (using Mozc for Japanese input).

Using rEFInd for the bootloader, I installed it with the system using pacstrap, then installed it to my boot partition (1G mounted at /boot) using "refind-install" as rEFInd's ArchWiki page suggest.

Gimme a sec to pull up a Linux Mint live environment, I'll run the commands you asked me to do.

Here's all the command in line as asked:

root@mint:~# efibootmgr -uv
BootCurrent: 0005
Timeout: 2 seconds
BootOrder: 0005,0003,0002,0000,0080,0004,0001
Boot0000* GRUB	HD(1,GPT,351028c3-4049-4119-903d-30f0d0988416,0x800,0x200000)/File(\EFI\GRUB\grubx64.efi)
Boot0001* OpenCore	PciRoot(0x0)/Pci(0xa,0x0)/Sata(0,0,0)/HD(5,GPT,59356027-de6e-4b3d-967c-6f6437f90103,0x3b952800,0x8e800)/File(EFI\OC\OpenCore.efi)
Boot0002* ubuntu	HD(1,GPT,acc8ce94-d3b5-47fb-b417-da9305c8d705,0x800,0x1dd000)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* rEFInd Boot Manager	HD(1,GPT,351028c3-4049-4119-903d-30f0d0988416,0x800,0x200000)/File(\EFI\refind\refind_x64.efi)
Boot0004* Windows Boot Manager	HD(1,GPT,f3ac3291-b4fc-4a87-a819-92742b9fdbe6,0x28,0x64000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)䥗䑎坏S
Boot0005* rEFInd Boot Manager	HD(1,GPT,d21dc006-3811-47bb-a8cb-21848cd25256,0x800,0x200000)/File(\EFI\refind\refind_x64.efi)
Boot0006* neon	HD(1,GPT,29022539-9413-4786-b179-3cf4893f4d71,0x28,0x64000)/File(\EFI\neon\shimx64.efi)
Boot0080* Mac OS X	PciRoot(0x0)/Pci(0xa,0x0)/Sata(0,0,0)/HD(2,GPT,ddf59c5c-22bf-4cab-bb03-0199b3f40ec2,0x64028,0x1dbfb0b0)
Boot0081* Mac OS X	MemoryMapped(11,0xffcc4000,0xffffbfff)/FvFile(2b0585eb-d8b8-49a9-8b8c-e21b01aef2b7)CD
Boot0082* 	PciRoot(0x0)/Pci(0xa,0x0)/Sata(0,0,0)/HD(2,GPT,ddf59c5c-22bf-4cab-bb03-0199b3f40ec2,0x64028,0x1dbfb0b0)
BootFFFF* 	PciRoot(0x0)/Pci(0x6,0x1)/USB(3,0)/HD(1,MBR,0x6aae9122,0x1db000,0x52000)/File(\EFI\BOOT\BOOTX64.efi)

root@mint:~# blkid
/dev/sda1: UUID="F67A-B090" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="d21dc006-3811-47bb-a8cb-21848cd25256"
/dev/sda3: UUID="31cba423-9565-47ec-b75c-88e0a0934910" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6dcdcb7e-fa95-4232-8e72-dc2537691abb"
/dev/sdb1: BLOCK_SIZE="2048" UUID="2024-01-09-13-26-32-00" LABEL="Linux Mint 21.3 Xfce 64-bit" TYPE="iso9660" PARTUUID="47a1bc8f-01"
/dev/sdb2: SEC_TYPE="msdos" UUID="659D-4988" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="47a1bc8f-02"
/dev/sdb3: LABEL="writable" UUID="714e47f5-c5a8-406b-b082-ceca798401b8" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="47a1bc8f-03"
/dev/loop0: TYPE="squashfs"
/dev/sda2: UUID="15ac0f01-256d-4a7e-a6c2-503fbd23b175" TYPE="swap" PARTUUID="87909af5-8409-4d55-b927-f592cf7b6c22"

root@mint:~# parted --list
Model: ATA Samsung SSD 750 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  1075MB  1074MB  fat32
 2      1075MB  9665MB  8590MB  linux-swap(v1)
 3      9665MB  250GB   240GB   ext4

Last edited by adr77 (2024-07-19 14:36:13)


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#4 2024-07-19 16:57:26

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] MacBook7,1 isn't booting

You have several redundant boot entries pointing to non-existent EFI system partitions (efibootmgr shows the PARTUUIDs for each entry) so try removing them with efibootmgr. I would hazard that the spurious rEFInd entry (Boot003) is the bad apple here but you should probably remove all the unneeded entries.

Also apply the correct "flag" to the ESP:

# parted /dev/sda set 1 esp on

Your motherboard does still seem to be able to boot from it but the partition GUID should be set correctly anyway.


Jin, Jîyan, Azadî

Offline

#5 2024-07-19 18:18:15

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

Can't seem to delete it. using the "-B" flag and this happens:

mint@mint:~$ sudo su
root@mint:/home/mint# cd
root@mint:~# efibootmgr
BootCurrent: 0005
Timeout: 2 seconds
BootOrder: 0005,0003,0002,0000,0080,0004,0001
Boot0000* GRUB
Boot0001* OpenCore
Boot0002* ubuntu
Boot0003* rEFInd Boot Manager
Boot0004* Windows Boot Manager
Boot0005* rEFInd Boot Manager
Boot0006* neon
Boot0080* Mac OS X
Boot0081* Mac OS X
Boot0082* 
BootFFFF* 
root@mint:~# efibootmgr -B 0001
You must specify an entry to delete (see the -b option).
root@mint:~# 

can't understand what it means by "specify".


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#6 2024-07-19 18:24:15

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] MacBook7,1 isn't booting

The man page shows how in the EXAMPLES section. Looking again at the output the correct partition is set as first in the boot order so the partition GUID is probably the problem here. Running my parted command should fix that.


Jin, Jîyan, Azadî

Offline

#7 2024-07-19 18:49:43

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

so I ran your command, and generated the fstab again, still does the same.


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#8 2024-07-19 18:54:39

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] MacBook7,1 isn't booting

Okay, please describe in full exactly what happens during the boot process — what do you see on the screen?

Use `parted --list` again to check if the "esp" flag has actually been applied.

Last edited by Head_on_a_Stick (2024-07-19 18:55:00)


Jin, Jîyan, Azadî

Offline

#9 2024-07-19 20:46:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

There's gonna be an error message w/ indication as to *why* you're getting dropped into an emergency shell - that'll be rather important.
What changed and how did you move to refind reg. https://bbs.archlinux.org/viewtopic.php … 6#p2179506 ?

Offline

#10 2024-07-19 21:03:11

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

moved to rEFInd because it actually shows what it does on a Mac, unlike GRUB which does not have that without extreme tinkering.


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#11 2024-07-19 21:09:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

Yeah, but you suggested you could not use refind "because mac"?
Also: error message before the emergency shell?

Offline

#12 2024-07-19 21:11:27

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

yeah I said that, then I read the ArchWiki entry on rEFInd, which does say you could install on Linux without macOS present.

lemme pull it up, I'll send a link of the image.

https://imgur.com/a/XPloqLQ should work now

Last edited by adr77 (2024-07-19 21:17:54)


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#13 2024-07-19 21:27:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

What does your refind_linux.conf look like?

Because of the nouveau error, did you re-enable the bus master?

Offline

#14 2024-07-20 11:38:05

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

I have no idea what is the bus master, but here's a copy of my refind config file:

"Boot with standard options"  "archisobasedir=arch archisosearchuuid=2024-06-01-09-07-18-00 nouveau.config=NvGspRm=1"
"Boot to single-user mode"    "archisobasedir=arch archisosearchuuid=2024-06-01-09-07-18-00 single"
"Boot with minimal options"   "ro root=UUID=31cba423-9565-47ec-b75c-88e0a0934910"

meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#15 2024-07-20 11:54:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

The first two are completely bogus (missing blanks) and also relate to the arch install iso.
Not sure why you went w/ "ro" for the last one, but from the install iso, what's the output of "lsblk -f"?

Edit: you remember how the nvidia GPU wouldn't show up at all a first because apple doesn't set it as busmaster?
https://bbs.archlinux.org/viewtopic.php … 1#p2180231

Edit #2: not sure how to do that w/ refind…

Last edited by seth (2024-07-20 11:58:59)

Offline

#16 2024-07-20 12:37:35

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

lsblk -f output (using LM live session):

mint@mint:~$ lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                    0   100% /rofs
sda                                                                         
├─sda1
│    vfat   FAT32       F67A-B090                                           
├─sda2
│    swap   1           15ac0f01-256d-4a7e-a6c2-503fbd23b175                [SWAP]
└─sda3
     ext4   1.0         31cba423-9565-47ec-b75c-88e0a0934910                
sdb  iso966 Jolie Linux Mint 21.3 Xfce 64-bit
│                       2024-01-09-13-26-32-00                              
├─sdb1
│    iso966 Jolie Linux Mint 21.3 Xfce 64-bit
│                       2024-01-09-13-26-32-00                     0   100% /cdrom
├─sdb2
│    vfat   FAT12       659D-4988                                           
└─sdb3
     ext4   1.0   writable
                        714e47f5-c5a8-406b-b082-ceca798401b8   10.9G     0% /var/log
sr0                                                                         
mint@mint:~$ 

meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#17 2024-07-20 12:41:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

At least the UUID matches, did you try to boot "Boot with minimal options" or one of the other entries?
Because you added "nouveau.config=NvGspRm=1" to one of the bogus ones.

Offline

#18 2024-07-20 12:45:23

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

ah, not yet, lemme try.


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#19 2024-07-20 12:51:15

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

OK, it boots now, i removed the old config file and ran refind-install again, but now when I boot before it sends me into login (tty1, no desktops here yet) it warns me that the root device isn't configured in a read-write mode, and it may be fsck'd again later. what now?


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#20 2024-07-20 12:56:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

seth wrote:

Not sure why you went w/ "ro" for the last one

What wacko tutorial are you actually following here?
None of that nonsense is anywhere in https://wiki.archlinux.org/title/REFInd

Offline

#21 2024-07-20 12:59:13

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

I didn't? it was there to begin with. didn't touch anything except for the nouveau line.

update: added back the nouveau line and removed the "ro" in the beginning of the line, but it still says that message at the start of the kernel boot process.

Last edited by adr77 (2024-07-20 13:04:01)


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#22 2024-07-20 13:24:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] MacBook7,1 isn't booting

From what beginning? Are you copying stuff from the install iso? Don't.

Add "rw" instead and read the refind wiki if you want to use that bootloader.

Offline

#23 2024-07-20 13:28:39

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

yea yea my bad, by "beginning" i mean this:

"Boot with standard options"   "ro root=UUID=31cba423-9565-47ec-b75c-88e0a0934910"

I have removed the "ro" part from this line, and added the nouveau line. I'll add "rw" to the same line and see what happens.


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

#24 2024-07-20 13:30:41

adr77
Member
From: Israel
Registered: 2023-10-28
Posts: 181

Re: [SOLVED] MacBook7,1 isn't booting

yea it works now, no more message. I'll get on installing Cinnamon as usual.


meet the rigs:
monolith: AMD Ryzen 7 5800X | ASUS TUF RTX 4070 | 32GB DDR4 | DIY
smolwrld: Intel Core i5-8350U | Intel HD Graphics 620 | 16GB DDR4 | ThinkPad T480s

Offline

Board footer

Powered by FluxBB