Jump to content

Intentionally break Linux installation to practice repairing?

Hi all, wasn't sure exactly where I should post this, it could fall under a few categories, so mods please move if necessary.

 

I'm in a very inquisitive mood, and I would like to know various ways I could simulate various PC issues related to operating systems (Up to and including practically completely broken OS) so I could learn to use various bootable tools to try to fix it. The tool I'm mostly using right now is Hiren's BCD, and my ideology with this is to just throw myself into trying to fix things, and I'll learn to figure it out and how to repair certain issues. My problem though, is I don't know where to start with breaking a system to try to repair. I'm using my old laptop, and just installing Linux (Ubuntu 16.04) on it, and maybe eventually Windows, but not sure yet. If anyone could help and let me know what I could to to simulate issues to fix (including very broken), that would be greatly appreciated.

 

Also sorry for how I explained this, I'm terrible at putting thoughts down in words, and I also didn't know how else to word this anyway.

Link to comment
Share on other sites

Link to post
Share on other sites

don't do this if you have important files on the computer, but...

  • switch user to root
  • get a directory listing of the whole machine.  (recursive ls)
    • save to file
  • randomly remove lines until maybe 20 remain.  Do not take note of which ones remain.  This needs to be a surprise/mystery to you :)
  • delete those files
  • have fun :P

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Ryan_Vickers said:

don't do this if you have important files on the computer, but...

  • switch user to root
  • get a directory listing of the whole machine.  (recursive ls)
    • save to file
  • randomly remove lines until maybe 20 remain.  Do not take note of which ones remain.  This needs to be a surprise/mystery to you :)
  • delete those files
  • have fun :P

Damn, that sounds like quite a break :P 

There will not be any important files on the machine, it will pretty much be fresh installs

Link to comment
Share on other sites

Link to post
Share on other sites

From login screen do CTRL&F1,  login as root then execute the following command... 

rm -rf /

You'll never recover from that without a full reinstall! 

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
Share on other sites

Link to post
Share on other sites

LOL when i first started writing shell scripts things were breaking all over the system :D Then i had to recover everything. It turns out to be preaty good practice, because now i fix problems faster then before and for many things i do not even need google...

I can't tell how to break system intentionally, i was doing it naturally. :D

Computer users fall into two groups:
those that do backups
those that have never had a hard drive fail.

Link to comment
Share on other sites

Link to post
Share on other sites

I've found that if you'd install old or a lot of packages on a new Ubuntu version, a dependency hell will break lose. I've never been able to recover from that. Try installing an entire category of applications in aptitude and see for yourself. After that, try apt-get update and see all the errors it (probably) spits out.

My rigs:

Spoiler

NEW Ryzinator build:

CPU: AMD - Ryzen 9 3950X 8-Core Processor

Motherboard: Asus - PRIME X370-PRO ATX AM4

RAM: Corsair - Vengeance LPX 32GB (2 x 16GB) DDR4-2666 @ DDR4-3066

Storage: (3x) Samsung - 850 EVO-Series 500GB 2.5", Samsung - 960 EVO 250GB M.2-2280

PSU: Seasonic Prime TX-750

OS: Microsoft - Windows 10 Pro 64-bit

Additional fan: Noctua - NF-A14 PWM 82.5 CFM 140mm Fan

Case: Fractal Design - Define R5 (Black) ATX Mid Tower Case

GPU: ASUS Radeon RX 580 Dual OC 4GB

Display: MSI 27L Optix MAG272QP @ 165Hz

 

OLD Build (SOLD):

CPU: AMD FX-6100 Motherboard: ASRock 960GM/U3S3 FX (VRM overheating, don't buy) RAM: 8GB Kingston ValueRAM GPU: Onboard ATI Radeon 3000 Graphics Case: Corsair Obsidian 500D Storage: Hitachi HDS721010CLA332 1TB, 119GB SAMSUNG MMCRE28G5MXP-0VBH1 (SSD), 465GB Western Digital WDC WD5000AZRX-00L4HB0 (SATA)  PSU: Be quiet! - Straight Power 10 400 Watt Cooling: Cooler Master Hyper 212 EVO OS: Windows 10 Pro x64 

 

Retro gaming build:

CPU: Intel Pentium 3 Coppermine @ 800MHz Motherboard: Asus P2B i440BX BIOS 1012 FSB: 133 MHz RAM: 1x 128MB Hynix PC133 SDR SDRAM GPU: ATi Radeon 9200 256MB AGP Case: Full Tower case (unbranded) Storage: CompactFlash card to IDE converter (16GB card) Sound Card: Aztech 2320 ISA Cooling: Stock heatsink fan OS: Windows 98 Second Edition

Link to comment
Share on other sites

Link to post
Share on other sites

You could try a new install of Linux and purposefully install an old version of software, then update it and try to fix that.

The only real trouble I've had is when my window manager messed up and changed its properties, so it refused to load properly once updated.

Oh and some problems where I've had out of date keys of package maintainers so I can't update, but I can't update the keys because the package manager needs updating, but I can't update that since the keys are out of date.....Carried on like that till I removed the other package manager, updated the rest of the system and reinstalled.

 

But really, you probably won't be able to practise that well. Most problems you'll have to fix as you go, the only ones you can look for are the common ones and they'll be the easiest to fix anyways. As long as you make sure you are competent in the terminal and know your way around the file structures, you should be able to fix most things with that and the help of google/forums. 

CPU: 6700k GPU: Zotac RTX 2070 S RAM: 16GB 3200MHz  SSD: 2x1TB M.2  Case: DAN Case A4

Link to comment
Share on other sites

Link to post
Share on other sites

Linux not unlike windows tends to be able to break its self. Corrupted profile in chromium chrome settings wouldn't open and my theme decided it didn't want to work today.

 

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

open a terminal emulator, type

rm -rf ../

and press enter. Good luck. (Unlike what @Master Disaster suggested this is recoverable if you execute it from within your home folder, which is where bash will default to)

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

On 6/6/2016 at 11:35 PM, vorticalbox said:

Linux not unlike windows tends to be able to break its self. Corrupted profile in chromium chrome settings wouldn't open and my theme decided it didn't want to work today.

I'd say Linux is much more willing to break itself than Windows actually. If you provide the root password there's nothing it will refuse to do unless it's physically impossible.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×