Linux Lite Forums

Software - Support => Installing Linux Lite => Topic started by: supriyok225 on November 14, 2018, 01:28:52 PM

Title: Stuck in Initramfs
Post by: supriyok225 on November 14, 2018, 01:28:52 PM
I am a new user of Linux Lite [4.0]. I used it around 4 months. My cpu is AMD A4. Suddenly its not login and stuck in initramfs after displaying below msg.

Gave up waiting for root file system device. Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls/dev)
ALERT! UUID=a081b06c-3343-4e6e-9e89-b500ff509502 does not exist. Dropping to a shell!


BusyBox v1.27.2 (Ubuntu1:1.27.2-2ubuntu3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)


Please reply.Thanks in advance.
Title: Re: Stuck in Initramfs
Post by: trinidad on November 14, 2018, 03:58:00 PM
Are you dual booting by any chance?

TC
Title: Re: Stuck in Initramfs
Post by: supriyok225 on November 14, 2018, 11:01:14 PM
No its single boot. HDD has not partition.HDD also has some bad sectors. I just wanna recover my data.
I did   'fsck /dev/sda1' and the out put is

fsck from util-linux 2.31.1
fsck: error 2 (No such file of directory) while executing fsck.ext2 for /dev/sda1

Below file is Grub
Title: Re: Stuck in Initramfs
Post by: JanetBiggar on April 14, 2019, 04:31:59 AM
I just ran into the same issue with one of the laptops one of my study group youth is using and saw your post.  Maybe you have done this given what I see in your post.  Did you put a space after the fsck and /dev?

Have a look at this link as it worked for me.  Scroll down to see all the comments as after you do the fsck step I had the youth answer y to all the questions then when it stopped asking questions and came to (initramfs) again I had him type reboot and now it is working fine.

Here is the link:https://www.proposedsolution.com/solutions/ubuntu-booting-to-initramfs-prompt/
Title: Re: Stuck in Initramfs
Post by: minesheep on April 18, 2019, 06:40:22 AM
HDD has not partition.
HDD also has some bad sectors.
I just wanna recover my data.
Doesn't Gparted (from live dvd/usb) really recognize any partitions. Maybe bad sectors have broken gpt/mbr
You can try to recover data by these instructions
1. Create dvd/usb boot media if you don't have one already.
2. Boot your pc/laptop from live install media and not from the HDD.
3. Try to copy (or move) your files to safe device like working usb stick or external HDD/SSD if possible
4. If not possible then open terminal and type "sudo apt-get install gpart" and enter Y if prompted
5. run same command again it shouldn't take more than 5 seconds because you have installed it already if it takes more than 5 seconds then you failed the step 4.
6. open Gparted and select "attempt data rescue" from "device"
7. press "OK"
8. Wait it can take up to 24hours in some cases but often should be done in 4 hours
9. Then you have temporarily mounted filesystem do step 3
10. Make sure you remember to make proper backups in future.
11. Use your laptop HDD only for backups/storing not important data because it may destroy your data!

Please ask me or someone else to explain these instructions if you don't understand.
Title: Re: Stuck in Initramfs
Post by: Searchernow on March 04, 2020, 08:10:32 AM
probably my situation is different, but for what it's worth ...

I got stuck at initramfs, I eventually put it down to deviating a bit from the LL Manual during installation, then I re-installed strictly by the Manual and everything went well.
Title: Re: Stuck in Initramfs
Post by: trinidad on March 04, 2020, 09:20:10 AM
From busybox run: cat /proc/partitions

or alternatively: blkid

Locate root (/) then run: fsck /dev/sda?  ? being whatever number root shows up in.
Then after you boot into your system run: update-initramfs -u
http://manpages.ubuntu.com/manpages/bionic/man1/busybox.1.html
https://manpages.ubuntu.com/manpages/precise/man8/update-initramfs.8.html

TC