Tran Nghi's Site  - Make notes and share experience

[ubuntu] Initramfs boot error

Error output: fsck from util-linux 2.26.2 /dev/sda2 contains a file system with errors, check forced. /dev/sda2: Inodes that were part of a corrupted orphan linked list found.   /dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) fsck exited with status code 4 The root filesystem on /dev/sda2 requires a manual fsck…

Protect web directory with .htaccess, and .htpasswd

Htaccess Authentication Password protect one or more directories with Basic HTTP Authentication using .htaccess. And a .htpasswd file will be used to store login details. There are many online tools to generate the .htpassswd and .htaccess. Or just simply create a .htaccess file with below text by copy/paste: AuthType Basic AuthName “My Protected Area” AuthUserFile /home/.lanous/.htpasswd Require…

Message