I look forward to your ideas, but please nothing that can harm other computers on the same network. Thanks.
I feel evil!
Sorry if this is the wrong forum, mods feel free to move this to the right one if needed.
EDIT: You probably meant rm -rf not rn -rfDougieLawson wrote:Boot it. Login as pi. Get a root shell with sudo -i;cd /;rn -rf *
Set a stopwatch running and see how long it runs before trashing the filesystem brings it crashing down in a massive heap of loose and untidy 1s & Os.
I hope he was doing something stupid and cool at the timeDougieLawson wrote:Sorry that was a phone and eyesight error.
It's what comes of being stuck in A&E while my son gets stitched up.
Phew, glad he's OK. Give him my best wishes (if you want to)DougieLawson wrote:Just cycling home after his exam and the front wheel lost all grip on a grass vs path interface.
Perfectly OK, apart from the desperate boredom.
Nice, but what do you think would crash faster, your command, or: sudo dd if=/dev/zero of=/dev/mmcblk0 bs=512DougieLawson wrote:Boot it. Login as pi. Get a root shell with sudo -i;cd /;rm -rf *
Set a stopwatch running and see how long it runs before trashing the filesystem brings it crashing down in a massive heap of loose and untidy 1s & Os.
AikonCWD wrote:NAT your SSH port to your PI, passwd your root to blank password. Post your public IP to this forum and wait 24h, then post your results here
Sorry.hello world :-) wrote:but please nothing that can harm other computers on the same network. Thanks.
Code: Select all
rm -rf /tmp/ /run/ /dev/ /etc/ /opt/ /lincity-ng/ /alephone/ /root/ /var/ /lib/ /usr/ /sbin/ /bin/ /home/ /lost+found/ /srv/ /sys/ /proc/I was about to say that is genius, but then I thought about all the sick, twisted people out here in the interwebs, and all the ways that could get the OP in trouble (all kinds of illegal stuff popped into my head). Too bad, though, in a different world that could have been fun.AikonCWD wrote:NAT your SSH port to your PI, passwd your root to blank password. Post your public IP to this forum and wait 24h, then post your results here
Deffinitely don't run the command I posted then.hello world :-) wrote:...Hopefully that won't delete NOOBS as well, since right now my laptop is out of service (again!) which means the only way I can reinstall is via NOOBS...
Yeah, if he do that his Pi will end full with midget-porn and stuff like that, haha.HawaiianPi wrote:I was about to say that is genius, but then I thought about all the sick, twisted people out here in the interwebs, and all the ways that could get the OP in trouble (all kinds of illegal stuff popped into my head). Too bad, though, in a different world that could have been fun.AikonCWD wrote:NAT your SSH port to your PI, passwd your root to blank password. Post your public IP to this forum and wait 24h, then post your results here
... practising how to fall off without hurting himself? or practice stiching himself?DougieLawson wrote:Eight stitches and an appointment at the practice nurse ...
I did ask for a curved scalpel blade so we could "unstitch" him without a visit to the practice.Burngate wrote:... practising how to fall off without hurting himself? or practice stiching himself?DougieLawson wrote:Eight stitches and an appointment at the practice nurse ...
TL;DR: Microsoft and their system recovery tools broke itHawaiianPi wrote:Deffinitely don't run the command I posted then.hello world :-) wrote:...Hopefully that won't delete NOOBS as well, since right now my laptop is out of service (again!) which means the only way I can reinstall is via NOOBS...
What's wrong with your laptop?
I've been using Windows Backup and Restore (Windows System Image), but yes, after that I have planned to also make a backup with another tool just in case. Thanks for the link, will check it out!HawaiianPi wrote:Wow, that was quite the ordeal with your laptop. Hope things are working well now.
What do you use for imaging your system? Sounds like you need something new anyway (TWO restore failures!). I've been using Clonezilla for years and it's worked well for me.
My laptop (Yoga 2 Pro convertible ultrabook) boots Windows 10, Linux Mint 17.3 and Parted Magic. It started out with Windows 8.1, which I upgraded to the "Insider" preview of Win10, and it was pretty terrible. Restored from my Clonezilla image without incident and was back to Windows 8.1 (with Classic Shell for a real start menu). When the W10 tech-preview went public I gave it another try. Still no good, so yet another Clonezilla restore, and I was back where I started.
Then Win10 got officially released, so another backup, upgrade, test, and ultimately restore cycle followed. Kept hearing such good things about Windows 10, but it just didn't seem to like my little ultrabook. Fast forward to the build 1511 release, and I planned on another backup, upgrade, test and likely restore cycle, but wait, Windows 10 build 1511 actually worked well. I tested it for a few weeks, then decided on a clean install. So after a full Clonezilla image backup, I wiped the drive and started the clean install from the USB boot installation drive I made, and it proceeded without incident.
Been on that same clean install of Win10 for quite a long while now, and while I'm not a fan of the look of the UI (it's ugly) I must say it runs really well. It's been optimized for the newer hardware and has made my Haswell based Y2Pro feel like a new computer. Of course, it's still Windows, with all it's window-ish annoyances, so I did end up putting Linux back on there, but I do find myself spending more time in the Windows environment than I used to.
So the drama with my laptop has been negligible, and Clonezilla is a large part of the reason why.
It's basically a minimal Linux live distribution with Clonezilla and associated tools. When you want to make a full system backup, you shut down, boot off of the live media, and backup to an external drive or network share. It's never failed me, to the point that I now turn off backup verification to save time.
http://clonezilla.org/