LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-24-2021, 01:00 AM   #1
Logimite
Member
 
Registered: Jun 2020
Location: California
Distribution: Arch
Posts: 65

Rep: Reputation: Disabled
Unhappy Kernel Panic on 2009 Macbook With ElementaryOS


I was using my mac with ElementaryOS, and I decided to update it. The next hour I updated it, I opened it again and it booted to a black screen. Booted again and it booted up to GRUB. Then I booted elementaryOS in recovery mode, and I got this error:
https://drive.google.com/file/d/1XFx...6eUdDwP1O/view
Is there a way of fixing this? Or is my computer doomed and I should throw it out? Thanks for any replies!
 
Old 02-24-2021, 01:43 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Have you been waiting for a reason to throw it out?

This might not be the day, hopefully you have a Mint or Elementary ISO you can boot into a live session, maybe run fsck on the root partition if it's still around.
It's possible if there was a kernel upgrade or something that provoked regenerating initrd.img, something went wrong there, maybe regenerating initrd.img for the kernel you are trying to boot might help. Because mounting / is done through initrd/initramfs if I remember correctly.

Do you have more than one kernel you can boot from?
 
Old 02-24-2021, 11:23 AM   #3
Logimite
Member
 
Registered: Jun 2020
Location: California
Distribution: Arch
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Have you been waiting for a reason to throw it out?

This might not be the day, hopefully you have a Mint or Elementary ISO you can boot into a live session, maybe run fsck on the root partition if it's still around.
It's possible if there was a kernel upgrade or something that provoked regenerating initrd.img, something went wrong there, maybe regenerating initrd.img for the kernel you are trying to boot might help. Because mounting / is done through initrd/initramfs if I remember correctly.

Do you have more than one kernel you can boot from?
So I reflash it, boot it in live, then what?
 
Old 02-24-2021, 11:32 AM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
In the terminal, have a look at the partition structure with command: sudo fdisk -l
If you find it's / is say.../dev/sda3, run a filesystem check with command: sudo fsck /dev/sda3
If it has a separate /boot partition, you'll want to check see if it's plugged with kernels and initrd.img files. There's been lots of kernel upgrades in the past month and a half and a few folks are having this issue where new initrd.img can't be completed for lack of disk space.
 
Old 02-24-2021, 11:54 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
It is getting "unknown-block(0,0)" error, which means kernel cannot access the hard drive, most likely because the HDD controller module is supposed to be in initramfs and initramfs is not loaded, possibly not present. Choosing an older kernel from Grub menu will boot, then reinstall the new kernel properly so its initramfs gets built and installed.
 
Old 02-24-2021, 12:35 PM   #6
Logimite
Member
 
Registered: Jun 2020
Location: California
Distribution: Arch
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
It is getting "unknown-block(0,0)" error, which means kernel cannot access the hard drive, most likely because the HDD controller module is supposed to be in initramfs and initramfs is not loaded, possibly not present. Choosing an older kernel from Grub menu will boot, then reinstall the new kernel properly so its initramfs gets built and installed.
Wait....
would this happen if the ssd just got knocked out? I remember I did not secure the ssd properly when replacing it.
 
Old 02-24-2021, 12:57 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
For some reason new kernel install wasn't finalized, SSD disconnected is certainly such a reason.
 
Old 02-24-2021, 01:05 PM   #8
Logimite
Member
 
Registered: Jun 2020
Location: California
Distribution: Arch
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
In the terminal, have a look at the partition structure with command: sudo fdisk -l
If you find it's / is say.../dev/sda3, run a filesystem check with command: sudo fsck /dev/sda3
If it has a separate /boot partition, you'll want to check see if it's plugged with kernels and initrd.img files. There's been lots of kernel upgrades in the past month and a half and a few folks are having this issue where new initrd.img can't be completed for lack of disk space.
when I do that it says "grub cannot find sudo" or something like that
 
Old 02-24-2021, 01:14 PM   #9
Logimite
Member
 
Registered: Jun 2020
Location: California
Distribution: Arch
Posts: 65

Original Poster
Rep: Reputation: Disabled
Nevermind, I solved this by booting it to an older kernel version. Thanks guys! I am writing this from my 2009 macbook.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am inheriting a MacBook Pro (last year's model). What is the best Linux system for a MacBook? JMacSmith Linux - Desktop 4 02-27-2018 10:37 PM
LXer: elementaryOS 0.1 Screenshot Tour LXer Syndicated Linux News 0 03-13-2012 04:21 PM
LXer: New ElementaryOS Video (Featuring Plank, Slingshot, Wingpanel, Postler, Dexter, Midori) LXer Syndicated Linux News 0 02-17-2011 04:10 PM
Linux on a macbook/macbook pro... any experiences/problems, or is it even necessary? enigma_0Z Linux - Laptop and Netbook 13 09-14-2007 10:29 PM
kernel panic after building custom kernel for macbook sparrott Linux - Laptop and Netbook 1 06-29-2007 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration