LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-05-2017, 05:00 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
initramfs instead of boot


Yesterday when I got home, my laptop was acting crazy, programs were not working properly. First time I have seen that. I thought 'reboot and everything will be ok'.

When I did, I ended up in initramfs. It said 'you need to run fsck manually' I guessed and entered fsck /dev/sda9 (which is the partition for Ubuntu 16.04) fsck found various orphaned inodes, whatever that is, and afterwards I could boot again.

Does this mean my HD is going home? Time to buy a new laptop? This one is 3 years old. What causes the system to drop to initramfs?

During the day I often just shut the lid on the laptop at the end of a class. That, combined with connecting to overhead projectors might get the system confused I suppose.
 
Old 05-06-2017, 01:31 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
https://serverfault.com/a/280728
Quote:
Orphaned inodes are benign and perfectly normal whenever you have an unclean dismount. They are simply files that had been deleted, but were still open when the fs was remounted read only. They are not the cause, but merely a symptom. You need to check your kernel logs to see what the actual problem was that caused the read only remount. You also might want to run some SMART diagnostics to make sure the drive isn't failing.
 
Old 05-06-2017, 02:56 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Pedroski View Post
What causes the system to drop to initramfs?
ohdoho's answer was good, but I don't believe it provided a technically complete answer to this question. It dropped to initramfs because the root filesystem had errors that could not be automatically corrected. Thus it could not be mounted, which left you with only the filesystem and tools contained within the initramfs to work with. "Acting crazy" before rebooting could very well mean the HD is "going home", which is more likely than the whole laptop going bad.
 
Old 05-06-2017, 03:01 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by Pedroski View Post
During the day I often just shut the lid on the laptop at the end of a class.
This is the likely cause if you run out of battery after closing the lid.
Make sure you have you power events set correctly - I haven't used Ubuntu in years, so I can't advise.
 
Old 05-06-2017, 06:12 PM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks for the answers. I make sure the battery is charged at all times. Actually I just bought a new battery.

What diagnostics can I run?
 
  


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
how to boot ubuntu when there is a degraded RAID5 without initramfs stoppin the boot dvah Linux - Software 0 07-15-2012 12:15 PM
Cant find /init during PowerPC initramfs boot kermitG Linux - Embedded & Single-board computer 1 02-16-2009 09:59 AM
Initramfs on boot up BACTRATE Ubuntu 7 06-10-2008 02:33 PM
Boot cant find initramfs caleb star Linux - Kernel 4 06-13-2007 07:57 AM
Cannot boot using initramfs sandyman Linux - Software 1 12-21-2006 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:12 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