Re: Fedora 14: Shutdown problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Terry Barnaby <terry1 <at> beam.ltd.uk> writes:

> 
> Hi,
> 
> About 1 in 4 times Fedora 14 hangs during shutdown on at least 4 of my systems.
> Looking at the shutdown messages (ESC in the splash screen) and adding some 
> debug statements to /etc/rc.d/rc0.d/S01halt, it hangs after the messages:
> 
> 	"Unmounting file systems"
> 	"init: Re-executing /sbin/init"
> 
> with the message:
> 
> 	"mount: you must specify the file system type."
> 
> Adding some debug, this appears after the following command is executed:
> 	"fstab-decode mount -n -o ro,remount /dev/sda1 /"
> 
> The file system is ext4 on all of the systems and that command looks ok.
> 
> Any ideas ?
> 
> Terry

This is our offending script, with the section of interest to us.
/etc/rc.d/rc0.d/S01halt

...
# Tell init to re-exec itself.
kill -TERM 1

# ################################################################
# debugging snapshot statements
# ----------------------------------------------------------------
date >> /halt.debug
cat /etc/mtab >> /halt.debug
cat /proc/mounts >> /halt.debug
# ################################################################

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $1,$3 }' | while read dev dir; do
    fstab-decode mount -n -o ro,remount $dev $dir
done

# If we left mdmon's running wait for the raidsets to become clean
...

Place these debugging snapshot statements in there to see what is in
/etc/mtab prior to 'mount' (which are equivalent).
The others two are helpers ('date' to document time, ""proc/mounts" is even
more useful as it is generally more accurate than /etc/mtab).

Let it be there as long as needed to catch the difference between good and
bad shutdowns (as you said the bad one happens sporadically, every 4th
shutdown or so).

Keep in mind that system update may replace this script.

Just in case, this display would be of interest:
$ cat /proc/filesystems

JB


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux