Re: Cloning a disk: partclone?

2023-01-20 Thread Tixy
On Fri, 2023-01-20 at 14:56 +0200, Anssi Saari wrote: > Tixy writes: > > > Surely it's also straightforward to just copy the data in the partition > > then resize the filesystem... > > > >  cp /dev/sdX1 /dev/sdY1 > >  resize2fs /dev/sdY1 > > Sure. Partclone, since the OP asked about that, can s

Re: Cloning a disk: partclone?

2023-01-20 Thread Anssi Saari
Tixy writes: > Surely it's also straightforward to just copy the data in the partition > then resize the filesystem... > > cp /dev/sdX1 /dev/sdY1 > resize2fs /dev/sdY1 Sure. Partclone, since the OP asked about that, can speed this up for a partition since it's smart enough to not copy parts of

Re: Cloning a disk: partclone?

2023-01-20 Thread hede
t's not exactly 100%, but there's a high chance everything is fine. I did that several times right in the live system and never got real problems. Even including databases (SQL+ldap). Yes, it's absolutely preferred to boot the machine by some external boot media for system cloning pur

Re: Cloning a disk: partclone?

2023-01-19 Thread Tixy
On Thu, 2023-01-19 at 19:56 +, Tixy wrote: > > Surely it's also straightforward to just copy the data in the partition > then resize the filesystem... > >  cp /dev/sdX1 /dev/sdY1 >  resize2fs /dev/sdY1 > > Assuming you've already partitioned the target disk /dev/sdY to how you > want it. (An

Re: Cloning a disk: partclone?

2023-01-19 Thread Tixy
On Thu, 2023-01-19 at 20:34 +0100, DdB wrote: > Am 19.01.2023 um 19:49 schrieb Tom Browder: > > On my main PC, I would like to clone my boot drive onto another disk for > > 2 reasons: > > > > 1. Use a larger disk for the main drive > > 2. Create an emergency recovery disk > > > > A new Debian pac

Re: Cloning a disk: partclone?

2023-01-19 Thread Alexander V. Makartsev
oader on a destination drive after cloning. In case of GPT, cloning the EFI partition should be enough to boot from a destination drive. + Can it do a complete clone on an active disk? Or do I need a live CD or USB stick? No, it can't. Partitions have to be unmounted for partclone to work. Si

Re: Cloning a disk: partclone?

2023-01-19 Thread DdB
Am 19.01.2023 um 19:49 schrieb Tom Browder: > On my main PC, I would like to clone my boot drive onto another disk for > 2 reasons: > > 1. Use a larger disk for the main drive > 2. Create an emergency recovery disk > > A new Debian package to me is "partclone". Questions: > > + Can that be used

Re: Cloning a disk: partclone?

2023-01-19 Thread Charles Curley
On Thu, 19 Jan 2023 12:49:57 -0600 Tom Browder wrote: > + Can it do a complete clone on an active disk? Or do I need a live > CD or USB stick? I wouldn't try backing up a live partition due to issues with referential integrity. Suppose two interdependent files, A and B, change during the backing

Re: Cloning a disk: partclone?

2023-01-19 Thread Jeffrey Walton
On Thu, Jan 19, 2023 at 1:50 PM Tom Browder wrote: > > On my main PC, I would like to clone my boot drive onto another disk for 2 > reasons: > > 1. Use a larger disk for the main drive > 2. Create an emergency recovery disk > > A new Debian package to me is "partclone". Questions: > > + Can that

Cloning a disk: partclone?

2023-01-19 Thread Tom Browder
On my main PC, I would like to clone my boot drive onto another disk for 2 reasons: 1. Use a larger disk for the main drive 2. Create an emergency recovery disk A new Debian package to me is "partclone". Questions: + Can that be used for both purposes? + Can it do a complete clone on an active

Re: Image cloning software

2014-12-16 Thread Matt Ventura
On 12/15/2014 03:26 PM, Miroslav Skoric wrote: On 12/09/2014 11:11 PM, Andrei POPESCU wrote: You should probably provide more details about the installation to be cloned and hardware where the clone will be used. Kind regards, Andrei Here it is: 'Source 1' hardware: Desktop CPU Celeron 40

Re: Image cloning software

2014-12-15 Thread Miroslav Skoric
On 12/09/2014 11:11 PM, Andrei POPESCU wrote: You should probably provide more details about the installation to be cloned and hardware where the clone will be used. Kind regards, Andrei Here it is: 'Source 1' hardware: Desktop CPU Celeron 400 MHz, RAM 224 MB, HDD 21 GB (a half of a 41 GB

Re: Image cloning software

2014-12-09 Thread Andrei POPESCU
On Ma, 09 dec 14, 20:05:54, Miroslav Skoric wrote: > > Btw, when I mentioned 'cloning' an image on the other machines, I meant > including those with different hardware (CPU, GPU, HDD & RAM size). Would it > be possible? It depends: - CPU: matters only if different

Re: Image cloning software

2014-12-09 Thread Miroslav Skoric
Is there a good software for Debian 7.7 as well as for Debian 6.10 that is capable to produce a multi DVD/CD image of a working system, in a way that such image can be used later as a DVD/CD installation media for 'cloning' on the other comps (or on itself, in case of an irreparable fa

Re: Image cloning software

2014-11-30 Thread Karl E. Jorgensen
t; media for 'cloning' on the other comps (or on itself, in case of an > irreparable failure of a working machine)? Thanks. You may want to look at the bootcd package - looks like it will do what you ask... Or at least similar enough to get you most of the way there. -- Karl E. Jorgensen

Re: Image cloning software

2014-11-29 Thread Scott Ferguson
On 30 November 2014 at 10:53, Catalin Soare wrote: > > On Nov 30, 2014 1:26 AM, "Scott Ferguson" > wrote: >> >> On 30 November 2014 at 04:39, Miroslav Skoric wrote: >> > Is there a good software for Debian 7.7 as well as for Debian 6.10 that... >> There is also Debian-based Live CD, it's name

Re: Image cloning software

2014-11-29 Thread Catalin Soare
CD image of a working system, in a way that > > such image can be used later as a DVD/CD installation media for 'cloning' on > > the other comps (or on itself, in case of an irreparable failure of a > > working machine)? Thanks. > > The Live-CD project? Packages are in

Re: Image cloning software

2014-11-29 Thread Scott Ferguson
On 30 November 2014 at 04:39, Miroslav Skoric wrote: > Is there a good software for Debian 7.7 as well as for Debian 6.10 that is > capable to produce a multi DVD/CD image of a working system, in a way that > such image can be used later as a DVD/CD installation media for 'cloning&#

Re: Image cloning software

2014-11-29 Thread Gary Dale
On 29/11/14 12:39 PM, Miroslav Skoric wrote: Is there a good software for Debian 7.7 as well as for Debian 6.10 that is capable to produce a multi DVD/CD image of a working system, in a way that such image can be used later as a DVD/CD installation media for 'cloning' on the other co

Image cloning software

2014-11-29 Thread Miroslav Skoric
Is there a good software for Debian 7.7 as well as for Debian 6.10 that is capable to produce a multi DVD/CD image of a working system, in a way that such image can be used later as a DVD/CD installation media for 'cloning' on the other comps (or on itself, in case of an irreparable

Re: Cloning hdds of different sizes

2014-05-29 Thread Catalin Soare
On May 29, 2014 10:50 PM, "Ralf Mardorf" wrote: > > On Thu, 2014-05-29 at 22:05 +0300, Catalin Soare wrote: > > dd was running like so: dd if=/dev/sdb of=/dev/sda. > > #!/bin/sh > dd if=/dev/sdb of=/dev/sda > echo "dd exit status: $?" >> dd.log > exit > > Assumed the exit status isn't 0, there was

Re: Cloning hdds of different sizes

2014-05-29 Thread Ralf Mardorf
On Thu, 2014-05-29 at 22:05 +0300, Catalin Soare wrote: > dd was running like so: dd if=/dev/sdb of=/dev/sda. #!/bin/sh dd if=/dev/sdb of=/dev/sda echo "dd exit status: $?" >> dd.log exit Assumed the exit status isn't 0, there was an error. -- To UNSUBSCRIBE, email to debian-user-requ...@lists

Re: Cloning hdds of different sizes

2014-05-29 Thread Catalin Soare
On May 29, 2014 7:50 PM, "Steve Litt" wrote: > > On Wed, 28 May 2014 21:34:12 +0100 > Philip Ashmore wrote: > > > On 28/05/14 21:02, Steve Litt wrote: > > > > If you want to expand a partition to include the unallocated space, > > > I think you have to use whatever partition butts up against the

Re: Cloning hdds of different sizes

2014-05-29 Thread Steve Litt
On Wed, 28 May 2014 21:34:12 +0100 Philip Ashmore wrote: > On 28/05/14 21:02, Steve Litt wrote: > > If you want to expand a partition to include the unallocated space, > > I think you have to use whatever partition butts up against the > > unallocated space to make bigger. If there's a tool to e

Re: Cloning hdds of different sizes

2014-05-29 Thread Marko Randjelovic
On Tue, 27 May 2014 21:15:45 -0700 Patrick Bartek wrote: > 8. Create a new grub.cfg: Use grub-mkconfig. > > 9. Install to MBR of the 300GB drive: Use install-grub. I use LILO, but make sure you install GRUB on your new (300GB) drive, use fdisk -l /dev/sd[a-z] to find what is what. -- http://

Re: Cloning hdds of different sizes

2014-05-28 Thread Philip Ashmore
a 300 GB (data). >> >> I've decided to give one of them to my parents because the one they >> have right now makes some strange noises. So I've backed up and >> cleaned up the drive, and as we speak I am cloning my debian install >> (from the 250 GB disk) o

Re: Cloning hdds of different sizes

2014-05-28 Thread Steve Litt
ght now makes some strange noises. So I've backed up and > cleaned up the drive, and as we speak I am cloning my debian install > (from the 250 GB disk) onto the other drive. Sounds to me like a job for dd, or more specifically, ddrescue. ddrescue is featured on the Syste

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
27;ve backed up and > > cleaned up the drive, and as we speak I am cloning my debian install > > (from the 250 GB disk) onto the other drive. > > > > My fstab contains blkids to identify the root, swap, and home > > partitions. Will the new clone just boot as if it was on

Re: Cloning hdds of different sizes

2014-05-27 Thread Patrick Bartek
o I've backed up and > cleaned up the drive, and as we speak I am cloning my debian install > (from the 250 GB disk) onto the other drive. > > My fstab contains blkids to identify the root, swap, and home > partitions. Will the new clone just boot as if it was on the old > d

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
drive (debian) >> and the other is a 300 GB (data). >> >> I've decided to give one of them to my parents because the one they have >> right now makes some strange noises. So I've backed up and cleaned up the >> drive, and as we speak I am cloning my debian

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
m to my parents because the one they have > right now makes some strange noises. So I've backed up and cleaned up the > drive, and as we speak I am cloning my debian install (from the 250 GB disk) > onto the other drive. > > My fstab contains blkids to identify the root, swap, and

Cloning hdds of different sizes

2014-05-27 Thread Catalin Soare
speak I am cloning my debian install (from the 250 GB disk) onto the other drive. My fstab contains blkids to identify the root, swap, and home partitions. Will the new clone just boot as if it was on the old drive? Also is there a simple method to resize the future home partition and move the root pa

Re: "cloning" a debian installation

2014-02-05 Thread Roland Müller
Hello again, On 02/05/2014 05:16 PM, Roland Mueller wrote: Hello, 2014-02-05 Kruppt : On 2014-01-31, Kruppt wrote: On 2014-01-31, Fabrice Vaillant wrote: Hi I'm using debian 7.3 on my laptop (Dell E5530) and it runs perfectly fine. I'm considering remplacing the hdd by a ssd. The thing is

Re: "cloning" a debian installation

2014-02-05 Thread Roland Mueller
Hello, 2014-02-05 Kruppt : > On 2014-01-31, Kruppt wrote: > > On 2014-01-31, Fabrice Vaillant wrote: > >> Hi > >> I'm using debian 7.3 on my laptop (Dell E5530) and it runs perfectly > >> fine. I'm considering remplacing the hdd by a ssd. > >> The thing is I'd rather not go through the hassle o

Re: "cloning" a debian installation

2014-02-05 Thread Kruppt
On 2014-01-31, Kruppt wrote: > On 2014-01-31, Fabrice Vaillant wrote: >> Hi >> I'm using debian 7.3 on my laptop (Dell E5530) and it runs perfectly >> fine. I'm considering remplacing the hdd by a ssd. >> The thing is I'd rather not go through the hassle of setting up debian >> to suit my compu

Re: "cloning" a debian installation

2014-02-02 Thread Chen Wei
On Fri, Jan 31, 2014 at 09:36:52PM +, Kruppt wrote: > On 2014-01-31, Fabrice Vaillant wrote: > > to suit my computer. The question I'm asking is, what would be the > > simplest way(if it is possible) to "clone" my existing installation > > onto > > the new ssd. > > Yes you can clone it easil

Re: "cloning" a debian installation

2014-01-31 Thread Chris Bannister
On Fri, Jan 31, 2014 at 05:16:15PM -0500, Wally Lepore wrote: > No advertisement at all. I'm a member of this debian user group and > have wheezy installed with the kind help of other members on this > mailing list. I'm fairly new at this and simply suggesting a clone > software that I have used in

Re: "cloning" a debian installation

2014-01-31 Thread Scott Ferguson
On 01/02/14 08:02, Wally Lepore wrote: > Hi Fabrice, > > You have many questions that need answering from advanced users on > this list however as a kind suggestion, I can recommend a free > program called "EaseUS Disk Copy". I have used this software to clone > a complete copy of Windows from on

Re: "cloning" a debian installation

2014-01-31 Thread Ralf Mardorf
On Sat, 2014-02-01 at 01:01 +0100, Fabrice Vaillant wrote: > On 02/01/2014 12:53 AM, Ralf Mardorf wrote: > > On Fri, 2014-01-31 at 22:41 +0100, Fabrice Vaillant wrote: > >> Your solution seems the easiest of the adequate solution I have > >> received. Howewer I have received a pm about clonezilla w

Re: "cloning" a debian installation

2014-01-31 Thread Fabrice Vaillant
On 02/01/2014 12:53 AM, Ralf Mardorf wrote: On Fri, 2014-01-31 at 22:41 +0100, Fabrice Vaillant wrote: Your solution seems the easiest of the adequate solution I have received. Howewer I have received a pm about clonezilla which seems like a tool tailored for this kind of job. What are the adva

Re: "cloning" a debian installation

2014-01-31 Thread Ralf Mardorf
On Fri, 2014-01-31 at 22:41 +0100, Fabrice Vaillant wrote: > Your solution seems the easiest of the adequate solution I have > received. Howewer I have received a pm about clonezilla which seems like > a tool tailored for this kind of job. > What are the advantage of each solution ? > How do you

Re: "cloning" a debian installation

2014-01-31 Thread Gilles Mocellin
write and rewrite, and I have plenty (8 giga) of ram. Clonezilla is a great bootable CD/USB live distrib that can do disk cloning or partition clonning (if disks are not the same size). It uses the tools partclone, partimage, ntfsclone which are all in Debian. -- To UNSUBSCRIBE, email to debi

Re: "cloning" a debian installation

2014-01-31 Thread David
On 1 February 2014 09:16, Wally Lepore wrote: > On Fri, Jan 31, 2014 at 4:21 PM, Henning Follmann wrote: > >> Sorry I consider this some form of advertising. >> This is a Debian group! This program is a windows program. So you need a >> windows installation to use this. Sure they claim you can cre

Re: "cloning" a debian installation

2014-01-31 Thread Wally Lepore
On Fri, Jan 31, 2014 at 4:21 PM, Henning Follmann wrote: > Sorry I consider this some form of advertising. > This is a Debian group! This program is a windows program. So you need a > windows installation to use this. Sure they claim you can create a bootable > CD/DVD but you still need a windows

Re: "cloning" a debian installation

2014-01-31 Thread Kruppt
On 2014-01-31, Fabrice Vaillant wrote: > Hi > I'm using debian 7.3 on my laptop (Dell E5530) and it runs perfectly > fine. I'm considering remplacing the hdd by a ssd. > The thing is I'd rather not go through the hassle of setting up debian > to suit my computer. The question I'm asking is, what

Re: "cloning" a debian installation

2014-01-31 Thread Ralf Mardorf
On Fri, 2014-01-31 at 16:21 -0500, Henning Follmann wrote: > On Fri, Jan 31, 2014 at 04:02:37PM -0500, Wally Lepore wrote: > > Hi Fabrice, > > > > You have many questions that need answering from advanced users on > > this list however as a kind suggestion, I can recommend a free > > program call

Re: "cloning" a debian installation

2014-01-31 Thread Henning Follmann
On Fri, Jan 31, 2014 at 04:02:37PM -0500, Wally Lepore wrote: > Hi Fabrice, > > You have many questions that need answering from advanced users on > this list however as a kind suggestion, I can recommend a free > program called "EaseUS Disk Copy". I have used this software to clone > a complete

Re: "cloning" a debian installation

2014-01-31 Thread Wally Lepore
Hi Fabrice, You have many questions that need answering from advanced users on this list however as a kind suggestion, I can recommend a free program called "EaseUS Disk Copy". I have used this software to clone a complete copy of Windows from one hard disk to another. It worked perfect for my sp

Re: "cloning" a debian installation

2014-01-31 Thread Ralf Mardorf
I would simply use sudo cp -pr. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1391201981.688.68.camel@archlinux

"cloning" a debian installation

2014-01-31 Thread Fabrice Vaillant
Hi I'm using debian 7.3 on my laptop (Dell E5530) and it runs perfectly fine. I'm considering remplacing the hdd by a ssd. The thing is I'd rather not go through the hassle of setting up debian to suit my computer. The question I'm asking is, what would be the simplest way(if it is possible) to

Re: disks differ after cloning with dd

2013-11-12 Thread Scott Ferguson
On 13/11/13 18:09, Tixy wrote: > On Wed, 2013-11-13 at 10:37 +1100, Scott Ferguson wrote: >> On 13/11/13 01:40, Andre Majorel wrote: > [...] >>> Unfortunately, GNU dd does not have a --progress option but last >>> time I looked, it responded to signal USR1 by writing its >>> current stats on stderr

Re: disks differ after cloning with dd

2013-11-12 Thread Tixy
On Wed, 2013-11-13 at 10:37 +1100, Scott Ferguson wrote: > On 13/11/13 01:40, Andre Majorel wrote: [...] > > Unfortunately, GNU dd does not have a --progress option but last > > time I looked, it responded to signal USR1 by writing its > > current stats on stderr. So you can use ps to find out the

Re: disks differ after cloning with dd

2013-11-12 Thread Scott Ferguson
On 13/11/13 01:40, Andre Majorel wrote: > On 2013-11-11 15:06 +0100, berenger.mo...@neutralite.org wrote: > >> I do not remember having seen so much unused space on first disk. >> Could dd have written stuff there, when I only asked it to read >> there? > > dd writing to the argument of if= would

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:31 PM, hadi motamedi wrote: How can I check for [LVM, encryption, etc.] ? 'parted --list' provides some information. See cryptsetup(8) for encrypted partitions. See lvm(8) for LVM. See mdadm(8) for kernel software RAID. David -- To UNSUBSCRIBE, email to debian-user-

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:25 PM, hadi motamedi wrote: How to partition it ? I use parted(8). David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/52825c6c.5060...@holger

Re: disk cloning ?

2013-11-12 Thread David Christensen
On 11/11/2013 09:28 PM, hadi motamedi wrote: Here is the output : #parted -list disk /dev/hda 21.5GB sector : 512B/512B partition : msdos disk : /dev/sdb 40GB sector : 512B/512B partition : msdos error: unable to open /dev/md0 unrecognized disk label. We need to see the shell prompt, the comman

Re: disks differ after cloning with dd

2013-11-12 Thread Russell Powers
> On November 12, 2013 at 9:40 AM Andre Majorel wrote: > > Unfortunately, GNU dd does not have a --progress option but last > time I looked, it responded to signal USR1 by writing its > current stats on stderr. So you can use ps to find out the PID > of your dd(1) process then kill -USR1 from ti

Re: disks differ after cloning with dd

2013-11-12 Thread Andre Majorel
On 2013-11-11 15:06 +0100, berenger.mo...@neutralite.org wrote: > I do not remember having seen so much unused space on first disk. > Could dd have written stuff there, when I only asked it to read > there? dd writing to the argument of if= would be a bug. A major one. > 2: the 2 disks are USB d

Re: disk cloning ?

2013-11-12 Thread Ralf Mardorf
On Mon, 2013-11-11 at 21:25 -0800, hadi motamedi wrote: > >Sounds like you didn't partition the destination drive? Correct, the OP didn't: On Mon, 2013-11-11 at 21:28 -0800, hadi motamedi wrote: > Here is the output : > #parted -list > disk /dev/hda 21.5GB >

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
>>Also, please let us know if you're using encryption, LVM, etc. How can I check for it ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+N+sWgXR2FLMq_J=W30OxGOZR

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
> > What's the output of > > sudo parted -l > Here is the output : #parted -list disk /dev/hda 21.5GB sector : 512B/512B partition : msdos disk : /dev/sdb 40GB sector : 512B/512B partition : msdos error: unable to open /dev/md0 unrecognized disk label. -- To UNSUBSCRIBE, email to debian-user-r

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
>Sounds like you didn't partition the destination drive? How to partition it ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+n+swgo-tdv_s_nykr7ugwmg99+p2vfvjrut

Re: disk cloning ?

2013-11-11 Thread Ralf Mardorf
On Mon, 2013-11-11 at 12:51 -0800, David Christensen wrote: > On 11/11/2013 06:03 AM, Ralf Mardorf wrote: > > What's the output of > > sudo parted -l > > or > > su -c "parted -l" > > +1 > > > Also, please let us know if you're using encryption, LVM, etc.. I guess that parted does show it, if it

Re: disk cloning ?

2013-11-11 Thread David Christensen
On 11/11/2013 06:03 AM, Ralf Mardorf wrote: What's the output of sudo parted -l or su -c "parted -l" +1 Also, please let us know if you're using encryption, LVM, etc.. David -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contac

Re: disk cloning ?

2013-11-11 Thread David Christensen
On 11/11/2013 04:46 AM, hadi motamedi wrote: I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome th

Re: disks differ after cloning with dd

2013-11-11 Thread Karl E. Jorgensen
On Mon, Nov 11, 2013 at 03:06:44PM +0100, berenger.mo...@neutralite.org wrote: > Hello. > > Few days ago, I tried to clone a damaged[1] disk to another one, of > the same size, with dd. > I had to interrupt the copy after more than 24 hours, because it was > obviously too long[2]. Have you looked

Re: disks differ after cloning with dd

2013-11-11 Thread Shane Johnson
On Mon, Nov 11, 2013 at 7:06 AM, wrote: > Hello. > > Few days ago, I tried to clone a damaged[1] disk to another one, of the > same size, with dd. > I had to interrupt the copy after more than 24 hours, because it was > obviously too long[2]. > > Now, I am trying to look anew how to do the copy,

disks differ after cloning with dd

2013-11-11 Thread berenger . morel
Hello. Few days ago, I tried to clone a damaged[1] disk to another one, of the same size, with dd. I had to interrupt the copy after more than 24 hours, because it was obviously too long[2]. Now, I am trying to look anew how to do the copy, and looking at the disks with gparted, I have those

Re: disk cloning ?

2013-11-11 Thread Ralf Mardorf
On Mon, 2013-11-11 at 13:42 +, Karl E. Jorgensen wrote: > On Mon, Nov 11, 2013 at 05:31:07AM -0800, hadi motamedi wrote: > > >dd if=/dev/sdb1 of=/dev/sdc1 > > > > Sorry, I tried for this but getting "no space left on device" > > What can I do next? > > Sounds like you didn't partition the des

Re: disk cloning ?

2013-11-11 Thread Karl E. Jorgensen
On Mon, Nov 11, 2013 at 05:31:07AM -0800, hadi motamedi wrote: > >dd if=/dev/sdb1 of=/dev/sdc1 > > Sorry, I tried for this but getting "no space left on device" > What can I do next? Sounds like you didn't partition the destination drive? -- Karl E. Jorgensen -- To UNSUBSCRIBE, email to deb

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
>dd if=/dev/sdb1 of=/dev/sdc1 Sorry, I tried for this but getting "no space left on device" What can I do next? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+n+

Re: disk cloning ?

2013-11-11 Thread Karl E. Jorgensen
Hi On Mon, Nov 11, 2013 at 04:46:07AM -0800, hadi motamedi wrote: > Dear All > I needed to clone my disk to another hard drive . I did it as the following : > #dd if=/dev/sdb of=/dev/sdc > But after a while, the procedure ended with the "writing to /dev/sdc > input/output error" message. In gener

Re: disk cloning ?

2013-11-11 Thread hadi motamedi
>Better to try smartctl/badblocks/etc to test the health of the new drive >first Sorry, How the smartctl command must be issued to check for the health of the disk ? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@li

Re: disk cloning ?

2013-11-11 Thread Pertti Kosunen
On 11.11.2013 14:46, hadi motamedi wrote: What can I do at know ? http://www.gnu.org/software/ddrescue/ http://www.forensicswiki.org/wiki/Ddrescue Try ddrescue instead dd. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact list

Re: disk cloning ?

2013-11-11 Thread Darac Marjal
On Mon, Nov 11, 2013 at 04:46:07AM -0800, hadi motamedi wrote: > Dear All > I needed to clone my disk to another hard drive . I did it as the following : > #dd if=/dev/sdb of=/dev/sdc > But after a while, the procedure ended with the "writing to /dev/sdc > input/output error" message. So your new

disk cloning ?

2013-11-11 Thread hadi motamedi
Dear All I needed to clone my disk to another hard drive . I did it as the following : #dd if=/dev/sdb of=/dev/sdc But after a while, the procedure ended with the "writing to /dev/sdc input/output error" message. Can you please let me know how can I overcome this as the fdisk now returns as " #fdis

Re: [Postgres-xc-general] [SOLVED] Re: [GENERAL] cloning postgres-xc

2013-02-12 Thread Koichi Suzuki
Appreciate for very nice and interesting topics. -- Koichi Suzuki 2013/2/13 Zenaan Harkness : > [SOLVED] > > On 2/13/13, Michael Paquier wrote: >> On Wed, Feb 13, 2013 at 1:28 PM, Zenaan Harkness wrote: >> >>> On 2/13/13, Zenaan Harkness wrote: >>> > # this resulted in only 8.6MiB down

Re: [Postgres-xc-general] [GENERAL] cloning postgres-xc

2013-02-12 Thread Michael Paquier
On Wed, Feb 13, 2013 at 1:28 PM, Zenaan Harkness wrote: > On 2/13/13, Zenaan Harkness wrote: > > # this resulted in only 8.6MiB download just now, > > # on an up-to-date pg.git repo. > This quantity of data looks correct, half of it being due to the data in doc-xc/. $ git remote set-branches --

[SOLVED] Re: [Postgres-xc-general] [GENERAL] cloning postgres-xc

2013-02-12 Thread Zenaan Harkness
[SOLVED] On 2/13/13, Michael Paquier wrote: > On Wed, Feb 13, 2013 at 1:28 PM, Zenaan Harkness wrote: > >> On 2/13/13, Zenaan Harkness wrote: >> > # this resulted in only 8.6MiB download just now, >> > # on an up-to-date pg.git repo. > > This quantity of data looks correct, half of it being due

Re: [GENERAL] cloning postgres-xc

2013-02-12 Thread Zenaan Harkness
On 2/13/13, Zenaan Harkness wrote: > Here's what I just tried: > > cd postgresql.git/ > git remote add -f --tags -m master pgxc > git://postgres-xc.git.sourceforge.net/gitroot/postgres-xc/postgres-xc Please note, the above two lines should be one, forgot to manually format sorry. > # this result

Re: [GENERAL] cloning postgres-xc

2013-02-12 Thread Zenaan Harkness
Here's what I just tried: cd postgresql.git/ git remote add -f --tags -m master pgxc git://postgres-xc.git.sourceforge.net/gitroot/postgres-xc/postgres-xc # this resulted in only 8.6MiB download just now, # on an up-to-date pg.git repo. #view results: git remote -v git branch -a In my case, remo

Re: [GENERAL] cloning postgres-xc

2013-02-12 Thread Zenaan Harkness
fyi.. -- Forwarded message -- From: Michael Paquier Date: Wed, 13 Feb 2013 12:59:54 +0900 On Tue, Feb 12, 2013 at 2:36 PM, Zenaan Harkness wrote: > Does somone know the object overlap likely between pg and pgxc > repositories? > > I ask because I could just git clone pgxc, or I

Re: Need advice on cloning Debian server

2012-05-30 Thread Tom H
On Wed, May 30, 2012 at 11:09 AM, Shane Johnson wrote: > > I am sure where you have a working system you already know this, but for > those who find this and want to put LVM on top of a raid with Grub2, > make sure you create the raid with the .9 version of the metadata or > Grub2 won't work with

Re: Need advice on cloning Debian server

2012-05-30 Thread Shane Johnson
Once that is done you can vgreduce to remove the external HD from the VG and then pvremove to remove the LVM info from the external. if your system can't be down that long, you might be able to snapshot from the live cd then reboot the old system and then do the cloning and transferring b

Re: Need advice on cloning Debian server

2012-05-30 Thread Camaleón
On Tue, 29 May 2012 12:35:40 +0800, Joe Aquilina wrote: > I am relatively new to Linux/Debian and need some advice on "cloning" a > Debian system. Then I'd ask for someone with more experience can help you with this because cloning a full system on different hardwa

Re: Need advice on cloning Debian server

2012-05-29 Thread Joe
On Tue, 29 May 2012 12:35:40 +0800 Joe Aquilina wrote: > > My thought is that I should install Debian squeeze on to it and get > it running with RAID & LVM, with partitions, logical volumes etc. > matching the original file server, and then use rsync to copy all the > data files over the inte

Need advice on cloning Debian server

2012-05-28 Thread Joe Aquilina
Hello all. I am relatively new to Linux/Debian and need some advice on "cloning" a Debian system. At work we have a Debian file server, running Squeeze, which needs to be cloned to new hardware and then the old machine will be retired. It is a file server for a small office, has

Re: cloning a lvm crypto volume to a bigger disk

2011-07-07 Thread tv.deb...@googlemail.com
07/07/2011 08:35, Jochen Schulz wrote: >> Colin: [trim] >> I guess if I didn't have it I would need a separate dm-crypt and LUKS >> partition for each of /, /home and swap which in turn would mean 3 >> separate keys + passwords. > > Yes. You could get away with only one passphrase if you put key f

Re: cloning a lvm crypto volume to a bigger disk

2011-07-06 Thread Jochen Schulz
Colin: > > Wow ... now I have a lot to do :-) Hey, it's only about seven comands, plus some file editing. :) Don't let my lengthy explanations scare you from doing it that way. It's a great feeling to shuffle an OS around under your butt while it's running! > Just glancing through I'm thinking if

Re: cloning a lvm crypto volume to a bigger disk

2011-07-06 Thread Colin
Wow ... now I have a lot to do :-) Just glancing through I'm thinking if I even need LVM. It was done automatically by the installer. I guess if I didn't have it I would need a separate dm-crypt and LUKS partition for each of /, /home and swap which in turn would mean 3 separate keys + passwords. E

Re: cloning a lvm crypto volume to a bigger disk

2011-07-06 Thread Jochen Schulz
Colin: > > I want to move the crypto volume to new disk so I can use it and boot > from the new. Thanks for the information. Now I know what your setup looks like. I am still a bit unsure about your exact partition layout, because I didn't ask for that either, but AFAICS you have at least this:

Re: cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Colin
On Tue, Jul 5, 2011 at 5:52 PM, Jochen Schulz wrote: > Colin: >> >> I don't remember the specifics when I did the install but here's what I got: > > Thanks. Now please add the output of 'pvs', 'lvs'. And just to make > sure: you only want to move the encrypted volume to the new disk and > keep the

Re: cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Jochen Schulz
Jochen Schulz: > Colin: >> >> I don't remember the specifics when I did the install but here's what I got: > > Thanks. Now please add the output of 'pvs', 'lvs'. Erm, that probably sounded rude. What I forgot to add is that I should have asked for this information in the first place. Sorry! J.

Re: cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Jochen Schulz
Colin: > > I don't remember the specifics when I did the install but here's what I got: Thanks. Now please add the output of 'pvs', 'lvs'. And just to make sure: you only want to move the encrypted volume to the new disk and keep the old one? J. -- I use a Playstation to block out the existence

Re: cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Colin
On Tue, Jul 5, 2011 at 10:57 AM, Jochen Schulz wrote: > Colin: >> >> So I have this machine with a lvm crypto volume done with a debian >> testing install. This is on a disk with 160GB. >> But now I would like to clone it to a new disk: 500GB. >> What are my options? > > What's the order of the bl

Re: cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Jochen Schulz
Colin: > > So I have this machine with a lvm crypto volume done with a debian > testing install. This is on a disk with 160GB. > But now I would like to clone it to a new disk: 500GB. > What are my options? What's the order of the block layers? - LVM on top of dm-crypt on top of raw device, or -

cloning a lvm crypto volume to a bigger disk

2011-07-05 Thread Colin
Hi all, So I have this machine with a lvm crypto volume done with a debian testing install. This is on a disk with 160GB. But now I would like to clone it to a new disk: 500GB. What are my options? I thought about using clonezilla but I don't think it could resize a lvm crypto volume... Cheers, C

Re: cloning/saving system

2010-07-21 Thread B. Alexander
ou could "script" all of your UIDs and GIDs as well as other configuration details. For instance, I have a list of "essential" packages (essential for me) that I install on every box. With cfengine, I can automagically install them as well as edit/modify that list in one place.

Re: cloning/saving system

2010-07-21 Thread H.S.
On 21/07/10 08:41 AM, B. Alexander wrote: 3. Build the new machine with the netinst or businesscard cd. When asked what type of system to build (package selection), uncheck all the boxes. Reboot into your new system, copy pkglist.hostname from step 1 onto the machine. Do the following: I thi

Re: cloning/saving system

2010-07-21 Thread B. Alexander
John, For future reference, if you want to have a basic clone (not an exact copy) of a machine, what I end up doing (which allows me to provision a machine in about 15 minutes) uses the following procedure: 1. Create a package list on the old machine [1] dpkg --get-selections | grep -v d

  1   2   3   4   >