On Mon, Nov 25, 2024 at 17:37:28 -0500, e...@gmx.us wrote:
> I'm not Thomas, but here you go.  If you do
> 
> dd if=/dev/sda1 of=/dev/sdb1
> 
> to copy sda1 to sdb1, they get the same UUID.  Which makes one question the
> Uniqueness part.  I ran into that, and my solution was to use the actual
> device names everywhere, something of the sdXY format.  Which worked great
> until I installed Debian, and something in the boot process makes the names
> switch randomly.

Using "sda1" in fstab is a bad idea, for exactly the reasons you
discovered the hard way.  The names will not necessarily be assigned
to the same devices each time you boot.

Given that you dd-copied a file system, you might consider changing
the UUID of the new copy.  Assuming this is an ext4 file system,
tune2fs(8) has a -U option that looks like it should do the job.
Specifically, "-U random" looks promising, though I haven't tested it.

If it's not ext4, then consult your documentation for whichever type
of file system this is.

Reply via email to