Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245407 > unrolled thread

Sid : reboot looses boot partition and goes directly to bios

Started bySébastien Kalt <skalt@throka.org>
First post2022-02-15 10:40 +0100
Last post2022-02-16 21:30 +0100
Articles 4 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Sid : reboot looses boot partition and goes directly to bios Sébastien Kalt <skalt@throka.org> - 2022-02-15 10:40 +0100
    Re: Sid : reboot looses boot partition and goes directly to bios songbird <songbird@anthive.com> - 2022-02-15 15:30 +0100
    Re: Sid : reboot looses boot partition and goes directly to bios Christian Britz <cbritz@t-online.de> - 2022-02-15 15:50 +0100
    Re: Sid : reboot looses boot partition and goes directly to bios David Wright <deblis@lionunicorn.co.uk> - 2022-02-16 21:30 +0100

#245407 — Sid : reboot looses boot partition and goes directly to bios

FromSébastien Kalt <skalt@throka.org>
Date2022-02-15 10:40 +0100
SubjectSid : reboot looses boot partition and goes directly to bios
Message-ID<DR2tr-1WEA-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi,

I'm experiencing something weird on my ASUS PN50 : I have a dual boot,
windows and Sid.

CPU: 8-core AMD Ryzen 7 4700U with Radeon Graphics (-MCP-)
speed/min/max: 2514/1400/2000 MHz Kernel: 5.15.0-3-amd64 x86_64 Up: 3h 1m
Mem: 9300.6/15483.7 MiB (60.1%) Storage: 238.47 GiB (66.6% used) Procs: 386
Shell: Bash inxi: 3.3.12

Some time ago (say one month), I noticed that if I reboot my Sid (with KDE
menu or reboot from a console) the computer goes to the BIOS, loosing the
partition start order.

If I choose my Debian partition first, everything returns to normal,
booting to grub, letting me choosing between Debian and Windows.

If I stop the computer (shutdown -h now or with KDE menu) it boots
normally to grub when powered on.

I don't really know when it starts, I rarely reboot my system, last time
might be last november.

I don't really know where to look to find what might goes wrong during
reboot.

Does anyone experienced this problem ?

Any clue as where to look to find what is dysfunctionning ?

Regards,

Sébastien

[toc] | [next] | [standalone]


#245414

Fromsongbird <songbird@anthive.com>
Date2022-02-15 15:30 +0100
Message-ID<DR705-1Zpz-1@gated-at.bofh.it>
In reply to#245407
Sébastien Kalt wrote:
...
> If I stop the computer (shutdown -h now or with KDE menu) it boots
> normally to grub when powered on.
>
> I don't really know when it starts, I rarely reboot my system, last time
> might be last november.
>
> I don't really know where to look to find what might goes wrong during
> reboot.
>
> Does anyone experienced this problem ?
>
> Any clue as where to look to find what is dysfunctionning ?

  for me there is a difference between how i shut down as to
what gets saved and how the desktop will come up next time i
boot.

  so my guess is that it will be the setting you have in the
