LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-08-2009, 04:14 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
backing up and mirroring logical partitions


In the /dev/sda# scheme, is there a number that refers to the extended partition alone (and not a particular logical partition)? So would /dev/sda5 refer to the extended partition and /dev/sda6 to the first logical partition?

If I do dd if=/dev/sda7, where sda7 is some extended partition, does it copy the EBR in addition the partition itself? Or do I have to subtract some offset from sda7 to get the EBR?

I have a 230 GB and a 500 GB drive. I would like the beginning of the large drive to match the small drive, and the rest exist as logical partitions. If I set up my partitions on the 500 GB drive, and copy it using dd to the 230 GB drive, what will become of the logical partitions that can't be copied? I assume the last logical partition on the small drive will have an EBR that points off the drive... will this be a problem?

Would I be better off setting up everything on the 230 GB, copying to the 500 GB, and then creating logical partitions in the remaining space?

My goal is to be able to use the 500 GB to recover the 230 GB (+ some extra storage). I want to be able to recover a single partition, the entire disk, or even boot from the 500 GB if necessary.

(The 230 is an internal drive, the 500 is an external USB drive - it's actually two 500 gb in RAID)
 
Old 07-08-2009, 08:08 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
From what you say you want to achieve, this
Quote:
Would I be better off setting up everything on the 230 GB, copying to the 500 GB, and then creating logical partitions in the remaining space?
is the sane way to go.
 
Old 07-09-2009, 08:23 AM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 67
But what happens if I need to restore everything and copy the first few partitions from the 500 GB back to the 230 GB? Do I need to use a partition editor to make sure the EBR on the last partition doesn't point to another logical partition off the disk? Will this pointer just be ignored, does it depend on what software is actually looking at it?

I typically use gparted, is there a way to edit partition information, both primary and extended, without actually modifying the partitions?
 
  


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
Partitions, logical vs primary AphoxemaG General 15 02-16-2007 01:33 AM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 07:15 PM
freebsd 6.0 and logical partitions chocloman *BSD 8 03-21-2006 02:04 AM
primary or logical partitions? blotch Slackware 10 09-09-2004 05:36 AM
CFDISK Logical partitions ZeroCoolJr Slackware 7 02-23-2004 07:20 AM


All times are GMT -5. The time now is 02:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration