All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ted Ts'o" <tytso@mit.edu>
To: Marcin Szewczyk <Marcin.Szewczyk@wodny.org>
Cc: util-linux@vger.kernel.org
Subject: Re: Duplicate UUIDs, findmnt, /dev/disk/by-uuid
Date: Mon, 23 Apr 2012 13:07:01 -0400	[thread overview]
Message-ID: <20120423170701.GC3042@thunk.org> (raw)
In-Reply-To: <20120423154106.GD2437@magazyn-ziarno.zbozowa>

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

  reply	other threads:[~2012-04-23 17:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 15:41 Duplicate UUIDs, findmnt, /dev/disk/by-uuid Marcin Szewczyk
2012-04-23 17:07 ` Ted Ts'o [this message]
2012-04-25  7:56 ` Karel Zak
2012-04-26  7:52   ` Marcin Szewczyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120423170701.GC3042@thunk.org \
    --to=tytso@mit.edu \
    --cc=Marcin.Szewczyk@wodny.org \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.