LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Shutdown annoyance (https://www.linuxquestions.org/questions/linux-software-2/shutdown-annoyance-141918/)

tmoorman 02-03-2004 03:42 PM

Shutdown annoyance
 
When I shutdown (Mandrake 9.2 from KDE) I get a failure when all the filesystems are unmounted. They all unmount successfully except for a filesystem on a harddisk that I removed yesterday. Apparently the shutdown script (?) is still attempting to unmount the missing filesystem. I want to stop Linux from attempting to unmount a filesystem on a disk that doesn't exist (except in my closet). The rest of the shutdown procedure works fine, all the way to auto power off (btw I am running APM, not acpi).

ricstirato 02-03-2004 03:58 PM

Did you remove the appripriate line from /etc/fstab?

tmoorman 02-03-2004 04:13 PM

Yes, I removed the line. The message I see on shutdown refers to a device: /dev/host2/bus0/target1/lun0 This is the device that was removed.
I had three harddisks. Two are new, big ATA133, 7200 rpm. One was old, slow ATA33, 5400 rpm and it was starting to make a high pitched whine so I removed it.

andrewlkho 02-03-2004 04:46 PM

Have you checked to see when that is called? Check your shutdown script and see when it's called, and why it's still tryin' to do that one.

tmoorman 02-03-2004 06:32 PM

That is my question: Where is the shutdown script?

ricstirato 02-04-2004 01:48 PM

There is no single shutdown script.

Shutdown is runlevel 0 (or 6, if you do a reboot).
This means all scripts in /etc/rc0.d/ (/etc/rc6.d/ respectively) are run in alphabetical order. First all K scripts from K00 to K99 with parameter "stop", then S00 to S99 with parameter "start" (if any exist).
You have to find out which script shows up with the error message. It should be possible to identify this by comparing the messages during shutdown with the content of /etc/rc0.d/

If you have difficulties to find out which is which, post the part of the shutdown messages where the error shows up (including a few lines above and below - since you can't cut and paste at that moment, information about the services being stopped will probably do) and a directory listing of /etc/rc0.d/

Mugatu 02-04-2004 02:05 PM

i know it's not good to rely on GUI stuff, but if you can't find what you're looking for in the CLI, click the KDE button-->Configuration-->Configure Your Computer to open Mandrake Control Center, then open up Mount Points-->Disk Drake, and you might find what you're looking for. You can edit mount points, and when you save changes it should change the appropriate configuration files.


All times are GMT -5. The time now is 07:45 AM.