LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-24-2007, 04:57 AM   #1
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Rep: Reputation: 15
Lost boot drive, howto reinstall from backups w/ apt?


I lost my boot drive (sounds crunchy!). I was running Ubuntu Edgy, and I had /var and /home mounted on a RAID5. I also backed up /etc daily to /var/backup so I have all of that.

Here's the relevant lines from /etc/fstab:
Code:
root@ubuntu:/mnt/var/backup/CURRENT/etc# cat ./fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda3 -- converted during upgrade to edgy
UUID=21a6dc19-b80f-49f7-8722-69dd20b7b72d / ext3 defaults,errors=remount-ro 0 1
# /dev/hda6 -- converted during upgrade to edgy
UUID=04415998-25f0-40d4-9632-39f49ea530b7 none swap sw 0 0
/dev/md1        /var            ext2    defaults,errors=remount-ro 0       1
/dev/md0        /home           ext2    defaults,errors=remount-ro 0       1
/dev/hdb        /media/cdrom0   udf,iso9660 user,noauto     0       0
I have installed a new disk and I am currently installing Ubuntu Dapper from a live CD while I type up this message.

(Note, I am a little unsure of those lines pointing to /dev/hda since I have replaced that disk and I am not using the same partitions).

What is the best way to restore this?

One method:
1) Install dapper to the disk.
2) From the live CD boot, update the dapper fstab to mount the old /var and /home. Copy over the backup /etc.
3) Boot into the new installation, run apt to update the system.

Obviously, I am a little short on the details, but is this the way to go? If so, what is the command to force apt to glabally reinstall?

If you know a good HOWTO for this, please let me know. I am looking around, but I haven't seen anything that involves backups for /var and /etc.

Thanks!
 
  


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
Lost system, can't reinstall pickarooney Linux - Software 9 02-09-2007 08:58 AM
Howto recover lost and formatted data on lost partitions. Sören Schneider LinuxQuestions.org Member Success Stories 2 04-05-2006 06:38 AM
howto boot Suse 9.1 from external usb drive through bios-accessable boot partition McHenner Linux - Hardware 2 09-30-2004 07:27 AM
Howto reinstall aRts? Trey2501 Linux - Newbie 5 04-09-2004 11:41 AM
Had to reinstall XP...Lost LiLo snowiewolf Slackware 31 03-22-2004 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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