jnrmovie.blogg.se

Disk check on startup
Disk check on startup






disk check on startup

I realise of course its a good thing but I know they are not keen on MFA mainly I think because some of them work in areas o. I have had this message pop up for one of my old clients I still do support for and I am still the Admin for on their 365 system.

  • Microsoft enforcing MFA in 365 in 12 days message Cloud Computing & SaaS.
  • # fsck mount dialogue hack, by ciderpunx#

    disk check on startup

    Here's that version, which is a bit tidier. | zenity -text-info -title "fsck info"I have the last version saved as a shell script which can be set up to run in my startup applications (system|preferences|startup applications|startup programs). > /path/to/fileIf you have zenity installed, you can have a popup appear by appending this instead: " mounts\n" if($i=2) 'You can send that to a file by appending: $ dumpe2fs -h /dev/sda1 2>&1 | grep -i 'mount count' | perl -ne '$i++ chomp s/.*:// s/\s//g $arr=$_ print "Next fsck in ". Using the solutions already suggested you can do something like this: Is there any way to tie into the mechanism that counts the boots and run a little program that says "you're going to have a forced check three boots from now"? Maybe a log file that tells how may boots are left, which could be grepped? Remember that you can call the script like this:īut if you want to use it more than once, it's better to change the execute permissions and call it without the "bash" command: temp.$$Įcho -e "- Change Filesystem volume name:\n\tsudo tune2fs -L NewLabel /dev/hda1\n\tsudo e2label /dev/hda1 NewLabel"Įcho -e "- Change Maximum mount count:\n\tsudo tune2fs -c 50 /dev/hda1"Įcho -e "- Modify reserved space:\n\tsudo tune2fs -m 1 /dev/hda1" Sudo dumpe2fs -h $PARTITION | grep 'Last checked' >. Sudo dumpe2fs -h $PARTITION | grep 'Last mount time' >. Sudo dumpe2fs -h $PARTITION | grep 'Maximum mount count' >. Sudo dumpe2fs -h $PARTITION | grep 'Mount count' >. Sudo dumpe2fs -h $PARTITION | grep 'Filesystem volume name' >. # list ALL partitions and exclude the SWAP onesĭeclare -a SWAPS=( $(cat /proc/swaps | grep /dev/ | awk ''", "") ' If then echo 'ERROR: You have to be root' exit 1 fi If then : else echo 'ERROR: /dev/disk/by-id/ does not exist' exit 1 fi # this directory must exist to execute the script I'm learning bash and I wrote this script that shows the "mount count" for each partition.








    Disk check on startup