LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 08-03-2010, 09:48 PM   #1
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Rep: Reputation: 1
/home dir. wont mount after system crash. I have to run fsck to mount it again. why?


I am using openSUSE 11.3 (upgraded from 11.2) and have upgraded KDE to KDE 4.5 "--from" SUSE's KDE Core & KDE Extras repo's. Recently I have run into an issue... I don't know if it has any thing to do with KDE but sometimes (randomly) while I am just doing average things on my computer, the system will freeze. Upon reboot, it says that my home directory does not exist and wont log into my account (i have separate "/", "/boot", and "/home" partitions). So I boot from a SUSE-LiveCD and try to mount my home partition. The system wont let me mount /dev/sda3 (my home partition) unless I run "fsck /dev/sda3" first. After running fsck it says that my file-system is clean. then when I reboot my system it will mount fine and work great until it all happens again. It could be hours or day... maybe someone can tell me why this is happening and how I can fix it. If not maybe someone can tell me where on my system I can edit a script to tell my system to just run fsck on /dev/sda3 before the system mounts it... as at least if my system freezes it will reboot without me having to manually go in and run fsck. PLEASE HELP! THANKS.
 
Old 08-03-2010, 10:31 PM   #2
lartman
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: RHEL
Posts: 22

Rep: Reputation: 17
put this in /etc/rc.local
Code:
touch /forcefsck
and in one of the shutdown scripts put
Code:
rm /forcefsck
/forcefsck causes the system to do fsck as it boots. By touching this file at startup and removing it at orderly shutdown, the system will automatically fsck after a crash.
 
Old 08-04-2010, 04:48 AM   #3
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by lartman View Post
put this in /etc/rc.local
Code:
touch /forcefsck
and in one of the shutdown scripts put
Code:
rm /forcefsck
/forcefsck causes the system to do fsck as it boots. By touching this file at startup and removing it at orderly shutdown, the system will automatically fsck after a crash.
well should I specify what partition? Such as "touch /forcefsck /dev/sda3"? Also I am leery about adding rm into a shutdown script.

Last edited by druonysus; 08-19-2010 at 06:17 AM.
 
Old 08-04-2010, 06:44 AM   #4
lartman
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: RHEL
Posts: 22

Rep: Reputation: 17
No partition. /forcefsck is just an empty file which, if it exists at bootup, forces the system to run a fsck.

Bear in mind this is just a rough workaround. The fix is to sort out why the system is crashing.
 
Old 08-04-2010, 02:01 PM   #5
puncroqr
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
after rebooting into your system after such a crash go dig for and post the last lines from /var/log/messages
 
Old 08-05-2010, 09:06 PM   #6
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by puncroqr View Post
after rebooting into your system after such a crash go dig for and post the last lines from /var/log/messages
Well so far I have been unable to get my system to crash again. I really don't know why my system is crashing in the first place. As soon as it does it again I will post the the output of "cat /var/log/messages | tail"

Last edited by druonysus; 08-19-2010 at 06:20 AM.
 
Old 08-05-2010, 10:13 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Not much point deleting /forcefsck in any of the shutdown scripts. How's the restart going to find it ?.

If the machine is dying so hard that the journal isn't being run, you probably won't get any log messages either (btw, you'd need "tail", not "last").
I'd be thinking hardware problems - maybe run memtest86+ overnight. But it could be PSU, heat, ... who knows
 
Old 08-06-2010, 02:32 AM   #8
lartman
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Australia
Distribution: RHEL
Posts: 22

Rep: Reputation: 17
Quote:
Originally Posted by syg00 View Post
Not much point deleting /forcefsck in any of the shutdown scripts. How's the restart going to find it ?.
The point in deleting /forcefsck is that we only want to run fsck if the system crashes and doesn't do an orderly shutdown. But yeah, it's easy enough to remove it manually if you want to reboot.

Last edited by lartman; 08-06-2010 at 03:03 AM.
 
Old 08-06-2010, 03:23 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Quote:
Originally Posted by lartman View Post
The point in deleting /forcefsck is that we only want to run fsck if the system crashes and doesn't do an orderly shutdown.
Quite right - my mind must have been elsewhere.
 
Old 08-19-2010, 06:27 AM   #10
druonysus
LQ Newbie
 
Registered: Mar 2010
Location: Newport Beach CA
Distribution: openSUSE
Posts: 23
Blog Entries: 1

Original Poster
Rep: Reputation: 1
I have reinstalled openSUSE 11.3 (and I didn't update it to KDE 4.5) and so far I have not had my /home partition unmount after a crash. However, the computer still crashes when full-screening flash videos online (e.g. Hulu, and YouTube)... I am thinking it must be a driver issue... any idea's how to fix this?
 
  


Reply

Tags
crash, fsck, home, jfs, kde, opensuse, suse, system


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto mount to nfs home dir when user login to nis client lijianatusa Linux - Newbie 4 02-26-2009 12:38 AM
FSTAB: My Win Share Wont Mount @ Boot, but will when I sudo mount -a...please help! TruANTOlogy Ubuntu 8 06-20-2006 09:00 AM
mount error: mount point /home/me/x does not exist whil Fedora 3 05-24-2006 11:39 AM
unable to mount /home dir in a client machine abhishek124 Linux - Networking 18 06-06-2005 08:57 AM
KDE and hard disk crash of home dir tudmuf2b Linux - Software 0 03-07-2003 03:41 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration