LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2018, 11:55 AM   #1
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Rep: Reputation: 15
grub wait time to 0


Hello friends


i have a dual boot computer Linux with windows

stupid me ,i played with grub configurations and sat the waiting time to 0 and the default option to windows , thinking that i can still go to linux if holded some arrow ( which is obviously stupidtly wrong )

now i cant go into my main OS which was linux ... any help will be appreciated ..

i can easly boot the system from usb having some linux rescue distro and edit the grub config again , but after i edit the cong . i need to run grub-update so GRUB is updated .. and this is what am not managing to do till now ..
 
Old 01-14-2018, 12:04 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Try holding down the Shift key while the machine is booting up. This should show the Grub menu.
 
Old 01-14-2018, 12:05 PM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
You'll need to mount your Linux "root" partition and edit the following file:

(The setting in bold is the setting you need to change.)

Code:
[root@localhost /]# cat /etc/default/grub 
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto"
GRUB_DISABLE_RECOVERY="true"

Last edited by jsbjsb001; 01-14-2018 at 12:24 PM. Reason: added full path inside the CODE tags
 
Old 01-14-2018, 01:36 PM   #4
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hydrurga View Post
Try holding down the Shift key while the machine is booting up. This should show the Grub menu.
thanks ! but i read that before , and tried every possible timing to start pressing shift .. with no results ..
 
Old 01-14-2018, 01:37 PM   #5
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jsbjsb001 View Post
You'll need to mount your Linux "root" partition and edit the following file:

(The setting in bold is the setting you need to change.)

Code:
[root@localhost /]# cat /etc/default/grub 
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto"
GRUB_DISABLE_RECOVERY="true"
this i tried to do ( it was how i changed my GRUB conf in the first place ) but after editing the file i need to issue the command (grub-update) for grub changes to take effect ..
 
Old 01-14-2018, 02:01 PM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Yes, you do need to update the GRUB configuration file, after editing that file. It would help if you told us which Linux distribution your using.

Also, download the "Super GRUB disk" and boot your machine from that and then run the command, to update the GRUB configuration file.

Last edited by jsbjsb001; 01-14-2018 at 02:12 PM.
 
1 members found this post helpful.
Old 01-14-2018, 02:44 PM   #7
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jsbjsb001 View Post
Yes, you do need to update the GRUB configuration file, after editing that file. It would help if you told us which Linux distribution your using.

Also, download the "Super GRUB disk" and boot your machine from that and then run the command, to update the GRUB configuration file.

Super GRUB disk did the trick !

thanks for saving my Linux
 
Old 01-15-2018, 05:54 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,590

Rep: Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502Reputation: 2502
In a situation like this, you can use a Live CD/USB to mount the partition with the /boot/grub/grub.cfg file and change the line near the top: set timeout=10
If you then reboot, you should see the Grub menu for 10 seconds with your options. If you want this permanent, you need to edit the file /etc/default/grub as explained above and then run sudo update-grub. This way, you will not have to chroot and run update-grub. If SuperGrubDisk takes care of this, probably easier.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wait time between searches elvisnineteen77 LQ Suggestions & Feedback 4 05-27-2011 03:27 PM
Help - deleted partition: GRUB loading stage l.5, Grub loading, please wait Error 17 rokkoschik Linux - General 1 01-07-2011 05:24 AM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
How to increase Grub boot wait time on Dual OS RHEL 5 and Windows XP mbj_linux Linux - Newbie 1 04-28-2009 03:27 PM
Loading Grub 1.5 Please Wait...... Grub Failed Error 18 2words4uready Linux - Newbie 5 06-12-2008 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:17 AM.

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