Re: Installing testing on Acer Aspire 315 [finished]

2024-05-13 Thread Paul Scott



On 5/12/24 21:30, David Wright wrote:

On Sun 12 May 2024 at 21:10:16 (-0700), Paul Scott wrote:

On 5/9/2024 1:59 PM, Charles Curley wrote:

On Thu, 9 May 2024 09:32:32 -0700 Paul Scott wrote:


The error I'm getting is during "Install base system."  The only way
I knew to save the log was with a camera. Even though I resized the
image this list apparently didn't allow the attachment. How else can
I save the log during install?

Installation logs are saved during installation to the target's
/var/log/installer/. You can save them to a USB stick after
installation is complete, or reboot and find them.

Is this possible if the base installation failed?  If so, how?

Depends on how it failed. The last three entries in the main menu
are:

   Save debug logs
   Execute a shell
   Abort the installation

You can use the first one and follow its instructions. You can use
the second, and type suitable mount/cp/umount commands to achieve
the same thing.

During the installation, if you get a shell, then

   # more /var/log/syslog

will allow you to pick over the logs, rather like less does, with
the disadvantage that you can't go backwards. If you overshoot the
lines of interest, you have to run the more command again.


This weeks version of the testing net install worked completely. Sending 
this from Thunderbird on the new system.


Thank you everyone who helped,

Paul




Cheers,
David.





Re: Installing testing on Acer Aspire 315

2024-05-12 Thread David Wright
On Sun 12 May 2024 at 21:10:16 (-0700), Paul Scott wrote:
> On 5/9/2024 1:59 PM, Charles Curley wrote:
> > On Thu, 9 May 2024 09:32:32 -0700 Paul Scott wrote:
> > 
> > > The error I'm getting is during "Install base system."  The only way
> > > I knew to save the log was with a camera. Even though I resized the
> > > image this list apparently didn't allow the attachment. How else can
> > > I save the log during install?
> > Installation logs are saved during installation to the target's
> > /var/log/installer/. You can save them to a USB stick after
> > installation is complete, or reboot and find them.
> 
> Is this possible if the base installation failed?  If so, how?

Depends on how it failed. The last three entries in the main menu
are:

  Save debug logs
  Execute a shell
  Abort the installation

You can use the first one and follow its instructions. You can use
the second, and type suitable mount/cp/umount commands to achieve
the same thing.

During the installation, if you get a shell, then

  # more /var/log/syslog

will allow you to pick over the logs, rather like less does, with
the disadvantage that you can't go backwards. If you overshoot the
lines of interest, you have to run the more command again.

Cheers,
David.



Re: Installing testing on Acer Aspire 315

2024-05-12 Thread Paul Scott



On 5/9/2024 1:59 PM, Charles Curley wrote:

On Thu, 9 May 2024 09:32:32 -0700
Paul Scott  wrote:


The error I'm getting is during "Install base system."  The only way
I knew to save the log was with a camera. Even though I resized the
image this list apparently didn't allow the attachment. How else can
I save the log during install?

Installation logs are saved during installation to the target's
/var/log/installer/. You can save them to a USB stick after
installation is complete, or reboot and find them.


Is this possible if the base installation failed?  If so, how?

TIA,

Paul




Re: Installing testing on Acer Aspire 315

2024-05-09 Thread Charles Curley
On Thu, 9 May 2024 09:32:32 -0700
Paul Scott  wrote:

> The error I'm getting is during "Install base system."  The only way
> I knew to save the log was with a camera. Even though I resized the
> image this list apparently didn't allow the attachment. How else can
> I save the log during install?

Installation logs are saved during installation to the target's
/var/log/installer/. You can save them to a USB stick after
installation is complete, or reboot and find them.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Installing on Acer Aspire 315

2024-05-09 Thread Paul Scott


On 5/9/2024 9:32 AM, Paul Scott wrote:



On 5/2/2024 11:31 PM, Sirius wrote:

I would appreciate any thoughts or suggestions,

Check the PCI ids of your Ethernet controller. Download the kernel image
you are considering, check if any of its modules matches these ids. n

I may need to do that.  Thank you,

In the mean time, an install seemed to be working but gave an failure
error which said it would be in the log and visible on virtual terminal 4,


These only work for me after opening a shell from the installer menu. 
That's fine now that I understand. The error screen just doesn't say that.


The error I'm getting is during "Install base system."  The only way I 
knew to save the log was with a camera. Even though I resized the 
image this list apparently didn't allow the attachment. How else can I 
save the log during install?



I just corrected the subject line since I am also trying to install stable.

Paul



Re: Installing testing on Acer Aspire 315

2024-05-09 Thread Paul Scott


On 5/2/2024 11:31 PM, Sirius wrote:

I would appreciate any thoughts or suggestions,

Check the PCI ids of your Ethernet controller. Download the kernel image
you are considering, check if any of its modules matches these ids. n

I may need to do that.  Thank you,

In the mean time, an install seemed to be working but gave an failure
error which said it would be in the log and visible on virtual terminal 4,


These only work for me after opening a shell from the installer menu. 
That's fine now that I understand. The error screen just doesn't say that.


The error I'm getting is during "Install base system."  The only way I 
knew to save the log was with a camera. Even though I resized the image 
this list apparently didn't allow the attachment. How else can I save 
the log during install?


TIA,

Paul



Re: Installing testing on Acer Aspire 315

2024-05-04 Thread Max Nikulin

On 03/05/2024 12:16, Paul Scott wrote:
I don't have linux on the machine for which I want the information.  I 
now have the driver name from Windows/Settings.


Booting a live image may help to evaluate if hardware is supported and 
to get lspci output.


Even when windows is booted, it should be possible to find 
VendorID-ProductID pairs in device properties and search on 
https://linux-hardware.org/ and other sources.




Re: Installing testing on Acer Aspire 315

2024-05-04 Thread Max Nikulin

On 04/05/2024 13:52, Paul Scott wrote:

On 5/3/2024 11:25 PM, Max Nikulin wrote:


It may happen that F4 is not F4 unless you press and hold Fn first. It 
is default on some laptops and may be changed in firmware setup.
Inst all docs say Left Alt F4 but no combination of other keys with F4 
worked.


On my laptop F4 worked as increase screen brightness 
(XF86MonBrightnessUp) out of the box. I have not tried it with Alt. That 
is why [Fn+Alt+F4] was necessary to get the action described for [Alt+F4].


Have you tried [Alt+F1] ([Fn+Alt+F1]), F2, and other F-digit keys 
instead of F4?



Obviously vt with log is not available on the stage of grub boot menu.


I don't understand that for this install case,


Due to lack of details, I am unsure at which installation stage you 
faced issues. That is why I decided to rule out the case that you stuck 
when grub boot menu appeared.





Re: Installing testing on Acer Aspire 315

2024-05-04 Thread Paul Scott



On 5/3/2024 11:25 PM, Max Nikulin wrote:

On 03/05/2024 13:27, Paul Scott wrote:
In the mean time, an install seemed to be working but gave an failure 
error which said it would be in the log and visible on virtual 
terminal 4, I didn't know how to get to a virtual in the installer.  
Various combinations with F4 didn't seem to work.


It may happen that F4 is not F4 unless you press and hold Fn first. It 
is default on some laptops and may be changed in firmware setup.
Inst all docs say Left Alt F4 but no combination of other keys with F4 
worked. Fortunately I was given the opportunity to execute a shell which 
showed modules not on the installation media.  I will try different iso's


Obviously vt with log is not available on the stage of grub boot menu.


I don't understand that for this install case,

Thank you,

Paul




Re: Installing testing on Acer Aspire 315

2024-05-04 Thread Max Nikulin

On 03/05/2024 13:27, Paul Scott wrote:
In the mean time, an install seemed to be working but gave an failure 
error which said it would be in the log and visible on virtual terminal 
4, I didn't know how to get to a virtual in the installer.  Various 
combinations with F4 didn't seem to work.


It may happen that F4 is not F4 unless you press and hold Fn first. It 
is default on some laptops and may be changed in firmware setup.


Obviously vt with log is not available on the stage of grub boot menu.



Re: Installing testing on Acer Aspire 315

2024-05-03 Thread David
On Fri, 3 May 2024 at 06:27, Paul Scott  wrote:
> On 5/1/2024 10:44 AM, Nicolas George wrote:
> > Paul Scott (12024-05-01):

>>>I have many installs over many years (only a few per year)..

[...]

>>> I would appreciate any thoughts or suggestions,

[...]

> In the mean time, an install seemed to be working but gave an failure
> error which said it would be in the log and visible on virtual terminal
> 4, I didn't know how to get to a virtual in the installer.  Various
> combinations with F4 didn't seem to work.

> Google didn't seem to help.

Hi, there is an official Debian Installation Guide containing a lot
of useful information.

> Can someone tell me how to get to a virtual terminal in the installer?

Due to the amount of detail in the Installation Guide, it can be hard to find
specific answers, so it's advisable to read the whole thing.

Your specific question is covered in a couple of places:

https://www.debian.org/releases/bookworm/amd64/ch06s01.en.html
(section 6.1 paragraph 10)

https://www.debian.org/releases/bookworm/amd64/ch06s03.en.html#di-miscellaneous
(section 6.3.9.2)

Also, this is a bad time to try to install the 'Testing' distribution.
It is currently undergoing major transition and might well contain
many broken/incompatible packages. See:

https://wiki.debian.org/ReleaseGoals/64bit-time
https://www.mail-archive.com/debian-devel@lists.debian.org/msg380111.html
and ongoing messages in that thread and mailing list



Re: RE: Problems installing QEMU packages on Debian 12 (stable)

2024-05-03 Thread Lukas Nagy

Hi,

thanks for checking, in the end I solved this by switching mirrors from 
default http://deb.debian.org/debian to http://ftp.cz.debian.org/debian 
- after updating I got the correct version of QEMU package.


Maybe something was cached somewhere for several days, strange that I 
had to change the mirror.





Re: Installing testing on Acer Aspire 315

2024-05-03 Thread Sirius
In days of yore (Thu, 02 May 2024), Paul Scott thus quoth: 
> 
> On 5/1/2024 10:44 AM, Nicolas George wrote:
> > Paul Scott (12024-05-01):
> > > I read that I should try a more complete image which I am downloading
> > > (jigdo) now.
> > Waste of time. The drivers are either in the kernel image or in
> > individual packages, you can install them on top of what you have.
> > 
> > > I would appreciate any thoughts or suggestions,
> > Check the PCI ids of your Ethernet controller. Download the kernel image
> > you are considering, check if any of its modules matches these ids. n
> 
> I may need to do that.  Thank you,
> 
> In the mean time, an install seemed to be working but gave an failure
> error which said it would be in the log and visible on virtual terminal 4,
> I didn't know how to get to a virtual in the installer.  Various
> combinations with F4 didn't seem to work.
> 
> Google didn't seem to help. Can someone tell me how to get to a virtual
> terminal in the installer?

Control-Alt-F4 should get you to vc4. It might be enough with Alt-F4 if it
is text-mode installation, but if you are doing a GUI install (Wayland or
X running) you need the Control-Alt combo.

-- 
Kind regards,

/S



Re: Installing testing on Acer Aspire 315

2024-05-03 Thread Paul Scott



On 5/1/2024 10:44 AM, Nicolas George wrote:

Paul Scott (12024-05-01):

I read that I should try a more complete image which I am downloading
(jigdo) now.

Waste of time. The drivers are either in the kernel image or in
individual packages, you can install them on top of what you have.


I would appreciate any thoughts or suggestions,

Check the PCI ids of your Ethernet controller. Download the kernel image
you are considering, check if any of its modules matches these ids. n


I may need to do that.  Thank you,

In the mean time, an install seemed to be working but gave an failure 
error which said it would be in the log and visible on virtual terminal 
4, I didn't know how to get to a virtual in the installer.  Various 
combinations with F4 didn't seem to work.


Google didn't seem to help. Can someone tell me how to get to a virtual 
terminal in the installer?


TIA

Paul




Regards,





Re: Installing testing on Acer Aspire 315

2024-05-02 Thread Paul Scott



On 5/2/2024 8:06 PM, Max Nikulin wrote:

On 02/05/2024 12:19, Sirius wrote:

If your wifi is also the AX200 (maybe a different revision), it *should*
work.


lspci -nn

may help with more precise identification.


I don't have linux on the machine for which I want the information.  I 
now have the driver name from Windows/Settings.





It requires firmware-iwlwifi from non-free-firmware, so check that 
install image contains firmware.


I would avoid installing testing for several weeks. Maybe a huge 
change with 64 bit time_t has not settled yet.


My experience with

02:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 
[8086:2723] (rev 1a)


is far from being positive. Firmware crashes are not infrequent. Not 
all applications handle lost packets and disabling/enabling network 
adapter gracefully. It might depend on the WiFi router (and others 
around).



