Inizio  >  Docs  >  Linux  >  How to  >  UUID troubles  
UUID troublesUUID troubles

check the new blkid:

 blkid

/dev/sda1: UUID="6cd09856-396b-42a1-8ab0-6805644fa122" TYPE="ext3"
/dev/sdb1: TYPE="swap"

change the UUID in grub config file:

sed -i.bak 's/ae1b7f9f-6501-478c-b893-6cfa31665350/6cd09856-396b-42a1-8ab0-6805644fa122/g' /boot/grub/menu.lst

update grub boot menu with:

update-grub

check everything is fine with:

grep ^[^#] /boot/grub/menu.lst

 

default         0
timeout         5
color cyan/blue white/blue
title           Debian GNU/Linux, kernel 2.6.32-5-amd64
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.32-5-amd64 root=UUID=6cd09856-396b-42a1-8ab0-6805644fa122 ro
initrd          /boot/initrd.img-2.6.32-5-amd64
title           Debian GNU/Linux, kernel 2.6.32-5-amd64 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.32-5-amd64 root=UUID=6cd09856-396b-42a1-8ab0-6805644fa122 ro single
initrd          /boot/initrd.img-2.6.32-5-amd64

 

blkid!!!!

 http://element14.wordpress.com/2008/01/07/how-to-find-your-uuid%E2%80%99s-for-devices-in-ubuntu-and-other-debian-based-distros/?referer=sphere_related_content/
http://elleuca.blogspot.com/2006/11/swappature.html

 in case of install from HD

blkid
man blkid
more /etc/blkid.tab
blkid -c /dev/null
more /etc/blkid.tab
blkid -g
blkid -w /etc/blkid.tab
more /etc/blkid.tab

root@giulia-book:~# blkid
/dev/sda1: UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="77703406-43e7-498b-b9ee-737eab6e4f54" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda4: UUID="ee6de147-c5e2-4170-9a8f-24aed6037d23" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="a32686aa-1924-4d43-b063-77caf5a2b220"
/dev/sdc1: UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" TYPE="ext3"
/dev/sdc5: UUID="a32686aa-1924-4d43-b063-77caf5a2b220" TYPE="swap"
/dev/ramzswap0: TYPE="swap"

root@giulia-book:~# more /etc/blkid.tab
<device DEVNO="0x0801" TIME="1228039674" UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" SEC_TYPE="ext2" TYPE="ext3">/dev/sda1</device>
<device DEVNO="0x0803" TIME="1227982546" UUID="77703406-43e7-498b-b9ee-737eab6e4f54" SEC_TYPE="ext2" TYPE="ext3">/dev/sda3</device>
<device DEVNO="0x0804" TIME="1227982546" UUID="ee6de147-c5e2-4170-9a8f-24aed6037d23" SEC_TYPE="ext2" TYPE="ext3">/dev/sda4</device>
<device DEVNO="0x0805" TIME="1228039674" TYPE="swap" UUID="a32686aa-1924-4d43-b063-77caf5a2b220">/dev/sda5</device>
<device DEVNO="0x0821" TIME="1227982546" UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" TYPE="ext3">/dev/sdc1</device>
<device DEVNO="0x0825" TIME="1227982547" UUID="a32686aa-1924-4d43-b063-77caf5a2b220" TYPE="swap">/dev/sdc5</device>
<device DEVNO="0xfe00" TIME="1228039674" TYPE="swap">/dev/ramzswap0</device>

root@giulia-book:~# blkid -c /dev/null
/dev/ramzswap0: TYPE="swap"
/dev/sda1: UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" TYPE="ext3"
/dev/sda5: UUID="a32686aa-1924-4d43-b063-77caf5a2b220" TYPE="swap"


 blkid -g
root@giulia-book:~# blkid
/dev/sda1: UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="a32686aa-1924-4d43-b063-77caf5a2b220"
/dev/ramzswap0: TYPE="swap"

root@giulia-book:~# blkid -w /etc/blkid.tab
/dev/sda1: UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="a32686aa-1924-4d43-b063-77caf5a2b220"
/dev/ramzswap0: TYPE="swap"

root@giulia-book:~# more /etc/blkid.tab
<device DEVNO="0x0801" TIME="1228039892" UUID="a5bb17e8-f75d-4b36-9b1b-cbb4f33c0259" SEC_TYPE="ext2" TYPE="ext3">/dev/sda1</device>
<device DEVNO="0x0805" TIME="1228039892" TYPE="swap" UUID="a32686aa-1924-4d43-b063-77caf5a2b220">/dev/sda5</device>
<device DEVNO="0xfe00" TIME="1228039892" TYPE="swap">/dev/ramzswap0</device>


 apt-get install --reinstall linux-image-2.6.27-9-generic