<?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=7931&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Weird usb partitioning issues]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=7931</link>
		<description><![CDATA[The most recent posts in Weird usb partitioning issues.]]></description>
		<lastBuildDate>Mon, 04 May 2026 10:52:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63584#p63584</link>
			<description><![CDATA[<p>dd if=/dev/zero of=RAW_DEVICE bs=1M count=1</p><p>This might be faster if the device is large. It should be enough to wipe out the partition table and let you start new.</p>]]></description>
			<author><![CDATA[dummy@example.com (askfor)]]></author>
			<pubDate>Mon, 04 May 2026 10:52:23 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63584#p63584</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63553#p63553</link>
			<description><![CDATA[<p>I would start by running <span class="bbc">lsblk</span> and <span class="bbc">ls -l /dev</span> *before* plugging in the USB stick, then re-running them after plugging it in. There should be a new device which is the one to wipe. You certainly don&#039;t want to wipe something that was there before you plugged in the USB stick!.</p><p>And taking a full backup before you start would give you a bit less to worry about.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sat, 02 May 2026 16:12:11 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63553#p63553</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63536#p63536</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I just want to wipe everything, and start fresh.</p></div></blockquote></div><p>Then, you can use <span class="bbc">dd</span>, but you will have to be <strong>extremely cautious</strong> to not wipe out the wrong unit.<br />To use <span class="bbc">dd</span> you have to write as <strong>root</strong></p><div class="codebox"><pre><code>dd if=/dev/zero of=/dev/YOUR-RAW-DEVICE</code></pre></div><p>For instance: </p><div class="codebox"><pre><code>dd if=/dev/zero of=/dev/sde</code></pre></div><p>Please note that there are not a number in the name of the unit. This is important.<br />Double check your typing before ENTER!!<br />Wait to completion and then use <span class="bbc">sync</span> before unplugging the stick.</p>]]></description>
			<author><![CDATA[dummy@example.com (PedroReina)]]></author>
			<pubDate>Sat, 02 May 2026 09:07:37 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63536#p63536</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63535#p63535</link>
			<description><![CDATA[<p>I just want to wipe everything, and start fresh.</p>]]></description>
			<author><![CDATA[dummy@example.com (unixbot443)]]></author>
			<pubDate>Sat, 02 May 2026 08:38:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63535#p63535</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63531#p63531</link>
			<description><![CDATA[<p>I am not sure I understood it correctly. You said that USB media worked properly previously. Previous to what ? What exactly did you do to make it work improperly ?</p><p>Also, what are you trying to do ? Are you trying to wipe off everything on the media and start fresh ? Or are you trying to write something on one of the partitions, while leaving others intact ?</p>]]></description>
			<author><![CDATA[dummy@example.com (askfor)]]></author>
			<pubDate>Sat, 02 May 2026 05:47:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63531#p63531</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63529#p63529</link>
			<description><![CDATA[<p>The &quot;problem&quot; for partitioning tools is probably that for a hybrid ISO, the first partition spans the whole disk, from sector 0 and to the last ISO sector. That span of course includes both the partition table and the second partition.&#160; It also has the additional quirk, that the iso9660 interpretation has a block size of 2048 bytes per block, whereas the disk image view used in particular for the second partition is of 512 bytes per block.</p><p>I guess it&#039;s not easy for a graphical tool developer team to present and manage that kind of partition overlap which barely is understandable for normal people.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 01 May 2026 23:32:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63529#p63529</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63527#p63527</link>
			<description><![CDATA[<p>Well you can say it&#039;s not a flaw or a bug or whatever, but when a tool like gparted cannot tell there are 2 partitions on a stick when every other tool and even file managers can, it&#039;s an issue, period, for the user. See Mercury&#039;s post above.</p><p>But there is also a flaw in GDU, one that would be super easy to fix really. As all that&#039;s needed is for it to call wipefs on the empty space before creating a new partition.</p><div class="codebox"><pre><code># Proactively wipe ISO-9660 signatures to prevent Gparted detection issues
wipefs -a -t iso9660 &quot;$USB_DEV&quot; 2&gt;/dev/null || {
    error_dialog &quot;Failed to wipe ISO-9660 signatures on $USB_DEV.&quot;
}</code></pre></div><p>It&#039;s literally that easy. But GDU doesn&#039;t do it, and it leaves 5 bytes that confound gparted. So i&#039;m sticking by what I said, they both need to be fixed.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Fri, 01 May 2026 20:23:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63527#p63527</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63526#p63526</link>
			<description><![CDATA[<div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><p>It&#039;s not a &quot;flaw&quot; in parted, iso9660 on anything</p></div></blockquote></div><p>It absolutely, objectively <strong>is</strong> a flaw when partitioning tools don&#039;t check the actual, contractual structure of a partition table including the 0x55AA signature, because they &quot;think&quot; they found an ISO9660 filesystem based on loosey-goosey pattern matching of <strong>non-</strong>contractual parts of the MBR. Everything in the MBR before the partition table and the two-byte signature <strong>is not</strong> and <strong>must not</strong> be used to conclusively determine disk structure. Any tool that does is <strong>doing it wrong</strong>.</p><p>Edited to add:</p><p>It&#039;s still baffling that gParted and parted behave differently, when they are supposed to be using the same underlying libparted library. As convenient as the GUI is, it&#039;s only gParted that gets it wrong, while parted (and presumably libparted) work correctly.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mercury)]]></author>
			<pubDate>Fri, 01 May 2026 20:05:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63526#p63526</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63525#p63525</link>
			<description><![CDATA[<p>Have you tried cfdisk or fdisk? Do you have any other OS installed on the same machine to try partitioning tools?</p>]]></description>
			<author><![CDATA[dummy@example.com (askfor)]]></author>
			<pubDate>Fri, 01 May 2026 15:41:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63525#p63525</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63440#p63440</link>
			<description><![CDATA[<p>The only &quot;flaw&quot; here is the usual confusion regarding partitions, filesystems, and the x86 boot process. <br />isohybrid is a hack, and writing an iso image to a USB device does not create a normal partition table - that&#039;s the whole point, to be bootable from optical media it needs to look <em>exactly</em> like a CD to the BIOS routines. <br />CDs don&#039;t have partitions or an MBR, the raw iso9660 filesystem starts at sector 17 and the space before that is an &quot;unused&quot; system area to be used by [insert system-specific boot hackery here] - often syslinux and/or a partition table defining an ESP for UEFI in a bootable GNU/Linux image.<br />Thus what you usually end up with is a disk where the <em>partition table does not reflect reality</em>, intentionally, the first few reserved sectors contain an el-torito CD boosector, an MBR, a GPT, syslinux, or some combination of those, and the whole mess appears to be a simple iso filesystem to anything that doesn&#039;t look too hard. </p><p>All this will confuse traditional partitioning tools, especially if the device was previously partitioned and whatever you used to write the image didn&#039;t remove the existing partition table (and backup), RAID headers, or whatever else was on there.<br />It&#039;s not a &quot;flaw&quot; in parted, iso9660 on anything but optical media was just never supposed to be a thing and the spec for what should be at the start of the disk is intentionally vague.</p><p>Ed. Also, <a href="https://medium.com/@jmwanderer/why-are-we-booting-cdrom-images-on-usb-sticks-c50e8b5aac11" rel="nofollow">this</a>.</p><p>Having a bootable iso image and other filesystems on one device simultaneously is even more of a hack, and generally requires installing a (second) bootloader that can chainload an iso9660 [insert system-specific hackery here] boot record or handle loop-mounting the filesystem and locating the kernel image itself... This is why grub-imageboot and ventoy exist, and it&#039;s also why they are so complicated and unreliable.</p><p>On the OP: Make sure the device is <em>properly</em> clean, first with a (fast) tool like <a href="https://manpages.debian.org/testing/util-linux/wipefs.8.en.html" rel="nofollow">wipefs</a>, and if that doesn&#039;t do it, nuke the entire device with a (slow) cp or dd from /dev/zero. Check the latter can write the entire expected size of the device - if it can&#039;t then what you have is likely a hardware problem.<br />As for &quot;takes ~2s&quot;, you&#039;re probably just seeing write-cache. Try oflag=direct to bypass kernel caches (see dd manpage).</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Mon, 27 Apr 2026 02:51:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63440#p63440</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63439#p63439</link>
			<description><![CDATA[<p>There is a BIG &quot;weird&quot; (not really;-)&#160; distinction between USB <em>stick</em> and USB <em>hard disk</em>: The &quot;type of storage&quot; depends on the partition table found on the device. And &quot;device&quot; means for example <span class="bbc">/dev/sdb</span> XOR <span class="bbc">/dev/sdb1</span>.</p><p>Given you&#039;re creating a boot stick from some image with <span class="bbc">dd of=/dev/sdb if=./cool-devuan</span>&#160; your stick becomes a kind of CD or DVD: there is <strong>only one</strong> partition with the size of the image! On the other hand <span class="bbc">gparted /dev/sdb</span> shows you the <strong>whole space</strong> on the device just because the found partition table is interpreted a similar way like <span class="bbc">grub</span> will do.</p><p>There is no supposed &quot;flaw&quot; in gparted: GÜ has spent his last raw DVD to chimaera and has checked that DVD with several machines successfully. GÜ has copied that 1.9GB image to a 32 GB USB-Stick (your devices may differ)</p><div class="codebox"><pre><code>dd if=./cool-devuan of=/dev/sdc</code></pre></div><p>The BIOS/UEFI recognizes the Stickas&#160; a &quot;bootable CD&quot; and boots successfully, BUT <span class="bbc">gparted /dev/sdc</span> shows roughly 30GB unused spaced on the stick. And that is good! Doing a <span class="bbc">dd of=/dev/sdbc<strong>1</strong> if=./cool-devuan</span> and creating a filesystem on /dev/sdc2 while keeping the stick bootable is left as an exercise to the reader.</p>]]></description>
			<author><![CDATA[dummy@example.com (guuml.dev1)]]></author>
			<pubDate>Mon, 27 Apr 2026 00:27:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63439#p63439</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63418#p63418</link>
			<description><![CDATA[<p>Have you tried wiping all partition info on the usb?</p><div class="codebox"><pre><code>sudo dd if=/dev/zero of=/dev/sdX bs=1M status=progress</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Elyon)]]></author>
			<pubDate>Sat, 25 Apr 2026 20:52:19 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63418#p63418</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63397#p63397</link>
			<description><![CDATA[<p>Okay, in general it depends on the tool you used to create partitions. Gparted has a flaw where it can&#039;t always read a USB properly, but it&#039;s not altogther Gparted&#039;s fault all the time. There are a number of tools to create a liveUSB, and a lot will install your iso, but they take up the entire stick with one iso-9660 partition. Unless the tool that you used to create any new partitions pre-emptively wiped the free space before it created your new partitions, it will frequently leave a small signature of 5 bytes that still identifies it (at least to Gparted) as one big partition.</p><p>The gnome-disk-utility should &quot;see&quot; your other partitions correctly, but even if you make new ones with it Gparted still won&#039;t &quot;see&quot; them even if GDU and your file-manager do, because GDU doesn&#039;t pre-emptively wipe either. But it will see extra partitions even if Gparted won&#039;t.</p><p>Both gnome-related, so good luck with getting them to admit it&#039;s an issue or fix it.</p>]]></description>
			<author><![CDATA[dummy@example.com (greenjeans)]]></author>
			<pubDate>Fri, 24 Apr 2026 23:26:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63397#p63397</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63393#p63393</link>
			<description><![CDATA[<p>Nope, they were working previously.</p>]]></description>
			<author><![CDATA[dummy@example.com (unixbot443)]]></author>
			<pubDate>Fri, 24 Apr 2026 19:29:18 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63393#p63393</guid>
		</item>
		<item>
			<title><![CDATA[Re: Weird usb partitioning issues]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=63392#p63392</link>
			<description><![CDATA[<p>Defective or fake stick?</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 24 Apr 2026 19:26:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=63392#p63392</guid>
		</item>
	</channel>
</rss>