I'll consider that strongly,

Thank you,

Paul




Re: Installing testing on Acer Aspire 315

2024-05-02 Thread Max Nikulin

On 02/05/2024 12:19, Sirius wrote:

If your wifi is also the AX200 (maybe a different revision), it *should*
work.


lspci -nn

may help with more precise identification.

It requires firmware-iwlwifi from non-free-firmware, so check that 
install image contains firmware.


I would avoid installing testing for several weeks. Maybe a huge change 
with 64 bit time_t has not settled yet.


My experience with

02:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 
[8086:2723] (rev 1a)


is far from being positive. Firmware crashes are not infrequent. Not all 
applications handle lost packets and disabling/enabling network adapter 
gracefully. It might depend on the WiFi router (and others around).




Re: Installing testing on Acer Aspire 315

2024-05-01 Thread Sirius
In days of yore (Wed, 01 May 2024), Paul Scott thus quoth: 
> 
> On 5/1/2024 10:57 AM, Sirius wrote:
> > I have an Aspire A715-41G and the wireless is an Intel AX200. I am
> > currently using iwd and iwctl to manage it, but NetworkManager picked it
> > up off the bat and allowed it to be configured - even during installation.
> > 
> > You will want to use 'lspci' to figure out if the card is seen at all and
> > you should get a line like:
> > 
> > 04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
> > 
> > Once you know what make/model the wifi is, you can start looking for the
> > right driver if it is not auto-detected.
> 
> How did you install Debian?

I have a USB stick with Ventoy on it, and a collection of ISOs that I can
pick through depending on what I am doing. The Debian ISO is the 12.5 DVD
version.

It was surprising to me just how much the installer detected and got
right, because it asked me about wifi network and key and then off it
went.

If your wifi is also the AX200 (maybe a different revision), it *should*
work. There is a lot to be said about Intel, but their drivers do get
pushed upstream and make it into the distribution kernels. iwd is also an
Intel thing and quite nice to use when digging into it.

-- 
Kind regards,

/S



Re: Installing testing on Acer Aspire 315

2024-05-01 Thread Paul Scott



On 5/1/2024 10:57 AM, Sirius wrote:

In days of yore (Wed, 01 May 2024), Paul Scott thus quoth:

Hello,

I have many installs over many years (only a few per year)..

I tried a Testing net install pn my new Acer Aspire 315 and it didn't find
an Ethernet driver.  (wireless?).

I read that I should try a more complete image which I am downloading
(jigdo) now.

I would appreciate any thoughts or suggestions,

I have an Aspire A715-41G and the wireless is an Intel AX200. I am
currently using iwd and iwctl to manage it, but NetworkManager picked it
up off the bat and allowed it to be configured - even during installation.

You will want to use 'lspci' to figure out if the card is seen at all and
you should get a line like:

04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)

Once you know what make/model the wifi is, you can start looking for the
right driver if it is not auto-detected.


How did you install Debian?

Thank you,

Paul








Re: Installing testing on Acer Aspire 315

2024-05-01 Thread Sirius
In days of yore (Wed, 01 May 2024), Paul Scott thus quoth: 
> Hello,
> 
> I have many installs over many years (only a few per year)..
> 
> I tried a Testing net install pn my new Acer Aspire 315 and it didn't find
> an Ethernet driver.  (wireless?).
> 
> I read that I should try a more complete image which I am downloading
> (jigdo) now.
> 
> I would appreciate any thoughts or suggestions,

I have an Aspire A715-41G and the wireless is an Intel AX200. I am
currently using iwd and iwctl to manage it, but NetworkManager picked it
up off the bat and allowed it to be configured - even during installation.

You will want to use 'lspci' to figure out if the card is seen at all and
you should get a line like:

04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)

Once you know what make/model the wifi is, you can start looking for the
right driver if it is not auto-detected.

-- 
Kind regards,

/S



Re: Installing testing on Acer Aspire 315

2024-05-01 Thread Nicolas George
Paul Scott (12024-05-01):
> I read that I should try a more complete image which I am downloading
> (jigdo) now.

Waste of time. The drivers are either in the kernel image or in
individual packages, you can install them on top of what you have.

> I would appreciate any thoughts or suggestions,

Check the PCI ids of your Ethernet controller. Download the kernel image
you are considering, check if any of its modules matches these ids.

Regards,

-- 
  Nicolas George



Installing testing on Acer Aspire 315

2024-05-01 Thread Paul Scott

Hello,

I have many installs over many years (only a few per year)..

I tried a Testing net install pn my new Acer Aspire 315 and it didn't 
find an Ethernet driver.  (wireless?).


I read that I should try a more complete image which I am downloading 
(jigdo) now.


I would appreciate any thoughts or suggestions,

Paul




Problems installing QEMU packages on Debian 12 (stable)

2024-04-24 Thread Lukas Nagy

Hi,

I am trying to make KVM/QEMU work on my Debian 12. I follow 
https://wiki.debian.org/KVM but I get stuck already on installation, 
because apt-get reports non-existent packages on debian repos.


I ran

sudo apt install qemu-system libvirt-daemon-system virt-manager

It resolves packages, but when fails on 404 on qemu / xen packages

Full output is here:

sudo apt install qemu-system libvirt-daemon-system virt-manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer 
required:

  libcapi20-3 libodbc2 libosmesa6 libz-mingw-w64
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-ayatanaappindicator3-0.1 gir1.2-gtk-vnc-2.0 
gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 
gir1.2-spiceclientgtk-3.0 gir1.2-vte-2.91 gnutls-bin ibverbs-providers 
ipxe-qemu
  libcacard0 libcapstone4 libdaxctl1 libexecs0 libfdt1 libfmt9 
libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgtk-vnc-2.0-0 
libgvnc-1.0-0 libibverbs1 libiscsi7 libisoburn1 libndctl6 libnss-mymachines
  libphodav-3.0-0 libphodav-3.0-common libpmem1 librados2 librbd1 
librdmacm1 libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 
libspice-server1 libtpms0 liburing2 libusbredirhost1 libusbredirparser1
  libvdeplug2 libvirglrenderer1 libvirt-clients libvirt-daemon 
libvirt-daemon-config-network libvirt-daemon-config-nwfilter 
libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu 
libvirt-daemon-driver-vbox
  libvirt-daemon-driver-xen libvirt-daemon-system-systemd 
libvirt-glib-1.0-0 libvirt-glib-1.0-data libvirt-l10n libvirt0 
libxencall1 libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 
libxengnttab1
  libxenhypfs1 libxenmisc4.17 libxenstore4 libxentoolcore1 
libxentoollog1 libxml2-utils mdevctl netcat-openbsd ovmf python3-libvirt 
python3-libxml2 qemu-block-extra qemu-efi-aarch64 qemu-efi-arm
  qemu-system-arm qemu-system-common qemu-system-data qemu-system-gui 
qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc 
qemu-system-x86 qemu-utils seabios spice-client-glib-usb-acl-helper
  swtpm swtpm-libs swtpm-tools systemd-container virt-viewer virtinst 
xorriso

Suggested packages:
  libvirt-clients-qemu libvirt-login-shell 
libvirt-daemon-driver-storage-gluster 
libvirt-daemon-driver-storage-iscsi-direct 
libvirt-daemon-driver-storage-rbd libvirt-daemon-driver-storage-zfs 
numad auditd
  nfs-common open-iscsi pm-utils systemtap zfsutils samba vde2 trousers 
python3-guestfs ssh-askpass xorriso-tcltk jigit cdck

The following NEW packages will be installed:
  gir1.2-ayatanaappindicator3-0.1 gir1.2-gtk-vnc-2.0 
gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 
gir1.2-spiceclientgtk-3.0 gir1.2-vte-2.91 gnutls-bin ibverbs-providers 
ipxe-qemu
  libcacard0 libcapstone4 libdaxctl1 libexecs0 libfdt1 libfmt9 
libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgtk-vnc-2.0-0 
libgvnc-1.0-0 libibverbs1 libiscsi7 libisoburn1 libndctl6 libnss-mymachines
  libphodav-3.0-0 libphodav-3.0-common libpmem1 librados2 librbd1 
librdmacm1 libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 
libspice-server1 libtpms0 liburing2 libusbredirhost1 libusbredirparser1
  libvdeplug2 libvirglrenderer1 libvirt-clients libvirt-daemon 
libvirt-daemon-config-network libvirt-daemon-config-nwfilter 
libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu 
libvirt-daemon-driver-vbox
  libvirt-daemon-driver-xen libvirt-daemon-system 
libvirt-daemon-system-systemd libvirt-glib-1.0-0 libvirt-glib-1.0-data 
libvirt-l10n libvirt0 libxencall1 libxendevicemodel1 libxenevtchn1 
libxenforeignmemory1
  libxengnttab1 libxenhypfs1 libxenmisc4.17 libxenstore4 
libxentoolcore1 libxentoollog1 libxml2-utils mdevctl netcat-openbsd ovmf 
python3-libvirt python3-libxml2 qemu-block-extra qemu-efi-aarch64 
qemu-efi-arm
  qemu-system qemu-system-arm qemu-system-common qemu-system-data 
qemu-system-gui qemu-system-mips qemu-system-misc qemu-system-ppc 
qemu-system-sparc qemu-system-x86 qemu-utils seabios
  spice-client-glib-usb-acl-helper swtpm swtpm-libs swtpm-tools 
systemd-container virt-manager virt-viewer virtinst xorriso

0 upgraded, 96 newly installed, 0 to remove and 0 not upgraded.
Need to get 97,7 MB/143 MB of archives.
After this operation, 974 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.debian.org/debian bookworm/main amd64 gnutls-bin amd64 
3.7.9-2+deb12u1

  404  Not Found [IP: 2a04:4e42:41::644 80]
Err:2 http://deb.debian.org/debian bookworm/main amd64 systemd-container 
amd64 252.19-1~deb12u1

  404  Not Found [IP: 2a04:4e42:41::644 80]
Err:3 http://deb.debian.org/debian bookworm/main amd64 libnss-mymachines 
amd64 252.19-1~deb12u1

  404  Not Found [IP: 2a04:4e42:41::644 80]
Err:4 http://deb.debian.org/debian bookworm/main amd64 libxentoolcore1 
amd64 4.17.2+76-ge1f9cb16e2-1~deb12u1

  404  Not Found [IP: 2a04:4e42:41::644 

Re: After installing no access to the installed system.

2024-03-18 Thread tomas
On Mon, Mar 18, 2024 at 02:35:59PM -0500, David Wright wrote:
> On Mon 18 Mar 2024 at 17:31:24 (+0100), Marco Moock wrote:
> > Am 18.03.2024 um 16:17:55 Uhr schrieb Thomas Schweikle:
> > 
> > > EFI. While not installing grub, no boot entry is created too.
> > 
> > This is to be expected.
> > 
> > > It seems the installer fails silently at some point, after having
> > > installed all packages. Maybe it fails installing grub?

See below.

> > This doesn't explain the users not being set up.
> 
> My installer logs show Grub being installed before the
> users are set up.

This would go first, yes.

> > Can you go to the other virtual consoles to investigate the situation?
> > Maybe there is an error message.
> 
> There should be /var/log/installer/syslog on the newly installed
> filesystem.

My hunch currently is that nothing at all gets really written to
the disk, either failing silently or the OP not seeing the failures.

I wouldn't bet my farm on it (first of all because I have no
farm), but this would be the first I'd check. For example, by
looking around after the installer thinks it's done and *before*
the final reboot. What is mounted? Which devices are there?
Which partitions? What's in there?

Alternatively, boot the install/live medium in rescue mode and
try to find/mount the partitions where the fresh installation
is supposed to have landed.

If everything is there, my hunch was wrong and the primary suspect
seems to become Grub. Some BIOSes are rumoured to play games here.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: After installing no access to the installed system.

2024-03-18 Thread Jeffrey Walton
On Mon, Mar 18, 2024 at 4:32 PM Thomas Schweikle  wrote:
>
> Am Mo., 18.März.2024 um 16:44:32 schrieb Greg Wooledge:
> > On Mon, Mar 18, 2024 at 03:24:14PM +0100, Thomas Schweikle wrote:
> >> Package: Debian installer
> >> Version: As on Debian live-CD/DVD for Debian 12.5
> >> Severity: critical
> >
> > Note that you sent this email to the debian-user list, not to the bug
> > tracking system.
>
> I know. The bog tracking system wants me to use reportbug, but since I
> do not have access to the installed system i cant use reportbug to
> report a bug.

You could email the report to sub...@bugs.debian.org. No need for
reportbug. See "How to report a bug in Debian using email,"
.

Jeff



Re: After installing no access to the installed system.

