LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Shut Down Problem (https://www.linuxquestions.org/questions/fedora-35/shut-down-problem-539300/)

Peter_APIIT 03-21-2007 06:55 AM

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.

Lenard 03-21-2007 07:11 AM

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

Peter_APIIT 03-21-2007 09:57 PM

Which directory i need to ceck ? I don't understand. Please forgive my stupidness.

Lenard 03-22-2007 07:47 AM

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

Peter_APIIT 03-23-2007 02:59 AM

I will have a try. thanks.

Peter_APIIT 03-23-2007 04:22 AM

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 (.).

Lenard 03-23-2007 06:14 AM

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.

Peter_APIIT 03-23-2007 08:50 AM

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.

Lenard 03-23-2007 09:41 AM

Yes, the SystemRescueCD has no way of choosing which hard drive and partitions you want mounted. It cannot read your mind :)

Peter_APIIT 03-24-2007 04:47 AM

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.

Lenard 03-24-2007 06:18 AM

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.

Peter_APIIT 03-24-2007 11:48 PM

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.


All times are GMT -5. The time now is 06:24 PM.