LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2006, 10:30 AM   #1
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Rep: Reputation: 15
My hard drive is dying... what to do?


Hi,

I installed Fedora Core 4 on my Compaq PC a couple of years ago. It's used as a file and mail server and it's working really well.

Sadly, one of the two hard drive is about to die (making loud noises). The other (bigger) drive is fine and has loads of free space. I believe the drives are set up as one logical drive.

Since the bad drive is still working, it is possible to "re-partition" the drives and move everything to the good drive and then disable to bad drive and ditch it?

What else can I do?

Thanks a lot!
 
Old 11-23-2006, 10:33 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
First find out how the drives are setup. If you are using LVM, the read through the LVM Howto on the www.tldp.org site. There is a utility program on moving the data off a disk.
 
Old 11-23-2006, 10:41 AM   #3
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for the reply!

How do I find out if I use LVM or not? I simply installed FC4 using the default setting.
 
Old 11-23-2006, 10:44 AM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
Post contents of /etc/fstab file. If things like vol**** exist then LVM is setup.

Brian
 
Old 11-23-2006, 03:30 PM   #5
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I tried to do a pvmove /dev/hdb but it says cannot find /dev/hdb. I guess because it's part of the logical volume. What should I do?

Last edited by terence8888; 11-23-2006 at 03:37 PM.
 
Old 11-23-2006, 03:46 PM   #6
terence8888
Member
 
Registered: Aug 2005
Posts: 31

Original Poster
Rep: Reputation: 15
My /etc/fstab looks like:


/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
 
Old 11-23-2006, 03:58 PM   #7
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
You need to create a LVM partition on the drive then you can easily move from on or the other. You can even span a partition across multiple drives. I don't use LVM so not much help as to the exact commands one uses. There is a gui tool in the system menu that should help.

Brian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is my hard disk dying? Nylex Linux - Hardware 6 07-16-2006 02:31 PM
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 02:46 PM
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 05:14 PM
Hard drive dying, good backup method cadj Linux - Software 3 12-14-2004 07:28 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 10:31 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration