LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 04-24-2010, 09:59 PM   #1
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Rep: Reputation: 30
Hard disk failing !


Hello folks,
My FC11 is now giving out an alert "One or more disks are failing"

What should I do now ? My hard disk has two operating system on it - FC11 and windows.

One of the possible things would be to create an image of the whole hard disk so that when the disk fail I copy the image to a new hard disk of same (or bigger size) and be online.

How do I go about it ?


Prabhat Soni

Last edited by prabhatsoni; 04-24-2010 at 10:15 PM.
 
Old 04-24-2010, 10:21 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You could also create a live image with the available tools.

Anyway, save all config files, repo data, and other important data. The rest can be replaced with some patience and a few commands.
 
Old 04-25-2010, 02:06 AM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
What I would do is just plug in both drives and run:
Code:
dd if=/dev/FAILING_DISK of=/dev/NEW_DISK bs=4096 conv=notrunc,noerror
The above command will copy everything from the failing hard drive to the new one.


But if you want to create an image of the failing disk:
Code:
dd if=/dev/FAILING_DISK bs=4096 conv=noerror | gzip -c > disk_image.gz
And to write the image to the new hard drive:
Code:
gunzip -c disk_image.gz | dd of=/dev/NEW_DISK bs=4096 conv=notrunc,noerror
The above commands should be run from a live cd as root.

If the new disk is larger than the failing disk, you'll probably want to extend the partitions with gparted after cloning the drive

EDIT:
Forgot to mention, the new drive must be at least the size of the failing drive

Last edited by piratesmack; 04-25-2010 at 09:36 AM.
 
Old 04-25-2010, 03:58 AM   #4
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Original Poster
Rep: Reputation: 30
Thanks Piratesmack,
Let me get it clear. Once I copy this disk image to a bigger disk, grub flash screen will show up as usual, and I will be able to boot into windows or linux just like good old times. All other applications that I have installed in linux as well as windows will be there (at least theoretically). Am I right in expecting so ?

Thanks once again for your prompt response......

Prabhat Soni
 
Old 04-25-2010, 09:29 AM   #5
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
That is correct.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Disk Failing Error in Ubuntu 9.10 LilNInny77 Linux - Hardware 4 01-01-2010 08:59 AM
Is My Hard Disk failing? Diubidone Linux - Server 4 11-03-2009 06:42 AM
Hard disk failing? write error: Bad file descriptor glt Linux - Hardware 4 12-14-2005 11:41 AM
Is my hard disk failing David_Moses Linux - General 9 06-15-2005 01:29 PM
failing hard disk...i think... zepplin611 Linux - Hardware 3 03-03-2004 09:57 PM


All times are GMT -5. The time now is 11:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration