LinuxQuestions.org
Visit Jeremy's Blog.
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 07-06-2005, 01:54 PM   #1
calutateo
Member
 
Registered: May 2004
Location: Spain
Distribution: SuSE9x
Posts: 40

Rep: Reputation: 15
tune2fs -c 4 -C 3


Dear all,

I am preparing for the LPI exam 201 and trying some commands related to objective 203.2 Maintenance of Linux filesystems.
Since I don't have any ext2 filesystems on my notebook, I created one myself:
Code:
rechner:~ # dd if=/dev/zero of=/root/ext2fs bs=512 count=512000
rechner:~ # losetup /dev/loop0 /root/ext2fs
rechner:~ # mkfs -t ext2 /dev/loop0
rechner:~ # mount -t ext2 /dev/loop0 /mnt
Code:
rechner:~ # tune2fs -c 4 -C 3 /dev/loop0
tune2fs 1.36 (05-Feb-2005)
Setting maximal mount count to 4
Setting current mount count to 3
Code:
rechner:~ # dumpe2fs /dev/loop0 | grep count
dumpe2fs 1.36 (05-Feb-2005)
Inode count:              64000
Block count:              256000
Reserved block count:     12800
Mount count:              3
Maximum mount count:      4
Code:
rechner:~/lvm # umount /mnt/
rechner:~/lvm # mount -t ext2 /dev/loop0 /mnt/

rechner:~/lvm # dumpe2fs /dev/loop0 | grep count
dumpe2fs 1.36 (05-Feb-2005)
Inode count:              64000
Block count:              256000
Reserved block count:     12800
Mount count:              4
Maximum mount count:      4
My question:
Shouldn't the system be checked now that the max count is reached?
What is wrong?

Regards, Carsten
 
Old 07-06-2005, 02:29 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I don't believe a manual "mount" triggers an fsck. Only a boot-time mount will cause fsck to check the partition, based on the fields in /etc/fstab.
 
Old 07-06-2005, 03:13 PM   #3
calutateo
Member
 
Registered: May 2004
Location: Spain
Distribution: SuSE9x
Posts: 40

Original Poster
Rep: Reputation: 15
That sounds correct. I will keep on trying. Thank you.
 
  


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
tune2fs & fsck backne Mandriva 2 04-26-2005 09:13 AM
tune2fs?? blackzone Linux - Newbie 1 01-07-2005 02:24 AM
tune2fs Q - how to set count cbjhawks Linux - General 2 10-07-2004 01:37 PM
tune2fs screwed up my partitions (or it was me :) mrtwice Slackware 3 10-11-2003 05:37 AM

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

All times are GMT -5. The time now is 12:54 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
Open Source Consulting | Domain Registration