Linux for HD Repair and Formatting? 61
pair-a-noyd asks: "I have a small PC repair company and am frequently encountering various hard disk drive problems with Windows systems.
I often resort to booting up Mandrake to reformat the hard drives because it supports many different formats. However, it's sort of cumbersome to go through the Mandrake setup menus to get there then abort out once the disk is formated. Is there any Linux distro that boots from CD and is designed with ONLY hard disk drive utilities in mind (surface scans, flagging bad sectors, and so on)? It would be very nice if you could boot a Linux CD and go in and hammer a troublesome hard drive into submission and then reformat it with the FS of your choice. Going throught the Mandrake system is cumbersome and using the Windows installation routine is not very friendly either."
SuperRescue (Score:5, Insightful)
Re:SuperRescue (Score:1)
Why not use Knoppix? (Score:5, Informative)
Get it here [knopper.net]
Re:Why not use Knoppix? (Score:3, Interesting)
i've also used Openoffice to "repair" broken office files. Take broken MS Office file, open in Openoffice, Save As whatever MS format, then reopen in MS Office. It even slims down powerpoint files. Pretty useful at the office.
Debian (Score:1)
Knoppix (Score:1)
Re:Knoppix (Score:1)
Red Hat - Linux rescue (Score:3, Informative)
Linux will boot from the CD and present you with a command line interface and and a sub-set of the normal command line tools.
Only the essentials for system administration are there, but everything you need (fdisk etc.) should be included.
Other distro's probably support this too. I've only done it with Red Hat.
If your hardware doesn't support booting from CD, then you can get the same result by booting from an install floppy (once you've done a bit of network configuration).
Re:Red Hat - Linux rescue (Score:2, Informative)
The RH 7.x (1<x<3) are really useful to have at hand. They even detect if you have pcmcia card, and configure them ! I did not try with 8.0, though. (When it come to RH, x.0 means alpha, and y.1 means beta anyway)
A few hints, from experience:
For example, when our stoopide corporate M$ install barf on a weird partition table -> "linux rescue" -> "dd if=/dev/zero of=/dev/hda"->wait 10 s before ctrl-c, and voila. Linux help M$.
Re:Red Hat - Linux rescue (Score:1)
All your anal mathematician are belong to you !
Gentoo LiveCD (Score:2, Informative)
Re:Gentoo LiveCD (Score:1)
EBCD and Bart's Way (Score:5, Informative)
Also, there's "Bart's Way" which is heavy on modules. Check out his website: http://www.nu2.nu/bootcd/ [nu2.nu]
Linux administrativa CDs (Score:4, Informative)
LNX-BBC [lnx-bbc.org] is small enough to fit on one of those business card cds and is aimed towards people who know what they are doing; (read: no man pages).
Linuxcare [planetmirror.com] is another great linux toolkit for administrative work.
Check out this page [planetmirror.com] for a list of other linux bootable toolkits. Cheers!
beos! (Score:3, Funny)
DiskProbe, the block editor, lets you edit files, entire disks, or just the partition.
DriveSetup, the drive setup thingy, lets you do all the partitioning (apple and ibm styles), formatting, low-level formatting, block checking, that sort of stuff.
You could make a boot CD that let you run those programs (and Terminal if you needed to muck around in bash), or use the install CD (and hit alt-T to bring up terminal iirc)
Hard drives are cheap. (Score:2, Informative)
Going after bad spots is a hold-over from the bad old days of MFM and RLL controllers. I remember flagging up to 20 or 30 bad spots per drive when putting them in. I remember feeling fortunate to have bought a hard drive with maybe one or two. Once I had a drive with a totally empty flag table. Boy, I felt special!
Now, if it's a filesystem problem with Win-duhs (e.g. user turned off the PC whilst writing) then that's ok... reformat it.
Re:Hard drives are cheap -- so are many people (Score:2, Insightful)
Never could figure out the logic behind that.
Re:Hard drives are cheap -- so are many people (Score:1)
Re:Hard drives are cheap. -- Data isn''t. (Score:1)
Data recovery. It's been a month since the last
backup,... The dog chewed on the hard drive and my paper's due tommorrow....
People probably need to get the data off the drive to copy it onto the new one.
Re:Hard drives are cheap. -- Data isn''t. (Score:1)
I know exactly what you mean... (Score:2)
Using mandrake no-less! I've run into many disks that have gone bad and may need to be re-partitioned or reformatted, but the tools that come with windows are pure unadulerated $hit!
"Cannot remove Extended Dos partition while logical drives exist" ok fine remove logical drives "cannot removed logical drives while extended partition exists" hmmm add logical drive "cannot add logical drive without primary dos partition" fine add primary dos partition , then removed logical drive...etc etc...no go...boot mandrake select one huge windows partition format it, then abort install and viola!
perhaps someone more familiar with coding can hack the mandrake installer so that i'ts sole function is to blow away hard disks?
Re:I know exactly what you mean... (Score:1)
It's even more fun if the drive is corrupt. Some version required you to type in the label of the partition if you wanted to delete it. If it had nonprinting characters (which happens) you can't delete it. It does a "Verifying Drive Integrity" at every step, like before and after it asks you (y/n) Oh my god I've got to stop talking about this and get over it!
Even if you're only going to run 'doze, get Linux just for the sake of checking / prepping the disk. I'm not quite sure out of Solaris' fdisk and M$ FDISK which one sucks the most. Both are quite infuriating.
Blow away harddisks?
dd if=/dev/zero of=/dev/hda bs=512 count=2
If that doesn't work (I'm haven't used it in a while) and there's definitely nothing you want on the disk, increase the count number, you won't do any harm except data erasure. Someone else here suggested doing it without a count, and hitting ctrl-C after ten seconds. I wouldn't do it this way if you only wanted to clear the partition table and boot record.
Re:I know exactly what you mean... (Score:1)
Re:I know exactly what you mean... (Score:2)
dd is a bit copier and is found on most Unix-stype systems including boot floppies. This includes things such as Tomsrtbt (linux) and many of the bootable *BSD diskettes. Example;
The line above reads: take the input file (if) from the empty device (/dev/null) and copy it into the output file (of) of the first ide drive on the first ide channel (/dev/hda) ignorning any partitions. Since there is no limit, the command will execute till the whole drive is wiped.
To speed this up, you can limit the wipe to the boot sector only using the count= and bs= options.
For example, to wipe only the first 512 bytes (the boot sector including the partition table), add 'count=1 bs=512';
To save the boot sector, you could do this;
After wiping the disk or the boot sector, you can run any disk partitioning (Ex: fdisk) or installation program on it you want.
You want /dev/zero, not /dev/null (Score:2)
Re:You want /dev/zero, not /dev/null (Score:2)
lunar-linux install ISO features... (Score:3, Informative)
http://www.lunar-linux.org/
Slackware 8.1 CD (Score:3, Informative)
Back to the simple distros (Score:1)
Re:Back to the simple distros (Score:1)
Phew, I thought for a minute you said MSDOS had some nice CLI proggies...
I'm pretty sure Slackware's root diskette doesn't have mkfs.msdos because it isn't needed, if you're installing in UMSDOS the presumably the DOS filesystem already exists. You could delete mkfs.ext2 to make room for mkfs.msdos and simply copy that on there from a normal system.
Keep the boot / root disks handy. You'll use them (if not to install Linux, prep the system for something else) about 20 mins after you've finished installing 'doze.
-1, Flamebait.
Re:Back to the simple distros (Score:2)
Slackware is my favourite tool for this too. I always carry a boot and root disk with me, just in case I have problems booting off the CDROM.
The system you get includes lots of PCI and /proc stuff, just the ticket for
exploring alien hardware before deciding
what to load on it.
...laura
Use the Right Tool (Score:1, Informative)
Trinux (Score:2)
Disk rescues are easy. Also used it to build a temporary web-server (with "down for maintenance" splash pages) that entirely fit on a floppy that we used while moving servers from one location to the other. Unplug server, leave a no-name x86 box behind with a floppy to hold the IP address until the real webserver was settled in at it's new home.
Partition Magic (Score:2)
TomsRTBT (Score:3, Informative)
=Smidge=
Use the software from the manufacturer. (Score:1)
test the drive and indicate when it is defect
remap bad sectors so the drive seems to have no bad sectors
write all the sectors of the drive with zero's
tell you the SMART status
for example:
http://www.maxtor.com/en/support/downlo
IBM has DFT, (drive fitness test)
I am sorry to say this software uses windows to make a bootable dos disk.
Re:Use the software from the manufacturer. (Score:2)
gentoo: "emerge smartmontools"
4 very solid methods (Score:1)
- PARTED on a bootable distro.
QT-Parted gives you a graphical interface. Hopefully someone will add it to Knoppix for you.
The Mandrake bodge improvment option:-
- No need to go through the mandrake menus - just click on the left side to skip straight to the partitioning section
The not-free option:-
- beg/borrow/steal Partition Magic. Although it installs to Windows that installed program generates a boot floppy that can be used elsewhere.
fdisk / cfdisk option:-
- use a boot disk / cdrom to boot and use cfdisk or fdisk
Slashdot message me if you like
Not EXACTLY an answer, but... (Score:1)
This method can also be used to test other hardware in the system, although we never actually had to do so. Most problems were limited to processor/memory/HD.
This was at a PC rapair shop, BTW. The customers were always floored when they found out that there was this "gnu/linux thingie" that could actually do useful stuff.
Re:Not EXACTLY an answer, but... (Score:1)
Re:Not EXACTLY an answer, but... (Score:2)
all your customers have network cards in their pcs, right?
Two Distros: (Score:2, Informative)
Re:Two Distros: (Score:2, Informative)
A util to recover MS Office/RTF documents (Score:2)
recover-word [icculus.org]
If you try it please send in comments and suggestions - I'm pondering making it usable for lay data recovery persons. I'm pondering adding my unreleased hacks for various other formats like JPEG or just making it use a RC file with a header dictionary and a simple lisp syantax for reading it. Then agian I worked on this maybe in 3 sit downs since I hated doing the recovery by hand over and over. =)
tomsrtbt (Score:3, Insightful)
This seems like (Score:1)
A couple of good distros (Score:1)
another, customizable, rescue CD (Score:1)
http://www.phenix.bnl.gov/~purschke/RescueCD/
The main feature is that it allows you to make your own customized CD for whatever purpose. I had a lot of positive feedback.
You can make it so that it boots and performs stuff automatically.
gdisk (non-Linux, but still kicks fdisk's ass) (Score:2)
GDisk provides some capabilities that FDisk does not -- such as on-the-fly formatting -- and provides a safer alternative in situations in which known problems with FDisk can cause data loss and hardware damage.
The switches and batches [symantec.com] are awesome:
The batch mode switch,
WINNT.SIF (Score:2)
Pop a floppy in the drive. Open up notepad, and put in something like this [stanford.edu]. Save your file as "winnt.sif" (w/the quotes...otherwise it will name it winnt.sif.txt), and reboot your computer with both the install *and* bootdisk in the drives. The cd (boots first in BIOS, of course) installs according to the WINNT.SIF instructions on the floppy.