Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-19-2006, 05:32 PM   #1
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37

Rep: Reputation: 15
Hostname Change - Crashed Computer!

I worry that my computer may be dead.

I did the following:
hostname turbo

I got this crazy idea that I should name all of my computers after American Gladiators, so I looked up the hostname program, read the man file on it briefly, and then simply did it.

Next thing I knew, nothing was working. My computer was dead.

I tried resetting, and now it won't even boot. Grub gives me a message regarding tab completion and then this:


Seeing no help from Grub, I've begun downloading and creating a rescue CD which I'm pretty sure is not going to be the answer.

Does anybody know the answer to this problem?

For what it's worth, I'm running Fedora Core 5 (FC5) on a computer running RAID striping on the main drive. I worry that mounting one of the drives with the rescue CD, or knoppix and changing it there might cause bigger problems down the line because of the RAID...

Apologies if you read this on FedoraForums...that site went down, hence the crosspost...

Old 08-19-2006, 11:43 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
If you can boot from installation media and do some repair work, change the hostname back to whatever it was before you changed it! That should be enough to make it bootable again.

Then do some serious research via on what all you need to do to change the hostname without trashing the system. It's more complicated than just "hostname <something>".

Start with this:

Last edited by bigrigdriver; 08-19-2006 at 11:44 PM.
Old 08-20-2006, 12:12 AM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
In FC5, look in /etc/sysconfig/network. I suspect you need a fully qualified name, but not sure.
Old 08-20-2006, 05:38 AM   #4
LQ Newbie
Registered: Aug 2006
Posts: 6

Rep: Reputation: 0
If you boot in the FC5 CD in "linux rescue" mode...
If it detects the raid, and you are able to see in the console when it is detect devices and it is able to mount it at /mnt/sysimage, then you can try using grub-install to fix the boot problem after you do chroot /mnt/sysimage ...

ie. "grub-install --recheck /dev/md0 ( if /dev/md0 is the raid set device ) If it does not see /dev/md0, you should consider seeing what's wrong with your raid set first, ie. via mdadm --examine /dev/sda1.. if you used mdadm to create the raid or lvm commands..

I've never heard or seen changing hostname crashes the system.
and /etc/sysconfig/network ( HOSTNAME=<name> ), does not need to be fully qualified
Old 08-20-2006, 01:20 PM   #5
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37

Original Poster
Rep: Reputation: 15
Yeah, this is quite strange. I managed to get the computer booted again by running configfile (hd0,0)/grub/grub.conf, and then resetting it as the default boot method, but all is not quite well yet.

The computer is now doing two strange things. The first, it is having trouble setting the hostname when booting. It takes forever and then eventually works. I've gone through checking these:

uname -n
hostname -a
hostname -s
hostname -d
hostname -f

All of those commands come up normal. I've tried checking all the networking files and all the other files I could find that might have the hostname field in them (including the ones below). All to no avail at getting the hangup at boot to go away.

The other thing that's now happening is that the computer seems to go idle and then die. If I walk away from it for an extended period of time, first it plays the screensaver, then it seems to die somehow. It's confusing. The hard drives are still spinning (I can hear them), and pressing ctrl+alt+F1, is the only thing that seems to do anything. Only get this: when I try to log in in one of those new terminals, after I put in my username, nothing happens. It seems to freeze, and the only thing I can get it to do is reset manually. No password prompt, nothing.

I'm going to try doing a CTRL+ALT+F1 right now while the computer is running to see if it works. I'll report back in a moment if it does, in a few moments if not!
Old 08-20-2006, 01:25 PM   #6
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37

Original Poster
Rep: Reputation: 15

Ok, though CTRL+ALT+F1 does not work after an extended period of time away from the computer, it DOES work when the computer is up and running.

Could this be a hibernation thing I don't understand?


grub, hostname, raid

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! computer crashed and grub wont go away frostbute669 Linux - Software 1 09-02-2005 10:46 PM
lost login screeen after computer crashed sirpelidor Linux - General 2 07-12-2005 06:01 PM
how to detect that computer is crashed? Tomnet Linux - Software 4 08-03-2004 11:03 PM
How do I change the hostname of my computer? atheist Linux - Software 4 07-18-2004 12:34 PM
HELP! Computer crashed w/ Mandrake 9.1 install devans Linux - Software 2 09-18-2003 11:51 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:35 PM.

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