LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2008, 10:52 PM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
how to replace hard drive


I have a file server running by samba.
I have a suspect that my hdd has a bad sector and will be crash sooner as I get IO Error most came from hdd6 and hdd8.

My idea is to replace it. I have an 80GB hard drive. How do I replace it?

Is it ok to format my 80GB and partition it to /home, /data/dept and /data/public and remove the old hard drive and replace the new formatted hard drive ?

Would you think this will work?

This is my snippet of my df

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 1.9G 749M 1.0G 41% /
none 125M 0 124M 0% /dev/shm
/dev/hda3 3.5G 2.8G 528M 85% /var
/dev/hdd6 14G 9.6G 3.5G 73% /home
/dev/hdd8 31G 28G 2.5G 92% /data/dept
/dev/hdd7 10G 7.8G 1.8G 81% /data/public
/dev/hdc5 73G 64G 5.9G 92% /data/dept2
 
Old 05-29-2008, 11:10 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by packets View Post

Is it ok to format my 80GB and partition it to /home, /data/dept and /data/public and remove the old hard drive and replace the new formatted hard drive ?
What you don't want to do is copy everything over to the new drive, take out the old drive, and then discover that you have a lot of problems and a big mess on your hands.

I would place the new drive on a new address and run it in parallel with the old drive. Set up 3 partitions on the new drive. Then copy hdd6 to the new drive. Switch to using the hdd6 on the new drive. If it doesn't work switch back to the odl drive. Once hdd6 is working OK on the new drive switch hdd7. Then switch hdd8.

After you get all of the hdd data moved over to the new drive the you can start playing around with hdd and try to permanently fix the problem with hdd. Run bad blocks on hdd, repartition hdd, reformat hdd, and so on.

----------------------
Steve Stites
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
replace hard drive in raid 1? TongueTied General 5 12-01-2006 10:58 PM
replace hard drive = L 99 99 99... Diagmato Linux - Hardware 2 07-09-2005 02:46 PM
Going to replace hard drive - should I switch distro too? FiveFlat Linux - General 17 05-05-2005 01:55 PM
Replace Hard drive IchBin Linux - Newbie 2 03-11-2005 07:24 PM
Replace CD-drive with a hard drive (HDD) pdap Linux - Hardware 3 06-10-2003 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration