In order to force disk checking during boot in Ubuntu and other modern
operating systems, the 'fsck.mode=force' kernel parameter needs to be
added before booting.
In Ubuntu this is done as follows:
1) At the GRUB screen, press 'e' to edit the kernel parameters.
2) Add 'fsck.mode=force' at the end of the line that starts with the
keyword 'linux'.
3) Press 'Ctrl+x' or 'F10' to boot with the updated kernel parameters.
Note that only the partitions that have '1' or '2' as the fsck option in
'/etc/fstab' will be checked. The value '1' is reserved for the boot
partition, and all the other partitions to be checked should use the
value '2'.
May 23, 2016
April 2, 2016
Fix automatic suspend in Lubuntu
If you get the error "Authentication required before suspend" when the PC tries to suspend automatically, the actions below are required.
In the file "/usr/share/polkit-1/actions/org.freedesktop.login1.policy" search the section "<action id="org.freedesktop.login1.suspend">" and change the corresponding lines as below:
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
An alternative solution, which is supposed to be permanent since the file above is updated occasionally, is given next.
Go to "/etc/polkit-1/localauthority/50-local.d/" and create a file named for instance "com.0.enable-automatic-suspend.pkla". Put the following text into the file:
[Enable automatic suspend]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultAny=yes
Based on http://askubuntu.com/questions/785509/hibernating-from-cron/786225#786225
In the file "/usr/share/polkit-1/actions/org.freedesktop.login1.policy" search the section "<action id="org.freedesktop.login1.suspend">" and change the corresponding lines as below:
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
An alternative solution, which is supposed to be permanent since the file above is updated occasionally, is given next.
Go to "/etc/polkit-1/localauthority/50-local.d/" and create a file named for instance "com.0.enable-automatic-suspend.pkla". Put the following text into the file:
[Enable automatic suspend]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultAny=yes
Based on http://askubuntu.com/questions/785509/hibernating-from-cron/786225#786225
Subscribe to:
Posts (Atom)