Re: Clone GPT partition table - with Lenny ?

2014-07-07 Thread Tom H
On Sun, Jul 6, 2014 at 3:54 PM, Ron Leach ronle...@tesco.net wrote: We have a RAID1 server running Lenny, one of whose two 2TB discs comprising the RAID arrays has failed. The discs were partitioned into 8 partitions during the Debian Lenny installation, and separate RAID1 arrays were built

Re: Clone GPT partition table - with Lenny ?

2014-07-07 Thread Tom H
On Sun, Jul 6, 2014 at 5:49 PM, B lazyvi...@gmx.com wrote: Apparently, this is very easy: http://unix.stackexchange.com/questions/12986/how-to-copy-the-partition-layout-of-a-whole-disk-using-standard-tools You can't uses sfdisk with gpt disks. -- To UNSUBSCRIBE, email to

Re: Clone GPT partition table - with Lenny ?

2014-07-07 Thread Tom H
On Sun, Jul 6, 2014 at 5:53 PM, B lazyvi...@gmx.com wrote: Rahhh, read too fast, former was for non-GPT, here's one good pgm that does the trick (also exist as a pkg in trudububu):

Clone GPT partition table - with Lenny ?

2014-07-06 Thread Ron Leach
List, good evening, We have a RAID1 server running Lenny, one of whose two 2TB discs comprising the RAID arrays has failed. The discs were partitioned into 8 partitions during the Debian Lenny installation, and separate RAID1 arrays were built on 7 of those partitions, again during Debian

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 06 Jul 2014 20:54:10 +0100 Ron Leach ronle...@tesco.net wrote: Is there, in Lenny, a command or tool for cloning a GPT? Use dd, it'll take a looong time but you'll have a bit copy. -- ptinou: the only thing that surprised me with vi$ta was when it told me it was going to

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 06 Jul 2014 20:54:10 +0100 Ron Leach ronle...@tesco.net wrote: Oops, I read a tiny bit too fast. machine to Wheezy. So I need to partition the new disk, and I'd like it to be an exact clone of the existing RAID1 member, so that each partition starts on the same sector, etc. I can

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Steve Litt
On Sun, 6 Jul 2014 22:20:55 +0200 B lazyvi...@gmx.com wrote: On Sun, 06 Jul 2014 20:54:10 +0100 Ron Leach ronle...@tesco.net wrote: Is there, in Lenny, a command or tool for cloning a GPT? Use dd, it'll take a looong time but you'll have a bit copy. But... How do you know how

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Matt Ventura
On 7/6/2014 1:37 PM, Steve Litt wrote: On Sun, 6 Jul 2014 22:20:55 +0200 Blazyvi...@gmx.com wrote: On Sun, 06 Jul 2014 20:54:10 +0100 Ron Leachronle...@tesco.net wrote: Is there, in Lenny, a command or tool for cloning a GPT? Use dd, it'll take a looong time but you'll have a bit

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 06 Jul 2014 13:41:15 -0700 Matt Ventura mattvent...@mattventura.net wrote: You don't need to know, you just use dd over the entire disk (i.e. sda instead of sda1). Yup. Just to be clear, you're trying to copy the entire disk with all its partitions, right? I think you also read

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Matt Ventura
On 7/6/2014 1:56 PM, B wrote: On Sun, 06 Jul 2014 13:41:15 -0700 Matt Venturamattvent...@mattventura.net wrote: You don't need to know, you just use dd over the entire disk (i.e. sda instead of sda1). Yup. Just to be clear, you're trying to copy the entire disk with all its partitions,

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Ron Leach
On 06/07/2014 21:25, B wrote: On Sun, 06 Jul 2014 20:54:10 +0100 Ron Leachronle...@tesco.net wrote: Oops, I read a tiny bit too fast. machine to Wheezy. So I need to partition the new disk, and I'd like it to be an exact clone of the existing RAID1 member, so that each partition starts

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Ron Leach
On 06/07/2014 21:56, B wrote: I think you also read too fast, apparently he just wanna have the same partition table. Which RAID doesn't care, eg: dsk0 partition = 100 (sectors, GB, whatever) dsk1 = 101 or 4242.42 RAID will only pick 100 on dsk1 partition to achieve its work.

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 06 Jul 2014 22:35:03 +0100 Ron Leach ronle...@tesco.net wrote: B, many thanks for thinking about this, Call me mâââsteeelll and bend over Igolll, so I can pet your hump *;-) Apparently, this is very easy:

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 6 Jul 2014 23:49:38 +0200 B lazyvi...@gmx.com wrote: Rahhh, read too fast, former was for non-GPT, here's one good pgm that does the trick (also exist as a pkg in trudububu):

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Ron Leach
On 06/07/2014 22:49, B wrote: On Sun, 06 Jul 2014 22:35:03 +0100 Apparently, this is very easy: http://unix.stackexchange.com/questions/12986/how-to-copy-the-partition-layout-of-a-whole-disk-using-standard-tools I mentioned Lenny, because it matters. I'd found that page before posting,

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Neal Murphy
Other than not being fully automated, what would be wrong with: - use dd to copy the first 10MiB of the old drive to the new, - use dd to skip all but the last 10MiB of the old drive and seek to the same spot on the new drive - use dd if=/dev/zero to zero the first MiB of each partition.

Re: Clone GPT partition table - with Lenny ?

2014-07-06 Thread Bzzzz
On Sun, 6 Jul 2014 19:20:01 -0400 Neal Murphy neal.p.mur...@alum.wpi.edu wrote: Other than not being fully automated, what would be wrong with: - use dd to copy the first 10MiB of the old drive to the new, - use dd to skip all but the last 10MiB of the old drive and seek to the same spot