2024-03-18 Thread David Wright
On Mon 18 Mar 2024 at 17:31:24 (+0100), Marco Moock wrote:
> Am 18.03.2024 um 16:17:55 Uhr schrieb Thomas Schweikle:
> 
> > EFI. While not installing grub, no boot entry is created too.
> 
> This is to be expected.
> 
> > It seems the installer fails silently at some point, after having
> > installed all packages. Maybe it fails installing grub?
> 
> This doesn't explain the users not being set up.

My installer logs show Grub being installed before the
users are set up.

> Can you go to the other virtual consoles to investigate the situation?
> Maybe there is an error message.

There should be /var/log/installer/syslog on the newly installed
filesystem.

Cheers,
David.



Re: After installing no access to the installed system.

2024-03-18 Thread tomas
On Mon, Mar 18, 2024 at 07:00:57PM +, Andy Smith wrote:
> Hi,
> 
> On Mon, Mar 18, 2024 at 05:31:24PM +0100, Marco Moock wrote:
> > Am 18.03.2024 um 16:17:55 Uhr schrieb Thomas Schweikle:
> > > It seems the installer fails silently at some point, after having
> > > installed all packages. Maybe it fails installing grub?
> > 
> > This doesn't explain the users not being set up.
> 
> Given that this is a live media, is it possible that by leaving the
> disc in, the OP is in fact booting the live environment not the one
> they installed? This might explain no users and "wrong" locale.

I think the OP even said that. But by all appearances, the installer
(silently?) fails to write the boot loader to the disk (and possibly
to write to the disk at all, not sure about that).

@Thomas: can you check whether anything was written to the disk?
You could try to list its partition table and even mount (some of)
its partitions, if any, from your live system. Anything in there?

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: After installing no access to the installed system.

2024-03-18 Thread Andy Smith
Hi,

On Mon, Mar 18, 2024 at 01:40:44PM -0500, Nicholas Geovanis wrote:
> On Mon, Mar 18, 2024 at 12:48 PM Thomas Schweikle 
> wrote:
> > 1. Download debian live-CD/DVD from:
> > https://cdimage.debian.org/debian-cd/current/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso
> > or
> > https://ftp.gwdg.de/debian-cd/12.5.0-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso

[…]

> Is it possible that the hard-drive is not working correctly?
> It seems that all of those symptoms point to an un-writable hard-drive.

I think OP is actually booting the live media they installed from
and expecting it to be their installed system.

I don't know why their bootloader ends up misconfigured.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: After installing no access to the installed system.

2024-03-18 Thread Andy Smith
Hi,

On Mon, Mar 18, 2024 at 05:31:24PM +0100, Marco Moock wrote:
> Am 18.03.2024 um 16:17:55 Uhr schrieb Thomas Schweikle:
> > It seems the installer fails silently at some point, after having
> > installed all packages. Maybe it fails installing grub?
> 
> This doesn't explain the users not being set up.

Given that this is a live media, is it possible that by leaving the
disc in, the OP is in fact booting the live environment not the one
they installed? This might explain no users and "wrong" locale.

I've never used Debian live media so I am just guessing.

I think it may have installed but something is wrong with the
bootloader setup.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: After installing no access to the installed system.

2024-03-18 Thread Nicholas Geovanis
On Mon, Mar 18, 2024 at 12:48 PM Thomas Schweikle 
wrote:

> Package: Debian installer
> Version: As on Debian live-CD/DVD for Debian 12.5
> Severity: critical
>
> 1. Download debian live-CD/DVD from:
> https://cdimage.debian.org/debian-cd/current/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso
> or
> https://ftp.gwdg.de/debian-cd/12.5.0-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso
> 2. Boot from this DVD
> 3. Doubble click on "Install to harddisk"
> 4. Select to erase a partitioned harddisk
> 5. Select "German"
> 6. For User and Passwort enter
> Full name: demo Demo
> Username: de-de
> Password 1st: start123
> Password 2nd: start123
> 7. Click install
> 8. Wait until the installer finishes and reboots into this newly installed
> system
> 9. Try to login with the credentials given above:
> User: de-de
> Password: start123
>
> The newly installed system just tells: unknown user or password, user or
> password wrong. You wont be able to login.
>

Did the password you typed include any non-ASCII characters? Same question
for non -en_US characters?
And: Are you using a German-language keyboard? Or a "standard" US-style?


> Having a closer look at the system installed:
> - The system language ist set to en_US, instead, as selected to de_DE.
> - The keyboard language and layout ist set to en_US, instead, as selected
> to de_DE.
> - The user given isn't created at all.
> - The password isn't entered into /etc/passwd or /etc/shadow.
> - Root is created, but does not have a password, while passwordless logins
> are prohibited
>

Is it possible that the hard-drive is not working correctly?
It seems that all of those symptoms point to an un-writable hard-drive.


> Conclusion: it is not possible to login to the system. Youl have to hack
> it to get access.
>
> --
> Thomas
>


Re: After installing no access to the installed system.

2024-03-18 Thread tomas
On Mon, Mar 18, 2024 at 11:44:32AM -0400, Greg Wooledge wrote:
> On Mon, Mar 18, 2024 at 03:24:14PM +0100, Thomas Schweikle wrote:
> > Package: Debian installer
> > Version: As on Debian live-CD/DVD for Debian 12.5
> > Severity: critical
> 
> Note that you sent this email to the debian-user list, not to the bug
> tracking system.
> 
> > 6. For User and Passwort enter
> > Full name: demo Demo
> > Username: de-de
> > Password 1st: start123
> > Password 2nd: start123
> > 7. Click install
> > 8. Wait until the installer finishes and reboots into this newly installed
> > system
> > 9. Try to login with the credentials given above:
> > User: de-de
> > Password: start123
> > 
> > The newly installed system just tells: unknown user or password, user or
> > password wrong. You wont be able to login.
> 
> I wonder if it's the hyphen character.  Maybe the installer transforms
> that into an underscore, or omits it entirely?  That's just a guess.

Hyphen seems to be fine, at least according to the useradd(8) man page.
It has even a paragraph referencing Debian, mentioning the restriction
that the hyphen not be at the beginning of the name. But who knows. Perhaps
something else breaks.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: After installing no access to the installed system.

2024-03-18 Thread Max Nikulin

On 18/03/2024 23:17, Thomas Schweikle wrote:

Maybe it fails installing grub?


Maybe /var/log/installer contains some logs?



Re: After installing no access to the installed system.

2024-03-18 Thread Marco Moock
Am 18.03.2024 um 16:17:55 Uhr schrieb Thomas Schweikle:

> EFI. While not installing grub, no boot entry is created too.

This is to be expected.

> It seems the installer fails silently at some point, after having
> installed all packages. Maybe it fails installing grub?

This doesn't explain the users not being set up.
Debian can be installed without GRUB (especially useful on BIOS systems
when a boot manager from another OS already exists).

Can you go to the other virtual consoles to investigate the situation?
Maybe there is an error message.

-- 
Gruß
Marco

Send unsolicited bulk mail to 1710775075mu...@cartoonies.org



Re: After installing no access to the installed system.

2024-03-18 Thread Marco Moock
Am 18.03.2024 um 16:07:15 Uhr schrieb Thomas Schweikle:

> I know. The bog tracking system wants me to use reportbug, but since
> I do not have access to the installed system i cant use reportbug to 
> report a bug.

It simply sends a pre-formatted email to sub...@bugs.debian.org. You
can do that manually.

https://www.debian.org/Bugs/Reporting

-- 
Gruß
Marco

Send unsolicited bulk mail to 1710774435mu...@cartoonies.org



Re: After installing no access to the installed system.

2024-03-18 Thread Thomas Schweikle

Am Mo., 18.März.2024 um 17:06:51 schrieb Marco Moock:

Am 18.03.2024 um 15:49:29 Uhr schrieb Thomas Schweikle:


And: after rebooting without any CD/DVD it just boots into an error:
no system found.


EFI or old BIOS system?
If EFI: Does a boot entry exist?


EFI. While not installing grub, no boot entry is created too. It seems 
the installer fails silently at some point, after having installed all 
packages. Maybe it fails installing grub?

--
Thomas



OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: After installing no access to the installed system.

2024-03-18 Thread Thomas Schweikle

Am Mo., 18.März.2024 um 16:44:32 schrieb Greg Wooledge:

On Mon, Mar 18, 2024 at 03:24:14PM +0100, Thomas Schweikle wrote:

Package: Debian installer
Version: As on Debian live-CD/DVD for Debian 12.5
Severity: critical


Note that you sent this email to the debian-user list, not to the bug
tracking system.


I know. The bog tracking system wants me to use reportbug, but since I 
do not have access to the installed system i cant use reportbug to 
report a bug.



6. For User and Passwort enter
 Full name: demo Demo
 Username: de-de
 Password 1st: start123
 Password 2nd: start123
7. Click install
8. Wait until the installer finishes and reboots into this newly installed
system
9. Try to login with the credentials given above:
 User: de-de
 Password: start123

The newly installed system just tells: unknown user or password, user or
password wrong. You wont be able to login.


I wonder if it's the hyphen character.  Maybe the installer transforms
that into an underscore, or omits it entirely?  That's just a guess.


Thought it too, but it is not. The user isn't created even if i just 
name it without any specials. I've even tried to install using en_US. 
But without success: same problem. The user account is not created.



Anyway, try logging in as "dede" or "de_de", just to see if one of those
works.  Otherwise, you'll need to boot in rescue mode (or any equivalent
of your choice), and look at the /etc/passwd and /etc/shadow files.
See what happened.


It is even more wired: if the installed system is rebooted from install 
media -- after finishing installation the system does boot, but is not 
accessible. In lack of any useable user account created.


If i then remove installation media and reboot, the system just does not 
find anything to boot into: the bootloader is not installed at all! Grub 
is missing!


The after-install-reboot is triggered without going the whole way: they 
"boot" by loading the kernel from the running install system kernel 
using kexec. This is faster and avoids rebooting into the install system 
again, but it wont work if the boot system is just about to be missing, 
because neither grub nor systemd.boot are installed.

--
Thomas



OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: After installing no access to the installed system.

2024-03-18 Thread Marco Moock
Am 18.03.2024 um 15:49:29 Uhr schrieb Thomas Schweikle:

> And: after rebooting without any CD/DVD it just boots into an error:
> no system found.

EFI or old BIOS system?
If EFI: Does a boot entry exist?

-- 
Gruß
Marco

Send spam to 1710773369mu...@cartoonies.org



Re: After installing no access to the installed system.

2024-03-18 Thread Thomas Schweikle

Am Mo., 18.März.2024 um 15:24:14 schrieb Thomas Schweikle:

Package: Debian installer
Version: As on Debian live-CD/DVD for Debian 12.5
Severity: critical

1. Download debian live-CD/DVD from: 
https://cdimage.debian.org/debian-cd/current/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso  or https://ftp.gwdg.de/debian-cd/12.5.0-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso 

2. Boot from this DVD
3. Doubble click on "Install to harddisk"
4. Select to erase a partitioned harddisk
5. Select "German"
6. For User and Passwort enter
     Full name: demo Demo
     Username: de-de
     Password 1st: start123
     Password 2nd: start123
7. Click install
8. Wait until the installer finishes and reboots into this newly 
installed system

9. Try to login with the credentials given above:
     User: de-de
     Password: start123

The newly installed system just tells: unknown user or password, user or 
password wrong. You wont be able to login.

Having a closer look at the system installed:
- The system language ist set to en_US, instead, as selected to de_DE.
- The keyboard language and layout ist set to en_US, instead, as 
selected to de_DE.

- The user given isn't created at all.
- The password isn't entered into /etc/passwd or /etc/shadow.
- Root is created, but does not have a password, while passwordless 
logins are prohibited


Conclusion: it is not possible to login to the system. Youl have to hack 
it to get access.


And: after rebooting without any CD/DVD it just boots into an error: no 
system found.

--
Thomas



OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: After installing no access to the installed system.

2024-03-18 Thread Greg Wooledge
On Mon, Mar 18, 2024 at 03:24:14PM +0100, Thomas Schweikle wrote:
> Package: Debian installer
> Version: As on Debian live-CD/DVD for Debian 12.5
> Severity: critical

Note that you sent this email to the debian-user list, not to the bug
tracking system.

> 6. For User and Passwort enter
> Full name: demo Demo
> Username: de-de
> Password 1st: start123
> Password 2nd: start123
> 7. Click install
> 8. Wait until the installer finishes and reboots into this newly installed
> system
> 9. Try to login with the credentials given above:
> User: de-de
> Password: start123
> 
> The newly installed system just tells: unknown user or password, user or
> password wrong. You wont be able to login.

I wonder if it's the hyphen character.  Maybe the installer transforms
that into an underscore, or omits it entirely?  That's just a guess.

