Results 1 to 2 of 2

Thread: changing the uuid

  1. #1
    Join Date
    Sep 2008
    Beans
    519

    changing the uuid

    I recently got a new harddrive, so i backed up my previous drive into a tarball.. I extracted the contents onto my new harddrive and everything works fine but..

    every time i install a new linux image, it likes to add a new grub entry, and every time it adds an entry, the UUID in those entries are incorrect(it's possibly using the UUID from my previous drive), resulting in a GRUB "file not found" error, unless i remember to fix it. This is very inconvenient and i don't want to keep having to fix my menu.lst

    is there anyway for me to tell the system what the correct UUID is? Right now it's assuming one that is incorrect (possibly my old drive's UUID) How can i change that?

  2. #2
    Join Date
    Jan 2008
    Location
    Auckland, New Zealand
    Beans
    3,129
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: changing the uuid

    You'll probably want to change this section of your menu.lst:
    Code:
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ##      kopt_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=6faaa026-e45f-4437-98b2-64a7f58d0eb9 ro vga=775
    
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=6faaa026-e45f-4437-98b2-64a7f58d0eb9
    Like it says, you don't uncomment the lines, just change them.

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
  •