pieroproietti / penguins-eggs

On the road of Remastersys, Refracta, Systemback and father Knoppix!
https://penguins-eggs.net
374 stars 41 forks source link

Accidently tried to delete the /home/eggs/.mnt dir and broke my install #370

Open ZanzyTHEbar opened 2 weeks ago

ZanzyTHEbar commented 2 weeks ago

I was making a new iso, used this tool many times before and was fine, and i hit complete on the terminal completion without thinking (was late) - and ended up breaking the symbolic links to pretty much everything eggs was managing. I have no idea how, but when i attempted to remove the /home/eggs/.mnt directory everything borked and now my pc won't post.

Of course, i can boot from a backup - but i am wondering if there is a mechanism to fix this without having to reimage my machine. I have checked via a live cd - my disk is fine, partition is intact, and all of my files are present. It seems just hard links and symbolic links have been broken. Way too many to fix manually.

pieroproietti commented 2 weeks ago

Hi @ZanzyTHEbar

When eggs produces abn ISO, the entire filesystem is mounted --bind under /home/eggs/.mnt/filesystem.squashfs, deleting ./mnt risks deleting the disk as well. Normally the system rejects, displays mounts and exits.

To tell you more I would have to repeat the experiment on a VM.

Holy backup!

pieroproietti commented 2 weeks ago

Hi @ZanzyTHEbar

I tried to repeat your case:

I ran the command: sudo eggs produces, and waited until the entire filesystem was mounted under /home/eggs/.mnt/filesystem.squash.

At this point I ran - in another terminal - the command: sudo rm /home/eggs -rf.

The first time I aborted immediately after the first errors appeared, the second time I waited for the process to finish.

results

Both the first time and the second time, I successfully rebooted the system.

Warning: if you want to repeat the experiment do it exclusively on a virtual machine where you do NOT have data: the experiment can corrupt the whole system.

ZanzyTHEbar commented 2 weeks ago

I believe you - but that's not what happened for me. I spent the better part of today getting a new image up to speed.

pieroproietti commented 2 weeks ago

Of course, I just tried to replicate it and, I really was waiting to break the system.

I'm sorry for your problem.

Il dom 7 lug 2024, 20:29 DaOfficialWizard @.***> ha scritto:

I believe you - but that's not what happened for me. I spent the better part of today getting a new image up to speed.

— Reply to this email directly, view it on GitHub https://github.com/pieroproietti/penguins-eggs/issues/370#issuecomment-2212531921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHKBFK55FOKBRAPFX32PNDZLGCHRAVCNFSM6AAAAABKPHLP62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGUZTCOJSGE . You are receiving this because you commented.Message ID: @.***>