LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-31-2008, 02:16 PM   #1
spyros
LQ Newbie
 
Registered: Oct 2008
Posts: 4

Rep: Reputation: 0
Hard Disk Failure: How do I move data to a new hard disk drive?


Hi All,


I have three hard disk drives on my debian system but one of my hard disk drives has gone faulty!

this is my fstab:

]proc /proc proc defaults 0 0
/dev/hdc1 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc2 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/hdd /media/server ext3 rw,user,auto,exec 0 0
/dev/sda /media/backup ext3 rw,user,auto,exec 0 0


Unfortunately it is the HD drive on which lie the / and swap file system i.e my debian OS.

What I would like to ask you is this:

Is there any way I can move my data on a new hard disk drive and have a working system as I did before or do I have to reinstall my OS from scratch as well as all my applications? Can I do a hard copy or take an image and install on a new probably larger in size disk, or even a sata drive?

I would like to avoid reinstalling everything, from DNS to cups...

Thank you for your help,
Spyros
 
Old 10-31-2008, 02:43 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by spyros View Post
Hi All,
I have three hard disk drives on my debian system but one of my hard disk drives has gone faulty!

Unfortunately it is the HD drive on which lie the / and swap file system i.e my debian OS.

What I would like to ask you is this:

Is there any way I can move my data on a new hard disk drive and have a working system as I did before or do I have to reinstall my OS from scratch as well as all my applications? Can I do a hard copy or take an image and install on a new probably larger in size disk, or even a sata drive?

I would like to avoid reinstalling everything, from DNS to cups...
If the disk is dead, there's no way to copy anything off of it. If it's STARTING to die, take immediate action. Grab a copy of systemimager, mkcdrec, or mondoarchive, and make a backup of the drive immediately. As soon as its done, power the drive down, and replace it with a new one. Recover from the backup.

Otherwise, you *COULD* just copy some files off the drive (config files, etc.), but if you're doing a fresh install, then copying files, you'd undoubtedly overwrite something in use, or a newer file with an older one, giving you an unstable system.

If it's dead...you've got no where to go but a new install and reconfig.
 
Old 10-31-2008, 03:01 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If it isn't too far gone you could use "dd" to take a copy of the relevant partition(s) as well. I've used this method previously and it's worked.

You shouldn't need to copy the swap - you can just create a new one.
 
  


Reply

Tags
disk, failure, hard



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
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
can't repartiton hard drive for a dual boot because disk contains data near end andy101 Linux - Newbie 3 11-14-2005 01:52 PM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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