It can be handy to reset the device at some point (operating system that does not work as expected)
Two method are available to reset the device : soft reset and hard reset
The following bash script reset "softly" the device. This script can not fix any damaged operating system.
It will perform the following actions:
cap
userauthorized_keys
files (optional)It must be executed, as root, this way :
curl -sfL https://gitlab.com/bibliosansfrontieres/olip/devices/cap/factory-config/-/raw/master/reset.sh | bash -
The following procedure perform a "hard" reset and will put the device back in a factory state without formating the external hard drive. You'll have to do it manually if needed!
clonezilla-live-RC-RC02.8/
directory, which in turn contains a few files and directories:clonezilla-live-RC-RC02.8
├── boot
├── Clonezilla-Live-Version
├── EFI
├── GPL
├── home
├── live
├── syslinux
└── utils
When looking at the root of your USB key, you should only see these files and folders:
boot/ Clonezilla-Live-Version EFI/ GPL home/ live/ syslinux/ utils/
The device must be turned off.
If you want to push the reset further and delete all installed contents/applications, you can format the external HDD:
umount -A -l /dev/sda1
mkfs.ext4 -F /dev/sda1