Got my entire ext3 partition overwritten
Got my entire ext3 partition overwritten
I have a few frugal installs on an ext3 partition. So, I used an old script of mine to do some sfs editing. I created (or supposedly created) a folder called "puppyfilesystem" as the working directory. I must have forgotten to change the path of "puppyfilesystem" everywhere in the script because all data was wiped after running the script. Luckily had most things backed up to another partition.
-
- Posts: 1543
- Joined: Mon 22 Feb 2016, 19:43
There's an old German saying: Schadenfreude ist die beste Freude (literally translated: malicious joy is the best joy (I'm sure there's an equal international saying for this)).
However: I don't agree with that saying / any of such sayings.
Good to have backups, though!
Edit:
Btw. this wouldn't have happen by using the LazY Remaster Suite.
However: I don't agree with that saying / any of such sayings.
Good to have backups, though!
Edit:
Btw. this wouldn't have happen by using the LazY Remaster Suite.
Old script I've been using for years to edit the loaded base sfs (not a remaster just a copy of /initrd/pup_ro2/*, manually editing a few things and then mksquashfs. I wanted to change the path of the working directory in the script to /mnt/sda3/puppyfilesystem but created the directory as /mnt/sda3 instead. Mksquashfs was happy to "squash" the non-existing /mnt/sda3/puppyfilesystem by overwriting the data on /mnt/sda3. Anyways - be careful!!!!
use editsfs, that is a well know Puppy tool.
use editsfs, that is a well know Puppy tool.
But your error is human, whatever the codop used.. it's not programming error, it's yours., the man typing.
That people enjoy is not fair.. i will give you some scripts by Musher0 for automatization,.. if you need some laugh.
But your error is human, whatever the codop used.. it's not programming error, it's yours., the man typing.
That people enjoy is not fair.. i will give you some scripts by Musher0 for automatization,.. if you need some laugh.
Yes, a human editing error. Nothing wrong with the script itself. Just thought I'd share it...of course some saw the opportunity to take a jibe at me. This is the script I normally use for manual editing the base sfs, additional compression options added:
Code: Select all
WrkDir="/puppyfilesystem"
rm -r $WrkDir
mkdir $WrkDir
cp -a /initrd/pup_ro2/* /puppyfilesystem
Xdialog -center -msgbox "/puppyfilesystem ready for edit. Press OK when ready" 0 0
. /etc/DISTRO_SPECS
PUPPYSFS="$DISTRO_PUPPYSFS"
Splash="rxvt -bg green -fg black -title "Progress" -geometry 80x6+360+360 -e mksquashfs $WrkDir /$PUPPYSFS"
answer=`Xdialog --left --wrap --stdout --title "Compression Settings" --combobox "Ready to compress to sfs file.
Higher compression levels produce smaller files but takes longer to compress.
Gzip compression produce bigger files than xz compression but compress faster.
Older Puppys with pre-series-3 kernels must use gzip OLD compression.
Please select your choice from the menu, click 'OK' and . This will take a while, please be patient." 0 80 "xz DEFAULT" "xz MEDIUM" "xz HIGH" "xz HIGHEST" "gzip DEFAULT" "gzip OLD" "NO COMPRESSION"`
case "$answer" in
"xz DEFAULT") $Splash -noappend -comp xz ;;
"xz MEDIUM") $Splash -noappend -comp xz -Xbcj x86 ;;
"xz HIGH") $Splash -noappend -comp xz -b 1048576 -Xdict-size 100% ;;
"xz HIGHEST") $Splash -noappend -comp xz -b 1048576 -Xbcj x86 ;;
"gzip DEFAULT") $Splash -noappend -comp gzip ;;
"gzip OLD") $Splash -noappend ;;
"NO COMPRESSION") $Splash -noappend -noI -noD -noF -noX ;;
esac
rm $WrkDir -r
Xdialog -center -title "SUCCESS!!!" --no-buttons -infobox "Operation completed, exiting now" 0 0 3000
exit