You are not logged in.
Pages: 1
Today I realised the regular filesystem checks that happen during the boot process are not working on my system. I checked with dumpe2fs, last time my root filesystem was checked was Sun "Feb 5 13:24:26 2012", that's 4 months back!
I have the fsck hook in my mkinitcpio config after "filesystems". The full array:
HOOKS="base udev autodetect sata filesystems fsck"
Any idea how to troubleshoot this?
Offline
https://wiki.archlinux.org/index.php/Fstab
https://wiki.archlinux.org/index.php/Fs … efinitions
<pass> - used by fsck to decide which order filesystems are to be checked. Possible entries are 0, 1 and 2. The root file system should have the highest priority 1 - all other file systems you want to have checked should have a 2. File systems with a value 0 will not be checked by the fsck utility.
And also:
https://wiki.archlinux.org/index.php/Fsck#fstab_options
https://wiki.archlinux.org/index.php/Fs … _frequency
PS: Do you have a separate /usr partition by any chance?
https://wiki.archlinux.org/index.php/Mk … _partition
Last edited by DSpider (2012-05-30 15:15:20)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
My fstab is already like that, / has pass set to 1 and /home to 2.
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
UUID=35898c7b-d709-47d7-a704-587e4eabbeee / ext4 defaults,noatime 0 1
UUID=5a6a8009-a299-41d0-904a-da5f1de69a8c /home ext4 defaults,user_xattr,noatime 0 2
tmpfs /tmp tmpfs defaults,noatime,nodev,nosuid,mode=1777 0 0
tmpfs /var/run tmpfs defaults,noatime,nodev,nosuid,mode=1755 0 0
I changed the fsck frequency to 25 but it was already there anyway. I also changed the check interval to 15 days but the system still won't check my filesystems on boot.
I tried to check manually just in case, using 'shutdown -Fr now' like the wiki instructed but it skipped my root partition, only checking /home.
Offline
Ok, which bootloader do you use?
For GRUB Legacy and Syslinux you have to use "ro" at the kernel or APPEND line. For example:
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz-linux root=/dev/sda3 ro
initrd /initramfs-linux.img
LABEL arch
LINUX ../vmlinuz-linux
APPEND root=/dev/sda2 ro
INITRD ../initramfs-linux.img
For GRUB 2... I'm not sure if it's added automatically... I think you need to edit /etc/default/grub and add:
GRUB_CMDLINE_LINUX_DEFAULT="ro quiet"
And then re-generate a grub.cfg:
# grub-mkconfig -o /boot/grub/grub.cfg
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I am using grub legacy and "ro" is already there. I also tried booting without UUID (root=/dev/sda1) but without luck.
My kernel line:
kernel /boot/vmlinuz-linux root=/dev/disk/by-uuid/35898c7b-d709-47d7-a704-587e4eabbeee vga=842 fastboot ro init=/usr/sbin/e4rat-preload-lite 5
Offline
Maybe it's the fastboot option in your menu.lst. Also, you can force a filecheck on the next reboot like this. I checked it and for me it works.
Offline
Creating /forcefsck works, it checked both root and /home. This will work for now, maybe I should put it in a cron job.
Offline
Pages: 1