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


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

/etc/default/grub doesn't exist, what to do?

Started byBorden Rhodes <borden@bordenrhodes.com>
First post2020-07-07 21:10 +0200
Last post2020-07-07 23:00 +0200
Articles 5 — 5 participants

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


Contents

  /etc/default/grub doesn't exist, what to do? Borden Rhodes <borden@bordenrhodes.com> - 2020-07-07 21:10 +0200
    Re: /etc/default/grub doesn't exist, what to do? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-07 21:20 +0200
      Re: /etc/default/grub doesn't exist, what to do? Brian <ad44@cityscape.co.uk> - 2020-07-07 21:50 +0200
    Re: /etc/default/grub doesn't exist, what to do? l0f4r0@tuta.io - 2020-07-07 22:50 +0200
    Re: /etc/default/grub doesn't exist, what to do? floris <jkfloris@dds.nl> - 2020-07-07 23:00 +0200

#224525 — /etc/default/grub doesn't exist, what to do?

FromBorden Rhodes <borden@bordenrhodes.com>
Date2020-07-07 21:10 +0200
Subject/etc/default/grub doesn't exist, what to do?
Message-ID<Aq18C-4ZT-9@gated-at.bofh.it>
I know this is an amateur question, but I want to make sure that I do
it correctly the first time. I want to add a boot parameter, so what
file do I edit/create to do so?

My computer doesn't have a /etc/default/grub file. I can't tell you
why. I didn't intentionally delete it. I have a bunch of configuration
files in /etc/grub.d , but I don't want to touch any of them because I
don't know what put them there or if/when they'll be overwritten.

Is there a way to generate a default /etc/default/grub file that I can
edit? I'd think after 30 years there would be a command to do that,
but over an hour on the Internet yielded nothing.

With thanks,

[toc] | [next] | [standalone]


#224527

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2020-07-07 21:20 +0200
Message-ID<Aq1ih-532-5@gated-at.bofh.it>
In reply to#224525
On Tue, Jul 07, 2020 at 02:43:15PM -0400, Borden Rhodes wrote:
> My computer doesn't have a /etc/default/grub file. I can't tell you
> why. I didn't intentionally delete it. I have a bunch of configuration
> files in /etc/grub.d , but I don't want to touch any of them because I
> don't know what put them there or if/when they'll be overwritten.

It would help if you said which version of Debian you're using.

On buster, that file isn't registered as a conf file in any package, so
it's produced by cryptogenic means.  Maybe the installer created it, or
maybe it was created by some package's postinst.  Who can tell?  Who
can know?  I tried reading /var/lib/dpkg/info/grub-efi-amd64.postinst
and couldn't find any code to create it if it's missing.

Your best bet is probably to grab /etc/default/grub from some other
Debian system that matches your Debian version and architecture, and
then modify it as needed.

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


#224530

FromBrian <ad44@cityscape.co.uk>
Date2020-07-07 21:50 +0200
Message-ID<Aq1Lk-5dU-15@gated-at.bofh.it>
In reply to#224527
On Tue 07 Jul 2020 at 15:14:33 -0400, Greg Wooledge wrote:

> On Tue, Jul 07, 2020 at 02:43:15PM -0400, Borden Rhodes wrote:
> > My computer doesn't have a /etc/default/grub file. I can't tell you
> > why. I didn't intentionally delete it. I have a bunch of configuration
> > files in /etc/grub.d , but I don't want to touch any of them because I
> > don't know what put them there or if/when they'll be overwritten.
> 
> It would help if you said which version of Debian you're using.

And which boot paramter.

-- 
Brian.

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


#224534

Froml0f4r0@tuta.io
Date2020-07-07 22:50 +0200
Message-ID<Aq2Hn-5Pm-9@gated-at.bofh.it>
In reply to#224525
Hi,

Please tell us the output of:
dpkg -l | grep -i grub

Best regards,
l0f4r0

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


#224535

Fromfloris <jkfloris@dds.nl>
Date2020-07-07 23:00 +0200
Message-ID<Aq2R4-5SH-9@gated-at.bofh.it>
In reply to#224525
Borden Rhodes schreef op 2020-07-07 20:43:
> I know this is an amateur question, but I want to make sure that I do
> it correctly the first time. I want to add a boot parameter, so what
> file do I edit/create to do so?
> 
> My computer doesn't have a /etc/default/grub file. I can't tell you
> why. I didn't intentionally delete it. I have a bunch of configuration
> files in /etc/grub.d , but I don't want to touch any of them because I
> don't know what put them there or if/when they'll be overwritten.
> 
> Is there a way to generate a default /etc/default/grub file that I can
> edit? I'd think after 30 years there would be a command to do that,
> but over an hour on the Internet yielded nothing.
> 
> With thanks,


The package grub2-common has the file:
/usr/share/grub/default/grub
Which is the default /etc/default/grub file

---
Floris

[toc] | [prev] | [standalone]


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


csiph-web