LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I change the umount order while shutting down? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-change-the-umount-order-while-shutting-down-196378/)

m3rc_2004 06-22-2004 10:10 AM

How do I change the umount order while shutting down?
 
HI,
I've been facing a small problem whenever I try to shutdown my comp.
I've got a separate partiton mounted on /var.

Now, inside the /var/ftp folder, I've mounted several folders of my hard drive which I want to share via ftp. The problem that occurs while shutting down is that the system appears to attempt to umount the partition mounted on /var before umounting the folders in /var/ftp, resulting in an error "device busy" or sth of the sort. And I know that the problem is with the umount order since this problem does not occur if I manually umount the folders within /var/ftp before shutting down.

Is there anything I can do to ensure that the umount works on the ftp folders before attempting to umount /var durin shutdown??

M3rc

Tinkster 06-22-2004 02:30 PM

To the best of my knowledge there's no config
file that specifies in which order file-systems are
unmounted ... if you need to get rid of something
in a specific order you could always add it to
rc.6 (on a Slack-machine) or make a little script
in (symlink to) rc.0 (rc.6) with S10your_umount
to make sure it's unmounted before anything
else ;)


Cheers,
Tink


All times are GMT -5. The time now is 09:01 AM.