Hard Disk Failure: How do I move data to a new hard disk drive?
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,
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.
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.
|All times are GMT -5. The time now is 01:41 AM.|