SliTaz SliTaz Forum

You are not logged in.

#1 2011-10-25 10:00:22

black dog
Member
Registered: 2011-04-09
Posts: 331

There is no file /etc/default/grub

Grub2 bootloader installed here in this article:

http://blog.bodhizazen.net/linux/how-to-install-slitaz-with-ext4-and-grub2/

But when he decided to change the boot parameters, found that the file /etc/default/grub not. What should I do?

Offline

#2 2011-10-25 14:16:35

babaorum
Moderator
Registered: 2011-03-29
Posts: 109

Re: There is no file /etc/default/grub

What is the error(s) produced by any of the command lines showed in the article ?

Did you generate the config file (last command) ? What is in "/etc/grub.d/" and "/boot/grub/" folder ?

Can you also do [c]update-grub[/c] (in root mode) ?

Offline

#3 2011-10-25 15:29:42

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: There is no file /etc/default/grub

Unfortunately, I understand very little English. I take a translator.

If I understood correctly, something about the error messages written in the second part. There, where it says about the manual installation of grub2. I installed using a package slitaz.

Grub.cfg file is generated automatically using scripts from the directory /etc/grub.d/ and file /etc/default/grub.

I now discovered that the command update-grub message:

sh: update-grub: not found.

Offline

#4 2011-10-25 18:05:24

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: There is no file /etc/default/grub

update-grub is debian/ubuntu wrapper script so update-grub command is the same on grub-pc as grub-legacy.

#!/bin/sh -e

exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

Slitaz as root:

#grub-mkconfig -o /boot/grub/grub.cfg

Most packagers include a custom /etc/default/grub with comments.

All the options are here to make your own:

http://www.gnu.org/software/grub/manual/grub.html#Configuration

5.1 Simple configuration handling

Offline

#5 2011-10-26 01:45:48

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: There is no file /etc/default/grub

OK!

I realized that instead of the command:

#update-grub

you should use the following command:

#grub-mkconfig

I tested it: it works!

You are also encouraged to file /etc/default/grub myself? I'll try to do. But I do not understand why the person who created the package grub2 to slitaz, did not it?

And more.

Why I do not have the directory /usr/bin/grub/? It is not needed?

Offline

#6 2011-10-28 06:53:16

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: There is no file /etc/default/grub

I've installed the loader grub2. Run the program TazPanel and in section GRUB boot loader see menu grub legacy. Why?

Offline

#7 2011-10-28 16:11:07

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: There is no file /etc/default/grub

Because grub-0.97 is the boot loader installed by slitaz-installer,tazinst,and tazusb.

You are free to convert /var/www/tazpanel/boot.cgi to grub2-1.98 for your own use.

Offline

#8 2011-10-28 16:58:24

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: There is no file /etc/default/grub

I now want to install grub2 in the beginning, during system installation. Using the package slitaz. But while I do not know how to do it.

Offline

#9 2011-10-28 19:35:58

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: There is no file /etc/default/grub

I use Herman's website,his grub and grub2 how-to's are easy to understand.

grub2: http://members.iinet.net/~herman546/p20.html

How to install grub2 :

http://members.iinet.net/~herman546/p20/GRUB2%20Bash%20Commands.html#install_update_and_repair

Offline

#10 2011-10-29 00:43:55

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: There is no file /etc/default/grub

Thank you.

I've kept this page and read a little. I've already tried to install. It did not happen. Grub2 himself established, but no directory has been copied (for example, there was no directory /usr/lib/grub). If you do a grub-mkconfig -o /boot/grub/grub.cfg got an error message. I'll have to create a separate topic, and there to explain everything.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]