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 11-17-2007, 08:52 AM   #1
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Rep: Reputation: 30
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.
 
Old 11-17-2007, 09:17 AM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
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.
 
Old 11-17-2007, 10:31 AM   #3
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Brilliant, thanks.

I'll try that and keep fingers crossed. Thought I might have to use the "dd" command, never used it before :P
 
Old 11-17-2007, 10:59 AM   #4
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
look here
but if vista allready killed itself are you sure you want to reinstall it??????

Last edited by reddazz; 11-17-2007 at 11:41 AM. Reason: fix url
 
Old 11-17-2007, 11:22 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,297
Blog Entries: 61

Rep: Reputation: Disabled
Let it Rest In Peace.
 
Old 11-17-2007, 12:25 PM   #6
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by DropSig View Post
look here
but if vista allready killed itself are you sure you want to reinstall it??????
I'm trying my hardest to get Half Life 2 - Episode One running under Crossover, but having sound issues. Vista is my backup. It is soooo tempting to just nuke it though. Free up the 40 gigs.

Thanks for that link! The tarball idea is great
 
Old 12-02-2007, 03:57 AM   #7
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by DropSig View Post
look here
but if vista allready killed itself are you sure you want to reinstall it??????

Ok, I am finally getting around to restoring Vista I am trying to use your suggestion and tar the root directory. I'm using:
Code:
tar -pcvf /media/disk/backup.tar .
running from / obviously.
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?
 
Old 12-02-2007, 04:28 AM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.

Last edited by bigrigdriver; 12-02-2007 at 04:30 AM.
 
Old 12-02-2007, 04:56 AM   #9
Phyrexicaid
Member
 
Registered: Aug 2004
Location: JHB - South Africa
Distribution: Kubuntu 7.04; openSUSE 10.1
Posts: 176

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bigrigdriver View Post
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.
Thanks! That's smart (or I am dumb )
 
Old 12-02-2007, 05:04 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 /
tar cpvf /media/disk/backup.tar /bin /usr /var /srv /boot /root
tar cpvf /media/disk/homebackup.tar /home
Besides this backup you might want to save the output of: "sudo /sbin/fdisk -l", the /etc/fstab and /etc/grub/menu.lst files. They are small and you could even print them out if you wanted. They supply the info you could use to reconstruct the partition system you had before.

Last edited by jschiwal; 12-02-2007 at 05:08 AM.
 
  


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
Symptoms of a Dead MOBO vs a Dead Processor..... Delano_Lucas General 7 07-26-2006 04:50 PM
Can't uninstall or reinstall backup software..HELP! ntwkgirl Linux - Software 2 05-23-2005 09:56 PM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM
backup files before reinstall HELP! ludeKing Linux - Newbie 5 08-15-2003 07:23 AM
backup files before reinstall HELP! ludeKing Linux - Newbie 4 08-14-2003 11:46 PM

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

All times are GMT -5. The time now is 06:32 AM.

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