LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-20-2009, 02:05 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,547

Rep: Reputation: 37
How to tell if volume is already dirty


Is there a command I can use to tell me if any volumes/drives/whatever are marked as dirty and will automatically run an e2fsck when I reboot the server?
 
Old 08-20-2009, 02:15 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Well a volume should only be marked as such if it wasn't properly unmounted at shutdown, and if it is dirty, then the system would have already checked it at boot.

So you wouldn't have dirty filesystems on a running system unless you had previously mounted a filesystem that wasn't in fstab and the system had a hard crash.
 
Old 08-20-2009, 02:18 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,547

Original Poster
Rep: Reputation: 37
OK. I have a RAID 5 (setup in the BIOS) array which had one of the drives fail over to the hot spares because one of the other drives failed and threw a bunch of errors in the messages log. so i thought it might have marked it as dirty because of that. I know how to check if a volume is marked as dirty on a Windows server, thought there might be an equivolent command in linux, since i've had server automatically do a check upon reboot before, which i thought was because of hard drive problems. maybe not.
 
Old 08-20-2009, 02:26 PM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
If you'd like to check manually, try `tune2fs -l`. It spits out a lot of useful info about your filesystem, including whether it's clean or dirty. As MS3FGX said, though, Linux systems check this at every boot, so if you reboot reasonably often, this isn't something you need to worry about often.
 
Old 08-20-2009, 02:29 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,547

Original Poster
Rep: Reputation: 37
thanks, i'll check it out
 
  


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
Problem with maximum audio volume + volume control threshold mensch Debian 6 10-10-2008 10:48 AM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
Volume Control: Intel 82801DB-ICH4 (Alsa mixer) won't save volume levels. cayspekko Linux - Newbie 2 01-31-2008 12:17 AM
Keyboard volume knob configuration-cannot change volume. Ariox Ubuntu 1 03-22-2007 02:06 PM
tar multiple volume archive - volume script RGummi Linux - General 2 08-31-2006 04:08 PM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
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