LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2010, 07:05 AM   #1
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Rep: Reputation: 31
backup entire partition


Hi, I want to clone my / partition with the command 'dd'.
But, if I do dd if=/dev/sda1 of=/backup/sda1.bak.img, my bootloader(grub) will be copied as well?
I want to restore my system as it was before, so would not waste time on installing it again + all the software I want;

thx
 
Old 01-25-2010, 08:28 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
No, it will not back up all of your GRUB installation.

If /dev/sda1 includes /boot/grub then it will backup the configuration and stage 2 boot files. It will not backup the part of GRUB that sits in the first 446 bytes of the Master Boot Record (MBR) (stage 1) and will almost certainly not backup stage 1.5 that very probably sits in ~30 kB following the MBR.

Backing up and restoring GRUB stage 1 from the MBR using dd is described here in the "Boot-loader or IPL (Stage 1) Backup and Restore" section but it's not much use unless you can also backup and restore stage 1.5 and netsearching did not find anything about that.

A better solution might be to make a backup GRUB floppy, CD, DVD or USB memory stick. Instructions for doing so are given on the link above. That way you could restore your partitions using a bootable Linux CD or DVD such as Knoppix and then boot from them using the GRUB floppy, CD, DVD or USB memory stick followed by re-installing GRUB.

This is not an area in which I have much expertise so hopefully someone with more knowledge will reply to this thread with more complete information.

Last edited by catkin; 01-25-2010 at 08:29 AM. Reason: Comprehensibility
 
Old 01-26-2010, 01:09 AM   #3
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Original Poster
Rep: Reputation: 31
Thanks for the info, now I know what to do.

thx again
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the proper way to backup an ENTIRE hdd? FiveFlat Linux - Software 3 12-09-2004 04:08 AM
How to backup entire system without shutting down andrewjschmidt Linux - General 6 06-01-2004 06:01 PM
Backup entire system with tar sln Linux - General 2 04-30-2004 03:32 AM
How can I backup my entire system? TheDirtyPenguin Linux - Software 5 03-16-2004 08:48 AM
Can u backup entire LFS in such way ?? sapilas Linux From Scratch 1 05-02-2002 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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