Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Grub Update After New UUID Change

  1. #1
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    378
    Distro
    Ubuntu 18.04 Bionic Beaver

    Question Grub Update After New UUID Change

    Made a Copy (using Gparted) of my Ubuntu 13.10 Partition, gave my Old Partition (ubuntu 13.10) a New UUID. Reinstalled Grub on New Copy of Ubuntu 13.10 using "sudo grub-install /dev/sda". Boots Just fine. Is there an Easy way change my UUID for my Older Ubuntu 13.10? Do i change them in boot/grub/grub.cfg & etc fstab? can i use Grub Customizer? or is there a diffrent way? Any Help is Appreciated. Thanks
    The Answer Please if at all Possible

  2. #2
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    378
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Grub Update After New UUID Change

    Bump Anyone? can Boot-repair deal wit UUiD changes? came across this Link http://askubuntu.com/questions/17144...nother-machine
    The Answer Please if at all Possible

  3. #3
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Grub Update After New UUID Change

    boot from a live usb, run
    Code:
    sudo blkid
    this will show the new uuid of your partition
    edit /etc/fstab and /boot/grub/grub.cfg for that partition so that the uuid match the output from blikd. For boot/grub/grub.cfg it is easiest to do it with gedit and the 'replace all' function. Make sure you edit the correct files because the live usb has files with the same names and you want to edit the files for the installed version of Ubuntu, which will be in /media... when you view them from the live usb.

    That's it, there is no need to reinstall grub, you can run
    Code:
    sudo update-grub
    when you reboot into the Ubuntu installed on the partition whose uuid has changed. But that may not be necessary

  4. #4
    Join Date
    May 2007
    Location
    Midlands UK
    Beans
    322
    Distro
    Ubuntu

    Re: Grub Update After New UUID Change

    If you want to be able to boot your old 13.10 from the GRUB installed on your new 13.10 can you not just run

    Code:
    sudo update-grub
    from your new install.

    If you want to actually customise the UUID maybe this will help How do I change UUID of a disk to whatever I want?
    = Fit as a butcher's dog =

  5. #5
    Join Date
    Aug 2013
    Beans
    4,941

    Re: Grub Update After New UUID Change

    Quote Originally Posted by DogMatix View Post
    If you want to be able to boot your old 13.10 from the GRUB installed on your new 13.10 can you not just run

    Code:
    sudo update-grub
    from your new install.

    If you want to actually customise the UUID maybe this will help How do I change UUID of a disk to whatever I want?
    Well no, if you change the uuid of the partition without making the changes in fstab and grub.cfg it wouldn't boot.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Grub Update After New UUID Change

    Generally you are not supposed to edit grub.cfg.
    But your case is an exception.
    I would only modify the first entry as when you boot into your system run sudo update-grub it will totally overwrite grub.cfg and will then have all the correct entries thoughout.

    Change example sda6 to your Ubuntu partition
    sudo mount /dev/sda6 /mnt
    gksudo gedit /mnt/boot/grub/grub.cfg


    #May have to do this first as it is write protected also:
    sudo chmod +w /mnt/boot/grub/grub.cfg
    #Or even this first:
    sudo chmod 777 /mnt/boot/grub/grub.cfg
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    May 2007
    Location
    Midlands UK
    Beans
    322
    Distro
    Ubuntu

    Re: Grub Update After New UUID Change

    Quote Originally Posted by monkeybrain20122 View Post
    Well no, if you change the uuid of the partition without making the changes in fstab and grub.cfg it wouldn't boot.
    You don't have to have a disk's UUID in fstab to boot to it.
    = Fit as a butcher's dog =

  8. #8
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    378
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Grub Update After New UUID Change

    What about Grub Customizer? Can i just Remove the Old Grub Ubuntu 13.10 Enties from Grub Customizer, & Restart & run sudo update-grub?
    The Answer Please if at all Possible

  9. #9
    Join Date
    May 2007
    Location
    Midlands UK
    Beans
    322
    Distro
    Ubuntu

    Re: Grub Update After New UUID Change

    Running sudo update-grub will give you a fresh grub.cfg file which should list both your old & new 13.10 installs.

    Is this what you are trying to achieve?
    = Fit as a butcher's dog =

  10. #10
    Join Date
    Oct 2012
    Location
    Eugene, Or
    Beans
    378
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Grub Update After New UUID Change

    yep i have ran sudo update-grub twiced. both grub entries boot me Ubuntu 13.10 which is Bigger in Size. My other Ubuntu 13.10 Old is smaller in Size.
    Have not made any changes except give Ubuntu 13.10 Old a New UUID.Also made Ubuntu 13.10 New Bigger & Made it the Default Os by Running "sudo grub-install /dev/sda"
    Last edited by Redalien0304; April 16th, 2014 at 01:52 AM.
    The Answer Please if at all Possible

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •