Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I do not find in orthodox Christianity one redeeming feature. -- Thomas Jefferson


computers / alt.os.linux.mint / Re: Semi-disabling a boot drive

SubjectAuthor
* Semi-disabling a boot drivepinnerite
+* Re: Semi-disabling a boot driveMarco Moock
|`* Re: Semi-disabling a boot drivepinnerite
| `* Re: Semi-disabling a boot driveMarco Moock
|  `- Re: Semi-disabling a boot drivepinnerite
+* Re: Semi-disabling a boot driveyossarian
|`* Re: Semi-disabling a boot driveMarco Moock
| +* Re: Semi-disabling a boot drivePaul
| |+- Re: Semi-disabling a boot drivePaul
| |+- Re: Semi-disabling a boot driveyossarian
| |`* Re: Semi-disabling a boot driveMarco Moock
| | `* Re: Semi-disabling a boot driveDavid Catterall
| |  +* Re: Semi-disabling a boot drivePaul
| |  |`* Re: Semi-disabling a boot driveMarco Moock
| |  | `- Re: Semi-disabling a boot drivePaul
| |  `* Re: Semi-disabling a boot driveMarco Moock
| |   `* Re: Semi-disabling a boot driveDavid Catterall
| |    +- Re: Semi-disabling a boot driveMarco Moock
| |    `- Re: Semi-disabling a boot drivePaul
| `- Re: Semi-disabling a boot driveyossarian
+- Re: Semi-disabling a boot driveBit Twister
`* Re: Semi-disabling a boot drivePaul
 `* Re: Semi-disabling a boot driveMarco Moock
  `- Re: Semi-disabling a boot drivePaul

1
Semi-disabling a boot drive

<20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5643&group=alt.os.linux.mint#5643

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 11:30:36 +0000
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="769d426b343d3610554a0632cafebe4d";
logging-data="950030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SI1xnmrMOpJ0zoq/BcHv4Bv84PDUCxz4="
Cancel-Lock: sha1:ijTaemyPX4csJj9M5Xustne287E=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: pinnerite - Wed, 8 Mar 2023 11:30 UTC

My computers have two drive caddies.
Only one is normally enabled because they are bootable drives.

However,

I would have cloned the first drive to the second using a live
CD/DVD/flash drive. But thereafter they get out of sync.

If i could "slightly" disable the second drive so that when mounted it
not be seen as a boot drive, I could update it using rsync.

But, I would like to restore it as a boot drive when I need to 'er boot
from it.

What is the smallest action I can take that would disable/enable the
bootability of the second drive?

TIA, Alan

--
Mint 20.3, kernel 5.4.0-139-generic, Cinnamon 5.2.7
running on an AMD Phenom II X4 Black edition processor with 16GB of
DRAM.

Re: Semi-disabling a boot drive

<tu9t4d$sui3$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5644&group=alt.os.linux.mint#5644

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 12:55:57 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <tu9t4d$sui3$4@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 11:55:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="09642536942959ffe7ae5ea0854e3ffc";
logging-data="948803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MV06in5qKwi0XlFPOIR51"
Cancel-Lock: sha1:v2EvREenadtsCAV3VN7nDjv2pN0=
 by: Marco Moock - Wed, 8 Mar 2023 11:55 UTC

Am 08.03.2023 schrieb pinnerite <pinnerite@gmail.com>:

> I would have cloned the first drive to the second using a live
> CD/DVD/flash drive. But thereafter they get out of sync.

Make sure the partitions there get a new UUID - it will confuse
operating systems if 2 partitions have the same UUID.

If you want redundancy, use RAID.

> If i could "slightly" disable the second drive so that when mounted it
> not be seen as a boot drive, I could update it using rsync.

How do you boot?
UEFI or BIOS boot?

Re: Semi-disabling a boot drive

<20230308130514.5d1d7c39@white>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5645&group=alt.os.linux.mint#5645

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 13:05:14 +0100
Lines: 17
Message-ID: <20230308130514.5d1d7c39@white>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 0XzxgfJm6XLt5OppLA5NOQXLcm44Vvf/6I3jnmkwYzwbwVS3l7
Cancel-Lock: sha1:FGbHTjnJsHEglyT/PiX19Qp6vGg=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu)
 by: yossarian - Wed, 8 Mar 2023 12:05 UTC

On Wed, 8 Mar 2023 11:30:36 +0000
pinnerite <pinnerite@gmail.com> wrote:

> What is the smallest action I can take that would disable/enable the
> bootability of the second drive?
>
> TIA, Alan
>
Gparted, select drive, Partition, manage flags, Remove check mark from boot
Try might help

--
Mint 21.1 Vera, kernel 5.19.0-32-generic, Cinnamon 5.6.7
AMD Ryzen 7 5700G with Radeon Vega Graphics, 16GB of DRAM.

Re: Semi-disabling a boot drive

<tua5ek$sui3$6@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5647&group=alt.os.linux.mint#5647

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 15:17:56 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <tua5ek$sui3$6@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 14:17:56 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="09642536942959ffe7ae5ea0854e3ffc";
logging-data="948803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IrCqNQpo7xImcpHyFvJb4"
Cancel-Lock: sha1:5kyXjXkjnkvkx2keW46DtG1/NIU=
 by: Marco Moock - Wed, 8 Mar 2023 14:17 UTC

Am 08.03.2023 schrieb yossarian <<nomail@gmail.com>>:

> Gparted, select drive, Partition, manage flags, Remove check mark
> from boot Try might help

My disks don't have that flag and can still boot via BIOS.
It seems that this flag is unrelated to most BIOS implementations.

Re: Semi-disabling a boot drive

<slrnu0h8jq.1137h.BitTwister@wb.home.arpa>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5649&group=alt.os.linux.mint#5649

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 08:58:02 -0600
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <slrnu0h8jq.1137h.BitTwister@wb.home.arpa>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
Injection-Info: reader01.eternal-september.org; posting-host="633d3cdc4bdfe220f9527290428415dc";
logging-data="1006716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UW8ozGyorfnVR2clkAmk2E23/hn3OMwQ="
User-Agent: slrn/pre1.0.4-6 (Linux)
Cancel-Lock: sha1:IJ37CxaE13e0PczXVB+lJ/F6xGE=
 by: Bit Twister - Wed, 8 Mar 2023 14:58 UTC

On Wed, 8 Mar 2023 11:30:36 +0000, pinnerite wrote:
> My computers have two drive caddies.
> Only one is normally enabled because they are bootable drives.
>
> However,
>
> I would have cloned the first drive to the second using a live
> CD/DVD/flash drive. But thereafter they get out of sync.
>
> If i could "slightly" disable the second drive so that when mounted it
> not be seen as a boot drive, I could update it using rsync.

I use rsync all the time to backup my "Production" install and my
Cauldron installs. I just modify /etc/fstab so the the undesired
partitions have ,noauto as one of the mount options.

Examples:
LABEL=cauldron_bkup /cauldron_bkup ext4 users,noauto,relatime,acl 1 2
LABEL=net_ins_bkup /net_ins_bkup ext4 users,noauto,relatime,acl 1 2
/spare/bkup.iso /bkup auto users,noauto,ro 0 0

The backup script just mounts the target partition prior to running
the rsync command and umounts it upon completion.

Homework: man mount

Re: Semi-disabling a boot drive

<tua8bc$uu8o$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5650&group=alt.os.linux.mint#5650

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 10:07:26 -0500
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <tua8bc$uu8o$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 15:07:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="599ab0faa764680705ea3acf52ec78cd";
logging-data="1014040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193+Uba+BRLLJ13pWKfqYA7tKst7Bkvv50="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:YohCa1dUif9rgcsxF/gRvS1ZKUY=
In-Reply-To: <tua5ek$sui3$6@dont-email.me>
Content-Language: en-US
 by: Paul - Wed, 8 Mar 2023 15:07 UTC

On 3/8/2023 9:17 AM, Marco Moock wrote:
> Am 08.03.2023 schrieb yossarian <<nomail@gmail.com>>:
>
>> Gparted, select drive, Partition, manage flags, Remove check mark
>> from boot Try might help
>
> My disks don't have that flag and can still boot via BIOS.
> It seems that this flag is unrelated to most BIOS implementations.
>

[Picture]

https://i.postimg.cc/ZRvVX031/boot-flag-windows-only.gif

That flag is used by the Windows MBR code, to select a Windows
partition to be the boot partition.

It's only used on legacy partitioned disks (three primary, extended/logical).

On a GPT disk, the boot information is stored in the ESP, so
boot flags are not needed in the usual way.

A GPT disk does have an MBR sector and you *could* set a boot
flag, but the rest of the infrastructure to use the boot flag,
isn't present. The partition table is used, only in the sense
that the first partition (type 0xEE) marks the disk as being
"in use" and so no legacy routines can accidentally use the disk
drive for their own purposes. The 0xEE partition, is sized to
cover a 2.2TB disk area, which is all of the area that the
legacy environment knows how to work with. So the 0xEE
partition "provides cover against accidents". And this is a
technique used on other OSes that have two disk partitioning
formats. They always cover the old format, so it cannot be
used by accident.

Paul

Re: Semi-disabling a boot drive

<tuabat$vfjq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5651&group=alt.os.linux.mint#5651

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 10:58:24 -0500
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <tuabat$vfjq$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 8 Mar 2023 15:58:21 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="599ab0faa764680705ea3acf52ec78cd";
logging-data="1031802"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j5CFXrMnVkNQpU5Z/hwYKTy2XZ2wAUK0="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:jaFt9eZuNgT78L9/1/Ja1yI0z7U=
In-Reply-To: <tua8bc$uu8o$1@dont-email.me>
Content-Language: en-US
 by: Paul - Wed, 8 Mar 2023 15:58 UTC

On 3/8/2023 10:07 AM, Paul wrote:
> On 3/8/2023 9:17 AM, Marco Moock wrote:
>> Am 08.03.2023 schrieb yossarian <<nomail@gmail.com>>:
>>
>>> Gparted, select drive, Partition, manage flags, Remove check mark
>>> from boot Try might help
>>
>> My disks don't have that flag and can still boot via BIOS.
>> It seems that this flag is unrelated to most BIOS implementations.
>>
>
>    [Picture]
>
>     https://i.postimg.cc/ZRvVX031/boot-flag-windows-only.gif
>
> That flag is used by the Windows MBR code, to select a Windows
> partition to be the boot partition.
>
> It's only used on legacy partitioned disks (three primary, extended/logical).
>
> On a GPT disk, the boot information is stored in the ESP, so
> boot flags are not needed in the usual way.
>
> A GPT disk does have an MBR sector and you *could* set a boot
> flag, but the rest of the infrastructure to use the boot flag,
> isn't present. The partition table is used, only in the sense
> that the first partition (type 0xEE) marks the disk as being
> "in use" and so no legacy routines can accidentally use the disk
> drive for their own purposes. The 0xEE partition, is sized to
> cover a 2.2TB disk area, which is all of the area that the
> legacy environment knows how to work with. So the 0xEE
> partition "provides cover against accidents". And this is a
> technique used on other OSes that have two disk partitioning
> formats. They always cover the old format, so it cannot be
> used by accident.
>
>    Paul

There is actually a case where a Linux uses the boot flag.

https://www.rodsbooks.com/gdisk/booting.html

"The SYSLINUX boot loader is another Linux boot loader that
includes GPT support. This support resides in the MBR and redirects
the boot process to a partition with the Legacy BIOS Bootable flag set.
AFAIK, no Linux distribution relies on SYSLINUX to boot from a GPT disk,
but you could set yours up to use this boot method if you liked."

As you can see from that article, "booting is a zoo".

Paul

Re: Semi-disabling a boot drive

<20230308170522.2d9fab10@white>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5652&group=alt.os.linux.mint#5652

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 17:05:22 +0100
Lines: 23
Message-ID: <20230308170522.2d9fab10@white>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net H+TotiLtzVO0R6O6sJciGgGORxWYLcR7vaowZ23i5vRp15Uj+V
Cancel-Lock: sha1:texoRf8+i0IjB9W2PYRpTSJZGS0=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu)
 by: yossarian - Wed, 8 Mar 2023 16:05 UTC

On Wed, 8 Mar 2023 10:07:26 -0500
Paul <nospam@needed.invalid> wrote:

> On 3/8/2023 9:17 AM, Marco Moock wrote:
> > Am 08.03.2023 schrieb yossarian <<nomail@gmail.com>>:
> >
> [...]
> >
> > My disks don't have that flag and can still boot via BIOS.
> > It seems that this flag is unrelated to most BIOS implementations.
> >
>
> [Picture]
>
> https://i.postimg.cc/ZRvVX031/boot-flag-windows-only.gif
>
> That flag is used by the Windows MBR code, to select a Windows
> partition to be the boot partition.
>
On my wife Mint 19 comp, there is a flag for boot
https://i.postimg.cc/8Ck9jF4k/Screenshot-from-2023-03-08-16-43-51.png
I have dual boot so my flag is on windows efi partition.

Re: Semi-disabling a boot drive

<20230308170901.0f7a85c2@white>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5653&group=alt.os.linux.mint#5653

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!news.nntp4.net!news5.corell.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 17:09:01 +0100
Lines: 17
Message-ID: <20230308170901.0f7a85c2@white>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 6YxuHeE8X0tFYngDdBVqQguUNd9BlbGDhSq/PZ8SDE2ELDoM8a
Cancel-Lock: sha1:nMJwJyQBZptbC7O95uF6XMvJddE=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu)
 by: yossarian - Wed, 8 Mar 2023 16:09 UTC

On Wed, 8 Mar 2023 15:17:56 +0100
Marco Moock <mo01@posteo.de> wrote:

> Am 08.03.2023 schrieb yossarian <<nomail@gmail.com>>:
>
> > Gparted, select drive, Partition, manage flags, Remove check mark
> > from boot Try might help
>
> My disks don't have that flag and can still boot via BIOS.
> It seems that this flag is unrelated to most BIOS implementations.
>
My computers use UEFI so I don't know about BIOS implementations.

--
Mint 21.1 Vera, kernel 5.19.0-32-generic, Cinnamon 5.6.7
AMD Ryzen 7 5700G with Radeon Vega Graphics, 32GB of DRAM.

Re: Semi-disabling a boot drive

<tuacn7$vrjs$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5654&group=alt.os.linux.mint#5654

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 11:22:00 -0500
Organization: A noiseless patient Spider
Lines: 109
Message-ID: <tuacn7$vrjs$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 16:21:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="599ab0faa764680705ea3acf52ec78cd";
logging-data="1044092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wcXYLz2HieMrO3fBOLmgNxqKV+cxcgrI="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:wNCOTQb+jJ9InUbxQoA9PgcKk6A=
Content-Language: en-US
In-Reply-To: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
 by: Paul - Wed, 8 Mar 2023 16:22 UTC

On 3/8/2023 6:30 AM, pinnerite wrote:
> My computers have two drive caddies.
> Only one is normally enabled because they are bootable drives.
>
> However,
>
> I would have cloned the first drive to the second using a live
> CD/DVD/flash drive. But thereafter they get out of sync.
>
> If i could "slightly" disable the second drive so that when mounted it
> not be seen as a boot drive, I could update it using rsync.
>
> But, I would like to restore it as a boot drive when I need to 'er boot
> from it.
>
> What is the smallest action I can take that would disable/enable the
> bootability of the second drive?
>
> TIA, Alan

Two hot disks, is not redundancy. If the power supply
fails, both hard drives could be destroyed.

The second disk (your emergency disk) should remain
unplugged while the working disk is in usage.

Making a backup of the working disk, then storing
that backup offline, protects the backup image.

Primary drive --------> backup image -------+
|
Secondary drive <---------+

Restoring the backup image to the second disk, gives
you a device to boot from. The reason for this idea, is
simplicity of procedure. You want backup and restore
commands that do all the work for you. Rather than you
working like crazy to manage your disks.

While you could zero out the MBR, or zero out the ESP
(and keep backups of them in a safe place), then there's
not much reason to keep the drive powered and in the chassis.

In the GPT environment, the MBR does not contain too much of
absolute value. But it does have 0xAA55 up near the end of
the sector, which indicate the sector has been initialized.
I don't know what happens to a GPT disk, if the MBR indicates
it is not initialized.

The description of GPT boot, makes it sound like the two GPT
partitions are what the UEFI BIOS is sniffing. GPT partition tables
are relatively small, and might be something like 128 entries
times 1KB each. One table near the origin of the disk, the
second table (the "nuisance table") is up near the end, and
makes it difficult to clone drives to a different size new drive.

https://www.rodsbooks.com/gdisk/booting.html

Removing the ESP (zero it out), then there is no boot menu, and
so the parser for UEFI must stop considering the disk drive.
You could put a FAT32 in place of the ESP, where the folders
have been removed. That would be sufficient to stop it.
While direct editing of the ESP is forbidden, you can

sudo dd if=/dev/sda1 of=myESP.bin # This transfers 512 bytes at a time.
# Until it hits the end of sda1.

and transfer it out. Or restore it as

sudo dd if=myESP.bin of=/dev/sda1

You can put a cooked version of the ESP in place, as

sudo dd if=myCookedESP.bin of=/dev/sda1

You can loopback mount an ESP as a normal FAT32, using
this sort of thing. You could delete everything you find
in here, and then this myESP.bin becomes myCookedESP.bin .

sudo mount -o loop myESP.bin /mnt/temp
cd /mnt/temp
ls

But the notion of managing disk drives this way,
this boggles the mind. Sooner or later you will
have an accident. it's like running at the swimming pool,
or taking up chainsaw juggling as a hobby. The risk is
too great for the reward.

Summary: Your question can be answered via experimentation,
but it will take a while. The Rodsbook article is
certainly thorough, but I don't know if your exact
scenario is considered there. The idea of having
partitions with exactly the same UUIDs and so on, now
that doesn't sound likely to work.

I think a conventional backup, and a bare metal restore,
are sufficient as a solution. The backup could be a tar file
or some other form of container, which a UEFI would have no
interest in such a thing. This means a third drive holds
the backup.

The results of your experiments would be interesting,
but I'm not convinced that the results of the experiment
are suitable as a "workflow". Any more than standing on
my head, is a cheap way to get a haircut.

Paul

Re: Semi-disabling a boot drive

<tuaq2r$12cj0$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5655&group=alt.os.linux.mint#5655

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 21:10:03 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <tuaq2r$12cj0$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 20:10:03 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="f610135b8216a84a64b9e9611f746caf";
logging-data="1127008"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18zRJYpiOjasNcchaMnttto"
Cancel-Lock: sha1:afQI4e02w0VUccJ3PPipE0Dz9qk=
 by: Marco Moock - Wed, 8 Mar 2023 20:10 UTC

Am 08.03.2023 um 10:07:26 Uhr schrieb Paul:

> That flag is used by the Windows MBR code, to select a Windows
> partition to be the boot partition.
>
> It's only used on legacy partitioned disks (three primary,
> extended/logical).
>
> On a GPT disk, the boot information is stored in the ESP, so
> boot flags are not needed in the usual way.

Boot flags aren't needed for classic boot anyway.
I had a GPT partition table and BIOS boot (no UEFI).
No boot flag set.
I also had Linux machines with MBR partition table and no boot flag.

Is it maybe just Windows that sets it?

I read in a German newsgroup that very few BIOS implementations could
only boot when boot flag on partition has been set, but this is a very
rare circumstance.

Re: Semi-disabling a boot drive

<20230308210041.02534e4d501f7097576c8e71@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5656&group=alt.os.linux.mint#5656

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 21:00:41 +0000
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <20230308210041.02534e4d501f7097576c8e71@gmail.com>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<tu9t4d$sui3$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="769d426b343d3610554a0632cafebe4d";
logging-data="1144218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18I+LMaZ8F+uaYp+MDlj2MfswXNBw22e4A="
Cancel-Lock: sha1:5qTVXFapnVeUDE7zP3VJ4XGkHf0=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: pinnerite - Wed, 8 Mar 2023 21:00 UTC

On Wed, 8 Mar 2023 12:55:57 +0100
Marco Moock <mo01@posteo.de> wrote:

> Am 08.03.2023 schrieb pinnerite <pinnerite@gmail.com>:
>
> > I would have cloned the first drive to the second using a live
> > CD/DVD/flash drive. But thereafter they get out of sync.

I have been cloning booting from a live CD/DVD, either Knoppix or
Parted Magic for about 15 years without a problem using dd.

What I want to do now is intended to update one from the other so as
to ensure they remain in sync until I need to restore the second to a
bootable state.

In all probablity I would not need to do this more than monthly.

>
> Make sure the partitions there get a new UUID - it will confuse
> operating systems if 2 partitions have the same UUID.
>
> If you want redundancy, use RAID.
>
> > If i could "slightly" disable the second drive so that when mounted it
> > not be seen as a boot drive, I could update it using rsync.
>
> How do you boot?
> UEFI or BIOS boot?
>

I should have said BIOS boot.

--
Mint 20.3, kernel 5.4.0-139-generic, Cinnamon 5.2.7
running on an AMD Phenom II X4 Black edition processor with 16GB of
DRAM.

Re: Semi-disabling a boot drive

<tub3jn$148ob$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5657&group=alt.os.linux.mint#5657

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: djc...@eircom.net (David Catterall)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Wed, 8 Mar 2023 22:52:36 +0000
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <tub3jn$148ob$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me> <tuaq2r$12cj0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 8 Mar 2023 22:52:39 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="03a359177c55b5b618d07f8619e0bfc2";
logging-data="1188619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cHpwDBSLbn1LyMt732lwSBbHtPx1tmbs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:namOz3ndOYcnvMraJr3NF50RkBw=
In-Reply-To: <tuaq2r$12cj0$1@dont-email.me>
Content-Language: en-GB
 by: David Catterall - Wed, 8 Mar 2023 22:52 UTC

On 08/03/2023 20:10, Marco Moock wrote:
> I also had Linux machines with MBR partition table and no boot flag.

Marco,

I'm wondering how the BIOS knows which drive has the bootloader on it.

Cheers,
David in Co Longford

Re: Semi-disabling a boot drive

<tuc2a7$1bm0p$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5658&group=alt.os.linux.mint#5658

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 02:36:39 -0500
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <tuc2a7$1bm0p$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me> <tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 9 Mar 2023 07:36:39 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="256018ce964f3cf655a555b5fa704740";
logging-data="1431577"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Btera7oukHFegL/ONsEhAwYI7vTciNhI="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:kTY1SmazbP1TnRI9mMCnt3Z1p8Q=
Content-Language: en-US
In-Reply-To: <tub3jn$148ob$1@dont-email.me>
 by: Paul - Thu, 9 Mar 2023 07:36 UTC

On 3/8/2023 5:52 PM, David Catterall wrote:
> On 08/03/2023 20:10, Marco Moock wrote:
>> I also had Linux machines with MBR partition table and no boot flag.
>
> Marco,
>
> I'm wondering how the BIOS knows which drive has the bootloader on it.
>
> Cheers,
>  David in Co Longford

It scans them all.

And, it gets pissed when it finds two Windows Boot Managers :-)

I would have hoped, that disks would be analyzed independently,
such that two Windows Boot Managers could live in harmony, but
that isn't entire the case. I've also had the odd problem here
(recently), with perfectly legit configs being present, and
I end up getting a "no bootable things are available" message
on a black background. This means the UEFI has done its scan,
and was unable to parse up any path strings.

It's my suspicion, that the UEFI standard was invented for
"systems in a bottle", operated by Secure Boot, and not
intended for a dynamic environment as such. it is not a BIOS
invented for us -- it's a BIOS invented for Microsoft business
interests (Surface).

The legacy BIOS is much more tolerant of complex configurations,
such as your suggestion of a first stage boot being on one physical
device, and the OS partition being on a second device. Or, having
two boot processes sitting on the disks, and the user steers which
path is used, via the selection of which disk to scan first.

As a result of the behaviors, I am actually hesitant to put two
disks with UEFI Windows Boot Managers in the machine at the same time.
I did select one once, then the evidence later was, the UEFI BIOS
actually launched the other disk. Disconcerting.

Paul

Re: Semi-disabling a boot drive

<tuc2g1$1bl21$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5659&group=alt.os.linux.mint#5659

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 08:39:45 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tuc2g1$1bl21$2@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<tu9t4d$sui3$4@dont-email.me>
<20230308210041.02534e4d501f7097576c8e71@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 07:39:45 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c85d599389654d2ab5af51c5a5c0507a";
logging-data="1430593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kl0PB8jYMU4XX+7jg2TO5"
Cancel-Lock: sha1:A7ZKpRfFi9W+irHixaJOuUJSzeE=
 by: Marco Moock - Thu, 9 Mar 2023 07:39 UTC

Am 08.03.2023 schrieb pinnerite <pinnerite@gmail.com>:

> I have been cloning booting from a live CD/DVD, either Knoppix or
> Parted Magic for about 15 years without a problem using dd.
>
> What I want to do now is intended to update one from the other so as
> to ensure they remain in sync until I need to restore the second to a
> bootable state.
>
> In all probablity I would not need to do this more than monthly

It depends how the partition is being mounted. If it is being mounted
via the name /dev/sdXY, it works. If it is being mounted by the label
or UUID, it will be ambiguous.

Re: Semi-disabling a boot drive

<tuc2i0$1bl21$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5660&group=alt.os.linux.mint#5660

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 08:40:46 +0100
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <tuc2i0$1bl21$3@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
<tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 07:40:48 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c85d599389654d2ab5af51c5a5c0507a";
logging-data="1430593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+rcICVw4kHnmKJdMhpS6gj"
Cancel-Lock: sha1:JDRW1Q1ft6zrTn4S+xYm6pFBD/g=
 by: Marco Moock - Thu, 9 Mar 2023 07:40 UTC

Am 08.03.2023 schrieb David Catterall <djcatt@eircom.net>:

> I'm wondering how the BIOS knows which drive has the bootloader on it.

You select one disk (like HDD1 WD2500JS) and it will look in the 1st
sector.
Then it loads the software from there.

Re: Semi-disabling a boot drive

<tuc2p1$1bl21$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5661&group=alt.os.linux.mint#5661

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 08:44:32 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tuc2p1$1bl21$4@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
<tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me>
<tuc2a7$1bm0p$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 07:44:33 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c85d599389654d2ab5af51c5a5c0507a";
logging-data="1430593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188/ok65YTNVSnYjUTE9TPA"
Cancel-Lock: sha1:bQS2bwHuxR0SyS0xFX1M5UYTMks=
 by: Marco Moock - Thu, 9 Mar 2023 07:44 UTC

Am 09.03.2023 schrieb Paul <nospam@needed.invalid>:

> It's my suspicion, that the UEFI standard was invented for
> "systems in a bottle", operated by Secure Boot, and not
> intended for a dynamic environment as such. it is not a BIOS
> invented for us -- it's a BIOS invented for Microsoft business
> interests (Surface).

I cannot agree with it. SecureBoot is handled by MS - but you can
disable it and you can place your own keys inside.
The only thing is that there exist bad UEFI implementations that don't
allow this.

EFI boot management is much easier when multiple operating systems with
multiple boot loaders exist.

> As a result of the behaviors, I am actually hesitant to put two
> disks with UEFI Windows Boot Managers in the machine at the same time.
> I did select one once, then the evidence later was, the UEFI BIOS
> actually launched the other disk. Disconcerting.

You need to select a boot loader in the EFI partition. This makes sure
that the specific loader is being booted.

Re: Semi-disabling a boot drive

<tuc2s1$1bl21$5@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5662&group=alt.os.linux.mint#5662

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 08:46:08 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <tuc2s1$1bl21$5@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<tuacn7$vrjs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 07:46:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c85d599389654d2ab5af51c5a5c0507a";
logging-data="1430593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Gr392163jGmStzTEC71Z5"
Cancel-Lock: sha1:U7yJEy4Fun8P1szTb9EsDQe8VbA=
 by: Marco Moock - Thu, 9 Mar 2023 07:46 UTC

Am 08.03.2023 schrieb Paul <nospam@needed.invalid>:

> Removing the ESP (zero it out), then there is no boot menu, and
> so the parser for UEFI must stop considering the disk drive.

This isn't all.
There is an entry in the NVRAM on the motherboard. This needs to be
removed too.

This can be done in the UEFI firmware setup or under Linux via
efibootmgr.

Re: Semi-disabling a boot drive

<tuce9b$1do9n$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5663&group=alt.os.linux.mint#5663

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: djc...@eircom.net (David Catterall)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 11:00:59 +0000
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tuce9b$1do9n$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me> <tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me> <tuc2i0$1bl21$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 11:00:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0d9b5abf18a4426c7d3f902bec3cf7ac";
logging-data="1499447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oLN6m7EJTfieCEVfKdPiutJroGgpenuk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:Dee8Vs9CIxgrkiKP4VTCc00wONE=
In-Reply-To: <tuc2i0$1bl21$3@dont-email.me>
Content-Language: en-GB
 by: David Catterall - Thu, 9 Mar 2023 11:00 UTC

On 09/03/2023 07:40, Marco Moock wrote:

> Am 08.03.2023 schrieb David Catterall <djcatt@eircom.net>:
>
>> I'm wondering how the BIOS knows which drive has the bootloader on it.
>
> You select one disk (like HDD1 WD2500JS) and it will look in the 1st
> sector.
> Then it loads the software from there.
>

Does that mean that you are able to Press a Key (such as F11) during
boot-up and your BIOS will offer you a choice of drives to select?

D.

Re: Semi-disabling a boot drive

<tucegh$1bl21$7@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5664&group=alt.os.linux.mint#5664

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 12:04:49 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <tucegh$1bl21$7@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white>
<tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me>
<tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me>
<tuc2i0$1bl21$3@dont-email.me>
<tuce9b$1do9n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 11:04:49 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="c85d599389654d2ab5af51c5a5c0507a";
logging-data="1430593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18on9zVhU+ABZ0cvISue+JF"
Cancel-Lock: sha1:PnhoRX9yVNg1UWUXLudlG8xnm+I=
 by: Marco Moock - Thu, 9 Mar 2023 11:04 UTC

Am 09.03.2023 schrieb David Catterall <djcatt@eircom.net>:

> On 09/03/2023 07:40, Marco Moock wrote:
>
> > Am 08.03.2023 schrieb David Catterall <djcatt@eircom.net>:
> >
> >> I'm wondering how the BIOS knows which drive has the bootloader on
> >> it.
> >
> > You select one disk (like HDD1 WD2500JS) and it will look in the 1st
> > sector.
> > Then it loads the software from there.
> >
>
> Does that mean that you are able to Press a Key (such as F11) during
> boot-up and your BIOS will offer you a choice of drives to select?

Yes. That is the case on my older BIOS-based Motherboards.

Re: Semi-disabling a boot drive

<tud0gp$1h04t$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5666&group=alt.os.linux.mint#5666

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 11:12:11 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <tud0gp$1h04t$2@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me> <tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me> <tuc2a7$1bm0p$1@dont-email.me>
<tuc2p1$1bl21$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 16:12:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="256018ce964f3cf655a555b5fa704740";
logging-data="1605789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+r1IvD5ofyZlxkxDLf7UO7yyYyxWCliAU="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:Q5ni8i3lQxYH23Ltpo0sHRCaeP8=
Content-Language: en-US
In-Reply-To: <tuc2p1$1bl21$4@dont-email.me>
 by: Paul - Thu, 9 Mar 2023 16:12 UTC

On 3/9/2023 2:44 AM, Marco Moock wrote:

>
> You need to select a boot loader in the EFI partition. This makes sure
> that the specific loader is being booted.

In my example, it failed to do that. And jumped to the second disk drive.
This was while using the F8 Popup Boot menu, where the two
Windows Boot Manager menu items (plus their disk drive identifier) are sitting.

Paul

Re: Semi-disabling a boot drive

<tud0r6$1h46m$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5667&group=alt.os.linux.mint#5667

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 11:17:44 -0500
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <tud0r6$1h46m$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<20230308130514.5d1d7c39@white> <tua5ek$sui3$6@dont-email.me>
<tua8bc$uu8o$1@dont-email.me> <tuaq2r$12cj0$1@dont-email.me>
<tub3jn$148ob$1@dont-email.me> <tuc2i0$1bl21$3@dont-email.me>
<tuce9b$1do9n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 16:17:43 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="256018ce964f3cf655a555b5fa704740";
logging-data="1609942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+N24tn4nn3+67rqCHmufGzMlnjuRw/980="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:PY6CMQvUCyujGWAa1Zt1+OxBNgY=
Content-Language: en-US
In-Reply-To: <tuce9b$1do9n$1@dont-email.me>
 by: Paul - Thu, 9 Mar 2023 16:17 UTC

On 3/9/2023 6:00 AM, David Catterall wrote:
> On 09/03/2023 07:40, Marco Moock wrote:
>
>> Am 08.03.2023 schrieb David Catterall <djcatt@eircom.net>:
>>
>>> I'm wondering how the BIOS knows which drive has the bootloader on it.
>>
>> You select one disk (like HDD1 WD2500JS) and it will look in the 1st
>> sector.
>> Then it loads the software from there.
>>
>
> Does that mean that you are able to Press a Key (such as F11) during boot-up and your BIOS will offer you a choice of drives to select?
>
> D.

That capability started around the year 2005. Popup boot
was first offered with legacy BIOS, but also exists with UEFI machines.

The feature was "standardized enough" among legacy BIOS companies,
that the color of the blue border is a standard of sorts. So even
if Dell can't be bothered to do it right, at least the border
will be the color of blue.

On something like VirtualBox, if you enable UEFI in the Guest settings
panel, then hammer <esc> key, the middle choice there causes a popup
boot menu to appear. The dimensions are not right. But the color
around the whole dialog is "blue", to remind you where you are :-)

The "color" is the most solid part of the popup boot concept.

Paul

Re: Semi-disabling a boot drive

<20230309173424.7e07ca4a12f279cd2be30352@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5669&group=alt.os.linux.mint#5669

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 17:34:24 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <20230309173424.7e07ca4a12f279cd2be30352@gmail.com>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<tu9t4d$sui3$4@dont-email.me>
<20230308210041.02534e4d501f7097576c8e71@gmail.com>
<tuc2g1$1bl21$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="8126501d7660d2d255d0bd3923e7245d";
logging-data="1634948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XNTjhpeOQLfAn5wImm0PTtiCNDik3br4="
Cancel-Lock: sha1:pPCT/xpLDoLCWDHETHdSMgE4PEU=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu)
 by: pinnerite - Thu, 9 Mar 2023 17:34 UTC

On Thu, 9 Mar 2023 08:39:45 +0100
Marco Moock <mo01@posteo.de> wrote:

> Am 08.03.2023 schrieb pinnerite <pinnerite@gmail.com>:
>
> > I have been cloning booting from a live CD/DVD, either Knoppix or
> > Parted Magic for about 15 years without a problem using dd.
> >
> > What I want to do now is intended to update one from the other so as
> > to ensure they remain in sync until I need to restore the second to a
> > bootable state.
> >
> > In all probablity I would not need to do this more than monthly
>
> It depends how the partition is being mounted. If it is being mounted
> via the name /dev/sdXY, it works. If it is being mounted by the label
> or UUID, it will be ambiguous.
>

For cloning they are unmounted.

--
Mint 20.3, kernel 5.4.0-139-generic, Cinnamon 5.2.7
running on an AMD Phenom II X4 Black edition processor with 16GB of DRAM.

Re: Semi-disabling a boot drive

<tudhqo$1k0sd$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=5673&group=alt.os.linux.mint#5673

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nos...@needed.invalid (Paul)
Newsgroups: alt.os.linux.mint
Subject: Re: Semi-disabling a boot drive
Date: Thu, 9 Mar 2023 16:07:35 -0500
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <tudhqo$1k0sd$1@dont-email.me>
References: <20230308113036.16bb27f4dcc38ef087f7890e@gmail.com>
<tuacn7$vrjs$1@dont-email.me> <tuc2s1$1bl21$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 9 Mar 2023 21:07:36 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="256018ce964f3cf655a555b5fa704740";
logging-data="1704845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BEDrt2lBBUxxfRm39ANi9U5GaDSHJ3ss="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:c3VegaMHlK+G+Mq3TjO7/3g0/uQ=
Content-Language: en-US
X-Mozilla-News-Host: news://nntp.aioe.org
In-Reply-To: <tuc2s1$1bl21$5@dont-email.me>
 by: Paul - Thu, 9 Mar 2023 21:07 UTC

On 3/9/2023 2:46 AM, Marco Moock wrote:
> Am 08.03.2023 schrieb Paul <nospam@needed.invalid>:
>
>> Removing the ESP (zero it out), then there is no boot menu, and
>> so the parser for UEFI must stop considering the disk drive.
>
> This isn't all.
> There is an entry in the NVRAM on the motherboard. This needs to be
> removed too.
>
> This can be done in the UEFI firmware setup or under Linux via
> efibootmgr.
>

Well, I tried messing with it, and the results were weird.

You're right, that the NVRAM caches it.

But the NVRAM also has triggers for when it is supposed
to re-evaluate the structure on the disk.

And while I was working on the drive, I did not manage to
trigger a re-evaluation of the disk.

I dd-transferreed the FAT32 partition and loopback mounted it.
I deleted the Microsoft and Ubuntu folders (rm -Rf *).

Now, instead of the "normal" behavior, the deleted entries
show in a red color. I don't know what feature of a FAT
would do this. A deleted item, a single byte is flipped
to change the status of an item to deleted. So it is not
really deleted. But normally, it is not visible after
it has been deleted.

After I deleted "Microsoft" and "Ubuntu", then dd-transferred
the partition back into the ESP, the boot menu was relatively
unchanged (even though the corresponding folders were deleted).
If I selected "Windows Boot Manager", I get the black screen
with the "cannot find bootable stuff" message. The same thing
happened when I selected the Ubuntu entry. It could not find
that either (because I had deleted the materials). But
the cosmetics remain unchanged.

When I overwrote the white space on the partition, with
a very large zero-filled file, this made the Microsoft red text
disappear, to be replaced by the "big.bin" of my erasure file.
But it still didn't change anything else.

So something about that FAT32, is different than a regular FAT32.

But I did also achieve the result, that at least it could not
boot from the items on the disk. It refused because the
folder contents really weren't there. On purpose, I did not
reformat the file system and put my own FAT32 on there. That would
have changed all the identifiers on there, if I had tried.

Paul

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor