How do I determine the UUID's of hard drive partitions?



Linux now prefers to use UUID (Universally Unique Identifier), LABEL, or symlinks to identify media storage devices on a system.

The files for which UUID is most critical:

    /boot/grub/menu.lst
    /etc/fstab
    /etc/initramfs-tools/conf.d/resume

Finding UUIDs

Those two commands give your what you need, I think. You just need to put it together.
 
sudo blkid -o full -s UUID
 /dev/sda1: UUID="97201036-c514-47b5-aeb1-7ce98a8711ff"
/dev/sda3: UUID="a8b6c85c-65da-4ffa-9d2e-8356e5c26bd2"
/dev/sda5: UUID="e7d97bbe-adf2-4ad8-8d3e-c9f56adeed60"
/dev/sda6: UUID="aafe7a68-6945-48cf-b28a-f22b963d5fa6"
/dev/sda7: UUID="4772ec87-6f08-40b9-a274-64e930e7c336"
/dev/sdb1: UUID="aa6c721e-d06e-4756-bac9-b3849e1a9195"
/dev/sdb2: UUID="96004184-5efc-490d-9280-0e1ab845a142"

sudo lshw -class disk
 *-cdrom                
       description: DVD-RAM writer
       product: DVD-RAM GSA-H58N
       vendor: HL-DT-ST
       physical id: 0.0.0
       bus info: scsi@4:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/cdrw
       logical name: /dev/dvd
       logical name: /dev/dvdrw
       logical name: /dev/scd0
       logical name: /dev/sr0
       version: 1.00
       serial: [HL-DT-STDVD-RAM GSA-H58N1.0007/08/17 7U02
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: ansiversion=5 status=nodisc
  *-disk
       description: ATA Disk
       product: SAMSUNG HD082GJ
       physical id: 0.0.0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: JE10
       serial: S0VPJ9CPA13399
       size: 74GiB (80GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=c3f8aac4
  *-disk
       description: ATA Disk
       product: SAMSUNG HD501LJ
       physical id: 0.0.0
       bus info: scsi@2:0.0.0
       logical name: /dev/sdb
       version: CR10
       serial: S0MUJ1EPC25858
       size: 465GiB (500GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=63eba0e6