replaced kubuntu boot drive, cpio copied/restored /boot /root, UUID in menu.lst keeps coming back to original drive

Asked by sixtysevenfordpu

Starting on Kubuntu 7.10 with 168 PATA drive

I cpio copied /boot and /root to files from original 160 boot drive
Fdisked a new 500GB boot disk
Cpio restored /boot and /root to new ext3 partitions.
Ran "vol_id" on /dev/sda2 ( /root) to get its UUID,
Modified /boot/grub/menu.lst with correct UUID for the root partition.

System boots and runs fine, until this night I upgraded Kubuntu from 7.10 to 8.04 Beta via network
While upgrading I was asked if OK to overwrite /boot/grub/menu.lst
I then saved my original, allowed the upgrade to overwrite menu.lst.
I have not reoboted yet, I just noticed that the the new menu.lst is referencing the original 160GB boot drive's UUID

That original 160GB boot drive is on my desk, inert, no power, no connection to this system.

My question is where is Grub getting that UUID from?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Max Schukin
Solved:
Last query:
Last reply:
Revision history for this message
Best Max Schukin (schukin) said :
#1

There is a line in menu.lst like this:
# kopt=root=UUID=15939e2c-8135-4de4-9b90-ef2fdb360d01 ro

Replace that line with a new UUID and the next time grub will use that UUID.

Revision history for this message
sixtysevenfordpu (stephen-c-moss) said :
#2

The UUID in the "# kopt..." line did reference the old drive's UUID.
I have made the recommended change.

I believe the above solution should resolve this issue.

Revision history for this message
sixtysevenfordpu (stephen-c-moss) said :
#3

Thanks Max Schukin, that solved my question.