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


Groups > linux.debian.user > #236419

Re: grub2 boot menu

From The Wanderer <wanderer@fastmail.fm>
Newsgroups linux.debian.user
Subject Re: grub2 boot menu
Date 2021-06-24 16:50 +0200
Message-ID <CtyQ2-4f9-3@gated-at.bofh.it> (permalink)
References <Ctydk-42p-17@gated-at.bofh.it> <Ctydk-42p-19@gated-at.bofh.it> <CtyGm-4bP-5@gated-at.bofh.it>
Organization This space intentionally left blank.

Show all headers | View raw


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

On 2021-06-24 at 10:32, Felix Miata wrote:

> mick crane composed on 2021-06-24 14:51 (UTC+0100):
> 
>> I was dual booting but got another PC so I can have windows and debain 
>> at the same time. Just for tidiness of booting I'd have liked to comment 
>> out the submenu entry in /boot/grub/grub.cfg for windows just in case I 
>> wanted to put it back but not allowed.
>> Physically removing the windows disk and "grub-mkconfig" and/or 
>> "update-grub" sorts itself out but is there any way to do this manually 
>> as used to be the case ?
> 											
> You can use any of:
> /etc/grub.d/40_custom 
> /etc/grub.d/41_custom
> /boot/grub/custom.cfg
> or 40_custom and/or 41_custom copied e.g. to
> /etc/grub.d/06_custom or /etc/grub.d/07_custom.

From looking at those files, it seems as if they can be used to *add*
entries manually, and your example matches up with doing that - but can
they be used to modify (or remove) entries which would otherwise appear,
as seems to be the desire in this instance? I'm not seeing an obvious
way how, if so.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: grub2 boot menu Felix Miata <mrmazda@earthlink.net> - 2021-06-24 16:40 +0200
  Re: grub2 boot menu The Wanderer <wanderer@fastmail.fm> - 2021-06-24 16:50 +0200

csiph-web