LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-28-2004, 08:49 PM   #1
cjrao
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Using dd to backup a partition.


I am not sure if this question was asked before, searched for this question in different possible combinations in google and couldn't find an answer. I am hoping find an answer in this forum.

The problem I have,
I had a partition of size 3068252x1k (/dev/hda1 - reiserfs), used the following command to back up this partition,
dd if=/dev/hda1 of=linux_reiser.file bs=1k count=3068252

burned this linux_reiser.file into a dvd using dvdrecord,
dvdrecord -dev=0,0,0 -driveropts=burnfree -eject linux_resier.file

Now, I had to delete all the partitions and on my first Trial to restore, here is what I did,
reboot the system with a slackware cd and tried this command,
using fdisk create a partition of size 2996 MB = 3068252x1KB.
dd if=/dev/hdb of=/dev/hda1 bs=1k count=3068252

I get a message that no space is left in /dev/hda1. I increased the partition size by 1 cylinder each time and tried it until the dd command could successfully write all the bytes. However I see that the partition is not restored, as I cannot boot from this disk. This partition is marked as bootable.

Thanks in advance.
 
Old 08-29-2004, 12:51 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
Next time try using partimage:

http://www.partimage.org/

Download the SystemRescue CD iso and you can run partimage from that; it's similar to ghost but has support for all common linux filesystems.


As to your current problem, are you sure the data is not on your new partition. Try booting off a knoppix cd and see what's there. Even though you may have successfully imaged the partition, you did not image the mbr with that command which is where the boot loader is located which might be your problem. without a bootloader, you can't boot the system. There's some tricks you can try to restore the bootloader but you'll need a live cd like knoppix to do any of them assuming you successfully restored the original partition.
 
  


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
Trying to create bootable backup partition jeffbarish Debian 4 10-10-2005 02:05 PM
backup partition table twantrd *BSD 1 08-20-2005 07:01 PM
partition backup jackren Linux - Software 1 10-09-2004 11:03 AM
Why can't I restore a partition table backup containing a reiser partition? oldweasel Linux - Software 2 05-23-2004 12:11 AM
!Backup partition problem ! Braveheart1980 Linux - General 16 03-15-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 PM.

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