<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=7722&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Cloning and UUIDs]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=7722</link>
		<description><![CDATA[The most recent posts in Cloning and UUIDs.]]></description>
		<lastBuildDate>Tue, 06 Jan 2026 08:33:46 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61140#p61140</link>
			<description><![CDATA[<p>You are welcome good to read you got it solved.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Tue, 06 Jan 2026 08:33:46 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61140#p61140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61133#p61133</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><p>... not used one of them systems in good decade ...</p></div></blockquote></div><p>Have not had to deal with the UEFI crap. <br />I expect this box to last me at least another five/seven years without having to do much.<br />Who knows what I will be up to by then.</p><p>[OT]<br />My first SCSI drives ever were pulls from decommissioned IBM servers destined to be cut in pieces with a blowtorch.<br />A lot of eight 9.1Gb 68pin U160 HDDs purchased for a song from a usual suspect: the bloke in charge of the blowtorch.<br />On testing, only one was faulty.</p><p>Around six years later, when I upgraded box+HDDs to SAS, five (IIRC) were in perfect working order, no defects. <br />I actually made a profit selling them to a chap who ran a CT scanner service.&#160; <br />Good hardware is good hardware, there&#039;s no two ways about it.<br />[/OT]</p><div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><p>... OS-prober is probably not enabled ...<br />... prevent the update-grub from checking for other OSs ...</p></div></blockquote></div><p>Yes, that was it.<br />Problem solved.</p><p>Had forgotten to disable <span class="bbc">timeshift</span> and <span class="bbc">backintime</span> on the cloned drive so I&#039;ll have to check if and what was done.<br />Noticed that I had also neglected to to change display background so as not to forget which system I was working on.&#160; 8^°</p><p>Now to see about the XFCE surgery ...</p><p>Thank you for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 05 Jan 2026 22:13:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61133#p61133</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61128#p61128</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>update-grub has been executed but it has not picked up the new system present in the cloned HDD.</p></div></blockquote></div><p>BIOS have not used one of them systems in good decade now, I think a grub-install --recheck /dev/sd? might be in order. Ah and the OS-prober is probably not enabled as well, check in /etc/default/grub, that would prevent the update-grub from checking for other OSs to add to the list now I think of that one.</p><div class="codebox"><pre><code>root@9600k:~# cat /etc/default/grub |grep -i probe
#GRUB_DISABLE_OS_PROBER=false</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Mon, 05 Jan 2026 19:26:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61128#p61128</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61127#p61127</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><p>... in the grub.cfg in the EFI partition ...</p></div></blockquote></div><p>Well ...<br />Fortunately for me, my Sun U24 WS is a BIOS boot (only) rig.<br />As I have no near-future plans to change this hardware, none of that UEFI crap for me.</p><p>The deed is done:<br />I have cloned my 120Gb SATA SSD system drive to a 300Gb SAS HDD and both have their own &#039;unique&#039; UUIDs.<br />I can now run tests and experiment on getting rid of XFCE.</p><p><span class="bbc">update-grub</span> has been executed but it has not picked up the new system present in the cloned HDD.</p><p>I still have to check on that, I seem to recall that it stopped being the default action some time ago.</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 05 Jan 2026 18:26:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61127#p61127</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61123#p61123</link>
			<description><![CDATA[<p>You are welcome and now I am seeing the GRUB mentioned&#160; again in the grub.cfg in the EFI partition debian directory and in the new changed drive /boot/grub/grub.cfg you need to change to the new UUID o it will boot the old drives configuration. The EFI is really easy only one instance to change in that file the boot at least a dozen or more, what I use in a script for keeping it all straight when cloning to my various machines and drives is this.</p><div class="codebox"><pre><code>sed -i &quot;s/OLD_UUID/NEW_CHANGED_UUID/g&quot; /path/to/new/changed/boot/grub/grub.cfg </code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Mon, 05 Jan 2026 13:53:13 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61123#p61123</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61118#p61118</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>RedGreen925 wrote:</cite><blockquote><div><p>Only the UUID is checked by the system when the UUID= is used in the fstab.</p></div></blockquote></div><div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><p>Filsystem uuids will end up in in grub.cfg if you use grub-mkconfig / update grub ...<br />Partition and disk uuids are, as you say, irrelevant ...</p></div></blockquote></div><p>Good, got that straightened out.<br />Thank to both for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 05 Jan 2026 09:23:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61118#p61118</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61117#p61117</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><p>... referencing them by UID.<br />... disks needs to be unique ...</p></div></blockquote></div><p>Thought as much.<br />If I recall correctly, I&#039;ve been doing it that way since [ascii].</p><div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><p>What does number of partitions per drive have to do ...</p></div></blockquote></div><p>Directly related to my ignorance in the matter?</p><p>But <em>now</em> I know that only UUIDs matter. 8^)</p><p>Thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 05 Jan 2026 09:17:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61117#p61117</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61109#p61109</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Only the UUID is checked by the system when the UUID= is used in the fstab.</p></div></blockquote></div><p>Filsystem uuids will end up in in grub.cfg if you use grub-mkconfig / update grub and haven&#039;t set GRUB_DISABLE_LINUX_UUID=true, and GRUB will pass them to the kernel and initramfs <em>before</em> fstab is read.<br />Partition and disk uuids are, as you say, irrelevant (unless you specifically choose to use partuuid as a search hint for grub)</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:47:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61109#p61109</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61108#p61108</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>But what about those PTUUID and PARTUUID numbers?<br />They don&#039;t change in a source HDD / clone HDD scenario?</p></div></blockquote></div><p>As I said in my previous posting they are never used by you when booting so the system has nothing to be confused by if they remain the same. Only the UUID is checked by the system when the UUID= is used in the fstab.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:43:21 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61108#p61108</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61106#p61106</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>they cannot live in the same box unless one of the drives gets new UUIDs.</p></div></blockquote></div><p><em>If</em> you&#039;re referencing them by UID. If you&#039;re using something else (e.g. filesystem label) it won&#039;t matter... until you inevitably forget about this and it bites you in the arse years later.</p><div class="quotebox"><blockquote><div><p>I think (?) that is the case even if they are not in each other&#039;s /etc/fstab file.</p></div></blockquote></div><p>Whatever you use to differentiate the disks needs to be unique, otherwise you will get random (or more accurately, timing/initialisation order sensitive) behaviour. <br />The most entertaining effect is where you load the kernel and initramfs from one drive, but it mounts the root partition on the other. Unless you have set things up differently, grub, initramfs and fstab will all be using filesystem uuids.</p><div class="quotebox"><blockquote><div><p>I have only done it on HDDs with a single partition.</p></div></blockquote></div><p>What does number of partitions per drive have to do with anything? Partitions and filesystems should all have unique ids if you want them to be uniquely identifiable, that is all.<br />Partition uuids can be changed with gdisk (GPT) or fdisk (MBR), filesystem uuid (assuming ext[2,3,4]) with tune2fs. The latter is the only one that matters.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:41:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61106#p61106</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61105#p61105</link>
			<description><![CDATA[<p>Hello:</p><p>Thanks for the prompt reply.</p><p>Yes, I have seen that you can use <span class="bbc">tunefs</span> to change the UUID of a partition to a random/specific one, eg:</p><div class="codebox"><pre><code># tune2fs -U random /dev/sdb1 </code></pre></div><p>But what about those <span class="bbc">PTUUID</span> and <span class="bbc">PARTUUID</span> numbers?<br />They don&#039;t change in a source HDD / clone HDD scenario?</p><p>Thanks for your input.<br />Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:37:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61105#p61105</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61104#p61104</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>From what I understand (?) the cloned drive needs a new set of UUIDs so that it is seen by the system as a different drive.<br />Not too sure but I expect that it would be like this:</p></div></blockquote></div><p>You understand some of it correctly, the UUID needs to be changed the partition UUID does not matter it is never used. The whole drive UUID does not need to changed again it is never used and I notice you use a swap UUID so you would need to format and change its UUID in the fstab on the drive you are doing all the changes on or the system will see identical UUIDs and get confused..</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:36:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61104#p61104</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61103#p61103</link>
			<description><![CDATA[<p>Hello:</p><p>Thanks for the prompt reply.</p><div class="quotebox"><cite>DutchMaster wrote:</cite><blockquote><div><p>Boot from the clone drive, become root, then this command:</p><div class="codebox"><pre><code>blkid /dev/sd* &gt;&gt; /etc/fstab</code></pre></div></div></blockquote></div><p>Right ...</p><div class="quotebox"><cite>DutchMaster wrote:</cite><blockquote><div><p>... lists all disks and every partition on that disk with their respective UUID&#039;s in /etc/fstab.</p></div></blockquote></div><p>Right.</p><div class="codebox"><pre><code>$ sudo blkid /dev/sda*     ## source HDD - edited for clarity ##
/dev/sda: PTUUID=&quot;0004a8f4&quot; PTTYPE=&quot;dos&quot;
/dev/sda1: UUID=&quot;d6841f29-e39b-4c87-9c52-3a9c3bafe2d3&quot; BLOCK_SIZE=&quot;4096&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;0004a8f4-01&quot;
/dev/sda2: PTUUID=&quot;bfb4d548&quot; PTTYPE=&quot;dos&quot; PARTUUID=&quot;0004a8f4-02&quot;
/dev/sda3: UUID=&quot;f0187ff0-be52-4bbc-9461-40f744554b85&quot; TYPE=&quot;swap&quot; PARTUUID=&quot;0004a8f4-03&quot;
/dev/sda5: UUID=&quot;c22304ec-0b30-428a-a6ac-500785614702&quot; BLOCK_SIZE=&quot;4096&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;0004a8f4-05&quot;
/dev/sda6: UUID=&quot;807e1ce7-72b4-48a3-8f34-65947ea9fd70&quot; BLOCK_SIZE=&quot;4096&quot; TYPE=&quot;ext4&quot; PARTUUID=&quot;0004a8f4-06&quot;
$ </code></pre></div><p>Yes, but ...<br />Doesn&#039;t the clone have the same UUIDs (filesystem/partition) as the source drive?<br />And as a result that data is already in each drive&#039;s identical <span class="bbc">/etc/fstab</span> file?</p><p>From what I understand (?) the cloned drive needs a new set of UUIDs so that it is seen by the system as a different drive.<br />Not too sure but I expect that it would be like this:</p><div class="codebox"><pre><code>clone  /dev/sda    &lt;- needs new PTUUID
clone  /dev/sda1   &lt;- needs new UUID + PARTUUID
clone  /dev/sda2   &lt;- needs new PTUUID + PARTUUID
clone  /dev/sda3   &lt;- needs new UUID + PARTUUID
clone  /dev/sda5   &lt;- needs new UUID + PARTUUID
clone  /dev/sda6   &lt;- needs new UUID + PARTUUID</code></pre></div><p>The UUIDs of the other five drives need to remain exactly the same for both <span class="bbc">/etc/fstab</span> files.</p><p>Thanks for your input.<br />Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:27:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61103#p61103</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61101#p61101</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>So to start off, UUIDs have to be changed and that can be done with gparted but I have only done it on HDDs with a single partition.</p><p>Any pointers would be appreciated.</p></div></blockquote></div><div class="codebox"><pre><code>tune2fs -U e3eb81d0-bc67-492b-b57d-94eb1f892d9e /dev/sdb3</code></pre></div><p>Do it for each and every partition you need to change the UUID on changing to a different UUID for each one. For a fat32 partition used for the EFI.</p><div class="codebox"><pre><code>mkfs.vfat -F32 -n EFI -i 0x11111111 /dev/sd??</code></pre></div><p>Gives UUID=&quot;1111-1111&quot; for the fat32 EFI partition when you format it, the only way I have ever seen to do it is by a fresh formatting.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Sun, 04 Jan 2026 23:19:29 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61101#p61101</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cloning and UUIDs]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=61099#p61099</link>
			<description><![CDATA[<p>Boot from the clone drive, become root, then this command:</p><div class="codebox"><pre><code>blkid /dev/sd* &gt;&gt; /etc/fstab</code></pre></div><p>This lists all disks and every partition on that disk with their respective UUID&#039;s in /etc/fstab. If you type in the command by hand, <strong>make sure you have the double arrow</strong>! Otherwise your fstab file is gone :-\</p><p>Next, open /etc/fstab in a graphical text editor like Pluma, so you can easily copy/paste the UUID&#039;s into the correct entries. Once you&#039;re certain everything is in the right place, either remove all UUID entries from the earlier command or better, comment them out so you have something to fall back on in case something went haywire :-{ Save the fstab file and reboot.</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Sun, 04 Jan 2026 22:21:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=61099#p61099</guid>
		</item>
	</channel>
</rss>
