LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2009, 11:18 AM   #1
LinuxLuvr
Member
 
Registered: Jan 2004
Location: Tucson, AZ
Distribution: Fedora
Posts: 44

Rep: Reputation: 15
What is the best way to replace a dying SCSI Hard Drive?


Scenario: I have an old computer that has a total of 4 SCSI HD.

sda1 = /
sdc1 = /mnt/hd
sdd1 = /home

sdb1 is present and contains fat32 file system but is unmounted.

Goal: sdd1 is dying and I want to replace it with sdb1.

I'm thinking if I mount sdb1 under say '/mnt/newdrive' and format/partition it with fdisk, I can then copy the contents of sdd1 to it. Once that is done I will update fstab to point to the new drive and restart.

Will this accomplish what I need?

TIA!!!
 
Old 03-18-2009, 12:53 PM   #2
abolishtheun
Member
 
Registered: Mar 2008
Posts: 183

Rep: Reputation: 31
You would actually partition, format, then mount (not mount first), but yes, should be straightfoward. The commands you want are fdisk, mkfs.ext3, and mount. And you don't even have to reboot after adding an entry to fstab.
 
Old 03-19-2009, 08:31 AM   #3
anutosho
Member
 
Registered: Nov 2007
Posts: 32

Rep: Reputation: 30
Don't forget to cp with the -a flag in order to keep all the file attributes (e.g. owner).
If you have a huge drive and the new drive has the same size than the old one it is ways faster with

# dd if=/dev/sdd of=/dev/<new-hdd> bs=32000000

which produces an exact copy sector wise thus minimizing head movement.
 
  


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
How to know if hard drive is dying? alan_ri Linux - Hardware 26 05-28-2008 12:11 PM
Hard drive dying? Lindy Linux - Hardware 2 11-25-2006 03:03 AM
My hard drive is dying... what to do? terence8888 Linux - Software 6 11-23-2006 03:58 PM
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 02:46 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 10:31 AM

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

All times are GMT -5. The time now is 09:54 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