LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2010, 09:08 PM   #1
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Rep: Reputation: 0
sync complete issue


Hi,

I am newbie to this field. So please ignore my lack of knowledge of linux.

When I perform updates, the system shows,
"/dev/hda1 was not cleanly unmounted, check forced."

But when i normally reboot it does not have this issue. Looks like when i do update one of my internal scripts copy the files to my machine and then they do sync so may be that sync is not competed and thus it fails to hda1 unmount. Not sure what is the problem.

How I can see the messages which are displayed during the shutdown? They may provide some clue. i tried to have a look in /var/log but could not find anything regarding shutdown.

Thx in advance.

Regards,
ck
 
Old 09-09-2010, 10:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

It would help if you told us which distro, and which update
mechanism you're using ...


Cheers,
Tink
 
Old 09-10-2010, 03:05 AM   #3
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Sorry, may be I have asked my question in a wrong way.
let me put it this way,

Does shutdown program unmounts the drives? I downloaded the source code but was not able to find where does it unmount? What is happening is, we are coping files for update and then reboot the system, but I think that before reboot we should make sure that the files are all copied and the hard drives are cleanly unmounted because the error i am gettin is "/dev/hda1 was not cleanly unmounted, check forced.". However, the strange thing is the files are successfully copied!


I doubt this will help but here is the distro version is
Linux version 2.6.29-bpo.2-686 (Debian 2.6.9-5~bpo50+1) ....

As I said I had put my question in the wrong way. Actually the updates are out own internal updates.
 
Old 09-10-2010, 03:11 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
shutdown should tell the system to go to runlevel 0 which will run all the shutdown scripts including cleanly unmounting all partitions. Have a look at the scripts in /etc/rc0.d/.

Maybe a stupid question but why are you rebooting? Are you installing a new kernel?

And what do you mean by "internal updates"?

Evo2.
 
Old 09-10-2010, 03:36 AM   #5
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by evo2 View Post
shutdown should tell the system to go to runlevel 0 Maybe a stupid question but why are you rebooting? Are you installing a new kernel?
In fact a very good question i will clear this with my boss.

We do not have mstab file on our system. Can it be a problem? Sorry I am again coming round and round to the same point because the main issue is I get "/dev/hda1 was not cleanly unmounted, check forced." So i think that it is not able to umount the device.

Any ideas how to go about troubleshooting it?
 
Old 09-10-2010, 03:40 AM   #6
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Forgot to mention I am not able to see mstab in my etc folder... can it be a thing to worry about?
 
Old 09-10-2010, 03:50 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
I just had a look at my /etc/rc0.d/K09umountfs file and it seems to get the mounted filesystems info from /proc/mounts ... so perhaps missing /etc/mtab is not a problem (NB. above you type to mstab).

If I were you I'd look at that script very closely and watch for it's output next time you shut the machine down.

Cheers,

Evo2.
 
Old 09-10-2010, 03:54 AM   #8
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Is the shutdown log stored some where in /var/log??
 
Old 09-10-2010, 04:00 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
You may be able to find some info in /var/log/messages but the problem is that you are right at the end of the shutdown process, unmounting filesystems so pertinent information may not be logged anywhere (no filesystem to write to). So, you may need to actually look at the console.

Cheers,

Evo2.
 
Old 09-13-2010, 02:31 AM   #10
ck_at_work
LQ Newbie
 
Registered: Sep 2010
Posts: 22

Original Poster
Rep: Reputation: 0
okeys.. thanks for that.... i was able to get some infromation from var/log/syslog..


thank u,..
 
  


Reply


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
Time Sync issue on RHEL 5.3 Uday123 Red Hat 1 10-08-2009 02:15 AM
NTP sync time issue... smartyshan Linux - Server 5 06-23-2009 03:37 AM
sync Issue HeartBeat Linux - Newbie 2 05-12-2009 12:30 AM
linux ydl 5 on ps3 sixaxes sync issue live1 Linux - General 1 07-24-2008 08:29 AM
(Newbie) Yet another Palm sync issue Fluctifragus Linux - Hardware 3 06-22-2005 11:53 PM


All times are GMT -5. The time now is 04:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration