Slashdot Mirror


True Stories of Knoppix Rescues

Omniscientist writes "We've all been there: Our system is on the edge of death and we need to either fix it or retrieve important data that still remains hidden away in its dying clutches. LinuxDevCenter has a funny article on a heroic tale of a sysadmin relying on Knoppix to save the day. I for one, always make a boot disk in case of problems, but Knoppix can turn a bad day into a good one for just about anyone. Perhaps every administrator should have a Knoppix CD on reserve."

25 of 335 comments (clear)

  1. Offtopic by Anonymous Coward · · Score: 4, Insightful

    but how is this story "Hardware Hacking"?

  2. Well... by Blue-Footed+Boobie · · Score: 4, Funny
    I, for one, welcome our new bootdisk making...

    Aw, fuck it.

    --
    DAMN YOU OCTODOG! DAMN YOU TO HELL!
    1. Re:Well... by AceCaseOR · · Score: 5, Funny

      Don't you mean "fsck it"?

      --
      Zagreus sits inside your head, Zagreus lives among the dead, Zagreus sees you in your bed and eats you in your sleep.
    2. Re:Well... by Blue-Footed+Boobie · · Score: 3, Insightful

      ...maybe FDISK it?

      --
      DAMN YOU OCTODOG! DAMN YOU TO HELL!
  3. The obviousness by ZeeExSixAre · · Score: 5, Funny
    The article is well-summed-up in this gem here:

    I suppose the moral of this story is to be careful when you play around with the dd command and your MBR.

    DOY!

  4. I use it on crapped on WIndows boxes too.. by Anonymous Coward · · Score: 5, Informative

    works like a charm to save data on corrupted windows boxes..

    1. Re:I use it on crapped on WIndows boxes too.. by xanadu-xtroot.com · · Score: 5, Informative
      works like a charm to save data on corrupted windows boxes..

      1. INDEED! I've saved several millions of dollars worth of info by booting NT* servers with a Knoppix CD (or Gentoo before they dropped samba support from the live CDs). I was praised as a herald. Nope. It's not me. I just used the right tool for the right job. Recovering a Windows system with Windows is near impossible.


      2. Aside, I use Linux bootables (Gentoo mostly) for checking the life of my HDs. I run a Gentoo machine (installed near 3 year ago). hda has seen a LOT (even before I put Gentoo on it - it was an MDK drive after it was a Win* drive). I've noticed SMARTd telling me latley that his life may be running short these days, but, after a e2fsck, it's fine. /me shrugs. I still need to replace him regardless.

        It's only a 10G drive (I have 4 others, much larger, in this box), but he needs to be replaced soon.

        Aside, I've saved a LOT of Win* Servers / laptops / desktops with "Live CD's".
      --
      I'm not a prophet or a stone-age man,
      I'm just a mortal with potential of a super man.
    2. Re:I use it on crapped on WIndows boxes too.. by dasunt · · Score: 3, Informative

      I've noticed SMARTd telling me latley that his life may be running short these days, but, after a e2fsck, it's fine. /me shrugs. I still need to replace him regardless.

      Er, yes.

      SMART handles stuff such as "this drive takes several tries before reading the right data" or "this drive has remapped a lot of bad clusters lately". Its much more than filesystem integrety checking, and even if fsck is fixing your problems now, you might want to see why smart is pestering you.

      More Info

  5. what a coincedence by drunken+dash · · Score: 5, Funny

    i just burnt myself a cd of knoppix-3.8 the other day, for just this reason! although i've had no reason to use it (yet), im hoping my system starts acting up soon so i finally have an excuse to use it :P

    --
    Enjoy an e-piphany
  6. Damn Small Linux by tuxliner · · Score: 5, Informative

    In case you need a smaller, Knoppix based, distro : Damn Small Linux is much smaller and is very good as a system rescue tool too.

  7. I once saved the day with Knoppix by Rude+Turnip · · Score: 5, Interesting

    A co-worker was trying to salvage some files from a dying Windows 98 machine. Win98 was having the damndest time accepting a USB memory drive (even with the right drivers installed). Five minutes with Knoppix and all his important files (mainly family tree stuff) was backed up to the USB memory drive.

    1. Re:I once saved the day with Knoppix by advocate_one · · Score: 4, Interesting
      Christmas at my Daughter's house... her machine was playing up and I'd bought her a 256Mb USB Keydrive to use to keep her important data on...

      cut a long story short... how the heck do you install a USB key drive onto a win98 system that has no internet connection and the driver files are only to be found on the USB drive that win98 recognises as new hardware, but won't actually scan it for the drivers as it hasn't allocated it a drive letter yet... well, Knoppix saved the day and allowed me to get the drivers copied off to a fresh directory on her hard drive so that win98 could then find them...

      She now wants me to set it up dual boot for her as she was mightily impressed with how far Linux has come in the few years since she last played with it (Mandrake 7.2)

      --
      Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
  8. Other distros work, too by gardyloo · · Score: 4, Informative

    Not only Knoppix, but many of the new "live CDs" work very well for such rescues on hosed (Windows, and others) systems. I, myself, have used Knoppix, Mandrake, PClinuxOS and Mepis as rescue CDs (preferring Mepis, but that's just me), and I've seen Ubuntu, SUSE, and some others used in the same ways.

  9. Re:Why is this a story? by BaldGhoti · · Score: 4, Insightful

    Oh, come on, like you've never fouled anything up the first time you tried to play with it.

    --
    [insert witty sig here]
  10. Re:Why is this a story? by compro01 · · Score: 3, Insightful

    yes, but everyone does something profoundly stupid every once in awhile.

    Knoppix is good for fixing the problem, regardless of whether the problem was caused by an ID10T error or an OS crash.

    --
    upon the advice of my lawyer, i have no sig at this time
  11. Re:Why is this a story? by gardyloo · · Score: 4, Funny

    Yeah, but lotion seems to take care of that, after a little while.

  12. RTFM by BaldGhoti · · Score: 4, Informative

    He didn't make these mistakes on a production server either. The first was on his main workstation (not a server) and the second was on his laptop (also not a server).

    Really, if you wanna flame him, you'd be safer pointing out that this is just some guy dicking around on his home machine and managing to not scrag his mp3 collection thanks to the wonder of Knoppix.

    --
    [insert witty sig here]
  13. Re:Why is this a story? by geekman · · Score: 3, Informative

    I disagree. Every sysadmin I have ever known has made mistakes. Knowing how to bail yourself out is what makes you a great sysadmin. The person behind the previous post denies his/her own human qualities.

    One other thing.... avoid doing dangerous admin commands when highly stressed or tired. I once deleted an entire directory I didn't intend to because I forgot the directory was hardlinked to another location.

    As a result, 10 Virtual Servers, including a domain controller, suddenly blinked off. I had blown every one of them away in one misguided command.

    --
    Reality is Relative.
  14. My dead drive by superid · · Score: 4, Interesting
    I had a slave drive with about 4GB of family photos. This included years of photos of my kids, and many irreplacable photos of my wifes mother who has since passed away. [ this is known as foreshadowing ]

    I built a brand new system and took that drive out and put it into another XP system as a slave....no problems at all. Then we had a power failure. I have 9 computers in my house, many with several drives, every system was fine, with the exception of that one drive. XP decided that this drive was no longer formatted.

    I took my lumps from the wife and began to look into data recovery. I tried SalvageNTFS, ScroungeNTFS and a demo from OnTrack. I forget the actual status that each tool reported but suffice it to say that none of them were successful and I just moved on. I did keep the drive though. A few weeks ago I stuffed it into what is to be a new webserver and put in a knoppix live cd. *poof* got everything back...every photo was recovered.

    Can't explain it, but I'm keeping a Knoppix CD in my box of tricks from now on.

  15. INSERT by EnigmaticSource · · Score: 5, Informative

    If you're going to suggest a Knoppix-STD alternative, why not name one that's intended for data recovery and system restoration...

    The only recovery disks that I've found worth using are a custom gentoo based live-cd and INSERT

    Knoppix-STD or some other live disk is good for imaging and file recovery, but lacks real utility... like editing a windows 2000 registry, or doing vfat/ntfs hacking

    Go Ahead, try INSERT (and yes, i know it's Knoppix Based)

    --
    The Geek in Black
    I know my BCD's (when I'm Sober)
  16. Early one morning . . . by ManDude · · Score: 5, Funny

    I had always read about this happening to other guys, but never thought it would happen to me.

    I was coiming into work early Monday morning knowing I had to reinstall everything on the secondary email server that went down on Sunday. I thought I would be the only one in, but Suzie from accounting had come in early too.

    I always loved her emails when she needed some help. They were cheerful and she had clearly always researched the problem she was haveing rather than the normal "it just doesn't work".

    She came up and told me when she booted up the system it wouldn't get past the initial Windows boot screen. She was wearing a tight baby blue collared shirt with a short black skirt. No stockings and black high heals. She leaned low and as I was looking at her black bra said in a slow sexy voice - "Can you fix it?"

    That's when I pulled out my Knoppix . . .

  17. Re:DD and boot records? by Macrobat · · Score: 3, Informative
    Just out of curiousity, is there a way to use DD (or another utility) to make a copy of just a bootrecord.

    Oddly enought, I found out the answer to that last night (and I wasn't even asking about that particular problem):

    dd if=/dev/hda of=hda.mbr bs=512 count=1

    Got that from this site. So take their word for it, not mine.

    --
    "Hardly used" will not fetch you a better price for your brain.
  18. HOWTO: Recovering the root Password by soloport · · Score: 4, Interesting

    The mortgage broker, two floors up from us, was sold a "firewall/e-mail server that runs some kind of Linux". He was experiencing e-mail issues and tried to get the "vendor" to come out and service his "product". Unfortunately the vendor couldn't remember the root password to his own box. In addition, he wanted to charge the MB for more hours to re-install and configure it a second time.

    After NOT agreeing to the vendor's plan and showing him the door, the MB asked me if I could "crack into it" (yes, he actually used the right term). So... Knoppix to the rescue!

    The following procedure worked well:
    * 'mount' the HDD's main partition, rw
    * From a shell prompt, enter 'su -' (in Knoppix this just drops you in, with no p/w required)
    * Change the root passwd
    * Make a backup copy of HDD's /etc/shadow password file
    * Copy the line for the root user in the Knoppix /etc/shadow file
    * Paste it into the HDD's /etc/shadow file, replacing the old line
    * Profit.

    Also noted that there were no users created (the vendor had been logging into Gnome as root to do everything). So added an user account with sudo 'ALL=(ALL) ALL' rights, etc., etc.

    It was a strange way to find a new customer :-D

    1. Re:HOWTO: Recovering the root Password by SpaceLifeForm · · Score: 4, Insightful

      Caution on your fix to /etc/shadow. First, it's much easier to just edit the file and clear the password field. Secondly, your procedure could fail to make the shadow file usable (for root) if in fact the shadow file is not using DES encryption, but using a modern encryption such as AES. SuSE-9.2 supports that by default. So cut-and-pasting a DES password field into a file expected to contain an AES password is not going to solve the problem of an unknown password.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
  19. One More Important Thing by soloport · · Score: 3, Interesting

    Forgot to mention: BECAUSE of Knoppix, and its ilk, the servers we build and sell support loop-AES, exclusively!

    (i.e. When you go to mount the HDD from Knoppix, it looks like a bunch of garbage and Knoppix refuses to mount it).