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

Re: shutdown not unnmounting



Keith Beattie <ksb@icds.org> writes:
| David B. Teague wrote:
| > 
| > The problem is that SOMETIMES, not frequently, 
| > 
| > 	shutdown -h now
| > 
| > will stop before unmounting drives
| > 
| > The correct answer is to upgrade, but is there anything I could
| > do in the interim? 
| > 
| > I have a draconian set of deadlines, and I don't want to do anything
| > that could result in this machine going down for any length of time. 
| > 
| 
| Don't shutdown your machine.
| 
| [ducking under desk]
| 
| Ok, Ok, I have some real ideas to consider...
| 
| Idea #1 - umount the drives yourself:
| 
| 	sync;sync;sync
| 	umount -a
| 	shutdown -h now
| 
| Idea #2 - have shutdown wait a period of time before actually shutting
| down
| 
| 	shutdown -h +5  # Check my syntax on the +5
| 
| Idea #3 - some combination of the above ideas
| 
| 	sync;sync;sync
| 	umount -a
| 	shutdown -h +5

syncs aren't necessary if you're umounting the drive anyway. umount
causes the buffer for that device to be flushed before it actually
unmounts the device.

Gary


Reply to: