Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-16-2014, 05:36 AM
|
#1
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Rep:
|
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
directory.please guide me.Thanks in advance.
|
|
|
11-16-2014, 06:57 AM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,416
Rep: 
|
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?
|
|
|
11-16-2014, 07:13 AM
|
#3
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
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".
|
|
|
11-16-2014, 07:24 AM
|
#4
|
Member
Registered: Apr 2012
Distribution: Gentoo
Posts: 616
Rep: 
|
Code:
grub-mkconfig -o /boot/grub/grub.cfg
will generate grub.cfg
|
|
|
11-16-2014, 07:27 AM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,416
Rep: 
|
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...
|
|
|
11-16-2014, 07:32 AM
|
#6
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Teufel
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"?
|
|
|
11-16-2014, 08:18 AM
|
#7
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,416
Rep: 
|
Quote:
Originally Posted by Carl_cj
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.
|
|
|
11-16-2014, 08:22 AM
|
#8
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
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?
|
|
|
11-16-2014, 08:30 AM
|
#9
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Quote:
Originally Posted by Carl_cj
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.
|
|
|
11-16-2014, 08:35 AM
|
#10
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Richard Cranium
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 right?
|
|
|
11-16-2014, 08:40 AM
|
#11
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
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.
|
|
|
11-16-2014, 08:42 AM
|
#12
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,416
Rep: 
|
Quote:
Originally Posted by Carl_cj
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
|
|
|
11-16-2014, 08:52 AM
|
#13
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
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 command right?
Last edited by Carl_cj; 11-16-2014 at 08:57 AM.
|
|
|
11-16-2014, 09:04 AM
|
#14
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,416
Rep: 
|
Quote:
Originally Posted by Carl_cj
Hello again,
Thanks for your explanation.if i have a two distros on one pc but different partition then i can add them using 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.
|
|
|
11-16-2014, 09:21 AM
|
#15
|
Member
Registered: Sep 2014
Distribution: Slackware,Linux From Scratch
Posts: 254
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
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 05:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|