Adding an extra hard drive to a Linux box

Like the subject says. I’d never bothered to write down this process in order to make it easy for myself. Always relied on memory to get me by.

So, today, I’m building a new Fedora Core 4 server for a proof-of-concept forensics project I’m working on. Think I could remember the entire process? Riiiiiiight…

Then, Google came to my rescue once again. Here‘s a completely thorough, end-to-end drive adding, partitioning, formatting and mounting guide. This one goes in the bookmarks!

2 Replies to “Adding an extra hard drive to a Linux box”

  1. Hi !
    I am very distressed (understatement – I’m really horrified and depressed) about an apparently freak and unusual occurrence that caused my external hard drive (and all its contents!) to not be recognized in Windows.

    I have a 20-month old 160 GB Western Digital external hard drive (WDC WD1600JBRTL) that I use on Windows PCs all the time (and which has priceless and irreplaceable pictures and other files on it.) (This drive is sold/purchased as an internal drive, and I had a university techie staff member place it into a WD external case.) I plugged it into a Mac OS X computer before, so I thought there would be no problems. The other day, I plugged the external HD into a Mac OS X (10.2) via an unpowered Targus USB hub. The Mac screen said nothing – no window popped up like happens after Windows machines recognize a new device. The red access light on the external drive was flashing very quickly as if the Mac was trying to mount/recognize/do something to the drive, but after 5 minutes or so, the red light stopped flashing and still no recognition. I made sure the red light was off before unplugging the external hard drive from the Mac and then plugged the drive into the regular PC I normally use the hard drive on. The drive was recognized, but when I clicked on the drive letter, a window popped up saying the drive is not formatted, would you like to format it now. I knew this was bad, as this had never happened before. I plugged the external drive into another PC and got the same thing. “This can’t be happening to me” is what I thought. I have no idea what the problem is or what caused it. Obviously, the Mac did something to my drive, but why and what did it do? I never told it to do anything, and it didn’t even seem like the Mac recognized the drive. the red light flashing meant something was going on, but I have no idea what. I did some online research and talked with a few tech folks, and they said they think something obviously went wrong when the drive was plugged into the Mac. It sounds like the Mac altered/corrupted the partition table/file table/file structure. (I never put partitions on the drive. I used it as is out of the box. I just created folders under the main drive letter and put files in those folders.)

    I took it into a University Computing Center, and the techies there saw my drive is a FAT drive. They were able to run onTrack Easy Recovery on the external drive. This program apparently just reads the drive and does not write anything to the drive. They said it looks for all data on the drive. I asked how Easy Recovery can see the files on my drive but Windows can’t. They answered by saying that Easy Recovery looks at data bit by bit whereas Windows looks for files/folders – the big picture. After 2.5 hours or so, the scan was done, and a list of files appeared. It looked like my files were recovered, as I recognized the filenames. But, that was very misleading. We saw some files been marked by Easy Recovery with a “DX” notation next to the filename. The tech guy said that was a bad thing, meaning the file may be corrupted and not recoverable. We then copied those recovered files to an extra external hard drive. It recovered most if not all of the files themselves, but many of the text files (Word/.doc, and .rtf) were either empty (blank white screen when file opened) or full of squares or lots of junk characters/jibberish. The most important – and priceless – picture files would not open at all. The filenames were there, but when clicked on, the files try to open but just hang there blank. The file size indicates the huge amount of data that is in the picture file, but no picture opens. Some of the original filenames were saved, while others were changed or mangled. Some text files had content that belonged in other text files -.i.e. the filename was wrong. Some of the files were fine, but most were junk. I opened some of the files, and my heart just sank when I saw the pages upon pages of small squares that used to be my Word/.doc/.rtf documents. My pictures of my travels are gone. I’m a Park Ranger, so I have worked at national parks and monuments and taken many beautiful pictures of these places, but now the pictures are gone.

    The university computer techies said the Mac should have recognized the hard drive even with the USB hub. They think the Mac changed the FAT/file structure. They think it was some freak and unusual event that caused this to happen, and they have never seen or heard of such a thing happening before. That makes me feel better – that I didn’t do something stupid by plugging the drive into a Mac – but I do feel I did something stupid by doing that. But, that doesn’t get my files back.

    I have not tried any partition repair utilities, as I want to get advice of what to do and not to do before I take any action. I am willing to spend a few hundred dollars on a repair if need be, but I read that it’s best not to do anything yourself and leave it up to the experts. So, I’m wondering what I should do, what I shouldn’t do, etc.

    I would just like to undo or repair the damage and get my files back. I don’t want to do anything that might prevent a more successful recovery. If I have a guarantee that my files can be found intact and usable – not jibberish and junk – I’m willing to spend a few hundred dollars and say I’ve learned my lesson – I need to be more careful about plugging things into computer and I need to backup my files. If there is an easier or cheaper way to try that won’t hurt the drive and its contents – and won’t harm or prevent recovery future efforts – please let me know.

    Countless hours, days, months, even years of work are in those files on that drive. I have got to get them back.

    Please help.

Leave a Reply