You are not logged in.

#1 2010-09-23 15:28:38

adr3nal1n
Member
Registered: 2010-09-23
Posts: 60

[SOLVED]Missing Auto Fsck at boot on ext4 prts that exceed mount count

Hi,

I am hoping someone can help me with this query,

I have 3 HDDs all running various ext4 paritions. My default bootable system is arch x86_64, note that I do not have a separate /boot partition although I do boot from a grub config stored on another root parition I have that has arch 32-bit installed (not sure if this makes any difference to this issue, I am guessing not).

I have different (staggered) maximum mount counts set for each of the 3 drives and no time interval set as I would like the auto fsck activity triggered by maximum mount count and not a time interval.

My root partition has a maximum mount count of 20 but the drive has already reached a mount count of 27 and has still not been checked on boot.

Any ideas as to where I am going wrong with this?

Thanks in advance for any help you can offer.

My /etc/fstab is as follows...

devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0
#swap
UUID=9ad87ab3-0979-43a5-89a7-4b3c633a5098 swap swap defaults 0 0
#root
UUID=576f9de9-1fd8-425c-adb5-7264e7181983 / ext4 defaults,noatime 0 1
#/home
UUID=6e2504ef-afda-4e75-ad3b-4c144e40c2f1 /home ext4 noatime 0 2
#/home/lee/disk2_videos
UUID=2cf892b7-d79f-48c5-9225-d0c0efd7723f /home/lee/disk2_videos ext4 noatime 0 2
#/home/lee/disk3_videos
UUID=1348d419-eb0a-4d11-8e79-a8a3a6c7ac2c /home/lee/disk3_videos ext4 noatime 0 2

Last edited by adr3nal1n (2010-09-24 12:53:31)

Offline

#2 2010-09-24 12:09:09

adr3nal1n
Member
Registered: 2010-09-23
Posts: 60

Re: [SOLVED]Missing Auto Fsck at boot on ext4 prts that exceed mount count

Fixed it!

Schoolboy error on my part.

I originally did a cp -a on my old 32 bit arch root install on the first parition across to the 2nd partition and then converted it to a 64 bit install. I then modified the grub menu.lst and added an option for my 64 bit arch install to boot parition 2 using the correct UUID for the root partition. However, after looking at how /etc/rc.sysint works and having checked ls -l /dev/disk/by-uuid, I can see I had the wrong uuid for / in my 64 bit arch install of /etc/fstab

Have now modified my /etc/fstab with the correct uuid for / on the 2nd partition so that now my menu.lst entry for 64 bit arch root and 64 bit arch root /etc/fstab now have matching uuids.

Have just rebooted after making the change to /etc/fstab and the auto fsck now works. :-)

Hopefully I haven't made too much of a fool of myself and I hope this post may someday help someone out.

Offline

Board footer

Powered by FluxBB