🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #128

Re: minor problem with live CD

#128
From: Franco Martelli
Date: Wed, 14 Oct 2026 17:40
97 lines
6978 bytes
On 13/10/26 at 21:32, Thomas Schmitt wrote:
> Hi,
> 
> Franco Martelli wrote:
>> why do we insist using "dd" (Disk Dump)? It's tricky, and has not a
>> comfortable syntax, why don't we suggest end users to use "pv" (Pipe
> 
> In this case probably because hlyg, the original poster, wanted to try
> whether the alteration sits in the first MB of the ISO image:
> 
> hlyg wrote:
>>> i have found solution:
>>> dd if=debian-live-13.7.0-amd64-lxqt.iso of=/dev/sdd bs=1M count=1
>>> it needs ISO file, but it isn't problem as wget allows partial downloading,
>>> a few MBs is enough
> 
> In a later mail:
>>> i have thought of using cp, but cp doesn't allow you to specify how many
>>> bytes to be copied

Yes, thanks, sorry I didn't read the whole thread only the last email. 
To do it with "pv" use this syntax:

~# pv -YSs 1M debian-live-13.7.0-amd64-lxqt.iso >/dev/sdX

> As we are at it, here is my opinion about the case of full image
> copying.
> 
> Franco Martelli wrote:
>> # dd if=debian-live-13.7.0-amd64-lxqt.iso of=dev/sdX obs=4M oflag=sync status=progress
>> ~# pv -Y debian-live-13.7.0-amd64-lxqt.iso >/dev/sdX
> 
> Although the pv command is shorter, it imposes the same main risk as
> dd or cp, namely the choice of /dev/sdX when running them under sudo.
> 
> For safety reasons i propose:
> 
>    xorriso-dd-target -with_sudo -plug_test -DO_WRITE \
>                      -image_file debian-live-13.1.0-amd64-standard.iso
> 
> See
>    https://wiki.debian.org/XorrisoDdTarget
>    https://manpages.debian.org/trixie/xorriso-dd-target/xorriso-dd-target.1.en.html

I've installed "xorriso-dd-target" in a virtual machine, tried it, and I 
found it very nice, suitable for end users that are unsure about which 
device to choose to perform the writing.

The part I found weak it is when "xorriso-dd-target" refuses to perform 
the writing, notably it is not verbose: it doesn't explain why the 
writing process abort, the reason. For example in the "Step 2" output:

...
Step 2:
Please plug in the desired target device and then press the Enter key.

Waiting up to 10 seconds for a new device to be listed ... found: sde
Now waiting 5 seconds to let it settle .........
Found and noted as desired device:  sde

sde : NO  : usb+ has_ext4- : General UDisk
NO CANDIDATE FOR TARGET DEVICE AMONG THE GIVEN NAMES !
Overall available devices:
sda : NO  : not_usb- has_linux_raid_member- has_LVM2_member- has_ext4- 
has_swap- : ATA VBOX HARDDISK
sdb : NO  : not_usb- has_linux_raid_member- has_LVM2_member- has_ext4- 
has_swap- : ATA VBOX HARDDISK
sdc : NO  : not_usb- has_linux_raid_member- has_LVM2_member- has_ext4- 
has_swap- : ATA VBOX HARDDISK
sdd : NO  : not_usb- has_linux_raid_member- has_LVM2_member- has_ext4- 
has_swap- : ATA VBOX HARDDISK
sde : NO  : usb+ has_ext4- : General UDisk
...

The lines:
sde : NO  : usb+ has_ext4- : General UDisk
NO CANDIDATE FOR TARGET DEVICE AMONG THE GIVEN NAMES !

Here, should explain the reason, otherwise the end user has to read the 
whole documentation to discover that the USB stick must have ISOFS or 
VFAT filesystem on it to perform the writing. Its output it should be 
something like:

sde : NO  : usb+ has_ext4- : General UDisk
sde : Reason : has_ext4- : MUST HAVE ISOFS OR VFAT FILESYSTEM ON IT (see 
documentation)
NO CANDIDATE FOR TARGET DEVICE AMONG THE GIVEN NAMES !

It should be easily patchable since it is a POSIX shell script, to save 
typing I've also defined an alias:

~$ alias dd2usb='xorriso-dd-target -with_sudo -plug_test -DO_WRITE 
-image_file'

