root@debian:/home/tiger# dd if=/dev/sda of=/dev/sdb bs=10240k
11447+1 records in
11447+1 records out
120034123776 bytes (120 GB) copied, 4729.59 s, 25.4 MB/s
root@debian:/home/tiger# blkid
/dev/sda1: UUID="54AF-15B1" TYPE="vfat"
/dev/sda2: UUID="28D02E2FD02E03A2" TYPE="ntfs"
/dev/sda5: UUID="a3464de4-5676-4ae3-b37a-a1f40708d5ec" TYPE="swap"
/dev/sda6: UUID="8b29114c-4f89-4c96-b0c0-579ce58c7345" TYPE="ext3"
/dev/sdb1: UUID="54AF-15B1" TYPE="vfat"
/dev/sdb2: UUID="28D02E2FD02E03A2" TYPE="ntfs"
/dev/sdb5: UUID="a3464de4-5676-4ae3-b37a-a1f40708d5ec" TYPE="swap"
/dev/sdb6: UUID="d38e60d8-6bfe-49f9-a381-d89b3b9bbb7f" SEC_TYPE="ext2" TYPE="ext3"
Why doesn't /dev/sda6's uuid equal /dev/sdb6's?
Edit, answering questions from comments:
- sda and sdb are same size disk
The output of
blkid -pis:root@debian:/home/tiger# blkid -p /dev/sda6 /dev/sda6: UUID="8b29114c-4f89-4c96-b0c0-579ce58c7345" VERSION="1.0" TYPE="ext3" USAGE="filesystem"
sdawas 120GB. Ifsdbis a different size, then data may be missing or old data may still remain. Also, I am not familiar withblkidso a reboot may be needed, but not recommended because the OS will become very, very confused if you use UUID mounting. – Aaron D. Marasco Aug 5 '12 at 11:08hdparm -z /dev/sdb– BatchyX Dec 4 '12 at 8:20blkid -poutput for /dev/sdb6? – derobert Dec 13 '12 at 17:35