Anyway, try logging in as "dede" or "de_de", just to see if one of those
works.  Otherwise, you'll need to boot in rescue mode (or any equivalent
of your choice), and look at the /etc/passwd and /etc/shadow files.
See what happened.



After installing no access to the installed system.

2024-03-18 Thread Thomas Schweikle
Package: Debian installer
Version: As on Debian live-CD/DVD for Debian 12.5
Severity: critical

1. Download debian live-CD/DVD from:
https://cdimage.debian.org/debian-cd/current/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso
or
https://ftp.gwdg.de/debian-cd/12.5.0-live/amd64/iso-hybrid/debian-live-12.5.0-amd64-xfce.iso
2. Boot from this DVD
3. Doubble click on "Install to harddisk"
4. Select to erase a partitioned harddisk
5. Select "German"
6. For User and Passwort enter
Full name: demo Demo
Username: de-de
Password 1st: start123
Password 2nd: start123
7. Click install
8. Wait until the installer finishes and reboots into this newly installed
system
9. Try to login with the credentials given above:
User: de-de
Password: start123

The newly installed system just tells: unknown user or password, user or
password wrong. You wont be able to login.
Having a closer look at the system installed:
- The system language ist set to en_US, instead, as selected to de_DE.
- The keyboard language and layout ist set to en_US, instead, as selected
to de_DE.
- The user given isn't created at all.
- The password isn't entered into /etc/passwd or /etc/shadow.
- Root is created, but does not have a password, while passwordless logins
are prohibited

Conclusion: it is not possible to login to the system. Youl have to hack it
to get access.

-- 
Thomas


Re: Installing Debian on an old Asus EEE PC

2024-02-07 Thread Eric S Fraga
Dear all,

Apologies but work interfered before I could get back to the EEE PC.

Thank you all for the responses.  Very helpful.

On Friday,  5 Jan 2024 at 18:35, Hans wrote:
> Also, very nice, you can create a multiboot sd card, and stuck it into
> the netbook, so you can boot from it several usefull livesystems (I am
> using XBOOT for this, but it is also working with YUMI or some others.

On Friday,  5 Jan 2024 at 18:36, Hans wrote:
> Am Freitag, 5. Januar 2024, 17:48:39 CET schrieb Eric S Fraga:
> Me again:
>
> Second answer: You can easily install debian 32-bit from an USB-stick·
> it is working just any other computer.

This is great.  Definitely the routes (USB and/or SD) forward for me.
Thank you.  Mind you, the bios indicates only removable storage is
recognised at boot time so probably the SD card but I'll try USB as
well.

On Friday,  5 Jan 2024 at 17:36, Tom Furie wrote:
> I'm currently running bookworm on an Atom based EeeBook (x205ta), it
> has 2G RAM, and 30G storage. The only hurdle I've found is getting
> internal sound to work (chtrt5645), though HDMI output is fine, I'm
> sure I simply haven't found the right combination of switches to
> flip. Having said that, I'm no expert on Linux audio.

This is much more powerful than my EEE PC, both in memory and disk (see
below).  By almost an order of magnitude probably!

On Friday,  5 Jan 2024 at 16:13, Charles Curley wrote:
>
> It might help if you gave us a bit more information.

Indeed.  Sorry.  The model is the original EEE PC, the 2G Surf.
ASUSTeK 700.
0.5 GB memory, 2 GB disk.

Anyway, I will try one of the very small Linux distributions.  My
eventual aim is to install a recent version of Emacs that might be able
to run in 512 MB (but probably not) as I want a portable orgmode system.

Thank you all again,
eric

-- 
Eric S Fraga via gnus (Emacs 30.0.50 2023-09-14) on Debian 12.2



Re: Automatically installing GRUB on multiple drives

2024-02-03 Thread Andy Smith
Hi,

On Fri, Feb 02, 2024 at 02:41:38PM +0100, Franco Martelli wrote:
> There is an alternative to hardware RAID if you want a Linux RAID: you can
> disable UEFI in the BIOS and delete the ESP as I did when I bought my gaming
> PC several years ago.

I have storage devices which legacy BIOS cannot see for booting
purposes. In past years these would require an "option ROM", Today,
they require UEFI firmware. They aren't exotic devices; just
enterprise NVMe.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-02-02 Thread hw
On Fri, 2024-02-02 at 14:41 +0100, Franco Martelli wrote:
> On 31/01/24 at 22:51, hw wrote:
> > > [...]
> > > If your suggested solution is "use hardware RAID", no need to repeat
> > > that one though: I see you said it in a few other messages, and that
> > > suggestions has been received. Assume the conversation continues
> > > amongst people who don't like that suggestion.
> 
> > Well, too late, I already said it again since you asked.  Do you have
> > a better solution?  It's ok not to like this solution, but do you have
> > a better one?
> 
> There is an alternative to hardware RAID if you want a Linux RAID: you 
> can disable UEFI in the BIOS and delete the ESP as I did when I bought 
> my gaming PC several years ago.
> 
> I created my software RAID level 5 using debian-installer and it works 
> perfectly without ESP, you have to choose "Expert install" in "Advanced 
> options". I installed Bookworm when it was released in this way.

Right, I forgot about that.  Is that always an option?



Re: Automatically installing GRUB on multiple drives

2024-02-02 Thread Franco Martelli

On 31/01/24 at 22:51, hw wrote:

[...]
If your suggested solution is "use hardware RAID", no need to repeat
that one though: I see you said it in a few other messages, and that
suggestions has been received. Assume the conversation continues
amongst people who don't like that suggestion.



Well, too late, I already said it again since you asked.  Do you have
a better solution?  It's ok not to like this solution, but do you have
a better one?


There is an alternative to hardware RAID if you want a Linux RAID: you 
can disable UEFI in the BIOS and delete the ESP as I did when I bought 
my gaming PC several years ago.


I created my software RAID level 5 using debian-installer and it works 
perfectly without ESP, you have to choose "Expert install" in "Advanced 
options". I installed Bookworm when it was released in this way.


Cheers,
--
Franco Martelli



Re: Automatically installing GRUB on multiple drives

2024-02-01 Thread hw
On Wed, 2024-01-31 at 23:28 +0100, Nicolas George wrote:
> hw (12024-01-31):
> > Well, I doubt it.
> 
> Well, doubt it all you want. In the meantime, we will continue to use
> it.
> 
> Did not read the rest, not interested in red herring nightmare
> scenarios.
> 

You'll figure it out eventually.  Meanwhile, you may be happier by
unscrubscribing from all mailing lists since you're not interested in
what people have to say.  In any case, I'm filtering all emails from
you right into trash folder now.



Re: Automatically installing GRUB on multiple drives

2024-02-01 Thread Max Nikulin

On 01/02/2024 05:45, hw wrote:

It would make sense that all the UEFI BIOSs would be fixed so that
they do not create this problem in the first place like they
shouldn't.


Besides regular boots, sometimes it is necessary to update firmware and 
.efi files loaded for this purpose may write logs or other .efi files 
(that should be applied after reboot) to ESP. Likely I have seen that 
with HP firmware.


APT likely have hooks that run after install/upgrade and may be used to 
synchronize ESP partitions mounted to different paths.




Re: Automatically installing GRUB on multiple drives

2024-01-31 Thread hw
On Wed, 2024-01-31 at 06:33 +0100, to...@tuxteam.de wrote:
> On Tue, Jan 30, 2024 at 09:47:35PM +0100, hw wrote:
> > On Mon, 2024-01-29 at 18:41 +0100, to...@tuxteam.de wrote:
> > > On Mon, Jan 29, 2024 at 05:52:38PM +0100, hw wrote:
> > > 
> > > [...]
> > > 
> > > > Ok in that case, hardware RAID is a requirement for machines with UEFI
> > > > BIOS since otherwise their reliability is insufficient.
> > > 
> > > The price you pay for hardware RAID is that you need a compatible 
> > > controller
> > > if you take your disks elsewhere (e.g. because your controller dies).
> > 
> > How often do you take the system disks from one machine to another,
> > and how often will the RAID controller fail?
> > 
> > > With (Linux) software RAID you just need another Linux...
> > 
> > How's that supposed to help?  The machine still won't boot if the disk
> > with the UEFI partition has failed.
> 
> We are talking about getting out of a catastrophic event. In such cases,
> booting is the smallest of problems: use your favourite rescue medium
> with a kernel which understands your RAID (and possibly other details
> of your storage setup, file systems, LUKS, whatever).

Try to do that with a remote machine.

> [...]
> 
> > Maybe the problem needs to be fixed in all the UEFI BIOSs.  I don't
> > think it'll happen, though.
> 
> This still makes sense if you want a hands-off recovery (think data
> centre far away). Still you won't recover from a broken motherboard.

It would make sense that all the UEFI BIOSs would be fixed so that
they do not create this problem in the first place like they
shouldn't.

You seem to forget the point that one reason for using redundant
storage, like some kind of RAID, to boot from, is that I don't want to
have booting issues, especially not with remote machines.

Unfortunately UEFI BIOSs make that difficult unless you use hardware
raid.

And I don't want to have that problem with local machines either
because it's a really nasty problem.  How do you even restore the UEFI
partition when the disk it's on has failed and you don't have a copy?




Re: Automatically installing GRUB on multiple drives

2024-01-31 Thread Nicolas George
hw (12024-01-31):
> Well, I doubt it.

Well, doubt it all you want. In the meantime, we will continue to use
it.

Did not read the rest, not interested in red herring nightmare
scenarios.

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-31 Thread hw
On Tue, 2024-01-30 at 21:35 +0100, Nicolas George wrote:
> hw (12024-01-30):
> > Yes, and how much effort and how reliable is doing that?
> 
> Very little effort and probably more reliable than hardware RAID with
> closed-source hardware.

Well, I doubt it.  After all you need to copy a whole partition and
must make sure that it doesn't fail through distribution upgrades and
all kinds of possible changes and even when someone shuts down or
reboots the computer or pulls the plug while the copying is still in
progress.  You also must make sure that the boot manager is installed
on multiple disks.

And when you're going to do it?  When shutting the machine down?
Might not happen and when it does happen, maybe you don't want to wait
on it.

When rebooting it?  Perhaps you don't want to overwrite the copy at
that time, or perhaps it's too late then because there were software
updates before you rebooted and one of the disks failed when
rebooting.

Do you suggest to install backup batteries or capacitors to keep the
machine running until the copying process has completed when the power
goes out?

Or do you want to do it all manually at a time convenient for you?
What if you forgot to do it?


I'm not so silly that you could convince me that you can do it more
reliably than the hardware RAID does it whith a bunch of scripts you
put together yourself, especially not by implying that the hardware
raid which has been tested in many datacenters with who knows how many
hundreds of thousands of machines over many years uses closed source
software which has been maintained and therefore must be unreliable.

The lowest listed MTBF of hardware RAID is over 26 hours
(i. e. about 30 years) on [1].  Can you show that you can do it more
reliably with your bunch of scripts?


[1]: 
https://www.intel.com/content/www/us/en/support/articles/07641/server-products/sasraid.html



Re: Automatically installing GRUB on multiple drives

2024-01-31 Thread hw
On Wed, 2024-01-31 at 15:16 +, Andy Smith wrote:
> Hi,
> 
> On Tue, Jan 30, 2024 at 09:50:23PM +0100, hw wrote:
> > On Mon, 2024-01-29 at 23:53 +, Andy Smith wrote:
> > > I think you should read it again until you find the part where it
> > > clearly states what the problem is with using MD RAID for this. If
> > > you still can't find that part, there is likely to be a problem I
> > > can't assist with.
> > 
> > That there may be a problem doesn't automatically mean that you need a
> > bunch of scripts.
> 
> This is getting quite tedious.
> 
> Multiple people have said that there is a concern that UEFI firmware
> might write to an ESP, which would invalidate the use of software
> RAID for the ESP.
> 
> Multiple people have suggested instead syncing ESP partitions in
> userland. If you're going to do that then you'll need a script to do
> it.
> 
> I don't understand what you find so difficult to grasp about this.

You kept only saying 'read the link'.  Well, read the link!  It points
out 4 choices and none of them says 'you need a bunch of scripts'.

> If it's that you have some other proposal for solving this, it would
> be helpful for you to say so

I already said my solution is using hardware raid or fixing the
problem in all the UEFI BIOSs.

I'd also say that the BIOS must never write to the storage, be it to
an UEFI partition or anywhere else.  But that's a different topic.

> [...]
> If your suggested solution is "use hardware RAID", no need to repeat
> that one though: I see you said it in a few other messages, and that
> suggestions has been received. Assume the conversation continues
> amongst people who don't like that suggestion.

Well, too late, I already said it again since you asked.  Do you have
a better solution?  It's ok not to like this solution, but do you have
a better one?

> Otherwise, I don't think anyone knows what you have spent several
> messages trying to say. All we got was, "you don't need scripts".

What do you expect when you keep repeating 'read the link'.



Re: Automatically installing GRUB on multiple drives

2024-01-31 Thread Andy Smith
Hi,

On Tue, Jan 30, 2024 at 09:50:23PM +0100, hw wrote:
> On Mon, 2024-01-29 at 23:53 +, Andy Smith wrote:
> > I think you should read it again until you find the part where it
> > clearly states what the problem is with using MD RAID for this. If
> > you still can't find that part, there is likely to be a problem I
> > can't assist with.
> 
> That there may be a problem doesn't automatically mean that you need a
> bunch of scripts.

This is getting quite tedious.

Multiple people have said that there is a concern that UEFI firmware
might write to an ESP, which would invalidate the use of software
RAID for the ESP.

Multiple people have suggested instead syncing ESP partitions in
userland. If you're going to do that then you'll need a script to do
it.

I don't understand what you find so difficult to grasp about this.
If it's that you have some other proposal for solving this, it would
be helpful for you to say so, instead of just repeating "why do you
need scripts, you don't need scripts", because if you just repeat
that, all I can do is repeat what I've already said until I become
bored and stop.

If your suggested solution is "use hardware RAID", no need to repeat
that one though: I see you said it in a few other messages, and that
suggestions has been received. Assume the conversation continues
amongst people who don't like that suggestion.

Otherwise, I don't think anyone knows what you have spent several
messages trying to say. All we got was, "you don't need scripts".

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-30 Thread tomas
On Tue, Jan 30, 2024 at 09:47:35PM +0100, hw wrote:
> On Mon, 2024-01-29 at 18:41 +0100, to...@tuxteam.de wrote:
> > On Mon, Jan 29, 2024 at 05:52:38PM +0100, hw wrote:
> > 
> > [...]
> > 
> > > Ok in that case, hardware RAID is a requirement for machines with UEFI
> > > BIOS since otherwise their reliability is insufficient.
> > 
> > The price you pay for hardware RAID is that you need a compatible controller
> > if you take your disks elsewhere (e.g. because your controller dies).
> 
> How often do you take the system disks from one machine to another,
> and how often will the RAID controller fail?
> 
> > With (Linux) software RAID you just need another Linux...
> 
> How's that supposed to help?  The machine still won't boot if the disk
> with the UEFI partition has failed.

We are talking about getting out of a catastrophic event. In such cases,
booting is the smallest of problems: use your favourite rescue medium
with a kernel which understands your RAID (and possibly other details
of your storage setup, file systems, LUKS, whatever).

[...]

> Maybe the problem needs to be fixed in all the UEFI BIOSs.  I don't
> think it'll happen, though.

This still makes sense if you want a hands-off recovery (think data
centre far away). Still you won't recover from a broken motherboard.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Automatically installing GRUB on multiple drives

2024-01-30 Thread hw
On Mon, 2024-01-29 at 23:53 +, Andy Smith wrote:
> Hi,
> 
> On Mon, Jan 29, 2024 at 05:28:56PM +0100, hw wrote:
> > On Sun, 2024-01-28 at 21:55 +, Andy Smith wrote:
> > > On Sun, Jan 28, 2024 at 09:09:17PM +0100, hw wrote:
> > > > On Sun, 2024-01-28 at 17:32 +, Andy Smith wrote:
> > > > > If someone DOES want a script option that solves that problem, a
> > > > > couple of actual working scripts were supplied in the link I gave to
> > > > > the earlier thread:
> > > > > 
> > > > > https://lists.debian.org/debian-user/2020/11/msg00455.html
> > > > > https://lists.debian.org/debian-user/2020/11/msg00458.html
> > > > 
> > > > Huh?  Isn't it simpler to use mdraid RAID1 to keep the UEFI partitions
> > > > in sync without extra scripts needed?
> > > 
> > > Could you read the first link above.
> > 
> > I did, and it doesn't explain why you would need a bunch of scripts.
> 
> I think you should read it again until you find the part where it
> clearly states what the problem is with using MD RAID for this. If
> you still can't find that part, there is likely to be a problem I
> can't assist with.

That there may be a problem doesn't automatically mean that you need a
bunch of scripts.



Re: Automatically installing GRUB on multiple drives

2024-01-30 Thread hw
On Mon, 2024-01-29 at 18:41 +0100, to...@tuxteam.de wrote:
> On Mon, Jan 29, 2024 at 05:52:38PM +0100, hw wrote:
> 
> [...]
> 
> > Ok in that case, hardware RAID is a requirement for machines with UEFI
> > BIOS since otherwise their reliability is insufficient.
> 
> The price you pay for hardware RAID is that you need a compatible controller
> if you take your disks elsewhere (e.g. because your controller dies).

How often do you take the system disks from one machine to another,
and how often will the RAID controller fail?

> With (Linux) software RAID you just need another Linux...

How's that supposed to help?  The machine still won't boot if the disk
with the UEFI partition has failed.  Look at Linux installers, like
the Debian installer or the Fedora installer.  Last time I used
either, none of them would automatically create or at least require
redundant UEFI partitions --- at least for instances when software
RAID is used --- to make it possible to boot when a disk has failed.
It's a very bad oversight.

Maybe the problem needs to be fixed in all the UEFI BIOSs.  I don't
think it'll happen, though.



Re: Automatically installing GRUB on multiple drives

2024-01-30 Thread Nicolas George
hw (12024-01-30):
> Yes, and how much effort and how reliable is doing that?

Very little effort and probably more reliable than hardware RAID with
closed-source hardware.

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-30 Thread hw
On Mon, 2024-01-29 at 18:00 +0100, Nicolas George wrote:
> hw (12024-01-29):
> > Ok in that case, hardware RAID is a requirement for machines with UEFI
> 
> That is not true, you can still put the RAID in a partition and keep the
> boot partitions in sync manually or with scripts.

Yes, and how much effort and how reliable is doing that?

I didn't say it can't be done.



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread Andy Smith
Hi,

On Mon, Jan 29, 2024 at 05:28:56PM +0100, hw wrote:
> On Sun, 2024-01-28 at 21:55 +, Andy Smith wrote:
> > On Sun, Jan 28, 2024 at 09:09:17PM +0100, hw wrote:
> > > On Sun, 2024-01-28 at 17:32 +, Andy Smith wrote:
> > > > If someone DOES want a script option that solves that problem, a
> > > > couple of actual working scripts were supplied in the link I gave to
> > > > the earlier thread:
> > > > 
> > > > https://lists.debian.org/debian-user/2020/11/msg00455.html
> > > > https://lists.debian.org/debian-user/2020/11/msg00458.html
> > > 
> > > Huh?  Isn't it simpler to use mdraid RAID1 to keep the UEFI partitions
> > > in sync without extra scripts needed?
> > 
> > Could you read the first link above.
> 
> I did, and it doesn't explain why you would need a bunch of scripts.

I think you should read it again until you find the part where it
clearly states what the problem is with using MD RAID for this. If
you still can't find that part, there is likely to be a problem I
can't assist with.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread tomas
On Mon, Jan 29, 2024 at 05:52:38PM +0100, hw wrote:

[...]

> Ok in that case, hardware RAID is a requirement for machines with UEFI
> BIOS since otherwise their reliability is insufficient.

The price you pay for hardware RAID is that you need a compatible controller
if you take your disks elsewhere (e.g. because your controller dies).

With (Linux) software RAID you just need another Linux...

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread Nicolas George
hw (12024-01-29):
> Ok in that case, hardware RAID is a requirement for machines with UEFI

That is not true, you can still put the RAID in a partition and keep the
boot partitions in sync manually or with scripts.

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread hw
On Mon, 2024-01-29 at 14:45 +0100, Franco Martelli wrote:
> On 28/01/24 at 17:17, hw wrote:
> > On Fri, 2024-01-26 at 16:57 +0100, Nicolas George wrote:
> > > hw (12024-01-26):
> > > > How do you make the BIOS read the EFI partition when it's on mdadm
> > > > RAID?
> > > 
> > > I have not yet tested but my working hypothesis is that the firmware
> > > will just ignore the RAID and read the EFI partition: with the scheme I
> > > described, the GPT points to the EFI partition and the EFI partition
> > > just contains the data.
> > > 
> > > Of course, it only works with RAID1, where the data on disk is the data
> > > in RAID.
> > 
> > Ok if Andy and you are right, you could reasonably boot machines with
> > an UEFI BIOS when using mdadm RAID :)
> 
> There is a sort of HOWTO [1] published in the archLinux wiki [2] but I 
> don't advise it because there are many things that could go wrong.
> 
> Cheers,
> 
> [1] https://outflux.net/blog/archives/2018/04/19/uefi-booting-and-raid1/
> [2] 
> https://wiki.archlinux.org/title/EFI_system_partition#ESP_on_software_RAID1

