LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-23-2011, 10:29 PM   #1
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Rep: Reputation: 6
Question Unclean shutdown? Check forced on start-up.


This seems like only a slight inconvenience, but I don't like the idea of unclean shutdowns/reboots.

Whenever I boot/restart, I notice the message "/dev/hdb1 (and hdb2) was not cleanly unmounted, check forced." Then fsck(?) scans them without errors, and everything continues normally. FWIW, hdb1 @ hdb2 are ext2, /boot & /tmp respectively, whereas all other partitions are ext3. Could that (ext2) be why? I checked halt, reboot, umountfs, umountnfs.sh, and umountroot in /etc/init.d, and nothing jumped out at me, though I'm not exactly sure what I'm looking at/for.
 
Old 05-24-2011, 12:31 AM   #2
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
It seems your filesystems are not unmounted at shutdown, that's why this is happening.
Do you mount those manually? Actually even manually mounted fses get remounted at least read only if not completely umounted. Must be some kind of bug.
 
Old 05-24-2011, 12:41 AM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Could you post the content of your /etc/fstab file ?
 
Old 05-24-2011, 12:57 AM   #4
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by kbp View Post
Could you post the content of your /etc/fstab file ?
LOL! I knew someone would ask for that, though nothing SEEMS out of the ordinary. *shrug* I just attached it for better width formatting than <CODE></CODE>
Attached Files
File Type: txt fstab.txt (936 Bytes, 22 views)

Last edited by DJRcomputing; 05-24-2011 at 01:01 AM.
 
Old 05-24-2011, 01:31 AM   #5
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
PS - FWIW, I've also attached the umountfs, umountnfs.sh, and umountroot scripts from /etc/init.d if that helps and/or someone wants to mod them to fix this problem. Just attach any changed files, please. Thanks.
Attached Files
File Type: txt umountfs.txt (3.1 KB, 11 views)
File Type: txt umountnfs.sh.txt (2.1 KB, 10 views)
File Type: txt umountroot.txt (1.4 KB, 6 views)
 
Old 05-24-2011, 01:33 AM   #6
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Also halt and reboot. (Sorry. LQ maxes @ 3 attachments/post :P )
Attached Files
File Type: txt halt.txt (1.3 KB, 6 views)
File Type: txt reboot.txt (639 Bytes, 15 views)
 
Old 05-24-2011, 02:24 AM   #7
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
I would put "/boot" in "ro" in the fstab
 
Old 05-25-2011, 12:00 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The only thing I noticed was that reboot was called with the argument '-f' which is force on my pc, can you tell us what '-f', '-i' and '-d' mean ? .. only '-f' is listed in my man pages.
 
Old 05-25-2011, 05:56 AM   #9
DJRcomputing
Member
 
Registered: Mar 2011
Location: /usa/pa/manheim
Distribution: Debian 5 + Xfce
Posts: 64

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by kbp View Post
The only thing I noticed was that reboot was called with the argument '-f' which is force on my pc, can you tell us what '-f', '-i' and '-d' mean ? .. only '-f' is listed in my man pages.
Wait...you're asking ME?? LOL! Thanks for inspiring me to consider flags as a possible cause, though dropping -d & -f (neither of which I like) from reboot & halt (latter script already calls for -h, -i & -p) didn't solve the problem...

-d Don’t write the wtmp record.
-f Force halt or reboot, don’t call shutdown.
-h Put all harddrives on the system in standby mode just before halt or poweroff.
-i Shut down all network interfaces just before halt or reboot.
-p When halting the system, switch off the power.

-b Blow your brains out from troubleshooting. (not really. LOL!)

Quote:
Originally Posted by Stéphane Ascoët View Post
I would put "/boot" in "ro" in the fstab
Yeah, I've been meaning to lock down my mount options prior to bringing my LAMP server online, but I'm still in the config stages. /home & /var get usrquota, for www & to prevent massive spam to any one email address from hogging all of /var (I think/hope). Likewise /usr is going ro once complete for safety/security.

Quote:
Originally Posted by DJRcomputing View Post
Could that (ext2) be why?
That seems to be the cause, though it shouldn't be (bug?). Mounting ro doesn't TECHNICALLY need to be unmounted, which solves /boot. I ultimately converted /tmp to ext3 via LiveCD, since /tmp wouldn't unmount no matter what I tried. *shrug*

Last edited by DJRcomputing; 05-25-2011 at 07:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'shutdown' command causing unclean shutdown silentwol Linux - Software 3 07-01-2009 02:01 AM
Unclean shutdown...now...... S...L....O....W LarryFrigginWachs Linux - Newbie 4 12-29-2006 02:28 PM
Guaranteed filesystem corruption on unclean shutdown? pigsa Linux - Software 7 12-10-2006 06:41 AM
Fedora Core 2 logout causes unclean shutdown Ethan Linux - General 0 10-12-2004 01:57 PM
Unclean shutdown from power failure... filesystem check errors macisaac Linux - General 4 12-26-2003 07:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration