LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   My hard disk is going to crash!! (https://www.linuxquestions.org/questions/general-10/my-hard-disk-is-going-to-crash-344906/)

soheyl 07-20-2005 03:32 AM

My hard disk is going to crash!!
 
Hi
I think my hard disk is going to crash!:( :(
I have a Win XP and a Redhat 7.5 on my hard disk and I want to save the files, programs and settings of my Linux. What should I do? Is there any way to mirror the linux?
Any help is highly appreciated!
Soheyl

floppywhopper 07-20-2005 03:50 AM

First
buy another hard drive

second
get a copy of Knoppix if you can

floppy

soheyl 07-20-2005 04:39 AM

How can I use Knoppix to transfer all the settings of my previous Redhat installation?
Look. I have many programs on my redhat installation with many settings that will take me a long time to setup again (Actually some of the programs and their settings aren't setup by me!). Can Knoppix transfer all of them, without requiring more labour?
Thanks
Soheyl

Mr. New 07-20-2005 09:10 AM

Quote:

Originally posted by soheyl
How can I use Knoppix to transfer all the settings of my previous Redhat installation?
Look. I have many programs on my redhat installation with many settings that will take me a long time to setup again (Actually some of the programs and their settings aren't setup by me!). Can Knoppix transfer all of them, without requiring more labour?
Thanks
Soheyl

if you copy every file over to the new drive all the settings willbe the same as before
I think settings are stored in /etc and /home/user/.program/ but you should copy everything in / over

ilaiy 07-20-2005 09:15 AM

Use

dd to copy the harddrive ..

dd if=/dev/<source> of=/dev/<dest> bs=512 count=1

Be really careful when you use this command .. Check your source and destination correctly
./thanks
ilaiy

[bc]paddy.hm 07-20-2005 09:17 AM

Quote:

Originally posted by soheyl
How can I use Knoppix to transfer all the settings of my previous Redhat installation?
Look. I have many programs on my redhat installation with many settings that will take me a long time to setup again (Actually some of the programs and their settings aren't setup by me!). Can Knoppix transfer all of them, without requiring more labour?
Thanks
Soheyl

It is easier then you know.

Buy a second hdd.
Create partitions on new hdd, maybe like on your old one.
Format new partitions.
Boot e.g. from Knoppix or other bootable cd.
Then mount old and new hdd with e.g.
mount /dev/hda /mnt/
mount /dev/hdc /mnt2/

and then copy all old files on new partition with:
cp -av /mnt/* /mnt2

and execute your favorite bootmanger e.g. grub-install.

oneandoneis2 07-20-2005 09:22 AM

"cp -Rav" would probably work better. . .

There's a guide to backing up partitions at the bottom of the "Getting started with Linux" link in my sig., soheyl

[bc]paddy.hm 07-20-2005 10:27 AM

Quote:

Originally posted by oneandoneis2
"cp -Rav" would probably work better. . .

There's a guide to backing up partitions at the bottom of the "Getting started with Linux" link in my sig., soheyl

a includes R.

oneandoneis2 07-20-2005 11:20 AM

I stand corrected :)

soheyl 07-21-2005 03:03 AM

Thank you all
I have another question (maybe a silly one):
Do I have to use Knoppix or other bootable CD. If I install a new version of Redhat, is it impossible to mount the older partition and then copy all files over the existing (and maybe in-use) ones?


All times are GMT -5. The time now is 12:10 AM.