LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-02-2010, 01:10 AM   #1
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Rep: Reputation: 16
Disable GRUB serial communications ?


Hello,

I have two linux boxes A and B. Each of them have serial ports (ttyS0 on both) and these ports are connected using null modem serial cable. "A" box is always on and it has getty process on its ttyS0 (I need this getty for serial communication). If I reboot box B, it doesn't boot default entry - just displays grub os select table. After some investigation I realized that getty process on A sends some data to grub on B while it's booting and grub behaves the same way as if some key is pressed during timeout period - it doesn't boot default and waits for interactive user response. I need to reboot B remotely so its no good for me. (disabling getty on A solves the problem, but I need that getty).

Is it possible to disable any grub serial communications to solve my problem ?

thanks
Vilius
 
Old 09-02-2010, 01:48 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
69 "reads" of this thread, and no answers, so here are my suggestions:

I don't know which version of grub you are using, "legacy" or grub2 AKA "1.97" (Confusing, or what?)

Anyway, try setting grub on box B not to display a menu, or wait for input.

Otherwise, disable ttyS0 on A until box B has booted, then re-enable it. (Or simply disconnect the cable while box B is booting?)

Quote:
Is it possible to disable any grub serial communications to solve my problem ?
I think grub just listens to Standard Input ( stdin ). AFAIK you cannot alter this.
 
Old 09-02-2010, 03:28 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Any splashimage comments? If so remove them and try again.
 
Old 09-03-2010, 04:38 AM   #4
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
Hi,

I'm running 0.97 legacy grub.
Quote:
Originally Posted by tredegar View Post
Anyway, try setting grub on box B not to display a menu, or wait for input.
How do I do that exactly ?

thanks
Vilius

Last edited by Vilius; 09-03-2010 at 04:40 AM.
 
Old 09-03-2010, 10:12 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
First, make sure you have a "rescue CD" or some other means of booting, in case you mess up, and grub refuses to boot at all.

As root, edit the file /boot/grub/menu.lst
Uncomment the line ## hiddenmenu so it reads just hiddenmenu

Under the time out bit, set the timeout to zero
Code:
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		0
Save the file, reboot.
 
Old 09-04-2010, 04:24 PM   #6
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
Hello,

Well it was not grubs fault. In the end I found out that it was B computer bios configured to output to serial port(remote access), after disabling that everything went ok.

V
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gtkterm or other serial communications software for puppy 4.1.2 cncman Puppy 2 02-25-2009 09:54 PM
Configuring serial communications in Linux laserwave Programming 1 09-27-2007 04:43 PM
Serial Modem Communications digitolx Red Hat 3 05-30-2007 11:29 AM
Serial Communications Library carcassonne Programming 1 12-11-2006 10:11 AM
serial communications flandercan Programming 4 02-13-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 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