Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-20-2004, 01:01 AM   #1
Registered: Aug 2004
Location: Spain
Posts: 45

Rep: Reputation: 15
Partimage, I'm confused

If I use partimage to make an image of my root partition, then later restore that image (possibly to a different hard drive), would the restore be bootable?
Old 10-20-2004, 03:08 AM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The answer is a qualified yes provided that the details for fstab are identical. If you image a drive (partition) then it is an absolute replica of the original. If you took the image from /dev/hda1 and restored it to /dev/hda1 then there would be no problem. If you restored it to /dev/hda3 then it would not work since fstab is pointed to /dev/hda1. You would then have to use something like knoppix to go and edit fstab to get all the mounts correct.
Old 10-20-2004, 05:02 AM   #3
Registered: Aug 2004
Location: Spain
Posts: 45

Original Poster
Rep: Reputation: 15
That is clear now, many thanks for your answer.
Old 10-26-2004, 01:37 PM   #4
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Yes, the partition will be bootable, but the drive may not be. It depends on what you do to the drive in the meanwhile. Specifically, the first sector or so holds the master boot record and parition table. If these get altered (if, say, the drive gets formated) then they would need to be rewritten before the computer will boot.

The following is the basic command to back them up and restore them. You will need to make sure how much needs to be backed up though (I'm guessing just the first sector)

to backup:
dd if=/dev/hda of=MyBackupFile bs=512 count=1

to restore:
dd if=MyBackupFile of=/dev/hda bs=512 count=1

In other words, disk dump from the primary master hard drive (hda, notice no number trailing) into a file; transfer 512 bytes at a time, 1 time. If I'm wrong on the size you may not get everything, so be aware...

On the other hand, if you do nothing to alter the MBR etc, then yes, the partition will boot just fine. If you ever lose the MBR, then there are places in this forum where you can get help.


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
partimage linuxmandrake Linux - Software 7 12-21-2005 09:59 AM
partimage salv236 Linux - Software 1 01-24-2005 09:51 AM
Partimage tbayer Linux - Software 3 12-18-2004 12:10 AM
partimage help bungle_42 Linux - Software 11 06-17-2004 10:40 AM
partimage Biermonster Linux - Networking 0 03-22-2002 10:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration