If you experience frequent power outages where your PC powers off unexpectedly and incorrectly here's a setup that withstands it.
1. Download puppy linux if you don't have it and install it to your PC
I've found that older puppies like lucid don't work out of the box with this so use something like xenial,slacko,tahr etc. precise may work but I've not tested
2. Here's the solution:
2.1 Format the partition you will install puppy files to as ext3. If no partition exists yet, first use the Windows partition manager program on windows to create a new one. Alternatively use gparted, gdisk(if your PC is EFI e.g. windows 8 and above), fdisk etc. on linux. If using linux OS Note that you may have to install and use gdisk to create the partition if your PC is EFI.
2.2 Format the new partition as Ext3. For this use gparted or just use /bin/sh and issue
Code: Select all
mkfs -t ext3 /dev/sdN
2.3 Install puppy and run it. When creating your first save, choose filesystem in a file and choose ext2 filesystem. Mak your you choose the partition you had created in step 2.1.
You can enable heavy encryption of you want.
Now your PC will never have any problems no matter how many power outages you experience. Unless you attempt to service it as an unqualified hardware expert and play with the HDD power cable; that's sure to do damage.
NOTE: This will not work if the bootloader code for your puppy does not have the @pfix=fsck@ argument
Older puppies like Lucid out of the box aren't able to check filesystem on encrypted saves so if you'll need take the following steps to manually do it frequently:
NOTE:
Replace N with the partition number your puppy files are located. They're numbered from 1.
Replace /dev/loop6 with any number e.g. /dev/loop10 if number 6 is in use
- At grub bootloader's screen, edit the line with pfix=..., adding without quotes the "pfix=ram".
- Once puppy has started, open urxvt or other terminal and if your partition is ext2, then issue . Remember to replace N with the partition your puppy files e.g. MD5SUMS
Code: Select all
e2fsck -y /dev/sdaN
README.diskdefines
adrv_xenialpup_7.5.sfs
boot.catalog
efi.img
fsckme.flg
grldr
grub
grub.cfg
help
initrd.gz
isolinux.bin
isolinux.cfg
menu-2019-08-12-131631.lst
menu-advanced.lst
menu.lst
puppy_xenialpup_7.5.sfs
sda_mbr.bak
zdrv_xenialpup_7.5.sfs
are located on.
- After that is done, mount that partition in urxvt with commands:
Code: Select all
mkdir /mnt/sdaN mount /dev/sdaN /mnt/sdaN
- cd to your save file's directory i.e where the file that ends with .2fs, 3fs, 4fs is located.
Code: Select all
cd /mnt/sdaN/my_save_file_folder/
Code: Select all
modprobe cryptoloop (ignore any warning messages)
Code: Select all
modprobe aes
- if using heavy encryption, , if using light encryption,
Code: Select all
losetup-FULL -e aes /dev/loop6 yourpupsavefilename.Nfs
. Then type in your savefile's password.Code: Select all
losetup-FULL -e 1 /dev/loop6 yourpupsavefilename.Nfs
If no encryption,Code: Select all
losetup-FULL /dev/loop6 yourpupsavefilename.Nfs
Code: Select all
e2fsck -y /dev/loop6
- After the filesystem check(fsck) completes,then press F12 key, Exit reboot or click Menu, then Exit, then reboot.
- Once puppy has started, open urxvt or other terminal and if your partition is ext2, then issue