Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E.R." Newsgroups: comp.os.linux.misc Subject: Re: Taming The Data Destroyer Date: Tue, 18 Nov 2025 17:55:34 +0100 Lines: 21 Message-ID: <61luulxffm.ln2@Telcontar.valinor> References: <10fe1ec$ipc8$1@dont-email.me> <87a50k5yt3.fsf@atr2.ath.cx> <691b8e3b@news.ausics.net> <691c12b7@news.ausics.net> <10fh6jl$1cvaf$1@dont-email.me> <10fh9it$1dmda$1@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net jmP46AsFwHYSlo19FYuBSQW+I1zkZN8Jk7BG8VSviC99/j1kqG X-Orig-Path: Telcontar.valinor!not-for-mail Cancel-Lock: sha1:aM4fQHyrknFokDwL/7NJhfmXPFs= sha256:VwoI5YO7MRLRsnpzOmW3KAWrIvW8wBroSxr49gKVrZ4= User-Agent: Mozilla Thunderbird Content-Language: es-ES, en-CA In-Reply-To: <10fh9it$1dmda$1@dont-email.me> Xref: csiph.com comp.os.linux.misc:77725 On 2025-11-18 09:09, Lawrence D’Oliveiro wrote: > On Tue, 18 Nov 2025 08:46:01 +0100, Carlos E.R. wrote: > >> But we also need, for backups, something that can save and reconstruct >> the partition table, even GPT. > > “sfdisk -d” dumps out the partition table in a format that it can read > back in and set up again. Right. I just located a copy of the backup script (the working copy is stored on the external HD), and that is what I do. sfdisk -d /dev/disk/by-id/$DISKID > $DISKNAME-partition_table_sfdisk.out fdisk -l /dev/disk/by-id/$DISKID > $DISKNAME-partition_table_fdisk.out dd if=/dev/disk/by-id/$DISKID of=$DISKNAME-mbr count=1 -- Cheers, Carlos. ES🇪🇸, EU🇪🇺;