LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-24-2005, 09:51 AM   #1
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
How to clone partion structure which includes LVM


How do I go about cloning a partion structre of a drive, to another drive (external drive) considering that the source drive contains LVM partions?

I want to have similiar partion structures so that I can use dump to backup to the external hard drive nightly.
 
Old 05-24-2005, 12:08 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You should be able to use sfdisk ( scriptable fdisk ) as root user.
For example:
sfdisk -d /dev/hda > my_partitions.txt
sfdisk /dev/hdb < my_partitions.txt

I don't know if you can go directly from drive a to drive b like this but you may want google on this befor you try it....
sfdisk -d /dev/hda > /dev/hdb
 
  


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
need an NTFS partion. noteventime Linux - Software 3 04-13-2005 08:22 AM
shared partion Voyager_MP Linux - Networking 1 08-16-2004 05:58 AM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
Must "/boot" partion be installed in the primary partion? domeili Linux - Newbie 9 11-01-2003 08:27 AM
Resize partion stardock Linux - Software 1 06-19-2001 03:48 AM

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

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