Thread View: linux.debian.user
13 messages
13 total messages
Started by Andrew M.A. Cater
Mon, 12 Oct 2026 22:40
Re: minor problem with live CD
Author: Andrew M.A. Cater
Date: Mon, 12 Oct 2026 22:40
Date: Mon, 12 Oct 2026 22:40
25 lines
2662 bytes
2662 bytes
On Mon, Oct 12, 2026 at 05:59:45PM -0400, hlyg wrote: > Thank Schmitt, gaumet,ย Busby and mailinglist.drool895! > > 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 > I'd also add a couple of arguments - oflag=sync and status=progress dd if=debian-live-13.7.0-amd64-lxqt.iso of=dev/sdX obs=4M oflag=sync status=progress that allows for the data to be synced as it is written to the USB stick and also shows progress on a long write. It's quite handy when you're writing one of the longer images on a slow machine / something slower than USB3 All the very best, as ever, Andrew Cater [amacater@debian.org]
Re: minor problem with live CD
Author: tomas
Date: Tue, 13 Oct 2026 09:00
Date: Tue, 13 Oct 2026 09:00
59 lines
3802 bytes
3802 bytes
--5IPXe1U0YfDrZwa3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 13, 2026 at 04:32:21AM -0400, hlyg wrote: >=20 > On 10/12/26 6:35 PM, Andrew M.A. Cater wrote: > > I'd also add a couple of arguments - oflag=3Dsync and status=3Dprogress > >=20 > > dd if=3Ddebian-live-13.7.0-amd64-lxqt.iso of=3Ddev/sdX obs=3D4M oflag= =3Dsync status=3Dprogress > >=20 > > that allows for the data to be synced as it is written to the USB stick= and > > also shows progress on a long write. > >=20 > > It's quite handy when you're writing one of the longer images on a slow > > machine / something slower than USB3 > >=20 > > All the very best, as ever, > >=20 > > Andrew Cater > > [amacater@debian.org] >=20 >=20 > Thank Cater!=C2=A0 Your command looks more professional. Yes. It is my favourite too. The "oflag=3Dsync" makes the writes to the stick happen "in real time", so that when dd finishes, you can be sure that the bytes have been written, instead of waiting in the buffer cache (entering a "sync" after it won't harm, but should return quickly). The "status=3Dprogress" shows you how far the write is, which is always nice for things which take a long time. > i have thought of using cp, but cp doesn't allow you to specify how many > bytes to be copied Cp will work too, but it is built for other things :-) Cheers --=20 t --5IPXe1U0YfDrZwa3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCas3yuwAKCRAFyCz1etHa RglwAJ9xAXzbAe/akMy1ScqOA1oQsjxnhgCfa8X2YwnKbdtTmmmYMsYRlqF2Kzo= =LxGf -----END PGP SIGNATURE----- --5IPXe1U0YfDrZwa3--
Re: minor problem with live CD
Author: Franco Martelli
Date: Tue, 13 Oct 2026 18:00
Date: Tue, 13 Oct 2026 18:00
54 lines
5625 bytes
5625 bytes
On 13/10/26 at 10:58, tomas@tuxteam.de wrote: > On Tue, Oct 13, 2026 at 04:32:21AM -0400, hlyg wrote: >> >> On 10/12/26 6:35 PM, Andrew M.A. Cater wrote: >>> I'd also add a couple of arguments - oflag=sync and status=progress >>> >>> dd if=debian-live-13.7.0-amd64-lxqt.iso of=dev/sdX obs=4M oflag=sync status=progress >>> >>> that allows for the data to be synced as it is written to the USB stick and >>> also shows progress on a long write. >>> >>> It's quite handy when you're writing one of the longer images on a slow >>> machine / something slower than USB3 >>> >>> All the very best, as ever, >>> >>> Andrew Cater >>> [amacater@debian.org] >> >> >> Thank Cater!ย Your command looks more professional. > > Yes. It is my favourite too. > > The "oflag=sync" makes the writes to the stick happen "in real > time", so that when dd finishes, you can be sure that the bytes > have been written, instead of waiting in the buffer cache > (entering a "sync" after it won't harm, but should return quickly). > > The "status=progress" shows you how far the write is, which is > always nice for things which take a long time. based on an Anssi Saari's suggestion: 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 Viewer). Pipe Viewer is the equivalent of "netcat" for data transfers between commands and devices, here the examples: ~# dd if=debian-live-13.7.0-amd64-lxqt.iso of=dev/sdX obs=4M oflag=sync status=progress and: ~# pv -Y debian-live-13.7.0-amd64-lxqt.iso >/dev/sdX both commands do the same thing. Which ones is it better to propose to an end user? For others nice examples please see "man pv". Sorry for the rant but once tried I can't live without. :) Kind regards. -- Franco Martelli
Re: minor problem with live CD
Author: Stefan Monnier
Date: Wed, 14 Oct 2026 03:20
Date: Wed, 14 Oct 2026 03:20
15 lines
2748 bytes
2748 bytes
> 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 > Viewer). Pipe Viewer is the equivalent of "netcat" for data transfers > between commands and devices, here the examples: I'll see your `pv` and raise you a `GNU ddrescue` (package `gddrescue`). > Sorry for the rant but once tried I can't live without. :) I'm a big fan of `pv` as well, but when it comes to copying partitions, I find `ddrescue` even nicer. E.g. you can safely interrupt it and resume execution. === Stefan
Re: minor problem with live CD
Author: Chris Green
Date: Wed, 14 Oct 2026 08:00
Date: Wed, 14 Oct 2026 08:00
20 lines
3388 bytes
3388 bytes
Stefan Monnier <monnier@iro.umontreal.ca> 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 > > Viewer). Pipe Viewer is the equivalent of "netcat" for data transfers > > between commands and devices, here the examples: > > I'll see your `pv` and raise you a `GNU ddrescue` (package `gddrescue`). > > > Sorry for the rant but once tried I can't live without. :) > > I'm a big fan of `pv` as well, but when it comes to copying partitions, > I find `ddrescue` even nicer. E.g. you can safely interrupt it > and resume execution. > However the advantage of dd is that it's available on all distributions (plus BSD and other Unix OS) and is very often already installed. -- Chris Green ยท
Re: minor problem with live CD
Author: CGS
Date: Wed, 14 Oct 2026 14:00
Date: Wed, 14 Oct 2026 14:00
23 lines
3449 bytes
3449 bytes
On 2026-10-14, Chris Green <cl@isbd.net> wrote: > Stefan Monnier <monnier@iro.umontreal.ca> 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 >> > Viewer). Pipe Viewer is the equivalent of "netcat" for data transfers >> > between commands and devices, here the examples: >> >> I'll see your `pv` and raise you a `GNU ddrescue` (package `gddrescue`). >> >> > Sorry for the rant but once tried I can't live without. :) >> >> I'm a big fan of `pv` as well, but when it comes to copying partitions, >> I find `ddrescue` even nicer. E.g. you can safely interrupt it >> and resume execution. >> > However the advantage of dd is that it's available on all distributions > (plus BSD and other Unix OS) and is very often already installed. Yes, I have neither pv nor ddrescue on my machine. I do have dd, though. For an end user like myself, the important thing is to be sure the source destination is your thumb drive and not your disk when using these tools.
Re: minor problem with live CD
Author: Roger Price
Date: Wed, 14 Oct 2026 14:30
Date: Wed, 14 Oct 2026 14:30
9 lines
3694 bytes
3694 bytes
On Wed, 14 Oct 2026, CGS wrote: > Yes, I have neither pv nor ddrescue on my machine. I do have dd, though. > > For an end user like myself, the important thing is to be sure the > source destination is your thumb drive and not your disk when using > these tools. Check with lsblk . Check twice. Take care, Roger
Re: minor problem with live CD
Author: Franco Martelli
Date: Wed, 14 Oct 2026 17:40
Date: Wed, 14 Oct 2026 17:40
97 lines
6978 bytes
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
Re: minor problem with live CD
Author: Franco Martelli
Date: Thu, 15 Oct 2026 13:20
Date: Thu, 15 Oct 2026 13:20
50 lines
5088 bytes
5088 bytes
On 14/10/26 at 21:06, Thomas Schmitt wrote: > Hi, > Hi, > Franco Martelli wrote: >> 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. > > My main concern is about users who not unsure enough. :)) I'm Debian's end user from Potato and I still double check the device today. :) > > Actually there must be no other filesystems than FAT and ISO 9660. > Their presence on the USB stick is not mandatory. (Except with option > -look_for_iso which overrides the presence of a rejectable filesystem > by the presence of an ISO 9660.) > > How about this: > ----------------------------------------------------------------------- > ... > sdc : NO : usb+ has_ext4- : Intenso Ultra Line > NO CANDIDATE FOR TARGET DEVICE AMONG THE GIVEN NAMES ! > > A suitable candidate must be a memory card or connected via USB > but must not be an optical drive, floppy, loop device, RAM device > or disk partition. It must not have filesystems other than FAT > or ISO 9660. More reasons exist to reject a candidate. > The reasons are given briefly by words which end by "-", like > has_ext4- or not_usb-. See the list in man xorriso-dd-target . > > Overall available devices: > ... > ----------------------------------------------------------------------- > Looks perfect to me, I'd just add two words: "on it", to be definitively explicit to this sentence: "It must not have filesystems other than FAT or ISO 9660." I'd like it becomes: "It must not have filesystems other than FAT or ISO 9660 on it." Kind regards, -- Franco Martelli
Re: minor problem with live CD
Author: Anssi Saari
Date: Thu, 15 Oct 2026 13:40
Date: Thu, 15 Oct 2026 13:40
20 lines
2666 bytes
2666 bytes
"Thomas Schmitt" <scdbackup@gmx.net> writes: > 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 Interesting tool, might use it but I so rarely write to USB. Well, unless I screw up Grub somehow. But for example, I need to do some remote partition surgery on a VPS, basically moving a Debian installation to a smaller virtual disk. So, partclone for initially backing up the partitions, gparted for partition and file system resizing, pv for copying the resized partitions to the other virtual drive. Not a lot of data to copy but always a little hair raising to do this remotely.
Re: minor problem with live CD
Author: David Wright
Date: Fri, 16 Oct 2026 04:00
Date: Fri, 16 Oct 2026 04:00
10 lines
4438 bytes
4438 bytes
On Wed 14 Oct 2026 at 13:50:32 (-0000), CGS wrote: > > For an end user like myself, the important thing is to be sure the > source destination is your thumb drive and not your disk when using > these tools. What's a source destination? Cheers, David.
Re: minor problem with live CD
Author: CGS
Date: Fri, 16 Oct 2026 13:40
Date: Fri, 16 Oct 2026 13:40
17 lines
3023 bytes
3023 bytes
On 2026-10-16, David Wright <deblis@lionunicorn.co.uk> wrote: > On Wed 14 Oct 2026 at 13:50:32 (-0000), CGS wrote: >> >> For an end user like myself, the important thing is to be sure the >> source destination is your thumb drive and not your disk when using >> these tools. > > What's a source destination? Good question. I was going to say a redundancy, but on second thought I'd called it an oxymoron, which is kind of the opposite. :-) > Cheers, > David. > >
Re: minor problem with live CD
Author: David Wright
Date: Sat, 17 Oct 2026 03:50
Date: Sat, 17 Oct 2026 03:50
20 lines
4129 bytes
4129 bytes
On Fri 16 Oct 2026 at 16:16:18 (+0200), Thomas Schmitt wrote: > > CGS wrote: > > > > [...] source destination [...] > > David Wright and Michel Verdier wrote: > > > What's a source destination? > > CGS wrote: > > I'd called it an oxymoron, > > But couldn't it be something like a git repository ? As the answer to a riddle perhaps. But in the context of tools like dd, ddrescue, pv etc, "source" in CGS's post is a source of confusion. If, as likely, it's a brain-fart, well, that exactly the problem with these tools: they're unforgiving of brain-farts. Cheers, David.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads