ALERT! /dev/disk/by-uuid/....does not exist
If you have ever had this message below whilst booting (colour is used to highlight only), it seems there is little you can do but start again from scratch, well that's not quite true there are several things you can do, and should do before accepting defeat.
It probably will not matter how many times you reboot chances are it will go no further until some steps are taken to correct the problem.
It is also fair to say that there is more than one way to correct this problem so by no means accept that this is the best or final solution.
What is causing the failure
Hmm! not sure myself but I suspect what is happening is that the Uuid code has changed on the partition that you are, or that you are trying to mount during boot. This should not occur during the lifetime of your computer but in reality your computer(s) suffer knocks and additionally the disk(s) that it uses, be it IDE, Sata or Sata SSD, all these drives degrade over time, this is normal by the way. If a significant change occurs it is possible the Uuid of the disk can also change, then the Uuid the drive originally established with, will not compare to the Uuid the disk or partition now thinks it is.
Recovering a lost drive or partition
- Using a spare but recent Ubuntu Live CD or USB Drive start a live session and open a new terminal
You may get something like this but it is also possible you will have only two entries one for boot and the other swap so bear in mind there are variations. The command "fdisk -l" will tell you the device you need to use a new command "fsck".
Now repeat this for the other partitions or drives but NOT the swap partition it does not need or use fsck to check it.
Reply "y" to any errors flaggedNo I haven't forgotten about /dev/sda2 this you will remember is a swap partition so is not checked.
- Reboot now your PC, Laptop or system without the Live CD - booting instead from the hard disk, if the problem persists you will need to follow these remaining steps.
- Assuming you are using the later version of Ubuntu to boot from, you would have probably noticed that you are unable to access the boot loader menu when the "esc" key is pressed. Well this time during the boot process at the beginning of your startup sequence press and hold down the "Shift" key located on the left of your keyboard
- You will be presented with a kernel selection menu and may look something like this (ignore the highlight colour)
You may have others but it's exact composition is not relevant, select using the up and down arrows on your keyboard the first entry at the top of the menu list. WITHOUT pressing your enter key press the "e" for edit key.
You may get something like th following:
You can ignore most of the above but the part that says root=uuid=nnnnnnn is the line that needs to be edited so it looks like the following depending in your drive characteristics of course. (Note all Uuid numbers will be different the above is an example)
linux /vmlinuz-2.6.32-24-generic root=/dev/sda3 ro quite splash
- When your edit is finished Press the Ctrl key and "x" together
- Your system will now boot into your desktop temporarily and I do stress temporarily we need to make this fix permanent to do this open a terminal once logged in.
You should now be able to boot normally - I do hope this explanation goes some way to help you gain confidence with Linux and to use it more and more often.
Drives are accessed via /dev/hdaN and /dev/sdaN depending on type the "hda" refers to an old style IDE drive the "a" denotes that it is the first drive if it was a "b" this would indicate a second drive as in "hdb". In use now days is "sda" notation again the "a" or "b" helps us identify the drive we are dealing with. The capital "N" I have used as notation and would indicate a number for it to be replaced by 1, 2, 3 etc and would denote the partition value of the drive it is labelled to. Most of the time a simple fsck is good enough to correct errors through booting but, if all else fails then this might get you out of trouble feel free to let me know if this helps you recover you drive or give us your comments to the article below.