Re: Duplicate UUIDs, findmnt, /dev/disk/by-uuid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 23, 2012 at 05:41:06PM +0200, Marcin Szewczyk wrote:
> 
> The system has been cloned (with dd) to many disks inserted to many
> machines. From time to time someone inserts an additional disk which has
> been previously used as the system disk. Then there are two filesystems
> with same UUIDs inserted to one machine.

This probably won't help you that much now, but best practice for
ext[234] file systems is after you clone them using dd, you should run
the command "tune2fs -U random /dev/sdXX" to reset the UUID to a new
random value.  For XFS, the command is "xfs_admin -U generate /dev/sdXX".
For ntfs, the advanced utilities have a --new-serial option to ntfslabel.

It's *always* a good idea to make sure that the UUID is reset after
cloning a file system, to avoid this sort of problem.

Regards,

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux