LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-16-2014, 05:36 AM   #1
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Rep: Reputation: 0
Unhappy 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.
 
Old 11-16-2014, 06:57 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
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?
 
Old 11-16-2014, 07:13 AM   #3
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
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".
 
Old 11-16-2014, 07:24 AM   #4
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Code:
grub-mkconfig -o /boot/grub/grub.cfg
will generate grub.cfg
 
Old 11-16-2014, 07:27 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
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...
 
Old 11-16-2014, 07:32 AM   #6
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Teufel View Post
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"?
 
Old 11-16-2014, 08:18 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Quote:
Originally Posted by Carl_cj View Post
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.

Last edited by Didier Spaier; 11-16-2014 at 08:19 AM.
 
Old 11-16-2014, 08:22 AM   #8
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
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?
 
Old 11-16-2014, 08:30 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Carl_cj View Post
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.
 
Old 11-16-2014, 08:35 AM   #10
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Richard Cranium View Post
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?
 
Old 11-16-2014, 08:40 AM   #11
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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.
 
Old 11-16-2014, 08:42 AM   #12
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Quote:
Originally Posted by Carl_cj View Post
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.

Last edited by Didier Spaier; 11-16-2014 at 08:51 AM. Reason: grammatical correction
 
Old 11-16-2014, 08:52 AM   #13
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
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?

Last edited by Carl_cj; 11-16-2014 at 08:57 AM.
 
Old 11-16-2014, 09:04 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Quote:
Originally Posted by Carl_cj View Post
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.
 
Old 11-16-2014, 09:21 AM   #15
Carl_cj
Member
 
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 12.10 - grub error "file /boot/grub/i386-pc/normal.mod not found" champton Ubuntu 4 02-26-2013 09:19 PM
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
[SOLVED] "/boot/grub/grub.conf: No such file or directory" Pale Linux - Newbie 3 07-04-2010 03:02 AM
[SOLVED] May I edit the file "grub.cfg" without causing harm to my system? seamuscristo Linux - Newbie 11 06-07-2010 01:13 PM
Boot now Hangs @ "GRUB" How do I find Stage 2's Address??? Supafast Linux - Hardware 1 07-06-2005 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration