Slashdot Mirror


System Recovery with Knoppix

An anonymous reader writes "This article shows how to access a non-booting Linux system with a Knoppix CD, get read-write permissions on configuration files, create and manage partitions and filesystems, and copy files to various storage media and over the network. You can use Knoppix for hardware and system configuration detection and for creating and managing partitions and filesystems. You can do it all from Knoppix's excellent graphical utilities, or from the command line."

20 of 270 comments (clear)

  1. So weird... by TheApocalypse · · Score: 4, Interesting

    Just two days ago I just had to use Knoppix to recover my system after a failed attempt to upgrade the kernel. Very good to have as a recovery tool.

    1. Re:So weird... by Anonymous Coward · · Score: 1, Interesting

      Using knoppix is easier than using other tools that are all command base. It's even better when you can burn your files to CD.

      And juding by your logic, if you have to use a boot floppy to fix your system then you're probably the cause of the break in the first place.

    2. Re:So weird... by rebeka+thomas · · Score: 1, Interesting

      And juding by your logic, if you have to use a boot floppy to fix your system then you're probably the cause of the break in the first place.

      No, if someone is using a floppy then they have the sense to use the tools appropriate for the job, and are not likely to head crying for the nearest GUI. It's people like that who are more likely to have broken a system in the first place than those who know what they're doing, which leads me to wonder; should they be using a computer at all?

      --
      RST
    3. Re:So weird... by Anonymous Coward · · Score: 5, Interesting
      Does not compute. Why didn't you copy your new kernel as a different name in your /boot directory and add a new lilo.conf entry (if you are using lilo) and then run lilo? Even if you can't boot, most Linux installation cds allow command line boot parameters something like
      :boot /dev/hda2 linuxtest (linuxtest being /boot/linuxtest)
      On a side note, Linux install cds or apps like Knoppix are excellent tools if you are forced to administer a Windows server. It should be no suprise that a boot with the ntfs driver is vastly superior to the Windows Recovery Console. But suprisingly, the ntfs driver is robust enough that it can access hard drives that Windows will spit out saying a hardware error has occurred. Saved my ass twice already.
    4. Re:So weird... by typobox43 · · Score: 4, Interesting

      But suprisingly, the ntfs driver is robust enough that it can access hard drives that Windows will spit out saying a hardware error has occurred. Saved my ass twice already. Amen to that. It's the only reason I have any data left off of a hard drive that failed a few months ago. While the data was copied at a disgustingly slow pace to my USB flash drive, it was preserved, even when Windows refused to even boot off of the drive.

    5. Re:So weird... by olderchurch · · Score: 2, Interesting

      Maybe off-topic, but I had the same problem yesterday. Got an error when trying to get a dhcp address. The trick was in reinstalling TCP/IP (at least for me). Firewall settings corrupted the stack , but don't know what precisely what I did to deserve this. To install the TCP/IP again, go to your interface properties and choose install and select add protocol. Use the have disk option and select \windows\inf dir. There should be a tcp/ip protocol there, which will allow you to reinstall it.

      Hope this helps next time.

      --
      Disclaimer: This opinion was created without the use of any facts
  2. So do other distros by Anonymous Coward · · Score: 1, Interesting

    Don't most distributions provide a boot disk to give you the kind of access you need?

  3. What I like... by zoloto · · Score: 4, Interesting

    Is that IBM has done this, right off their own website and helping the system admins, techies and anyone else interested in learning how to fix your defunct or otherwise broken system.

  4. Just used Knoppix... by dbCooper0 · · Score: 4, Interesting
    ...with Samba to copy shit off a dead-in-the-water winderz 98 box. Pest Patrol had found 3,212 nasties on the box in question. I retrieved enough data to not worry about a crash on a re-install of winderz 98. I'm thinkin' of puttin' them up to win2k, but WTF, they're not payin' that much. (they have an XP License, FWIW)

    Tbe Knoppix Distro has been helpful at this point - and I'm glad that I kept it around, because I needed to get these people's email transferred without much hassle

    --
    db
    Cig:
    ôô
    /`
  5. Toolbox by RealProgrammer · · Score: 5, Interesting
    In my bag, I always carry:
    1. Knoppix
    2. Windows Usual Stuff
      • MS service packs
      • Antivirus / Ad-aware
      • Putty, Ghostscript
      • Cygwin installer and scripts
    3. Solaris patches / packages / scripts
    4. 64MB compact flash card / USB reader
      (Mini Usual Stuff)
      • MS monthly patch of the week
      • Antivirus / Ad-aware
      • Putty
    5. Leatherman and mini-nutdriver set
      1. It's been a long time since I've needed anything else. I used to carry a Trinux CD, but now it's Knoppix.

        I use the compact flash card because it fits in both my camera and my PDA.

    --
    sigs, as if you care.
  6. MEPIS rocks for this too... by Fnkmaster · · Score: 4, Interesting
    Yes, I'm distro whoring here. Personally, I'd recommend MEPIS over Knoppix. Knoppix is fine as a boot disk, but MEPIS is by far the easiest-to-use distro and most overall enjoyable to work with that I know of. MEPIS started as a bootable CD, but it's grown into a full-fledged Debian-based distribution now, and I'd say a good 80%-90% of MEPIS users now use it as their primary distribution, not just a rescue disk or "Linux test" distro.


    No, I'm not a weenie who needs things spoon fed to them, I've been using Linux since long before it was cool or chic, starting with Slack back in '96, then RedHat, then Mandrake. After Win2k came out I moved back to using Windows for most of my day-to-day desktop needs (now mostly Win XP), but recently I've installed MEPIS on my laptop and I find it quite enjoyable to use. The things that stand out to me are 1) fabulous hardware compatibility, including out of the box support for almost every component of my Dell Inspiron 8500 laptop, with NVidia GeForce4 Go graphics and so on (I did have to make a quick manual edit to XF86Config-4 to get widescreen support, and my Microsoft MN-720 802.11b card took about half an hour of screwing around to get running, but ndiswrapper was already there, I just had to find the right driver version and run it.


    Okay, that's all the ranting I can do for now. Did I mention that MEPIS makes a great recovery CD? That's how I first discovered it. Give it a try, funny name aside.

  7. Re:Yes, you can: knx-hdinstall by Fnkmaster · · Score: 4, Interesting
    True, but MEPIS has pretty much been built from the beginning as a dual purpose distro (bootable CD / rescue disk, and full-featured distro), and has a wide community of day-to-day users now (check out MEPISLovers.com. There's probably nothing you can do with MEPIS that you can't do with Knoppix, and vice versa, but I still think Knoppix is first and foremost a rescue disk and "Linux intro" CD for newbies. MEPIS is the new Mandrake, and has basically been able to take mindshare by working with the (IMHO) superior apt-get system, and providing the best, most working hardware support out there.


    In theory, URPMI is fabulous, but in practice, I've had far, far better luck keeping a clean, consistent system without weird, incompatible RPMs and other stuff mucking up my install when using MEPIS, and find I almost never have to go outside of the pre-configured repositories. And Mandrake's lack of working out of the box Nvidia support (at least as of the last version I used, probably a year and a half ago) killed it for me. MEPIS is the first distro I've been able to use extensively without encountering some hitch that required a kernel recompile.


    Don't get me wrong, I have been doing Linux kernel compiles since around '96 (when I was a freshman in college, and I thought compiling the kernel was pretty 3733+), but I just don't want to screw around with that stuff for a day-to-day use desktop system. Custom compiled kernels for special purpose server boxes is fine, but it just doesn't fly for a desktop distro for me - I want to get work done, not screw around with kernel settings.

  8. You mean linux NTFS support... by msimm · · Score: 3, Interesting

    Last I heard write was still experiencing random failures, not that it matters for data recovery.

    But I'd recommend using this to work on/repair Windows computers. You get read/write (its really just Windows, so..) and a lot of crap can be repaired with a virus/adware scan (or two). If your comfortable enough with Windows there really isn't much you can't recover from once you can read the disk (sort of a complete hardware failure).

    As a side note, it also reads ext2 and 3. Handy for working on your friends dual-boot systems too.

    Personally, I carry on of these and either Knoppix or an older Gentoo live disk.

    --
    Quack, quack.
  9. Re:Oldie but a goodie by Soko · · Score: 4, Interesting

    Even better, go get this book:

    http://www.oreilly.com/catalog/knoppixhks/

    I know the author - he is what IMHO most would call an "uber hacker", when it comes to Linux in general.

    Highly reccomended.

    Soko

    --
    "Depression is merely anger without enthusiasm." - Anonymous
  10. ntfsclone by phrasebook · · Score: 2, Interesting

    Where is ntfsclone in the latest KNOPPIX? I tried version 3.4 I think it was - couldn't find it anywhere, so had to revert to 3.3. There was an ntfsprogs package but it didn't seem to include all the tools. That's all I use KNOPPIX for - making an image of my Win2K partition.

  11. Tom's by grolschie · · Score: 4, Interesting

    Tom's Root Boot" is the only Linux boot CD needed to fix a Linux system. Although I use Knoppix occasionally to test hardware.

  12. Re:Security?!?!? by cowens · · Score: 3, Interesting

    Without physical security you have no security at all. I don't even need a boot disk to root your linux box. When the box hits the LILO or Grub protion I can interupt the boot and add "single" to boot options of the kernel. The machine will now start in single user mode (which does not require the root password). I can now make a back of shadow password file, change the root password, and telinit(8) to whatever level your distro uses for network connectivity. I can then upload your "sensitive" files to box I own. To civer my tracks I can remove my presence from all of your logs (or if I was smart, just restore backed up version of logs), restore the shadow password file, touch(1) all of the files back to their original mtimes, and voila.

  13. Re:One thing your missing.. by Anonymous Coward · · Score: 2, Interesting
    If a Windows client breaks to the extent that it needs a bootable CD to fix, I wipe it. Users know this drill.

    I bet that keeps them from actaully bothering you with problems, since it seems at the drop of a hat you'll erase their hard drive on them. Good on you, mate!

  14. Knoppix Hacks by StoneTable · · Score: 3, Interesting

    Knoppix can do that and a whole lot more.

    Knoppix Hacks

    Virus scanning, emergency router, write to NTFS, even fire up a mythtv box.

  15. IBM slashdotted? by Pan+T.+Hose · · Score: 2, Interesting

    Our apologies...

    The IBM developerWorks Web site is currently under maintenance.
    Please try again later.

    Thank you.

    Wow... We slashdotted IBM! But to the point: I wonder what is your experience. What is better for system recovery? Standard Knoppix which is a general purpose desktop system meant to be an impressive demonstration tool but lacking many security programs, or some specialised versions like Knoppix STD or Local Area Security which have more tools but are kind of "script kiddie friendly" and look very unprofessional with their Martix themes, leet-speak, "proving no localhost is safe" slogans etc. making them look more like intrusion than recovery tools? Or maybe Morphix is the answer thanks to its ease of customisation and apt-getting new packages on the fly? Do you have any Real World(TM) experience?

    --
    Sincerely,
    Pan Tarhei Hosé, PhD.
    "Homo sum et cogito ergo odi profanum vulgus et libido."