You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



What is (initramfs) and what does (initramfs) mean?

Author (Read 766 times)

0 Members and 1 Guest are viewing this topic.

What is (initramfs) and what does (initramfs) mean?
« on: April 14, 2019, 04:42:22 AM »
 

JanetBiggar

  • PayPal Supporter
  • Forum Regular
  • *****
  • 190
    Posts
  • Country: ca
  • Reputation: 8
  • Linux Lite Member
    • iizidima

  • Linux Lite: 3.8 32bit
One of my youth contacted me as when he started up the old laptop he is using running LL 3.8 it came up with this message this morning:

BusyBox v1.22 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (---) 3 letters here that I can read
Enter 'help' for a list of built-in commands.

(initramfs) _

I googled and found this link which worked GREAT and the youth is back up and running (although I have suggested it save anything of importance to his USB stix before shutting down the laptop EACH time he uses it):

https://www.proposedsolution.com/solutions/ubuntu-booting-to-initramfs-prompt/

My questions are -
1) Why did this occur?
2) What is initramfs?
3) And what does it say about this laptop..? Is the HDD or something on it's way out?
 


Re: What is (initramfs) and what does (initramfs) mean?
« Reply #1 on: April 14, 2019, 06:14:29 AM »
 

DeepThought

  • Forum Regular
  • ***
  • 151
    Posts
  • Country: wales
  • Reputation: 30
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 4.2 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480
@JanetBiggar

In answer to 2}

Code: [Select]
https://www.linux.com/learn/kernel-newbie-corner-initrd-and-initramfs-whats
Code: [Select]
https://en.wikipedia.org/wiki/Initial_ramdisk
Last Edit: April 14, 2019, 06:17:10 AM by DeepThought
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

Re: What is (initramfs) and what does (initramfs) mean?
« Reply #2 on: April 14, 2019, 07:45:59 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3185
    Posts
  • Country: 00
  • Reputation: 300

  • Linux Lite: 3.2 64bit
Interesting @DeepThought  :)
 

Re: What is (initramfs) and what does (initramfs) mean?
« Reply #3 on: April 15, 2019, 11:36:21 AM »
 

freemedia2018

  • New to Forums
  • *
  • 6
    Posts
  • Country: us
  • Reputation: 2
  • Linux Lite Member
    • digital literacy for everyone

  • Linux Lite: 3.8 32bit

  • CPU: varies

  • VIDEO CARD: not nvidia
You can run smartctl (install smartmontools if you dont have it) or possibly udisks to find out what shape the drive is in.

Both rely on s.m.a.r.t. technology which is built into the drive-- it can help, though it doesn't always tell you what you need to know. (It's not perfect all of the time.)

Dropping to the (initramfs) prompt doesn't necessarily mean the drive is failing (it could mean that, if it is happening more and more often.) It could also mean that the system wasn't shut down properly-- for example if you were running on battery and it just shut off. The system will normally recover from that automatically, but sometimes it doesn't.

initramfs is one of the early stages of booting, it's the smaller system that is used to load the larger system:

stage 1: bios/uefi -> bootloader

stage 2: kernel, initramfs, init system

stage 3: the rest of the system

You could have a system that's very modest, fit entirely into the initramfs. However, that's not conventional or practical for most operating system setups.
 

Re: What is (initramfs) and what does (initramfs) mean?
« Reply #4 on: June 25, 2019, 01:37:36 PM »
 

JanetBiggar

  • PayPal Supporter
  • Forum Regular
  • *****
  • 190
    Posts
  • Country: ca
  • Reputation: 8
  • Linux Lite Member
    • iizidima

  • Linux Lite: 3.8 32bit
Thanks freemedia2018, your explanation helped me understand it a bit. I知 a newbie so much of the terminology goes over my head so this was helpful.

I知 cautiously optimistic that maybe the hard drive is okay on the student痴 machine and fingers crossed it continues to work fine until mid-December when he値l be finished exams. As of last week all was fine.

Interestingly I had another HD that gave the same prompt so once I found and used the steps above on that earlier laptop I brought this HD back with me from South Africa to Canada to see if I could rehabilitate it. I put it into a laptop that was given to me without the hard drive and did the same steps as my post above. So far so good, it痴 working and I知 trying out LL 4.0 on it.

We値l see if it gives me that prompt again in future...
 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.