Kind regards,
-- 
Franco Martelli
Technical Details
Message-ID: <NOb7j-5v2L-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NNOX9-5j8K-99@gated-at.bofh.it> <NOb7j-5v2L-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Franco Martelli <martellif67@gmail.com>
Newsgroups: linux.debian.user
Subject: Re: minor problem with live CD
Date: Wed, 14 Oct 2026 19:40:01 +0200
Message-ID: <NOb7j-5v2L-1@gated-at.bofh.it>
References: <NNOX9-5j8K-99@gated-at.bofh.it> <NOb7j-5v2L-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Wed Oct 14 17:37:15 2026
Old-Return-Path: <martellif67@gmail.com>
X-Amavis-Spam-Status: No, score=-1.849 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
X-Gm-Message-State: AFq9FYJNQaMlQTlsViInPQLYevXZnGwymNvDO8tV1COeeczO2lESglng
	YJjJW40E+31I7fw+Gw8+uNvdRqR9ywouCE2KXGsbpfDL5mkSNWlOdN9kY5cQm4vc
X-Gm-Gg: AYBFou3bsT0O0Fv0Q9nLD//nS6Xo8eryWdjnwYvK3jQqf/Z1GixfYY+RZ2itBTTO5kh
	bAoFcuSsGEBrKZNtboS7aPhzD4fDY0Kvj1j7FzuFoqN+dFvDrUJ0tOULV8e7w9F4ApZTflD15TY
	jKjga/0bj1P4lqe/zPozesrHxdgmt3dRNgs77d5nD1SV6J4n5l5+VmaLraKrIMF7YoaGmdwKW2Y
	gxPXnYsu9tyRhsWHQi9BcQX6zkU4EvG0pN8S5yrBY2jL7OdKPDKpYkJ0gV21zJHZ/bUoEsP9sXw
	eUnZGDCbpwVf78A4KLk4KatqkwjaO8G/TiXT7JA8mpV0o802Zda/C8rMW24tZ5XL+wn75Qncxm3
	vT5NbOszeokrjaQ0EcsByI/evO2CaJobUPeNbj6qmL4Ja4fpxC2lF2woPHYgSqIGxLXm9Y1Czfu
	UrdFo+puw7+pqR08VybSvdQ0K+Pp/xd03qR/Tr5aQyCngNVyT4iNzvEdeEBucySLz+k0cFUdm7R
	9VHpqirDJdGqKR52tTsq/5NAUxFzhI+jisprw4gz2kE+vk=
X-Received: by 2002:a05:600c:548e:b0:4a0:1aa0:7cfa with SMTP id 5b1f17b1804b1-4a18e4aa724mr340010945e9.12.1791999421039;
        Wed, 14 Oct 2026 10:37:01 -0700 (PDT)
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=martellif67@gmail.com; keydata=
 xjMEXwx9ehYJKwYBBAHaRw8BAQdA8CkGKYFI/MK9U3RPhzE5H/ul7B6bHu/4BIhTf6LLO47N
 J0ZyYW5jbyBNYXJ0ZWxsaSA8bWFydGVsbGlmNjdAZ21haWwuY29tPsKWBBMWCAA+FiEET9sW
 9yyU4uM6QbloXEn0O0LcklAFAmhyroACGwMFCQ0ncuYFCwkIBwIGFQoJCAsCBBYCAwECHgEC
 F4AACgkQXEn0O0LcklAHVwD9H5JZ52g292FD8w0x6meDD8y/6KkNpzuaLHP6/Oo8kAIBAJsh
 aMB9LdCBJTMtnxU8JTHtAoGOZ/59UJWeZIkuWJUNzjgEXwx9ehIKKwYBBAGXVQEFAQEHQNP5
 V2q0H0oiJu89h1SSPgQDtkixXvUvRf1rNLLIcNpPAwEIB8J+BBgWCAAmFiEET9sW9yyU4uM6
 QbloXEn0O0LcklAFAmhyroACGwwFCQ0ncuYACgkQXEn0O0LcklASVwEAoEkHMEU7mHc0zmAu
 D2R1PYsDh9+3wQeied5PrF+HdakBAOeSGsf40GBew5umZuM59I04d1uXYAXGMP+jGN2RUtMA
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832406
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/9c0673f2-40cc-41d6-960b-14a8ef32e69f@gmail.com
Approved: robomod@news.nic.it
Lines: 97
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 14 Oct 2026 19:36:59 +0200
X-Original-Message-ID: <9c0673f2-40cc-41d6-960b-14a8ef32e69f@gmail.com>
X-Original-References: <c6a6d32d-348f-4e16-b11d-00a9fcfaf1b2@gmail.com>
 <11994510372874652309@scdbackup.webframe.org>