Originally Posted by RCSMG
Lazy dog I have 14.04 on a sub drive. I don't have enough experience with Ubuntu to do those things you suggest. Would you mind giving me instructions on how to do that?
Boot the Live/boot CD/DVD. Make sure you mount the disk when asked to. I believe that they should be mounted to '/mount
' but I don't know ubuntu well enough to say 100%.
Run the following command:
As Root: blkid
As non-root: sudo blkid
This should give you something like:
/dev/sda1: UUID="9ad8595e-7c9c-4bf7-b9cf-7c7c832bbbbc" TYPE="xfs"
/dev/sda2: UUID="11RlqN-023m-6aP0-4xYL-h2UD-TpXN-ZwZi1C" TYPE="LVM2_member"
/dev/mapper/centos-root: UUID="2a449bae-1021-4804-8a44-edfea4406f00" TYPE="xfs"
/dev/mapper/centos-swap: UUID="352f4bbe-5742-4ac0-b3ed-9ccea52efd20" TYPE="swap"
/dev/mapper/centos-home: UUID="274390c1-3251-470c-b397-0debc73edbc5" TYPE="xfs"
As you can see I have 2 partitions on my drive.
Partition 1 is my boot drive
Partition 2 has my mount points.
On partition 2 I also have UUID's for the different mount points also.
After you have this information you will want to look at the FSTAB file and see how your mount points are being mounted using the UUID or another way. FSTAB should be located at '/mount/etc/fstab
' If using UUID then you are going to have to edit FSTAB and change the UUID information to match what you have discovered above.
Next you are going to have to go into your boot partition and look at how your system is booting. Your grub configuration should be located at '/mount/boot/grub2/grub.cfg
'. This one is most likely using the UUID's so you are going to have to edit and replace the UUID's.
After you have finished doing this make sure you write down all the UUID's that were displayed so that you can get your system to boot. Now boot your system without the CD/DVD. Once you get the grub menu highlight the ubuntu and hit the 'e
' key. There look for the UUID and replace this with your new UUID's Hit CTL=X to get out and allow the system to continue to boot.
Once you are back in your ubuntu system run 'sudo update-grub
' so it reconfigures your boot options to use the correct disk. next boot. This we fixed when we edited the grub.cfg file.
Now I have seen on line a 'Boot-Repair-Disk
' but I have never used it so I don't know if it works or not. It is located HERE
I am the firm believer one should know how to fix their system via the CLI.