Open krishraghuram opened 6 years ago
Root account was "locked", in the same sense that root account is locked by default in ubuntu.
https://raspberrypi.stackexchange.com/a/48057
Unlocked root account by
sudo passwd root
and set a strong password sudo passwd -S root
to get status of root account. It should no longer be locked. However, this does not solve the problem. After doing this and rebooting, we get,
Need to find out why this is coming
The Why
The Solution
References :
This link seems to have several ideas for a true solution
In short, we can,
The temporary workaround - Setting last field to '0' in /etc/fstab - is a terrible idea
After I set it to '0', on the next dirty shutdown and subsequent boot, a huge problem surfaced.
The root file system was being mounted as read-only.
Found this and this, which explained the situation clearly
The default behaviour for most Linux file systems is to safeguard your data. When the kernel detects an error in the storage subsystem it will make the filesystem read-only to prevent (further) data corruption.
and
perhaps it is because the disk is unclean, try changing: /dev/sda1 / ext3 defaults 0 0 to /dev/sda1 / ext3 defaults 0 1 or at least do an fsck and then reboot
So, we still don't have a solution for the original issue. Need to work on it.
Auto responding to fsck in ubuntu and debian is done using FSCKFIX setting in /etc/default/rcS
Note that auto responding in pi is a little different.
In the Foundation's spindle-era images, FSCKFIX=yes was actually the default. In recent images, /boot/cmdline.txt has "fsck.repair=yes". I believe that takes precedence and is basically equivalent. If you want "no", remove the stanza from /boot/cmdline.txt as well.
We have to add the following to /boot/cmdline.txt
fsck.mode=force fsck.repair=yes
Make sure that file remains all one line. Parameters should be separated with spaces.
BTRFS with RAID 1
Power backup for Rpi
The above error message pops up on every boot.
This requires keyboard for getting into the kiosk - which defeats the point of a kiosk mode.
Need to solve this.