LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-15-2003, 04:17 AM   #1
chamal
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Rep: Reputation: 0
Cool RH9 Headless GRUB configuration


Does anyone out there know how I can configure GRUB to allow be to boot my RH9 box *headless* (No monitor, no keyboard, no mouse no terminal)?

I intend to manage the server with VNC.

System Details:

Dual Boot: Linux RH9/W2k3 Server
CPU: AthlonXP 1600
Mem: 512MB
HD: 80GB
GCard: Elsa Gladiac GTS
Kernel: 2.4.22

Regards,
Chamal
 
Old 10-15-2003, 04:56 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
It can be done easily.

I suppose you have GRUB already installed on hard disk or floppy.
In the /boot/grub directory GRUB created (on your HD or floppy, respectively), create a file "menu.lst" with the following contents (# are comments)

# wait at boot prompt (seconds)
timeout 2
# default entry to boot
default 0
# boot M$ in case of problems
fallback 1

# entry 0
title Linux
root (xxx) #change this to the correct partition
kernel /vmlinuz #idem

# entry 1
title Windows
root (yyy) #your M$ partition
chainloader +1

#end

Note that some BIOSes wontt boot if you have no keyboard connected but most bios setups allow you to overrule this
Judging by your post I suppose you are acquainted with the partition names in GRUB; if not it's all there in the manual at www.gnu.org

Enjoy,
nukkel
 
Old 10-15-2003, 04:59 AM   #3
plasma
LQ Newbie
 
Registered: Feb 2003
Location: Underground H-Game import bunker.
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
erm... ^_^

This depends on what you mean. If you want to boot linux without a monitor, keyboard or mouse, then you don't need to do anything to grub but change the timeout for booting linux if neccessary. It's also a good idea to change your default runlevel to 3 in /etc/inittab.

If the computer refuses to boot without a keyboard/mouse, then that's usually problem with your bios. Not really too much to do about that.

Hope this helps,
plasma.
 
Old 10-24-2003, 01:07 PM   #4
chamal
LQ Newbie
 
Registered: Aug 2003
Posts: 10

Original Poster
Rep: Reputation: 0
For some inexplicable reason linux won't boot without a monitor plugged in...

If the monitor is plugged in but not switched on it will boot.

Can anyone tell me if this is a problem with Linux, Grub or the BIOS?

The story so far:
I re-installed linux to get rid of the dual boot. Details as follows:

Distro: RedHat9 (Shrike)
Kernel: 2.4.20-8
Mobo: Asus A7V333
CPU: AthlonXP 1600
Mem: 512MB
HD:80GB
No keyboard
No mouse
Bios set not to halt on any errors

Any ideas?
 
Old 10-24-2003, 04:38 PM   #5
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Weird, I never had that...

I'm pretty confident that it's your video card firmware that is so retarded that it blocks somewhere in its init routine when it finds no monitor attached. You see, the bios normally never scans to see if a monitor is attached; some graphics cards do. And the linux kernel doesn't really care much either.

BTW, once I went even further: when verified that my system booted with the monitor&keyboard, I powered down, unplugged both and also removed the video card itself. Linux nor Grub complained!

So my suggestion is remove the video card, I have a feeling it will solve your problem.

If you still want a vga connection for troubleshooting the system, without having to open it again, you can just put in an old ega/vga card (PCI or even ISA), if you have one lying around. They're much simpler, and usually don't even do checks to see if there is a monitor attached.
 
  


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
Problem booting in a headless configuration kernel_mod Fedora 1 07-24-2004 10:13 AM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM
rh9 Gnome configuration jgerber Linux - General 0 11-25-2003 01:06 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
Trying to dual-boot XP and RH9 with GRUB...GRUB stops right after BIOS EvilYoda Linux - Newbie 5 06-20-2003 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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