Ok in that case, hardware RAID is a requirement for machines with UEFI
BIOS since otherwise their reliability is insufficient.

I didn't plan on using hardware RAID for my next server, and now
things are getting way more complicated than they already are because
I can't just keep using the disks from my current one :(  Hmm ...

But I'm glad that I looked into this.



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread hw
On Sun, 2024-01-28 at 21:55 +, Andy Smith wrote:
> Hello,
> 
> On Sun, Jan 28, 2024 at 09:09:17PM +0100, hw wrote:
> > On Sun, 2024-01-28 at 17:32 +, Andy Smith wrote:
> > > If someone DOES want a script option that solves that problem, a
> > > couple of actual working scripts were supplied in the link I gave to
> > > the earlier thread:
> > > 
> > > https://lists.debian.org/debian-user/2020/11/msg00455.html
> > > https://lists.debian.org/debian-user/2020/11/msg00458.html
> > 
> > Huh?  Isn't it simpler to use mdraid RAID1 to keep the UEFI partitions
> > in sync without extra scripts needed?
> 
> Could you read the first link above.

I did, and it doesn't explain why you would need a bunch of scripts.



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread Franco Martelli

On 28/01/24 at 17:17, hw wrote:

On Fri, 2024-01-26 at 16:57 +0100, Nicolas George wrote:

hw (12024-01-26):

How do you make the BIOS read the EFI partition when it's on mdadm
RAID?


I have not yet tested but my working hypothesis is that the firmware
will just ignore the RAID and read the EFI partition: with the scheme I
described, the GPT points to the EFI partition and the EFI partition
just contains the data.

Of course, it only works with RAID1, where the data on disk is the data
in RAID.


Ok if Andy and you are right, you could reasonably boot machines with
an UEFI BIOS when using mdadm RAID :)


There is a sort of HOWTO [1] published in the archLinux wiki [2] but I 
don't advise it because there are many things that could go wrong.


Cheers,

[1] https://outflux.net/blog/archives/2018/04/19/uefi-booting-and-raid1/
[2] 
https://wiki.archlinux.org/title/EFI_system_partition#ESP_on_software_RAID1


--
Franco Martelli



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread Andy Smith
Hello,

On Sun, Jan 28, 2024 at 09:09:17PM +0100, hw wrote:
> On Sun, 2024-01-28 at 17:32 +, Andy Smith wrote:
> > If someone DOES want a script option that solves that problem, a
> > couple of actual working scripts were supplied in the link I gave to
> > the earlier thread:
> > 
> > https://lists.debian.org/debian-user/2020/11/msg00455.html
> > https://lists.debian.org/debian-user/2020/11/msg00458.html
> 
> Huh?  Isn't it simpler to use mdraid RAID1 to keep the UEFI partitions
> in sync without extra scripts needed?

Could you read the first link above.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread Andy Smith
Hello,

On Sun, Jan 28, 2024 at 09:03:50PM +0100, hw wrote:
> Show me any installer for Linux distributions that handles this
> sufficently without further ado.

That was the question I posed several posts back: what do people do
for redundant ESP.

> When you don't use btrfs, you have either hardware RAID or
> mdraid.

…or zfs or bcachefs or no redundancy at all…

> With mdadm RAID, it isn't much better than with btrfs since
> without further ado, you still don't have redundant UEFI
> partitions.

As mentioned, people do try it, and we don't yet have any reports
of catastrophe.

I'm not sure I am brave enough though.

> With btrfs and mdadm RAID, it's basically worse because you have
> to deploy another variant of software RAID in addition to the
> software built into btrfs.

I see, so this is basically a philosophical objection. You already
have software that provides redundancy (btrfs), but since UEFI
firmware can't read it and insists that ESP be vfat, it would mean
providing redundancy another way. This need to have two means of
redundancy is an affront to you.

In practical terms, having md driver just for a small ESP array is
not going to be a big deal, but just the idea of configuring this
extra form of redundancy, having that extra driver loaded etc., is
unpleasant.

