Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

System Recovery with Knoppix

michael posted more than 10 years ago | from the useful-info dept.

Linux 59

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."

Sorry! There are no comments related to the filter you selected.

knoppix rules (3, Funny)

shaitand (626655) | more than 10 years ago | (#7330493)

At the very least it never ceases to amaze the windows geeks.

Re:knoppix rules (2, Funny)

pizza_milkshake (580452) | more than 10 years ago | (#7330723)

best. livecd. ever.

Re:knoppix rules (1)

JBv (25001) | more than 10 years ago | (#7330965)

I love knoppix!!!!

Instantly convertes any stupid pc into a complete workstation.

It's just that good.

Re:knoppix rules (1)

dimator (71399) | more than 10 years ago | (#7331217)

I burned me a knoppix cd last week, version 3.3. OpenOffice refuses to start. The OO logo comes up, but nothing else. Does anyone else have this problem? I would think they would test that before they released an ISO...

Re:knoppix rules (0)

Anonymous Coward | more than 10 years ago | (#7331279)

I ran 3.3 on about two machines of mine, didn't have this problem.

How much RAM do you have?

Re:knoppix rules (1)

Feztaa (633745) | more than 10 years ago | (#7332740)

I seem to remember having the same problem, but I think it does start, it's just very, VERY slow. Remember, this is OpenOffice, which is a slow loader to begin with, plus it has to be decompressed first, which is slow, and it needs to be read from a CD, which is also slow.

Try having some more patience, I think it does actually load eventually.

Re:knoppix rules (0)

Anonymous Coward | more than 10 years ago | (#7342040)

Did you run a checksum on the iso before your burned it or is your cd scratched?

KNOPPIX TESTCD (1)

Domo-Sun (585730) | more than 10 years ago | (#7375339)

Run knoppix testcd at the SYSLINUX bootprompt to verify the integrity of the cd. Hit F2 for short list of other options [knoppix.net] . E.g., knoppix dma will enable DMA, and knoppix fluxbox will use the fluxbox wm.

Re:knoppix rules (1)

Feztaa (633745) | more than 10 years ago | (#7332685)

Yeah, knoppix is great. I brought it over to a friend's house once, and we booted it on his roommate's WinXP box that we didn't have a login for... we mounted his drive and read all his files anyway. We found his stash of porn, it was hilarious :)

Re:knoppix rules (1)

jmccay (70985) | more than 10 years ago | (#7334307)

I have been playing with knoppix for a while, and I have been impressed. I can run it from a bootable CD. Nothing needs to be installed,a nd it didn't have problems with hardware. It will come in handy the next time a family members PCs crashes to recover files (especially the laptops). That's my primar reason for using knoppix.

Re:knoppix rules (1)

ottothecow (600101) | more than 10 years ago | (#7344688)

I love knoppix and use it on several computers of mine (and mostly on computers belonging to others) but it wont run on my new athlon-64 (with the ASUS mobo...K8V deluxe)

If anyone can tell me what to exclude on boot I would be very happy indeed. It will boot in failsafe mode and it tends to hang after loading the APM drivers (booting with noapm does not solve the problem.) Any ideas would be great!

Why don't you (2, Funny)

Anonymous Coward | more than 10 years ago | (#7330519)

Why don't you use Windows Emergency Repair disks, you GNU hippies? Or fine CD-ROM support that comes with Windows(r) Recovery Console? [microsoft.com]

Re:Why don't you (4, Insightful)

stefanlasiewski (63134) | more than 10 years ago | (#7330861)

Why don't you use Windows Emergency Repair disks, you GNU hippies?

Because I'm lazy. Why use 4 floppies, which only contain a small number of utilities, when I can just use a single CD-ROM with zillions of powerful utilities, network access, etc.

Also, with 4 floppies, I've always found that one of the four disks will be corrupted when I try to use it.

With Win98, I kept 2-3 emergency disks lying around just in case one disk was corrupt. The same strategy for Win2K would require 8 or 12 disks disks.

Re:Why don't you (5, Informative)

pulu (662388) | more than 10 years ago | (#7332332)

You might think about This CD [nu2.nu] for windows.... I used Knoppix all the time, but the lack of good NTFS support in linux constantly gets me down. This guy is XP/2003 based, and does pretty much the same thing. You can virus scan too, which windows loves.

Re:Why don't you (1)

BrookHarty (9119) | more than 10 years ago | (#7332744)

Yes, that guy has some great programs, Barts Boot Floppy (or CD), and the Barts Windows PE boot cd.

Both are great, I use Barts boot cd to boot a system, mount a SMB share, and ghost the HD over the network. Great way to backup a system (or linux ext2) to a server. I normally do then when upgrading laptops, takes about 5 minutes of my time, the rest is save/restore time over the network. Its really that easy, boot, use dhcp, mount z: \\server\share in dos, load ghost, save to partition to z:, put in new HD, then restore the image. Great for backups also.

He even has SSH/SCP for the boot disks. While Linux is good, this is the key for getting ghost to work over a network without touching the OS on the machine.

Now if I just had a Ghost type program for linux that did ReiserFS & NTFS, I'd be a happy computer geek.

Knoppix is great (3, Interesting)

forsetti (158019) | more than 10 years ago | (#7330589)

Many people in my Windows-based office walk past my Gentoo desktop, wondering what I'm running. When they see how well it works (no viruses, no reboots, lots of tools available), they want to know how hard it is to install. Of course, Gentoo is not for the beginner. But, I've been handing out Knoppix CDs left and right. People love it!

Re:Knoppix is great (0)

Anonymous Coward | more than 10 years ago | (#7330849)

You are either full of shit or work for a tiny company. I think that most people realize that employees cannot just install whatever the fuck that they want on their at-work computer.

Mental illness alert! (0)

Anonymous Coward | more than 10 years ago | (#7330874)

Anger problem in parent post.

Re:Knoppix is great (0)

Anonymous Coward | more than 10 years ago | (#7330936)

Knoppix doesn't require installation. You work for nazis. I have installed whatever I want ( although the sysadmin usually feels free to tell me to re-install the original before he will help me ) at several companies with more than 100 employees.

Re:Knoppix is great (1)

shaitand (626655) | more than 10 years ago | (#7334373)

If it were my network you wouldn't even be able to install a screen saver, let alone an OS. You also wouldn't have cd-rom access, if you want something off a cd, you submit it to me, wait for me to get time to review it, if I deem it acceptable then you can access the cd via a nfs share. You wouldn't be able to boot knoppix at all. Then again if it were a network I administer you'd probably already be running linux ;)

Re:Knoppix is great (1)

base3 (539820) | more than 10 years ago | (#7334689)

And that's precisely why I don't work in your company. Seig Heil!

Re:Knoppix is great (1)

shaitand (626655) | more than 10 years ago | (#7334825)

Damn right, it's a business network I'm responsible for making as secure as possible from inside and out. This most assuredly IS a dictatorship and not a democracy.

Re:Knoppix is great (0)

Anonymous Coward | more than 10 years ago | (#7336693)

I hope you work for a bank or something, and not some business that doesn't actually handle sensitive information.

Re:Knoppix is great (1)

base3 (539820) | more than 10 years ago | (#7336742)

And all this "secure as possible" stuff applies to you and your admin buddies, right? Right?

Or is it just like every other dictatorship, with one set of standards for the plebes and another for the ruling class?

Re:Knoppix is great (1)

shaitand (626655) | more than 10 years ago | (#7336844)

It applies to our workstations yes. Obviously I've got access to everything (kind of helps for the administration part), but my regular workstation is as locked down as everything else.

Re:Knoppix is great (1)

darnok (650458) | more than 10 years ago | (#7336170)

The trick with Knoppix is that you actually boot off the Knoppix CD - unless you've configured the BIOS to prevent this, and password protected it, and there's no way of resetting the BIOS password, you're powerless to stop people booting Knoppix unless you physically remove the CD drive from the box.

It's a security risk if you store any sensitive files on the user's system - no doubt about it. On the other hand, it's God-like when it comes to recovering data from non-booting Windows boxes.

Re:Knoppix is great (0)

Anonymous Coward | more than 10 years ago | (#7342082)

In other words, you have to put a big honkin' physical lock on the box.

Re:Knoppix is great (3, Funny)

Anonymous Coward | more than 10 years ago | (#7331052)

Linux geek? Running Gentoo? Employed? Communicating with colleagues?

Ah, gimme a friggin break. There are so many lies in this brief paragraph I wouldn't know where to start.

Re:Knoppix is great (2, Insightful)

Brandybuck (704397) | more than 10 years ago | (#7332304)

They can see that you have no viruses just by walking past your desk? Wow! How bad of a virus problem do you have at your place!

Re:Knoppix is great (0)

Anonymous Coward | more than 10 years ago | (#7335425)

I hate to break this to you, but you know, that world where you are gainfully employed and where people actually speak to you? It exists only in your imagination.

Why no SuSE? (2, Insightful)

BrookHarty (9119) | more than 10 years ago | (#7330702)

SuSE also has a live CD, which is pretty good (IMHO) the KDE desktop is a little more polished than Knoppix. Cant say I used either as a full time desktop thou, so not sure how they rank. And couldnt get the Gentoo live game CD's to work with my ATI 9700 pro.

Also, IBM owns 20% of SuSE, thought they should push it.

Re:Why no SuSE? (1)

pr0c (604875) | more than 10 years ago | (#7331193)

Why no SUSE (yes all caps now ;x)? Last I checked you had to still do a FTP install and can't use a livecd for the base packages. Knoppix if you like it.. install it with a few simple steps in a very short ammount of time.

Re:Why no SuSE? (0)

Anonymous Coward | more than 10 years ago | (#7332649)

Why no SUSE (yes all caps now ;x)? Last I checked you had to still do a FTP install and can't use a livecd for the base packages. Knoppix if you like it.. install it with a few simple steps in a very short ammount of time.

hehe, SuSE is the proper name. ;)

Re:Why no SuSE? (1)

pr0c (604875) | more than 10 years ago | (#7335475)

Its been a month or longer since SUSE changed their name to all caps. Visit their site, visit distrowatch and maybe its else where. It will make a huge sales impact if you start calling it SuSE instead of SUSE... do you want to be the one responsible for screwing up their sales plan!

Re:Why no SuSE? (1)

Spoing (152917) | more than 10 years ago | (#7334136)

Also, IBM owns 20% of SuSE, thought they should push it.

If they did, they would loose credibility. Besides, IBM -- and SuSE -- benifits from more contracts that aren't MS-only since that leaves them open to non-MS possiblities. (insert 200 line explanation that you probably know already)

Well.. (0)

tananda (85834) | more than 10 years ago | (#7330918)

Their official site, (www.knoppix.org [knoppix.org] boldly states: "In the next few days, the European Parliament will decide about the legalisation and adoption of so-called "software patents" in Europe, which are already used by large companies in other countries to put competitors out of business. This can lead to the termination of many software projects such as KNOPPIX..."

So, I'm gonna stick to my own home-made rescue disks for the time being, tyvm.

Re:Well.. (1)

shaitand (626655) | more than 10 years ago | (#7334386)

boy that is pretty outdated, the European Parliment already legalized software patents.

AKA....How to hax0r a box you have physical access (0)

Anonymous Coward | more than 10 years ago | (#7331055)


Script kiddies, enjoy.

Rescuing data from a broken machine (3, Interesting)

RGRistroph (86936) | more than 10 years ago | (#7331179)

Knoppix is very useful for getting your data out of a broken computer, prior to re-installing or replacing the harddrive outright.

I made a floppy based linux especially for this purpose: http://rgr.freeshell.org/flinux/escape/ [freeshell.org] . However, if you have a network, it is probably easier to use Knoppix to copy the data over the network rather than burn it to a cd. Note that Knoppix does have cdrecord and mkisofs on it; if you can boot knoppix from one cd drive, and have another to access as a burner (say an external USB cd burner) then you can save your data that way. Knoppix is better than my floppy setup, unless you have no network, and only a cd burner and no other CD device to boot from. Knoppix also supports more filesystems and hardware than I can fit on a floppy or care to deal with.

Timo's Rescue CD is another good one (2, Interesting)

Loualbano2 (98133) | more than 10 years ago | (#7331237)

Another good live boot cd is Timo's rescue cd:

http://rescuecd.sourceforge.net/

It's got a lot of drivers (as modules), ext2 (which should work on ext3) undelete utilities, and all the daemon and client utils you could want. It's great for non-booting laptops that need to have data dumped off of them so you can reload the OS (something that happens a lot).

One thing it doesn't do is autodetect everything like Knoppix does, and it doesn't have X, but it does fit on a minicd where Knoppix does not.

-ft

Tomsrtbt anyone? (1)

phaze3000 (204500) | more than 10 years ago | (#7331327)

Knoppix seems like a massive overkill for this task. Personally I've been using tomsrtbt [toms.net] for this job for some time, and I don't expect to be switching to Knoppix anytime soon. Admitedly it doesn't have any of the graphical fluff, but quite frankly if you need graphics to get into the system I very much doubt you're going to be able to fix it once you're in anyway.

Knoppix is great, but it's a ten-tonne anvil doing the job of a nut-cracker in this situation.

Re:Tomsrtbt anyone? (1)

Psiren (6145) | more than 10 years ago | (#7332053)

Pretty small set of utliities there though. I'm sure it has it's place, but I can use Knoppix to boot and fix pretty much any machine, with stuff like RAID and plenty of network cards supported. Plus I have ssh and scp, which is damn useful for backing up stuff quickly. Not to mention floppy disks crap out just when you need them.

Re:Tomsrtbt anyone? (1)

Hubert_Shrump (256081) | more than 10 years ago | (#7332436)

note that you can boot right into a CLI if you use 'knoppix 2' at the boot prompt.

really - if the computer boots from CDROM, you've got a much richer toolset (and manuals) than tom's.

The best tool :) (5, Informative)

hunte (455338) | more than 10 years ago | (#7331600)

I'm a very happy Knoppix user, IMHO is the final swiss knife!

Here a small list of very powerful features:

- NTFS (safe read only) support + all FS support
- the linux fdisk
- qtparted for working with partitions (like Partition Magic, but GPL)
- partimage (like Norton Ghost, but GPL)
- the cool LinNeighborhood (for easy windows/samba usage)
- diagnose all hardware with the knoppix auto-detect kernel
- all the best network diagnosis tools (nmap, nessus, tcpdump, ethereal, etc)
- vim
- kde
- easy support of external usb2/firewire external drives
- 1174 packages on a single autoboot CD

(is present a DVD version too on ftp!!!!!)

A nice link -> http://www.shockfamily.net/cedric/knoppix/ [shockfamily.net]

Re:The best tool :) (1)

halfnerd (553515) | more than 10 years ago | (#7333922)

I have nothing against qtparted but I think that it isn't a good idea to remove parted altogether. I'd certainly like to use it from the command-line, because some of the computers that I can fix using knoppix don't have the power to justify using X11.

Re:The best tool :) (1)

karevoll (630350) | more than 10 years ago | (#7336556)

There's also a version similar to Knoppix which uses Gnome instead of KDE as its window manager.

And guess what it's called?

You got it right: Gnoppix [gnoppix.org]

Does not boot my machine (1)

FedeTXF (456407) | more than 10 years ago | (#7331773)

I got Knoppix to boot the PC I run at work, but my home PC does not boot Knoppix.
I get to the point it starts the XServer, then the screen gets all black and the CD unit stops making noise and the light blinks in a repetitive pattern. The keyboard does not work and I have to hard reset the PC.
I tried sending the noscsi and the noagp arguments.
Even the expert mode, with no changes.
Before hanging, the PCI video board seemed to be detected correctly as well as the monitor.

Re:Does not boot my machine (0)

Anonymous Coward | more than 10 years ago | (#7334688)

Can you start with "knoppix 2", this boots into a command shell instead of KDE. If this doesn't work your system *really* has troubles..

Re:Does not boot my machine (1)

Sepper (524857) | more than 10 years ago | (#7334737)

"the light blinks in a repetitive pattern."

It's called a Kernel Panic.

Not sure what could cause this, tought.

What (1)

Loosewire (628916) | more than 10 years ago | (#7332594)

What do you mean 'shows how to' its obvious and knoppix recognises your drives settings automatically.

Knoppix saved me twice (2, Informative)

Experiment 626 (698257) | more than 10 years ago | (#7332882)

Over the past few weeks Knoppix has gotten me out of a couple tough spots.

First, I was setting up RedHat on my laptop. Unfortunately, RH9 came with no drivers for my ethernet or wifi. No problem, I'll just go online and... Uh oh, Catch-22, I can't download network drivers till I get online. Fortunately, Knoppix recognized the ethernet card and got me up and running, I downloaded to the hard drive, rebooted to RedHat, and set it up.

True, I could have also solved that using sneakernet / USB drive / whatever, but the next time Knoppix helped me it was more indispensable. I was adjusting my LILO settings and came up with a conf file that ran just fine in lilo, but caused a kernel panic every time I booted with it. No rescue disc either, being a floppyless computer. I booted Knoppix, fixed the lilo.conf, mounted my /boot partition, and made a working bootloader.

Anyway, Knoppix is good to have around. When something is messed up, it will get you up and running, see all your files, and see most of the hardware out there too. Plus of course the obvious Linux evangilism uses.

SystemRescueCD has saved me already (1)

BlueLightning (442320) | more than 10 years ago | (#7333685)

While I have used Knoppix, where I needed to recover data I've used SystemRescueCD [systemrescuecd.org] , and as my main drive has just died (the second one this month!) I'll be using it again shortly. It's based on the Gentoo LiveCD, is less than half the size of Knoppix, and contains all the utilities you need for rescuing and repartitioning (Partimage, parted/QtParted, fdisk, sfdisk, dd_rescue, plus all the usual stuff). Granted, it's not as friendly as Knoppix for the uninitiated as it just dumps you at a prompt after auto-detecting everything, but in any case you really have to know what you're doing to recover a system in this way so I don't think that's an issue.

I've written a small article [gentoo.org] in the Gentoo Docs forum about recovering my system using the CD.

Missing nForce(2) NIC support (1)

Alan (347) | more than 10 years ago | (#7333800)

One thing that KNOPPIX is missing, probably for legal reasons though, is support for nforce video network cards. Lots of MBs these days are the sort with only 1 nforce NIC on it, and not having net when booting up my new box with KNOPPIX is a bit of a pain.

Knoppix vs. Morphix (2, Interesting)

jbolden (176878) | more than 10 years ago | (#7334419)

Rather than the "Knoppix" is great which everyone agrees with I was wondering if any Morphix users out there can contrast the two.

Great for system restore, or windows copy. (1)

phorm (591458) | more than 10 years ago | (#7340864)

I'm a happy morphix user. They've got distros with games (linux games incl on disc), for games (Wine for windoze games configured), and for general light/heavy GUI stuff. I've passed out a few Morphix LightGUI discs at work. They came in most handy when two servers inexplicably had /usr and /etc nuked by a script following bad symlinks. Bootup up, got on the net, mounted drives (SCSI even), and copied the files from another very similar machine with no fuss.

I've also used it to copy over a bad windows drive to a good one, mounting both drives and doing a good ol' "cp -vfr /mnt/hdb1/* /mnt/hda1" (wonder if "dd if=/dev/hdb1 of=/dev/hda1" would work too?). Otherwise, I'd have to hook both up to a windows machine with a third bootable drive in order to avoid "file in use" errors.

Re:Great for system restore, or windows copy. (1)

ThatComputerGuy (123712) | more than 10 years ago | (#7353558)

"dd if=/dev/hdb1 of=/dev/hda1" can work, but if for example hda1 is larger than hdb1, it will be truncated to the hdb1's length. Also, if you have any fs errors, they'll copy straight over to hdb1. It's a better idea to use something like cp -a or rsync, that way you can easily verify what's been copied if you have to abort sometime.

Re:Great for system restore, or windows copy. (1)

phorm (591458) | more than 10 years ago | (#7354030)

Haven't tried rsync, but "cp -vfr" works nicely, don't need -a really since I'm just copying winblows drives.

The drive truncation was what I was figuring what would happen, but thanks for confirming (although in some cases I've noticed that winblows doesn't properly recognise when 'nix resizes its partitions).

Knoppix Problems (-1, Troll)

Anonymous Coward | more than 10 years ago | (#7335299)

I decided, after hearing so much about Knoppix and how it could get me into using Linux without all the fuss (partitions? what? geez) I thought I'd give it a go.

I was not impressed to say the least.

I booted the operating system and then started work on an essay on the ontological beliefs of Heraclitus of Ephesos. First of all starting OpenOffice.org ('.org' at the end of an application name? What's with that?) took incredibly long. I could have installed my copy (yes, it's legit and paid for) of Windows Millenium Edition in the time it took to boot Knoppix and start OpenOffice.org. Anyway it was to my surprise that even though I saved this file to my 'Desktop', the next time I booted Knoppix it was nowhere to be found. So now my philosophy 521 paper was missing -- needless to say I booted into Windows Millenium Edition (where files don't just god damned disappear) and rewrote the paper, printed it (couldn't get that working in Knoppix either) and haven't looked back.

I really like the idea of cooperation and open source software, the community idea seems really neat, and I hope these guys get their stuff together so regular guys like me can use this software at the efficiency and reliability that professional software offers.

Whats wrong with a kernel boot disk? (1)

Viol8 (599362) | more than 10 years ago | (#7337015)

The reason most linux distributions stop booting is that something has fscked up the boot sector or a new kernel build has gone bad. Either way
you can easily rescue your system by booting off a kernel floppy , no special rescue disk required. Even if the boot failure is
because of corrupted init files you can always boot into single abuser mode so I fail to see the need for a bells & whistles rescue CD. If your whole drive is screwed then its reinstall time anyway, rescue CD or not.
Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?