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 |
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.
|
|
08-19-2006, 05:32 PM
|
#1
|
Member
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37
Rep:
|
Hostname Change - Crashed Computer!
I worry that my computer may be dead.
I did the following:
su
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:
GRUB>
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...
HELP!
|
|
|
08-19-2006, 11:43 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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 www.google.com/linux 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: http://www.cpqlinux.com/hostname.html
Last edited by bigrigdriver; 08-19-2006 at 11:44 PM.
|
|
|
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:
|
In FC5, look in /etc/sysconfig/network. I suspect you need a fully qualified name, but not sure.
|
|
|
08-20-2006, 05:38 AM
|
#4
|
LQ Newbie
Registered: Aug 2006
Posts: 6
Rep:
|
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
|
|
|
08-20-2006, 01:20 PM
|
#5
|
Member
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37
Original Poster
Rep:
|
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
hostname
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!
|
|
|
08-20-2006, 01:25 PM
|
#6
|
Member
Registered: Jun 2006
Location: Berkeley, CA
Distribution: FC5
Posts: 37
Original Poster
Rep:
|
Follow-Up
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?
|
|
|
All times are GMT -5. The time now is 04:13 PM.
|
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
|
|