Slashdot Log In
System Recovery with Knoppix
Posted by
michael
on Sat Oct 16, 2004 02:00 AM
from the handy-stuff dept.
from the handy-stuff dept.
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."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
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.
Parent
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
Parent
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.
So weird... (Score:4, Interesting)
Re:So weird... (Score:5, Interesting)
Parent
Re:So weird... (Score:5, Interesting)
Parent
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?
Parent
Re:So weird... (Score:3, Funny)
Re:So weird... (Score:3, Funny)
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?
Parent
New Kid on the block? (Score:4, Funny)
New? Wow, I'm glad I don't live in that neighborhood.
What I like... (Score:5, Interesting)
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
Parent
Re:Oldie but a goodie (Score:5, Informative)
Parent
"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.
Parent
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)
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
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.
Parent
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.
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: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.
Parent
But what about winmodem support? (Score:4, Funny)
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!
Tom's (Score:5, Interesting)
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.
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
slashdotted? (Score:4, Informative)
Re:Obligatory Joke (Score:5, Funny)
[would have been funnier if it were true]
Parent
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.
Parent
Re:So you can fix Linux.... (Score:3, Insightful)
The S.M.A.R.T bios check said the drive was bad, and to replace... so i'm pretty sure it's a hardware issue, but i'm not posative. I was able to get windows booting in safe mode up till a point though (which confused me if it was hardware related) and then it would freeze.
As for the the partition, it was registered as "Unknown" by the install cd and another windows install, and r
Re:So you can fix Linux.... (Score:4, Informative)
Parent
Re:So you can fix Linux.... (Score:5, Informative)
Parent
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.
Parent
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.
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.
Parent
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.
Parent
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.
Parent
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.
Parent
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.
Parent
Re:Security?!?!? (Score:4, Interesting)
Parent