30

I am using Ubuntu 14.04.

I ran in terminal sudo apt-get update. Then I rebooted the system. And now I see:

ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell
initramfs:_

I can't boot up LIVE Ubuntu from USB flash drive. Yes, I double checked BIOS setup and the USB flash drive is OK and runs on another machine. Right now I am going to buy a DVD and burn a Live DVD from another laptop.

sudo blkid gives me:

/dev/loop0: TYPE="squashfs"  
/dev/sda1: UUID="xxxx" TYPE="ext4"   
/dev/sr0: LABEL="Ubuntu 14.04.1 LTS i386" TYPE="iso960"   

/etc/fstab has the same UUID="xxxx" and there is a line with:

errors=remount-ro 0   

I tried using boot-repair but I still can't log in to Ubuntu.

I don't want to reinstall Ubuntu, because I have a lot of data there.

Do you have any advice how this can be solved?

Anwar
  • 77,855
Marcin
  • 745

2 Answers2

31

Solution was to perform these commands from liveDVD, it allows me to do things on my sda1 from that liveDVD(as far I understand)

sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
update-initramfs -u
update-grub
reboot

A friend of mine from ubuntu pl forum helped me solve this problem.

He found out that there might be error in initramfs, which should be updated as part of the kernel update. If anything goes wrong during that update problems like mine could happen.

Marcin
  • 745
-1

People may frown on this if they want, but I have found that using "/dev/sdX" works more reliably for me than UUID for my personal systems. In an enterprise environment, I would put more effort into making it work with the UUID instead of the "/dev/" address, but you should be safe using /dev/sdaX in /etc/fstab instead of UUID reference, at least to be able to boot your system while you continue to search for the answer to why exactly the boot is failing in spite of having the correct UUID in /etc/fstab.

If you wish to go this route, use the following procedure:

  1. Boot into recovery shell or boot into a live USB drive or CD

  2. Mount your system partition that is failing to boot

  3. Edit the /etc/fstab file in the system partition mentioned in Step 2 as root and replace UUID=XXXXX with the corresponding /dev/sdX label in all of the relevant /etc/fstab entries.

Note: This procedure is known to me to be reliable for Ubuntu and Ubuntu-derived distributions (as of the writing of this article; this could easily change with any upcoming release). I know for a fact that it won't work reliably for some other distributions such as knoppix or Arch Linux (this is due to differences in the way that UDEV scans in devices and gives them names in the /dev filesystem). If you are using a non-Ubuntu-derived distribution, please do not use this method or else use it at your own risk.

Anwar
  • 77,855
MGodby
  • 1,172