desktop someplace (i'm not familiar with KDE any longer).

  if i shutdown from the command line MATE will not save the
layout of my windows (and that is fine with me), but i also
know that if i want my layout saved then i have to use the
MATE desktop menu shutdown or reboot commands to do it and 
then it will save everything.  i also have a backup copy of
the layout in case something happens to reset things (i've 
had that happen at times) so i can restore it.


  songbird

[toc] | [prev] | [next] | [standalone]


#245416

FromChristian Britz <cbritz@t-online.de>
Date2022-02-15 15:50 +0100
Message-ID<DR7jr-1Zw4-3@gated-at.bofh.it>
In reply to#245407
Is this by any chance an UEFI system?

I think I remember from dual boot times, that Windows 10 played from
time to time with the EFI bootloaders and I experienced the same
symptoms like you. I think running grub-install inside Debian fixed it
for me.

The final solution for me was to get rid of the Windows partition and
use a VM and sometimes WINE. The only thing I am missing from the VM
(tried both qemu/kvm/libvirt and VirtualBox) is 3D and video
acceleration, but this is no big deal for me.

Regards,
Christian



On 2022-02-15 10:37 UTC+0100, Sébastien Kalt wrote:
> Hi,
> 
> I'm experiencing something weird on my ASUS PN50 : I have a dual boot,
> windows and Sid.
> 
> CPU: 8-core AMD Ryzen 7 4700U with Radeon Graphics (-MCP-)
> speed/min/max: 2514/1400/2000 MHz Kernel: 5.15.0-3-amd64 x86_64 Up: 3h 1m
> Mem: 9300.6/15483.7 MiB (60.1%) Storage: 238.47 GiB (66.6% used) Procs: 386
> Shell: Bash inxi: 3.3.12
> 
> Some time ago (say one month), I noticed that if I reboot my Sid (with
> KDE menu or reboot from a console) the computer goes to the BIOS,
> loosing the partition start order.
> 
> If I choose my Debian partition first, everything returns to normal,
> booting to grub, letting me choosing between Debian and Windows.
> 
> If I stop the computer (shutdown -h now or with KDE menu) it boots
> normally to grub when powered on.
> 
> I don't really know when it starts, I rarely reboot my system, last time
> might be last november.
> 
> I don't really know where to look to find what might goes wrong during
> reboot.
> 
> Does anyone experienced this problem ?
> 
> Any clue as where to look to find what is dysfunctionning ?
> 
> Regards,
> 
> Sébastien
> 

-- 
http://www.cb-fraggle.de

[toc] | [prev] | [next] | [standalone]


#245483

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2022-02-16 21:30 +0100
Message-ID<DRz61-2gTZ-7@gated-at.bofh.it>
In reply to#245407
On Tue 15 Feb 2022 at 10:37:52 (+0100), Sébastien Kalt wrote:
> 
> I'm experiencing something weird on my ASUS PN50 : I have a dual boot,
> windows and Sid.
> 
> CPU: 8-core AMD Ryzen 7 4700U with Radeon Graphics (-MCP-)
> speed/min/max: 2514/1400/2000 MHz Kernel: 5.15.0-3-amd64 x86_64 Up: 3h 1m
> Mem: 9300.6/15483.7 MiB (60.1%) Storage: 238.47 GiB (66.6% used) Procs: 386
> Shell: Bash inxi: 3.3.12
> 
> Some time ago (say one month), I noticed that if I reboot my Sid (with KDE
> menu or reboot from a console) the computer goes to the BIOS, loosing the
> partition start order.
> 
> If I choose my Debian partition first, everything returns to normal,
> booting to grub, letting me choosing between Debian and Windows.
> 
> If I stop the computer (shutdown -h now or with KDE menu) it boots
> normally to grub when powered on.
> 
> I don't really know when it starts, I rarely reboot my system, last time
> might be last november.
> 
> I don't really know where to look to find what might goes wrong during
> reboot.
> 
> Does anyone experienced this problem ?
> 
> Any clue as where to look to find what is dysfunctionning ?

It sounds as if you've accidentally set your system to boot with
an unsatisfactory default, but are using a one-shot scheme to
override it.

With BIOS systems, you can set up Grub to boot by default any
particular menu entry (rather than 0, the first). Your default
is written to /boot/grub/grubenv.

However, if before you close down you run grub-reboot, a
single-shot override value is written to grubenv, meaning that
when the system powers up, Grub will read grubenv and
automatically boot with the override, but will also clear
the override setting from grubenv.

EFI systems have a similar scheme that obviously runs before
Grub is given control. (The grubenv scheme can still operate
afterwards as well.)

$ efibootmgr 
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0006,0001,0002,0003,0004,0005
Boot0000* debian
Boot0001* Diskette Drive
Boot0002* ST500LX025-123456
Boot0003* USB Storage Device
Boot0004* CD/DVD/CD-RW Drive
Boot0005  Onboard NIC
Boot0006* UEFI: ST500LX025-123456
$ 

This gives the default order when, for example, you force closedown
and then boot up (ie preempting any configuration being set up).
Ctrl-Alt-Del usually does the same sort of thing. I imagine that
you have a bad default choice here, accidentally set up a while back.

When you close down in the manner you have hinted at,¹
I again imagine that something in the bowels of your KDE
is using the   efibootmgr --bootnext   facility to set up
a more pleasing choice, but /for one-time only/.

man 8 efibootmgr   has copious examples to help you.

¹ You wrote "If I choose my Debian partition first" but
  you don't say how you made that choice. We are also
  left to guess whether it's affecting what's reported in
  the previous paragraph ("if I reboot my Sid …")
  or the next one ("If I stop the computer …").

Cheers,
David.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web