> So at least for boot disks, I'll go for hardware RAID whenever
> possible, especially with btrfs, until this problem is fixed.  Or do
> you have a better option?

Right, so your answer is hardware RAID. If you're happy with that,
that's great, but I've left hardware RAID behind nearly ten years
ago and this issue isn't enough for me to welcome it back. Though it
leaves a bad taste, I still would rather go with either syncing ESPs
by script or putting ESP in MD RAID and hoping firmware never write
to it.

I just wondered if there were more options (yet).

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread hw
On Sun, 2024-01-28 at 17:32 +, Andy Smith wrote:
> Hi,
> 
> Keeping all this context because I don't actually see how the
> response matches the context and so I might have missed something…
> 
> On Sun, Jan 28, 2024 at 11:54:05AM -0500, Dan Ritter wrote:
> > hw wrote: 
> > > How is btrfs going to deal with this problem when using RAID?  Require
> > > hardware RAID?
> > > 
> > > Having to add mdadm RAID to a setup that uses btrfs just to keep efi
> > > partitions in sync would suck.
> > 
> > You can add hooks to update-initramfs or update-grub.
> > 
> > To a first approximation:
> > 
> > firstbootpart = wwn-0x5006942feedbee1-part1
> > extrabootparts = wwn-0x5004269deafbead-part1\
> >  wwn-0x5001234adefabe-part1 \
> >  wwn-0x5005432faebeeda-part1
> > 
> > for eachpart in $extrabootparts ; \
> > do cp /dev/disk/by-id/$firstbootpart /dev/disk/by-id/$eachpart; done
> 
> I realise that the above is pseudocode, but I have some issues with
> it, namely:
> 
> a) I don't see what this has to do with btrfs, the subject of the
>message you are replying to. Then again, I also did not see what
>btrfs had to do with the thing that IT was replying to, so
>possibly I am very confused.
> 
> b) My best interpretation of your message is that it solves the "how
>to keep ESPs in sync" question, but if it is intended to do that
>then you may as well have just said "just keep the ESPs in sync",
>because what you wrote is literally something like:
> 
>cp /dev/disk/by-id/wwn-0x5002538d425560a4-part1 
> /dev/disk/by-id/wwn-0x5002538d425560b5-part1
> 
>which …is rather like a "now draw the rest of the owl" sort of
>response given that it doesn't literally work and most of the job
>is in reworking that line of pseudocode into something that will
>actually work.
> 
> If someone DOES want a script option that solves that problem, a
> couple of actual working scripts were supplied in the link I gave to
> the earlier thread:
> 
> https://lists.debian.org/debian-user/2020/11/msg00455.html
> https://lists.debian.org/debian-user/2020/11/msg00458.html

Huh?  Isn't it simpler to use mdraid RAID1 to keep the UEFI partitions
in sync without extra scripts needed?

(I don't like that option, but it seems like an option when you have
no hardware RAID.)



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread hw
On Sun, 2024-01-28 at 16:46 +, Andy Smith wrote:
> Hi,
> 
> On Sun, Jan 28, 2024 at 05:17:14PM +0100, hw wrote:
> > Ok if Andy and you are right, you could reasonably boot machines with
> > an UEFI BIOS when using mdadm RAID :)
> 
> I've been doing it for more than two decades, though not with UEFI.
> 
> > How is btrfs going to deal with this problem when using RAID?  Require
> > hardware RAID?
> > 
> > Having to add mdadm RAID to a setup that uses btrfs just to keep efi
> > partitions in sync would suck.
> 
> ESP have to be vfat so why are you bringing up btrfs?
> 
> If you want to use btrfs, use btrfs. UEFI firmware isn't going to
> care as long as your ESP is not inside that.

It's easy to boot from btrfs software RAID without further ado.  These
nasty and annoying UEFI partitions get in the way of that since they
are not kept in sync with each other when you have several without
further ado.

That easily leads to situations in which you can't boot after a disk
has failed despite you have RAID.  That is something that must not
happen; it defeats the RAID.  It's bad enough when you have access to
the machine and it's a total nightmare when not because you'll have to
somehow go there to fix this.  If the disk having the UEFI partition
has failed and there's no redundance that's at least sufficently in
sync, it's even worse.

Show me any installer for Linux distributions that handles this
sufficently without further ado.

When you don't use btrfs, you have either hardware RAID or
mdraid.  With harware RAID, the problem doesn't come up.  With mdadm
RAID, it isn't much better than with btrfs since without further ado,
you still don't have redundant UEFI partitions.  With btrfs and mdadm
RAID, it's basically worse because you have to deploy another variant
of software RAID in addition to the software built into btrfs.

So at least for boot disks, I'll go for hardware RAID whenever
possible, especially with btrfs, until this problem is fixed.  Or do
you have a better option?



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread Andy Smith
Hi,

Keeping all this context because I don't actually see how the
response matches the context and so I might have missed something…

On Sun, Jan 28, 2024 at 11:54:05AM -0500, Dan Ritter wrote:
> hw wrote: 
> > How is btrfs going to deal with this problem when using RAID?  Require
> > hardware RAID?
> > 
> > Having to add mdadm RAID to a setup that uses btrfs just to keep efi
> > partitions in sync would suck.
> 
> You can add hooks to update-initramfs or update-grub.
> 
> To a first approximation:
> 
> firstbootpart = wwn-0x5006942feedbee1-part1
> extrabootparts = wwn-0x5004269deafbead-part1\
>  wwn-0x5001234adefabe-part1 \
>  wwn-0x5005432faebeeda-part1
> 
> for eachpart in $extrabootparts ; \
>   do cp /dev/disk/by-id/$firstbootpart /dev/disk/by-id/$eachpart; done

I realise that the above is pseudocode, but I have some issues with
it, namely:

a) I don't see what this has to do with btrfs, the subject of the
   message you are replying to. Then again, I also did not see what
   btrfs had to do with the thing that IT was replying to, so
   possibly I am very confused.

b) My best interpretation of your message is that it solves the "how
   to keep ESPs in sync" question, but if it is intended to do that
   then you may as well have just said "just keep the ESPs in sync",
   because what you wrote is literally something like:

   cp /dev/disk/by-id/wwn-0x5002538d425560a4-part1 
/dev/disk/by-id/wwn-0x5002538d425560b5-part1

   which …is rather like a "now draw the rest of the owl" sort of
   response given that it doesn't literally work and most of the job
   is in reworking that line of pseudocode into something that will
   actually work.

If someone DOES want a script option that solves that problem, a
couple of actual working scripts were supplied in the link I gave to
the earlier thread:

https://lists.debian.org/debian-user/2020/11/msg00455.html
https://lists.debian.org/debian-user/2020/11/msg00458.html

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread Dan Ritter
hw wrote: 
> How is btrfs going to deal with this problem when using RAID?  Require
> hardware RAID?
> 
> Having to add mdadm RAID to a setup that uses btrfs just to keep efi
> partitions in sync would suck.


You can add hooks to update-initramfs or update-grub.

To a first approximation:

firstbootpart = wwn-0x5006942feedbee1-part1
extrabootparts = wwn-0x5004269deafbead-part1\
 wwn-0x5001234adefabe-part1 \
 wwn-0x5005432faebeeda-part1

for eachpart in $extrabootparts ; \
do cp /dev/disk/by-id/$firstbootpart /dev/disk/by-id/$eachpart; done

You'll need to provide suitable values for the partitions, and
remember to fix this when you change disks for any reason.

And test it, because I have not even run it once.

-dsr-



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread Andy Smith
Hi,

On Sun, Jan 28, 2024 at 05:17:14PM +0100, hw wrote:
> Ok if Andy and you are right, you could reasonably boot machines with
> an UEFI BIOS when using mdadm RAID :)

I've been doing it for more than two decades, though not with UEFI.

> How is btrfs going to deal with this problem when using RAID?  Require
> hardware RAID?
> 
> Having to add mdadm RAID to a setup that uses btrfs just to keep efi
> partitions in sync would suck.

ESP have to be vfat so why are you bringing up btrfs?

If you want to use btrfs, use btrfs. UEFI firmware isn't going to
care as long as your ESP is not inside that.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-28 Thread hw
On Fri, 2024-01-26 at 16:57 +0100, Nicolas George wrote:
> hw (12024-01-26):
> > How do you make the BIOS read the EFI partition when it's on mdadm
> > RAID?
> 
> I have not yet tested but my working hypothesis is that the firmware
> will just ignore the RAID and read the EFI partition: with the scheme I
> described, the GPT points to the EFI partition and the EFI partition
> just contains the data.
> 
> Of course, it only works with RAID1, where the data on disk is the data
> in RAID.

Ok if Andy and you are right, you could reasonably boot machines with
an UEFI BIOS when using mdadm RAID :)

How is btrfs going to deal with this problem when using RAID?  Require
hardware RAID?

Having to add mdadm RAID to a setup that uses btrfs just to keep efi
partitions in sync would suck.



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Nicolas George
hw (12024-01-26):
> How do you make the BIOS read the EFI partition when it's on mdadm
> RAID?

I have not yet tested but my working hypothesis is that the firmware
will just ignore the RAID and read the EFI partition: with the scheme I
described, the GPT points to the EFI partition and the EFI partition
just contains the data.

Of course, it only works with RAID1, where the data on disk is the data
in RAID.

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Andy Smith
Hello,

On Fri, Jan 26, 2024 at 04:50:00PM +0100, hw wrote:
> How do you make the BIOS read the EFI partition when it's on mdadm
> RAID?

If MD superblock is at a part of device not used by filesystem (e.g.
the end) and it is a RAID-1, each member device is indistinguishable
from FAT filesystem without RAID for naive software in read-only
mode. This is also how grub boots MD RAID-1 before Grub understood
MD RAID.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread hw
On Wed, 2024-01-24 at 21:05 +0100, Nicolas George wrote:
> [...]
> GPT
>  ├─EFI
>  └─RAID
> └─LVM (of course)
> 
> Now, thanks to you, I know I can do:
> 
> GPT   
>  ┊  RAID
>  └───┤
>  ├─EFI
>  └─LVM
> 
> It is rather ugly to have the same device be both a RAID with its
> superblock in the hole between GPT and first partition and the GPT in
> the hole before the RAID superblock, but it serves its purpose: the EFI
> partition is kept in sync over all devices.
> 
> It still requires setting the non-volatile variables, though.

How do you make the BIOS read the EFI partition when it's on mdadm
RAID?

It seems you have to have an EFI partition directly, outside sofware
RAID, on each storage device, and that indeed raises the question how
you keep them up to date so you can still boot when a disk has failed.
It's a nasty problem.

I use hardware RAID to avoid this problem ...



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Andy Smith
Hello,

On Fri, Jan 26, 2024 at 08:40:42AM -0500, gene heskett wrote:
> On 1/26/24 08:19, Tim Woodall wrote:
> > Hardware raid that the bios cannot subvert is obviously one solution.
> > 
> Is nearly the only solution,

If the problem to be solved is defined as redundancy for the ESP,
there are a bunch of solutions as already discussed. All of them
come with upsides and downsides. The downsides of hardware RAID for
this, for me, are too big.

> [hardware RAID] needs to have a hard specified format that
> guarantees 100% compatibility across all makers

If that happened, mdadm could support it, and then I would continue
to use mdadm. In fact it already has happened, in that Intel came up
with a standard for its "fake RAID" data layout and mdadm does
support it already. But of course, none of the other vendors of
hardware RAID took that on.


https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/rst-linux-paper.pdf

It has also been pointed out that there is no technical reason why
EFI firmware can't support MD RAID, since MD is open source.

But on the whole, we can't wait around for any of that to happen.

> full intentions of locking the customer to only their product.

There was a time when hardware RAID was really the only game in
town, and the ability it gave to lock in the customer was just the
cost of doing business.

That time has passed, but I don't think the UEFI firmware developers
are interested in helping out.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Andy Smith
Hello,

On Fri, Jan 26, 2024 at 01:18:53PM +, Tim Woodall wrote:
> Hardware raid that the bios cannot subvert is obviously one solution.

These days the different trade-offs for HW RAID are IMHO worse. I
left it behind in 2014 and don't intend to go back. 

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread gene heskett

On 1/26/24 08:19, Tim Woodall wrote:

On Fri, 26 Jan 2024, Nicolas George wrote:



Now that I think a little more, this concern is not only unconfirmed,
it is rather absurd. The firmware would never write in parts of the
drive that might contain data.


UEFI understands the EFI system filesystem so it can "safely" write new
files there.

The danger then is that a write via mdadm corrupts the filesystem. I'm
not sure if mdadm will detect the inconsistent data or assume both
sources are the same.

Hardware raid that the bios cannot subvert is obviously one solution.

