Vista dead - need to backup Linux to reinstall
(Relax, it's a Linux question ;) )
Windows Vista died after CHKDSK helpfully found errors, fixed errors, and, in the process, killed Vista. I can't boot into Windows, registry is now corrupt. It is an HP Pavillion laptop, and I have the recovery disk. I cannot simply repair windows with this recovery disk, the only options are to use a restore point (oops, restored to last restore point, now no more restore points), or to use factory reset. I am assuming factory reset will wipe everything, including partition table, getting rid of Ubuntu. I do everything on Ubuntu, I only booted into windows for Half Life 2. How can I back up Ubuntu so that once Windows has been restored I can simply reload Ubuntu as it is now? I have installed a lot of software that I don't want to have to go through again. |
If the restore disk does in fact wipe the partition table and reformat it, you have a serious (though not insurmountable) problem. I am not sure this is what will happen; I would expect the restore disk to use the partition it found, but I could easily be wrong.
In any case, the easiest route for you to take is to copy (not image, just copy) the entire contents of the Linux partition off to another HD, using a Linux Live CD. Then go through the reinstall process for Vista. When the reinstall is complete, check the partition table to see if your Linux distro survived. If it did, then from the Linux Live CD, reinstall grub. If it didn't, then defragment the Windows drive to make sure all the Windows stuff is packed at the front of the partition and use the Linux Live CD to repartition the drive. Format that partition using a Linux FS (probably ext3), then just copy your Linux system onto the partition. When you have finished this, reinstall grub and you are done. |
Brilliant, thanks.
I'll try that and keep fingers crossed. Thought I might have to use the "dd" command, never used it before :P |
look here
but if vista allready killed itself are you sure you want to reinstall it?????? |
Let it Rest In Peace.
:D |
Quote:
Thanks for that link! The tarball idea is great |
Quote:
Ok, I am finally getting around to restoring Vista :p I am trying to use your suggestion and tar the root directory. I'm using: Code:
tar -pcvf /media/disk/backup.tar . It works, but it descends into /home which is on a separate partition. I just want the / partition backed up, that way it's only 3.5Gb. I tried using --exclude=/home/ but that doesn't seem to work. Man page is unhelpful. Suggestions? |
Unmount the /home partition, then run tar. Tar will record it as an empty directory.
Caution: when you restore the tar file, be sure that /home is unmounted, otherwise it may be overwritten by an empty /home directory. |
Quote:
|
You don't want to backup the /media or /mnt directories either. Also not the /proc, /dev or /sys directories. It would be pointless backing up /tmp. Also, clear your browser cache. That will contain thousands of worthless files. Your ~/.beagle/ directory might contain 70,000 index files that could be regenerated. Backing up so many files would take a long time.
Try to exclude them by adding the arguments "--exclude=media --exclude=mnt --exclude=proc --exclude=dev --exclude=sys" --exclude=tmp". Another option is to start in the root directory and add each directory you want to backup in the the arguments. Code:
cd / |
All times are GMT -5. The time now is 04:26 PM. |