LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   i didn't find "grub.cfg" file on /boot/grub/ (https://www.linuxquestions.org/questions/slackware-14/i-didnt-find-grub-cfg-file-on-boot-grub-4175525545/)

Carl_cj 11-16-2014 05:36 AM

i didn't find "grub.cfg" file on /boot/grub/
 
Hello,
i am using Slackware 14.1 64 bit.i can't find my "grub.cfg" file on
Code:

/boot/grub
directory.please guide me.Thanks in advance.

Didier Spaier 11-16-2014 06:57 AM

This file is not shipped in Slackware's grub package, so it can exist only if you ran some command(s) to create it or manually created it. What did you do exactly?

Carl_cj 11-16-2014 07:13 AM

Quote:

Originally Posted by Didier Spaier (Post 5270465)
This file is not shipped in Slackware's grub package, so it can exist only if you ran some command(s) to create it or manually created it. What did you do exactly?

yes i can't find grub directory in "/boot" so i run
Code:

grub-install /dev/sda
then "grub" directory is created under "/boot" but i can't find "grub.cfg" file.i only find few directories and one file that are "fonts,1386-pc,locale,gurbenv file".

Teufel 11-16-2014 07:24 AM

Code:

grub-mkconfig -o /boot/grub/grub.cfg
will generate grub.cfg

Didier Spaier 11-16-2014 07:27 AM

I never used grub myself but I see in the documentation:
Quote:

grub-mkconfig -o /boot/grub/grub.cfg
Maybe you didn't do that?

EDIT Slow typer...

Carl_cj 11-16-2014 07:32 AM

Quote:

Originally Posted by Teufel (Post 5270471)
Code:

grub-mkconfig -o /boot/grub/grub.cfg
will generate grub.cfg

Hello Teufel,Didier Spaier

Thanks for your help the "grub.cfg" file is created.let me know why i don't have "grub" directory under "/boot"?

Didier Spaier 11-16-2014 08:18 AM

Quote:

Originally Posted by Carl_cj (Post 5270476)
Hello Teufel,Didier Spaier

Thanks for your help the "grub.cfg" file is created.let me know why i don't have "grub" directory under "/boot"?

Because you didn't create it with the mkdir command.

Carl_cj 11-16-2014 08:22 AM

Quote:

Originally Posted by Didier Spaier (Post 5270491)
Because you didn't create it with the mkdir command.

i don't know that is it necessary to create the directory every Slackware user? else the system didn't created it automatically right?

Richard Cranium 11-16-2014 08:30 AM

Quote:

Originally Posted by Carl_cj (Post 5270493)
i don't know that is it necessary to create the directory every Slackware user? else the system didn't created it automatically right?

I do not understand your questions.

Carl_cj 11-16-2014 08:35 AM

Quote:

Originally Posted by Richard Cranium (Post 5270496)
I do not understand your questions.

Hello,

As Didier Spaier said,By default Slackware didn't create the "grub" directory under "/boot".if we want that directory we create with the command
Code:

mkdir
right?

Richard Cranium 11-16-2014 08:40 AM

That is one way. The grub-install command will also create that directory for you; in fact, you wrote that it did in your second posting of this thread. That would be another way.

Slackware doesn't have /boot/grub available immediately after installation since grub is not the default bootloader for Slackware.

Didier Spaier 11-16-2014 08:42 AM

Quote:

Originally Posted by Carl_cj (Post 5270493)
i don't know that is it necessary to create the directory every Slackware user? else the system didn't created it automatically right?

Generally speaking Slackware doesn't hold its users hands so yes, the user is expected to create/populate/edit the files and directories needed to run a specific software.

In this specific case:
  • The installer creates the /boot directory and put in it what's needed to boot using LiLo, because that's its default bootloader.
  • Slackware provides GRUB, but leave to the user all tasks needed to install, configure and use it, including creation of sub directories.

Carl_cj 11-16-2014 08:52 AM

Quote:

Originally Posted by Didier Spaier (Post 5270501)
Generally speaking Slackware don't holds its users hands so yes, the user is expected to create/populate/edit the files and directories needed to run a specific software.

In this specific case:
  • The installer creates the /boot directory and put in it what's needed to boot using LiLo, because that's its default bootloader.
  • Provides GRUB, but leave to the user all tasks needed to install, configure and use it, including creation of sub directories.

Hello again,

Thanks for your explanation.if i have a two distros on one pc but different partition then i can add them using
Code:

liloconfig
command right?

Didier Spaier 11-16-2014 09:04 AM

Quote:

Originally Posted by Carl_cj (Post 5270506)
Hello again,

Thanks for your explanation.if i have a two distros on one pc but different partition then i can add them using
Code:

liloconfig
command right?

Yes, but only if you run that command from Slackware as it is a Slackware script.

You can also do that using grub as explained here.

Moreover, I suggest that you read the docs that concern the software you use, and maybe stick to one Linux distribution until you be at ease with such topics.

Carl_cj 11-16-2014 09:21 AM

Quote:

Originally Posted by Didier Spaier (Post 5270509)
Yes, but only if you run that command from Slackware as it is a Slackware script.

You can also do that using grub as explained here.

Moreover, I suggest that you read the docs that concern the software you use, and maybe stick to one Linux distribution until you be at ease with such topics.

Looking great and nice explanation thanks Didier Spaier,Richard Cranium,Teufel for gives me great suggestions.my problem was solved and i marked this thread as solved.please if you have any idea please have a look on http://www.linuxquestions.org/questi...on-4175525555/Thanks.


All times are GMT -5. The time now is 08:11 AM.