Is nearly the only solution, but it needs to have a hard specified 
format that guarantees 100% compatibility across all makers or they 
cannot use the word raid in their advertising. I am sick of proprietary 
makers doing a job that subverts the method with full intentions of 
locking the customer to only their product.  Let there be competition 
based on the quality of their product.

.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Tim Woodall

On Fri, 26 Jan 2024, Tim Woodall wrote:


On Fri, 26 Jan 2024, Nicolas George wrote:



Now that I think a little more, this concern is not only unconfirmed,
it is rather absurd. The firmware would never write in parts of the
drive that might contain data.


UEFI understands the EFI system filesystem so it can "safely" write new
files there.

The danger then is that a write via mdadm corrupts the filesystem. I'm
not sure if mdadm will detect the inconsistent data or assume both
sources are the same.

Hardware raid that the bios cannot subvert is obviously one solution.



https://stackoverflow.com/questions/32324109/can-i-write-on-my-local-filesystem-using-efi



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Tim Woodall

On Fri, 26 Jan 2024, Nicolas George wrote:



Now that I think a little more, this concern is not only unconfirmed,
it is rather absurd. The firmware would never write in parts of the
drive that might contain data.


UEFI understands the EFI system filesystem so it can "safely" write new
files there.

The danger then is that a write via mdadm corrupts the filesystem. I'm
not sure if mdadm will detect the inconsistent data or assume both
sources are the same.

Hardware raid that the bios cannot subvert is obviously one solution.



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Thomas Schmitt
Hi,

Nicolas George wrote:
> You seem to be assuming that the system will first check sector 0 to
> parse the MBR and then, if the MBR declares a GPT sector try to use the
> GPT.

That's what the UEFI specs prescribe. GPT is defined by UEFI-2.8 in
chapter 5 "GUID Partition Table (GPT) Disk Layout". Especially:

  5.2.3 Protective MBR
  For a bootable disk, a Protective MBR must be located at LBA 0 (i.e.,
  the first logical block) of the disk if it is using the GPT disk layout.
  The Protective MBR precedes the GUID Partition Table Header to maintain
  compatibility with existing tools that do not understand GPT partition
  structures.


> I think it is the other way around on modern systems: it will first
> check sector 1 for a GPT header, and only if it fails check sector 0.

Given the creativity of firmware programmers, this is not impossible.
At least the programmers of older versions of OVMF took the presence of
a GPT header as reason to boot, whereas without it did not boot.
Meanwhile this demand for GPT debris has vanished and OVMF boots from
media with only MBR partitions, too.


I wrote:
> > This layout [used by Debian installation ISOs] was invented by Matthew
> > J. Garrett for Fedora

> I think I invented independently something similar.
> https://www.normalesup.org/~george/comp/live_iso_usb/grub_hybrid.html

Not to forget Vladimir Serbinenko who specified how a grub-mkrescue ISO
shall present its lures for BIOS and EFI on optical media and USB stick.
The ISO has a pure GPT partition table, where the ISO filesystem is not
mountable as partition but only by the base device (like /dev/sdc) or
possibly by its HFS+ directory tree via the Apple Partition Map, if
present.

(To create such an ISO, install grub-common, grub-efi-amd64, grub-efi-ia32,
and grub-pc. Then run grub-mkrescue with some dummy directory as payload.
The ISO will boot to a GRUB prompt.)


Have a nice day :)

Thomas



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Andy Smith
Hello,

On Fri, Jan 26, 2024 at 10:09:53AM +0100, Nicolas George wrote:
> Andy Smith (12024-01-26):
> > The "firmware may write to it" thing was raised as a concern by a
> > few people,but always a theoretical one from what I could see.
> 
> Now that I think a little more, this concern is not only unconfirmed,
> it is rather absurd. The firmware would never write in parts of the
> drive that might contain data.

I suppose my concern with that is that a firmware developer might
feel justified in poking about in the ESP, which they might consider
is there "for them".

I have seen quite a few first hand reports of motherboard firmware
that writes empty GPT when it sees a drive with no GPT, which I had
previously considered unthinkable, so I do worry about trusting in
the firmware developers.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Thomas Schmitt
Hi,

i hate to put in question the benefit of my proposal, but:

Nicolas George wrote:
> The firmware would never write in parts of the
> drive that might contain data.

See

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056998
  "cdrom: Installation media changes after booting it"

Two occasions were shown in this bug where the EFI system partition of
a Debian installation ISO on USB stick changed. One was caused by a
Microsoft operating system, writing a file named WPSettings.dat. But the
other was from Lenovo firmware writing /efi/Lenovo/BIOS/SelfHealing.fd .

One may doubt that the success of these operations is desirable at all.
The ISO was also tested with a not-anymore-writable DVD. In that case the
Lenovo firmware did not raise protest over the fact that it was not
possible to write to the EFI partition.


Have a nice day :)

Thomas



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Nicolas George
Thomas Schmitt (12024-01-24):
> The Debian installation and live ISOs have MBR partitions with only a
> flimsy echo of GPT. There is a GPT header block and an entries array.
> But it does not get announced by a Protective MBR. Rather they have two
> partitions of which one is meant to be invisible to EFI ("Empty") and
> one is advertised as EFI partition:
> 
> $ /sbin/fdisk -l debian-12.2.0-amd64-netinst.iso
> ...
> Disklabel type: dos
> ...
> Device   Boot Start End Sectors  Size Id Type
> debian-12.2.0-amd64-netinst.iso1 *0 1286143 1286144  628M  0 Empty
> debian-12.2.0-amd64-netinst.iso2   4476   23451   18976  9.3M ef EFI 
> (FAT-12
> 
> So any system which boots this ISO from USB stick does not rely on
> the presence of a valid GPT.

You seem to be assuming that the system will first check sector 0 to
parse the MBR and then, if the MBR declares a GPT sector try to use the
GPT.

I think it is the other way around on modern systems: it will first
check sector 1 for a GPT header, and only if it fails check sector 0. Or
not check sector 0 at all if legacy mode has been removed.

> This layout was invented by Matthew J. Garrett for Fedora and is still
> the most bootable of all possible weird ways to present boot stuff for
> legacy BIOS and EFI on USB stick in the same image.

I think I invented independently something similar.

https://nsup.org/~george/comp/live_iso_usb/grub_hybrid.html

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Nicolas George
Andy Smith (12024-01-26):
> Going back to my question from 2020 about what people do to provide
> redundancy for EFI System Partition, do I take it then that you
> have had no issues with just putting ESP in MD RAID-1?

I have not had the occasion to test since two days ago when Thomas's
remarks made me realize it was possible.

> The "firmware may write to it" thing was raised as a concern by a
> few people,but always a theoretical one from what I could see.

Now that I think a little more, this concern is not only unconfirmed,
it is rather absurd. The firmware would never write in parts of the
drive that might contain data.

At worst, it is possible to cover the RAID header with a dummy
partition:

label: gpt
unit: sectors
table-length: 24
sector-size: 512
first-lba: 8
1 : start=8, size=2040, type=----
2 : start=2048, size=30712, type=lvm

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-26 Thread Andy Smith
Hi Nicolas,

On Fri, Jan 26, 2024 at 08:49:06AM +0100, Nicolas George wrote:
> Tim Woodall (12024-01-26):
> > Until your UEFI bios writes to the disk before the system has booted.
> 
> Hi. Have you ever observed an UEFI firmware doing that? Without explicit
> admin instructions?

Going back to my question from 2020 about what people do to provide
redundancy for EFI System Partition, do I take it then that you
have had no issues with just putting ESP in MD RAID-1?

The "firmware may write to it" thing was raised as a concern by a
few people,but always a theoretical one from what I could see.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-25 Thread Nicolas George
Tim Woodall (12024-01-26):
> Until your UEFI bios writes to the disk before the system has booted.

Hi. Have you ever observed an UEFI firmware doing that? Without explicit
admin instructions?

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-25 Thread Tim Woodall

On Wed, 24 Jan 2024, Nicolas George wrote:


It is rather ugly to have the same device be both a RAID with its
superblock in the hole between GPT and first partition and the GPT in
the hole before the RAID superblock, but it serves its purpose: the EFI
partition is kept in sync over all devices.


Until your UEFI bios writes to the disk before the system has booted.

I'll be interested to hear how this goes and whether it's reliable.

I tried it years ago, using a no-superblock raid and custom initrd
(initramfs as I think it was then) to start it, but upgrades, and even
kernel updates, became 'terrifying'. Now I use dd to copy the start of
the disk...



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Felix Miata
Nicolas George composed on 2024-01-24 20:50 (UTC+0100):

> Felix Miata composed:

>> Technically, quite true. However, OS and user data are very different. User 
>> data
>> recreation and/or restoration can be as painful as impossible, justifying 
>> RAID. OS
>> can be reinstalled rather easily in a nominal amount of time. A 120G SSD can 
>> hold
>> multiple OS installations quite easily. A spare 120G SSD costs less than a 
>> petrol
>> fillup. I stopped putting OS on RAID when I got my first SSD. My current 
>> primary
>> PC has 5 18G OS installations, all bootable much more quickly than finding a
>> suitable USB stick to rescue boot from.

> Looks you are confusing RAID with backups. Yes, OS can be reinstalled,
> but that still makes “a nominal amount of time” during which your
> computer is not available.

> Your “spare” SSD would be more usefully used in a RAID array than
> corroding on your shelves.

1: My spare SSD is part of my KISS configuration and backup protocols. Several
minutes or even hours of downtime don't bother me. Its (actually, their) 
existence
enables (a) second PC virtual twin where upgrades and experiments are better
evaluated. I still have doubts about how much to trust SSD technology. Their
failure rate in less than 3 years since purchase here has been seriously
disappointing. 4 RMAs across 3 brands with a relative pittance of uptime each.

2: I only use MD RAID1 with a single rotating rust pair, currently 1T each. A
disposable 120M SSD wouldn't fit.

I like the concept of spares. :)
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Thomas Schmitt
Hi,

Nicolas George wrote:
> Interesting. Indeed, “table-length: 4” causes sfdisk to only write 3
> sectors at the beginning and 2 at the end. I checked it really does not
> write elsewhere.
> That makes it possible to use full-disk RAID on a UEFI boot drive. Very
> good news.

\o/

(Nearly as good as Stefan Monnier's crystal ball. And that without
understanding the dirty details which cause the need for a small partition
table.)


> More and more firmwares will only boot with GPT. I think I met
> only once a firmware that booted UEFI, 32 bits, with a MBR

The Debian installation and live ISOs have MBR partitions with only a
flimsy echo of GPT. There is a GPT header block and an entries array.
But it does not get announced by a Protective MBR. Rather they have two
partitions of which one is meant to be invisible to EFI ("Empty") and
one is advertised as EFI partition:

$ /sbin/fdisk -l debian-12.2.0-amd64-netinst.iso
...
Disklabel type: dos
...
Device   Boot Start End Sectors  Size Id Type
debian-12.2.0-amd64-netinst.iso1 *0 1286143 1286144  628M  0 Empty
debian-12.2.0-amd64-netinst.iso2   4476   23451   18976  9.3M ef EFI (FAT-12

So any system which boots this ISO from USB stick does not rely on
the presence of a valid GPT.
(The only particular example of GPT addiction i know of are old versions
of OVMF, the EFI used by qemu, which wanted to see the GPT header block,
even without Protective MBR.)

This layout was invented by Matthew J. Garrett for Fedora and is still
the most bootable of all possible weird ways to present boot stuff for
legacy BIOS and EFI on USB stick in the same image. (There are mad legacy
BIOSes which hate EFI's demand for no MBR boot flag. Several distros
abandoned above layout in favor of plain MBR or plain GPT. The price
is that they have to leave behind some of the existing machines.)


> GPT
>  ├─EFI
>  └─RAID
> └─LVM (of course)
>
> Now, thanks to you, I know I can do:
>
> GPT
>  ┊  RAID
>  └───┤
>  ├─EFI
>  └─LVM

Ah. Now i understand how accidentially useful my technical nitpicking was.
(A consequence of me playing Dr. Pol with the arm in the ISO 9660 cow
up to my shoulder.)


Have a nice day :)

Thomas



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Andy Smith
Hi,

On Wed, Jan 24, 2024 at 11:17:34AM +0100, Nicolas George wrote:
> Since mdadm can only put its superblock at the end of the device (1.0),
> at the beginning of the device (1.1) and 4 Ko from the beginning (1.2),
> but they still have not invented 1.3 to have the metadata 17 Ko from the
> beginning or the end, which would be necessary to be compatible with
> GPT, we have to partition them and put the EFI system partition outside
> them.

Sorry, what is the issue about being compatible with GPT?

For example, here is one of the drives in a machine of mine, and it
is a drive I boot from:

