LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-21-2007, 06:55 AM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Angry Shut Down Problem


I have fedora core 6 installed in my computer. My computer cannot shut down properly whereas all the process can be kill but the kernel cannot properly commmunicate with my hardwre. The power is switch off.

Thanks for your help.

Your help is greatly appreciated by me and others.
 
Old 03-21-2007, 07:11 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Check the root partition top directory location and rename HALT to POWEROFF, you will need to boot from 'rescue media' for this.

I have used this rescue media for this change with success: http://www.sysresccd.org/Main_Page

Last edited by Lenard; 03-21-2007 at 07:12 AM.
 
Old 03-21-2007, 09:57 PM   #3
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Which directory i need to ceck ? I don't understand. Please forgive my stupidness.
 
Old 03-22-2007, 07:47 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
The top of the root partition (/) has a small number of hidden files*. One of them is a zero length file by the name of halt (bad) or poweroff(good). You will not see this file with the root partition mounted. This is why you need something like the SystemRescueCD (link provided earlier) in order to rename or replace with maybe mc (midnight commander).

This can be done by hand, again you need to boot from some sort of rescue media, and mount the root partition so you can replace the file with the zero length poweroff file name.

rm /mnt/point/of/root/partition/halt
touch /mnt/point/of/root/partition/poweroff



* the hidden files (from my backup external hard drive) are for example;
-rw-r--r-- 1 root root 0 Feb 7 15:08 .autorelabel
-rw-r--r-- 1 root root 0 Feb 7 15:10 poweroff
 
Old 03-23-2007, 02:59 AM   #5
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I will have a try. thanks.
 
Old 03-23-2007, 04:22 AM   #6
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I cannot find the file you are specified. Is it have mount first ? Sorry for my stupidness.

The /mnt/ is there but the subdirectory doesn't contain any hidden files (.).
 
Old 03-23-2007, 06:14 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes you need to mount the root partition, please follow the directions provided onscreen by the SystemRescueCD;

For example
fdisk -l
mkdir /mnt/fc6
mount -t auto /dev/hdc2 /mnt/fc6

The fdisk command is to get a list of the partitions for all hard drives. The mkdir command is to create a mountpoint (then name does not matter much). The mount command is to mount the root partition (/dev/hdc2 in the example) to the mountpoint (/mnt/fc6 in the example). Adjust the partition to mount to match your actual system.

If you do not understand this then please do not attempt until you do.
 
Old 03-23-2007, 08:50 AM   #8
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I think i get the idea. By the way, why need to mount it to certain directory. Is it have to let the cd access the /root directory ? Sorry for my stupidness.

Thanks for your help.

Your help is greatly appreciated by me and others.
 
Old 03-23-2007, 09:41 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, the SystemRescueCD has no way of choosing which hard drive and partitions you want mounted. It cannot read your mind
 
Old 03-24-2007, 04:47 AM   #10
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Thanks for your valuable information. You are a great guys i have seen before. I have solved the problem. This is pretty easy.

Thanks for your help.

Hope GOD/JESUS will blessed you.
 
Old 03-24-2007, 06:18 AM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yor are welcome, glad to help.

Yes, it is pretty easy, but one needs to know about the 'bad' zero length file name and location.
 
Old 03-24-2007, 11:48 PM   #12
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
You are right. I have some information would like to share with you. I have installed the graphics cards driver with command yum install kmod-nvidia. After i entered this command, the yum will solved the dependecies for me, the yum choose the kernel 2.6.20 and driver is also match with the driver.

After i have installed the driver, my computer cannot shut down again. Therefore, i try to remove the /mnt/fc6/poweroff and the replace it with /mnt/fc6/halt.

Now, i can shut down my computer properly.

In contrast, kernel 2.6.18 -> /mnt/fc6/poweroff -> perfectly

kernel 2.6.20 -> /mntfc6/halt ->perfectly.

In conclusion, i hope this information may help someone.

Thanks everyone.

I alos glad to help someone.

AFter helping someoen, i feel happy.

Bye bye.
 
  


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
shut down problem vineet7kumar Linux - General 3 01-16-2006 06:30 AM
Shut down problem fireball003 Linux - General 5 05-18-2005 06:25 AM
Shut-down problem payasam Mandriva 4 12-02-2004 01:51 PM
shut down problem dimsun Linux - Newbie 3 11-03-2004 12:15 AM
shut-down problem ronss Linux - Hardware 6 04-16-2003 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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