System Recovery with Knoppix 270
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."
Yes, but.... (Score:5, Funny)
Re:Yes, but.... (Score:5, Informative)
So it is kind of hard for a Knoppix installation to become corrupt; worst case scenario is you just burn new copy of the Knoppix CD.
Re:Yes, but.... (Score:5, Informative)
Knoppix itself ships with a hard-disk install script. See this page for more info - http://www.knoppix.net/docs/index.php/HdInstallHo
Regards,
The Shaitan
Re:Yes, but.... (Score:2, Informative)
But although I do love Knoppix, DSL has come a long way with its on-line install program that lets you basically customize your distro from almost scratch. Why Knoppix still refuses to pack the Nano editor still escapes me. Emacs is way too overweight for little setup script editing on the command line.
Just this weekend I replaced a dying notebook system that was dual booting SUS
knoppix HDIsntall sucks (Score:3, Informative)
however if you read the FAQ on the new version of knoppix, they explicitly state
Re:knoppix HDIsntall sucks (Score:3, Informative)
With a good GUI as well, letting me choose alot of diffrent options.
KNOPPIX 3.7 OUT (kind of) (Score:2)
Re:Yes, but.... (Score:2)
Re:Yes, but.... (Score:3, Insightful)
What BS. Ever heard of Microsoft? Ever hear of their prices going down due to economies of scale? If there was zero competition, would their price go down? I think not.
Re:Yes, but.... (Score:2)
So weird... (Score:4, Interesting)
Re:So weird... (Score:2, Insightful)
Re:So weird... (Score:2)
Pretty much the same here. I asked for RedHat (it was 2002) to be installed when I purchased the new machine but, oops, Linux has to be installed before Windows. Vendor screwup.
I've played around with the Knoppix CD but don't quite know what to do with Linux yet, it seems complicated.
I guess I've been dumbified from too much Windows usage and it'd be great to get Linux working, but I feel it would be too time-consuming.
Re:So weird... (Score:5, Interesting)
Re:So weird... (Score:5, Interesting)
Re:So weird... (Score:4, Insightful)
And I think you've hit upon one of the most interesting things about Knoppix: it's useful to Windows sysadmins. I work on a multi-platform network, and I've used this distro many times on both Windows and Linux machines. The NTFS driver works great, and recently helped me restore a DLL that a user had "accidentally deleted." Of course it's also a Samba client, so you can drag and drop their files from the damaged machine to the file server for safe keeping.
It's all shown me how good a job Microsoft could do if they actually cared. Knoppix really is better than Microsoft's own recovery console, and makes me wonder why (a) Windows doesn't simply restore missing DLLs on its own when they turn up missing (copies are in the i386 folder, and sometimes other places, so what the heck?), and (b) why there isn't a bootable Windows CD for recovery (maybe because it would be the most pirated CD ever?).
These experiences left me unsurprised when Google released a desktop search tool [google.com] that renders Longhorn's WinFS obsolete ... two years before the release of Longhorn. Is Bill asleep at the wheel?
Re:So weird... (Score:3, Funny)
Re:So weird... (Score:3, Funny)
Boot floppies are hard to use in a box without a (Score:2, Insightful)
Re:So weird... (Score:5, Insightful)
GUI != bloat. Web browser != bloat, especially during system recovery.
Come to think of it, why am I even wasting time spelling out the obvious reasons why Knoppix is an awesome recovery tool?
Re:So weird... (Score:3, Informative)
New Kid on the block? (Score:4, Funny)
New? Wow, I'm glad I don't live in that neighborhood.
Re: (Score:2)
Re:So you can fix Linux.... (Score:4, Informative)
I think NTFS is probably read-only so you can't fix it directly. But in case you weren't smart enough to keep backups around, you can use Knoppix to backup your files over the network. I did the same thing for a friend who couldn't boot up her XP installation anymore after Norton Antivirus "cleaned" a bit too much (even safe mode didn't work). But I ended up copying the data to an external firewire disk 'cause the network (which Knoppix didn't have any problems to detect) was too slow.
Go Linux/Knoppix!
Ricardo.
Re: (Score:3, Insightful)
Re:So you can fix Linux.... (Score:2)
I've seen this a few times. It seems as though the boot process uses a different method of accessing the disk, but when Windows loads the real IDE/SCSI driver, the machine freezes.
This actually means that your entire drive is not dead, and recovery through Knoppix indeed could be a possibility. Maybe read-only, but then again, you don't wanna go changing those tax
Re:So you can fix Linux.... (Score:4, Informative)
Re:So you can fix Linux.... (Score:5, Informative)
Re:So you can fix Linux.... (Score:2)
Re:So you can fix Linux.... (Score:3, Informative)
Knoppix IS Debian so you'll need some Debian
You mean linux NTFS support... (Score:4, Interesting)
But I'd recommend using this [windowsubcd.com] 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.
Re:So you can fix Linux.... (Score:3, Insightful)
If you can't loop-mount it, dd it back to an other disk, then use your favourite Windows NTFS tool, if there is any.
Re:So you can fix Linux.... (Score:2)
What I like... (Score:5, Interesting)
Re:What I like... (Score:2, Informative)
Google for some more articles by the same author. There are gems there.
Oldie but a goodie (Score:5, Informative)
http://www.frozentech.com/content/livecd.php [frozentech.com] has a good list of them.
Re:Oldie but a goodie (Score:5, Interesting)
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
Re:Oldie but a goodie (Score:5, Informative)
Re:Oldie but a goodie (Score:2)
I will try your distro at some point, I'm sure, and $DIETY bless you for providing a service to us forlorn systems admins - even though !=$DIETY keeps on giving us Windows machines to take care of.
Again, thank you, from the bottom of a BOFH's cold, dark heart.
Soko
"Really? I had no Idea!!!" (Score:5, Insightful)
But maybe I'm mistaken...Okay, then--- Quick Poll- Who HAS NOT heard of and tried a Knoppix disk?
Re:"Really? I had no Idea!!!" (Score:4, Insightful)
However, it is useful enough for Linux evangelism -- print it out and give it [along with the Knoppix CD itself] to people who want to try out Linux.
Re:"Really? I had no Idea!!!" (Score:2, Funny)
Me (Score:2)
I think knoppix is a cool idea and I know they've put in a lot of hard work to put as many fucntional tools as possible on to one bootable cd, but I've just never gotten the oppurtunity to boot into it.
There are many other alternatives (Score:5, Informative)
There are also lots of speecialised ones. generally, the only time a linux box wont boot though is just a lilo or grub problem...
By the way, the coralised link is: http://www-106.ibm.com.nyud.net:8090/developerwor
Re:There are many other alternatives (Score:3, Insightful)
Re:There are many other alternatives (Score:2)
By the way, the coralised link is: http://www-106.ibm.com.nyud.net:8090/developerwork s/linux/library/l-knopx.html?ca=dgr-lnxw01-obg-Sys Recover
Does IBM really require a Coral link?
I don't think I've ever seen them get Slashdotted.
Re:There are many other alternatives (Score:2)
Re:There are many other alternatives (Score:3, Informative)
They called it a live CD, I guess, because you can boot into a console unlike some other distro's installations. But I don't think they intended for it to be used as a recovery for systems other than gentoo.
I've only used it as a recovery once when I com
Just used Knoppix... (Score:5, Interesting)
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
Re:Just used Knoppix... (Score:2)
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)
You sound like you are sysadmining these people. You should be fired. Windows 98 is no longer supported by Microsoft. It is not strange that Pest Patrol found xK "nasties" there. And they nasties will come back quite quickly unless they get Windows 2000, Windows XP SP2, with adequate virus software.
Then you wouldn't have to sysadmin them so much! Oh wait, you get pa
Toolbox (Score:5, Interesting)
(Mini Usual Stuff)
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.
One thing your missing.. (Score:5, Informative)
Under your MS stuff (I know, I know, but in industry it really is a necessary evil) you should definitely have a Windows Boot CD [windowsubcd.com]. And I don't mean a DOS floppy! Its basically a live, say Windows XP disk with preinstalled software (virus scan, adware removers, registry editors, complete networking setup). It really has all the tools you commonly use when fixing the obligatory windows box and probably a few you've never even known you'd need.
I highly recommend you build one, and if the directions sound a little complicated, just take your time and reread them, there's about 3 step and none of the are actually complicated.
The worst thing you can do is boot a infected PC from an infected hard drive, not to mention the trouble accessing NTFS with FULL read-write.
Re:One thing your missing.. (Score:2, Redundant)
But still and all, it's a good idea to have set aside just in case someone's life just will *end* if they can't get that Powerpoint file out of My Documents.
Re:One thing your missing.. (Score:2)
With a vanilla client ghosting would probably be quicker anyway.
Re:One thing your missing.. (Score:2, Interesting)
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!
Re:One thing your missing.. (Score:3, Informative)
There are scads of folks out there busily building their own add-ons and plugins [nu2.nu] for the BartPE environment which you can just download and include in your own installation- everything from Java Runtime [jibble.org] to Citrix ICA client [on.net] to Trillian [comcast.net]. And literally a hundred more.
I've found it an indispensible Windows recovery tool. I can boot off the CD and run Adaware, Sp
Re:Toolbox (Score:2)
That's a good kit, but what, no Tom's Root/Boot disk? It's the most GNU/Linux you can put on 1 floppy disk! [toms.net] I swear, this little sucker has saved my bacon so many times, and I learned a lot about Linux by using it. You wanna talk about good foo? It's got a freaking 67k version of emacs on it! This disk is stripped down to the wires and yet still kick-ass functional.
Go, Tom!
Cheers,
Richard
P.S. I love the Leatherman tool, too, but ever since 9/11 I have lost more of them than I would like to cou
Re:Toolbox (Score:3, Funny)
Re:Toolbox (Score:2)
MEPIS rocks for this too... (Score:5, Interesting)
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.
ACPI, Mepis, hardware and configuration ease. (Score:3, Informative)
That depends on what version you use and what kernel you install and what hardware you have. Some laptops, such as my Thinkpad T600, have notoriously buggy BIOS. Both ACPI and APM in newer kernels work well using Sarge. The same packages, of course, are available for Mepis and Mepis is easier with new hardware. The upshot is that you can install the last stable release of Mepis, knock out everything but Sarge from /etc/apt/sources.list, and get
news? (Score:5, Insightful)
The article was written a year ago, and even then it was not news (I have used Knoppix for this purpose longer than that)
"manage [...] filesystems" - or plain ranting (Score:3, Insightful)
If one wants to have rescue stuff ready, ones prepares good rescue stuff. E.g. an usb drive with a mini distro with >2 kernel versions helluvalot compiled modules, all possible filesystem support, disk fscking tools (for all supported filesystems) and you don't relly need much more.
A general purpose 2.4.x-based live distro for the masses jsut doesn't always qualify for such uses.
You know the drill, use the right tool for the job.
I just used Damn Small Linux to overhual a Susebox (Score:5, Informative)
A Frys cheapo Linux special, originally it came with a 30g, 128m ram and Thiz Linux. I Thized the disc straight into the trash and installed Suse 9.0 on it for him when he first got it.
Well, as time went on he realized that his system needed upgrading. So I sent him to the store and he brought back another 128m ram, a 120g drive and Suse 9.1 Pro.
The plan was to have the old doggy 30g as his boot/OS/work drive (hda) and his new 120g as
Well, booting up 9.1 does not come up and say
"Hey, I see you have data on your drive already and a new blank drive. Would you like to move it around in anyway before we procede?"
No, Suse just suggests that you wipe everything out and start over. Even if you tell it you want to do an upgrade, it has NO PROVISION what-so-ever to allow you to format the new drive then move your old
Ok, so in light of this, I took Damn Small Linux 0.8.2 [damnsmalllinux.org]
and booted up. Opened a root terminal, fdisked hdb, formated it for ext3 then moved all of his old
It copied EVERYTHING. Hidden files, configurations, email, cookies, bookmarks, music, photos, the whole works.
When it was done I booted into Suse 9.1 pro, did a NEW INSTALLATION and wiped hda clean, installed the OS on it and told it that
I created the same user and password as the old system so Suse looked at the
The install proceded normally to completion.
When it was finished and I rebooted the system, it was identical to the way it was brought to me except that he now has a 120g
Damn Small Linux is the very best tool a tech can carry with him. I keep a copies on biz cards in all of my tool boxes and in each of my vehicles.
I don't leave home without it.
I also carry standard Knoppix in case I run into a case where I need k3b on the ailing machine.
I have several other versions of Knoppix I keep handy for various network jobs, like knoppix-std [knoppix-std.org]
and a few other network related Knoppix knock offs..
Re:I just used Damn Small Linux to overhual a Suse (Score:3, Insightful)
You could have upgraded from 9.0 to 9.1 first and then add the new drive and move
Re:I just used Damn Small Linux to overhual a Suse (Score:2)
hda is strictly for the OS and hdb is strictly for
The other thing that was nice about using DSL, I just had to mount the partitions, they were already full R/W without playing the
Re:I just used Damn Small Linux to overhual a Suse (Score:5, Informative)
I would have done:
- login as root
- cd
- mv home home.orig
- mkdir home
- yast
(add the disk, say it will be
- df
(make sure the
- mv
- rmdir
home is now on the new disk.
reboot system from CD, install 9.1 on 30GB and during partition selection tell it that
that should do it.
Very best tool? (Score:2)
My swiss army knife beats your damn small linux any day of the week :-)
Re:I just used Damn Small Linux to overhual a Suse (Score:2)
Handy feature about the SuSE installation stuff - while it comes up with a nice, graphical interface, virtual console Alt-F(something) has a full bash prompt with lots of useful utilities.
It's possible to bring up network connect
But what about winmodem support? (Score:4, Funny)
Re:But what about winmodem support?- yup! (Score:3, Informative)
Why is this news (Score:2, Insightful)
There must be newer versions of almost everything mentioned in the article, and probably better ways of doing most of the tasks...
And most
This is so last-millennium. (Score:2)
First rate device detection (Score:5, Informative)
However I did use it to tweak the device settings on my install of FreeBSD. Knoppix has always detected anything I threw at it, while FreeBSD isn't quite up to the same level (but getting better). So, I gave Knoppix a whirl and got enough driver info for the noname videocard that shipped in the used computer I was setting up as a server.
Rock on Knoppix!
ntfsclone (Score:2, Interesting)
Tom's (Score:5, Interesting)
Re:Tom's (Score:3, Informative)
Real world application (Score:3, Funny)
Knoppix not good for everything.
Yep, this is bad. Baaaddd joke if you can call it that.
Oh, by the way, this is nothing but flaimbait.
Burn karma, burn.
Also... (Score:3, Informative)
Better safe than sorry (Score:5, Informative)
First of all, there are a couple of basic steps people can take to ensure their systems are rescuable and secure regardless of any patches they have applied.
Following above steps is usually enough to prevent rescue situations because the root filesystem is vital, so protecting it is the first line of defense, but if the worse comes to worst and you ever get into trouble, you must learn with the problem. If the kernel loads and init doesn't, it may be a libc problem. Try booting with init=/bin/sh, remount your filesystems read-write, examine the problem, umount them (or remount them read-write, when unmount is not possible), sync, reboot and watch the changes. If the kernel does not load, you may need a
Yawn - where is the innovation? (Score:2, Insightful)
Ever hear of "boot [cdrom|net|root-mirror] -s"? Come up in single user off alternate media, mount your root disk and proceed to fix as necessary.
Even DOS was able to do this - it was called a boot floppy.
Just because something puts a new wrapper on the process and because its based of Linux doesnt make it incredible.
Knoppix Hacks (Score:3, Interesting)
Knoppix Hacks [oreilly.com]
Virus scanning, emergency router, write to NTFS, even fire up a mythtv box.
slashdotted? (Score:4, Informative)
We /.'d IBM? (Score:3, Funny)
Hey, IBM, that was only a demonstration of our power.
IBM slashdotted? (Score:3, Interesting)
Wow... We slashdotted IBM! But to the point: I wonder what is your experience. What is better for system recovery? Standard Knoppix [knoppix.org] 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 [knoppix-std.org] or Local Area Security [localareasecurity.com] 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 [morphix.org] 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?
Re:Obligatory Joke (Score:5, Funny)
[would have been funnier if it were true]
Re:Knoppix is good, but MEPIS rocks! (Score:2)
http://www.bytebot.net/geekdocs/debian-knoppix.
http://www.freenet.org.nz/misc/knoppix-install
Yes, you can: knx-hdinstall (Score:5, Informative)
"You can't install it to your hard drive."
Yes, you can: [freenet.org.nz] knx-hdinstall.
Re:Yes, you can: knx-hdinstall (Score:4, Interesting)
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.
just don't expect it to work (Score:3, Insightful)
Re:Yes, you can: knx-hdinstall (Score:3, Informative)
menu option and waiting is difficult (Score:5, Insightful)
Actually, the gripe is a legitimate one, although very poorly presented. I'm a regular on the Knoppin forums at www.knoppix.net and I constantly see people posting problems with things (mostly simple networking) that worked fine under Knoppix when running from the CD but stopped working as soon as Knoppix was installed to hard disk. Most of the time this seems to be simple permission issues or something that for some reason I don't understand needs to be added to a configuration file. But it's been going on for years and the install scripts never seem to get around to addressing it and making the premissioins right. See for yourself by scanning this forum [knoppix.net].
I just write it off to the arogance that almost all Linux geeks seem to have for newcomers who don't know the cryptic commands to change permissions or all the magic places startup configuration stuff is stored. The geeks who master Knoppix must come across the same problems, but just know where to go to twiddle the right bits to make everything right. That they don't "bother" to go back and make the HD install scripts do this seems strange.
Re:Knoppix is good, but MEPIS rocks! (Score:4, Informative)
Knoppix is a great livecd, but a horrible installer. It's less trouble to just install straight Debian.
Re: (Score:2, Informative)
Re:Linux has come a long way ... (Score:2, Insightful)
1 floppy.
TRB, Lepton and other floppy distributions I've tried (for real use, not just recovery situations) have all been exceptionally high quality. The guys who put them together really know what they're doing. Any idiot can stick half a gig of programs on a CD, it takes smarts to get them onto 1 o 2 floppies.
FP.
Re:Security?!?!? (Score:4, Insightful)
Well, on my machines (i.e. which I use, @home or @work) only booting from the main hdd is allowed, everythig else is disabled, bios pass'ed. If I want to boot from something else, I enable it. One would need many minutes long work to open the cases and reset the bioses especially if they don't know the specific mobo.
Not a very good protection by any means, but it stops giggling coworkers from being jerks on my machine.
Re:Security?!?!? (Score:2, Informative)
They wouldn't even have to open the case if they know some BIOS override passwords [techtarget.com].
Re:Security?!?!? (Score:4, Interesting)
Re: (Score:3, Insightful)
Re:BitTirrent of KNOPPIX_V3.6-2004-08-16-EN-Live-C (Score:2)
hey.. that's on tomorrow!! woo hoo!!