$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 7501476528 sectors, 3.5 TiB
Model: INTEL SSDSC2KG03
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): D97BD886-7F31-9E46-B454-6703BC90AF09
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 2048, last usable sector is 7501476494
Partitions will be aligned on 2048-sector boundaries
Total free space is 0 sectors (0 bytes)

Number  Start (sector)End (sector)  Size   Code  Name
   12048 1075199   524.0 MiB   EF00  
   2 1075200 3172351   1024.0 MiB  FD00  
   3 3172352 7366655   2.0 GiB FD00  
   4 736665624143871   8.0 GiB FD00  
   524143872  7501476494   3.5 TiB FD00

Here, sda1 is an EFI System Partition and sda2 is a RAID-1 member
that comprises /boot when assembled. It is md2 when assembled which
has superblock format 1.2:

 sudo mdadm --detail /dev/md2
/dev/md2:
   Version : 1.2
 Creation Time : Mon Jun  7 22:21:08 2021
Raid Level : raid1
Array Size : 1046528 (1022.00 MiB 1071.64 MB)
 Used Dev Size : 1046528 (1022.00 MiB 1071.64 MB)
  Raid Devices : 2
 Total Devices : 2
   Persistence : Superblock is persistent

   Update Time : Sun Jan 21 00:00:07 2024
 State : clean 
Active Devices : 2
   Working Devices : 2
Failed Devices : 0
 Spare Devices : 0

Consistency Policy : resync

  Name : tanq:2  (local to host tanq)
  UUID : ea533a16:63523ac4:da6bf866:508f8f1d
Events : 459

Number   Major   Minor   RaidDevice State
   0 25920  active sync   /dev/nvme0n1p2
   1   821  active sync   /dev/sda2

Thus, grub is installed to sda and nvme0n1.

Have I made an error here?

> Which leads me to wonder if there is an automated way to install GRUB on
> all the EFI partitions.

I just install it on each boot drive, but you have me worried now
that there is something I am ignorant of.

There is also the issue of making the ESP redundant. I'd like to put
it in RAID but I've been convinced that it is a bad idea: firmware
will not understand md RAID and though it may be able to read it
(due to it being RAID-1, 1.2 superblock), if it writes to it then it
will desync the RAID.

There was a deeper discussion of this issue here:

https://lists.debian.org/debian-user/2020/11/msg00455.html

As you can see, more people were in favour of manually syncing ESP
contents to backup ESPs on other drives so that firmware can choose
(or be told to choose) a different ESP in event of trying to boot
with device failure.

I don't like it, but…

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Darac Marjal


On 24/01/2024 10:17, Nicolas George wrote:

Hi.

We have drives in mdadm RAID1.

Since they are potential boot drives, we have to put a GPT on them.

Since mdadm can only put its superblock at the end of the device (1.0),
at the beginning of the device (1.1) and 4 Ko from the beginning (1.2),
but they still have not invented 1.3 to have the metadata 17 Ko from the
beginning or the end, which would be necessary to be compatible with
GPT, we have to partition them and put the EFI system partition outside
them.

To keep things logical, we have the same partitions on all drives,
including the EFI one. And GRUB is perfectly capable of booting the
system (inside the LVM) inside the RAID inside the partition.

Which leads me to wonder if there is an automated way to install GRUB on
all the EFI partitions.


Possibly. Proxmox (the virtualisation environment built on top of 
Debian, so not actually Debian itself) have a tool they imaginatively 
call "proxmox-boot-tool". It's designed to keep ESPs synchronized when 
you have ZFS on several disks. ZFS (on linux, at least) always creates a 
partition table, even if you allocate a whole disk as a zvol, so at 
least that solves the problem of where to put the ESP. However, 
proxmox-boot-tool registers itself as a hook and, when you update the 
kernel, it will kick in and re-run grub-install on each device.


You might be able to persuade the good people at Proxmox to release 
their tool upstream (i.e. into Debian).





The manual way is not that bad, but automated would be nice.

Regards,



OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Nicolas George
Thomas Schmitt (12024-01-24):
> i cannot make qualified proposals for the GRUB question, but stumble over
> your technical statements.

It was by far the most interesting reply. Better somebody who really
understood the question, realized their limitations and knowingly
replies with an interesting tangential than the opposite.

> Although it would be unusually small, it is possible to have a GPT of
> only 4 KiB of size:
> - 512 bytes for Protective MBR (the magic number of GPT)
> - 512 bytes for the GPT header block
> - 3 KiB for an array of 24 partition entries.
> 
> Question is of course, whether any partition editor is willing to create
> such a small GPT. The internet says that sfdisk has "table-length" among
> its input "Header lines". So it would be a matter of learning and
> experimenting.

Interesting. Indeed, “table-length: 4” causes sfdisk to only write 3
sectors at the beginning and 2 at the end. I checked it really does not
write elsewhere.

That makes it possible to use full-disk RAID on a UEFI boot drive. Very
good news.

> > we have to partition them and put the EFI system partition outside
> > them.
> Do you mean you partition them DOS-style ?

No, GPT. More and more firmwares will only boot with GPT. I think I met
only once a firmware that booted UEFI, 32 bits, with a MBR.

GPT
 ├─EFI
 └─RAID
└─LVM (of course)

Now, thanks to you, I know I can do:

GPT   
 ┊  RAID
 └───┤
 ├─EFI
 └─LVM

It is rather ugly to have the same device be both a RAID with its
superblock in the hole between GPT and first partition and the GPT in
the hole before the RAID superblock, but it serves its purpose: the EFI
partition is kept in sync over all devices.

It still requires setting the non-volatile variables, though.

Thanks.

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Nicolas George
Franco Martelli (12024-01-24):
> If I run "grub-install" with multiple device I got
> 
> # LCALL=C grub-install /dev/sd[a-d]
> grub-install: error: More than one install device?.
> 
> maybe it is a deprecated action for grub to install to multiple device, so
> this should it be investigated?

Do you believe it used to work? To the better of my knowledge it never
did.

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Nicolas George
Felix Miata (12024-01-24):
> Technically, quite true. However, OS and user data are very different. User 
> data
> recreation and/or restoration can be as painful as impossible, justifying 
> RAID. OS
> can be reinstalled rather easily in a nominal amount of time. A 120G SSD can 
> hold
> multiple OS installations quite easily. A spare 120G SSD costs less than a 
> petrol
> fillup. I stopped putting OS on RAID when I got my first SSD. My current 
> primary
> PC has 5 18G OS installations, all bootable much more quickly than finding a
> suitable USB stick to rescue boot from.

Looks you are confusing RAID with backups. Yes, OS can be reinstalled,
but that still makes “a nominal amount of time” during which your
computer is not available.

Your “spare” SSD would be more usefully used in a RAID array than
corroding on your shelves.

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Franco Martelli

On 24/01/24 at 11:17, Nicolas George wrote:

Which leads me to wonder if there is an automated way to install GRUB on
all the EFI partitions.


If I run "grub-install" with multiple device I got

# LCALL=C grub-install /dev/sd[a-d]
grub-install: error: More than one install device?.

maybe it is a deprecated action for grub to install to multiple device, 
so this should it be investigated?


Cheers,
--
Franco Martelli



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Felix Miata
Nicolas George composed on 2024-01-24 15:39 (UTC+0100):

> Charles Curley (12024-01-24):

>> Although I found it simpler (and faster) to have all my system stuff on
>> an SSD, and the RAID on four HDDs. Grub goes on the SSD and that's that.

> If the SSD dies, your system does not boot. Somewhat wasting the benefit
> of RAID.

Technically, quite true. However, OS and user data are very different. User data
recreation and/or restoration can be as painful as impossible, justifying RAID. 
OS
can be reinstalled rather easily in a nominal amount of time. A 120G SSD can 
hold
multiple OS installations quite easily. A spare 120G SSD costs less than a 
petrol
fillup. I stopped putting OS on RAID when I got my first SSD. My current primary
PC has 5 18G OS installations, all bootable much more quickly than finding a
suitable USB stick to rescue boot from.
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Nicolas George
Charles Curley (12024-01-24):
> Perhaps a script based on:

Thanks, I know how to make scripts. My question ported specifically on
making it automatic.

> Although I found it simpler (and faster) to have all my system stuff on
> an SSD, and the RAID on four HDDs. Grub goes on the SSD and that's that.

If the SSD dies, your system does not boot. Somewhat wasting the benefit
of RAID.

Regards,

-- 
  Nicolas George



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Charles Curley
On Wed, 24 Jan 2024 11:17:34 +0100
Nicolas George  wrote:

> Which leads me to wonder if there is an automated way to install GRUB
> on all the EFI partitions.

I'm not aware of any existing solutions.

Perhaps a script based on:

for i in a b c d e ; do echo /dev/sd$i ; grub-install /dev/sd$i ; done

Or perhaps extract the relevant devices from the output of

cat /proc/mdstat


Although I found it simpler (and faster) to have all my system stuff on
an SSD, and the RAID on four HDDs. Grub goes on the SSD and that's that.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Thomas Schmitt
Hi,

i cannot make qualified proposals for the GRUB question, but stumble over
your technical statements.

Nicolas George wrote:
> Since mdadm can only put its superblock at the end of the device (1.0),
> at the beginning of the device (1.1) and 4 Ko from the beginning (1.2),
> but they still have not invented 1.3 to have the metadata 17 Ko from the
> beginning or the end, which would be necessary to be compatible with
> GPT,

Although it would be unusually small, it is possible to have a GPT of
only 4 KiB of size:
- 512 bytes for Protective MBR (the magic number of GPT)
- 512 bytes for the GPT header block
- 3 KiB for an array of 24 partition entries.

Question is of course, whether any partition editor is willing to create
such a small GPT. The internet says that sfdisk has "table-length" among
its input "Header lines". So it would be a matter of learning and
experimenting.
(Possibly i would be faster with writing the first header blocks by
hand, following UEFI specs or my cheat sheet in libisofs.)


> we have to partition them and put the EFI system partition outside
> them.

Do you mean you partition them DOS-style ?
If so, then a partition of type 0xEF could be used as system partition.
Probably any partition type will do, because EFI is very eager to look
into any partition with FAT filesystem.


Have a nice day :)

Thomas



Automatically installing GRUB on multiple drives

2024-01-24 Thread Nicolas George
Hi.

We have drives in mdadm RAID1.

Since they are potential boot drives, we have to put a GPT on them.

Since mdadm can only put its superblock at the end of the device (1.0),
at the beginning of the device (1.1) and 4 Ko from the beginning (1.2),
but they still have not invented 1.3 to have the metadata 17 Ko from the
beginning or the end, which would be necessary to be compatible with
GPT, we have to partition them and put the EFI system partition outside
them.

To keep things logical, we have the same partitions on all drives,
including the EFI one. And GRUB is perfectly capable of booting the
system (inside the LVM) inside the RAID inside the partition.

Which leads me to wonder if there is an automated way to install GRUB on
all the EFI partitions.

The manual way is not that bad, but automated would be nice.

Regards,

-- 
  Nicolas George



Re: Installing Debian on an old Asus EEE PC

2024-01-08 Thread Eric S Fraga
On Friday,  5 Jan 2024 at 19:42, Hans wrote:
> All are running 1,666 GHz (except the very ealy ones, EEEPC 901, which is 
> running 1GHz.

Mine is one of the early ones, in fact probably the first version
released.

Thank you for your other longer post: very helpful.  I will find a
suitable SD card in the mess that is my office and will try live booting
different versions.

I am not bothered about DE -- simple WM will do.  I just want to run
Emacs with org mode as a portable writing and agenda system.

Thanks again,
eric

-- 
Eric S Fraga via gnus (Emacs 30.0.50 2023-06-19) on Debian 12.0



Re: Debian on Asus X205TA [Was: Re: Installing Debian on an old Asus EEE PC]

2024-01-07 Thread Andrew M.A. Cater
On Mon, Jan 08, 2024 at 08:21:00AM +0100, Marco Moock wrote:
> Am 06.01.2024 um 17:44:41 Uhr schrieb Steve McIntyre:
> 
> > The amd64 installation media now includes the bits needed to start the
> > installer on mixed-mode UEFI systems like the Bay Trail platform in
> > the X205TA.
> 
> Is that documented anywhere?
> I haven't found any information on this.
> 
> The wiki only mentions multi-arch images.
> https://wiki.debian.org/UEFI#A32-bit_x86_PC_.28i386.29_support_for_UEFI
> 

This was in the release notes for Debian 12 at some point. I have fixed
the wiki, noting that as at 2023 there are almost no 32 bit machines
that boot UEFI and that the AMD64 media contains the appropriate software
for both 32 bit and 64 bit UEFI implementations.

All the best, as ever,

Andy
(amaca...@debian.org)



  1   2   3   4   5   6   7   8   9   10   >