Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 05:38 AM, Pascal Hambourg wrote: Gary Dale a écrit : On 30/06/15 02:17 PM, Pascal Hambourg wrote: What I would do is shrink partition 5 by 100M then create a new ef02 partition in the freed space. Why on earth would you want to do such a dangerous and useless thing ? As I wrote in

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Sven Hartge
Gary Dale garyd...@torfree.net wrote: On 01/07/15 10:39 AM, Sven Hartge wrote: Gary Dale garyd...@torfree.net wrote: On 30/06/15 07:04 PM, Lisi Reisz wrote: On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter.

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Pascal Hambourg
Gary Dale a écrit : On 30/06/15 02:36 PM, Muhammad Yousuf Khan wrote: should i create partition 2 of a size of 1 GB. and make it as a boot partition and install grup on that partition. [...] I've stopped using separate boot partitions since wheezy, which allowed systems to boot directly

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Muhammad Yousuf Khan
Thanks Gary and Pascal and all for your very informative inputs and support. now it works and my drive is bootable now. however one thing i have notice which is also off the topic is that i can not boot my new GPT hard drive with supergrub CD. when i reaches where kernel loads it restart

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Pascal Hambourg
Gary Dale a écrit : On 30/06/15 02:56 PM, Pascal Hambourg wrote: You don't need to update the BIOS. All a sensible BIOS has to do is load the boot code in the MBR, regardless of the partition table style. That's not true. I have a Dell laptop that needed a BIOS update after I switched it to

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Pascal Hambourg
Sven Hartge a écrit : I had an interesting problem once, where I upgraded a server from Squeeze to Wheezy. This server had LVM on MD-RAID and so the core.img has to include the LVM- and MD-RAID drivers in addition to the ext3 code. With Squeeze this core.img just so fitted into the 31744

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Pascal Hambourg
Gary Dale a écrit : On 30/06/15 02:17 PM, Pascal Hambourg wrote: What I would do is shrink partition 5 by 100M then create a new ef02 partition in the freed space. Why on earth would you want to do such a dangerous and useless thing ? As I wrote in a previous message, there is plenty of

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Sven Hartge
Pascal Hambourg pas...@plouf.fr.eu.org wrote: Sven Hartge a écrit : I had an interesting problem once, where I upgraded a server from Squeeze to Wheezy. This server had LVM on MD-RAID and so the core.img has to include the LVM- and MD-RAID drivers in addition to the ext3 code. With

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Sven Hartge
Gary Dale garyd...@torfree.net wrote: On 30/06/15 07:04 PM, Lisi Reisz wrote: On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter. But out of 2T??? Agreed. I remember having a 100M /boot partition which was

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Don Armstrong
On Wed, 01 Jul 2015, Gary Dale wrote: The size of the RAID array is set by the smallest partition so if you want to be able to boot from either drive, then putting the ef02 partition in the free space on the new drive means that you will either not be able to boot from the old drive should the

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 10:39 AM, Sven Hartge wrote: Gary Dale garyd...@torfree.net wrote: On 30/06/15 07:04 PM, Lisi Reisz wrote: On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter. But out of 2T??? Agreed. I remember

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 02:43 AM, Muhammad Yousuf Khan wrote: Partition is created and grub is installed as instructed in the thread. Also Grub is installed now. should i make any config changes ( or not )in the /boot/grub/ directory? Number Start (sector)End (sector) Size Code Name 1

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Don Armstrong
On Wed, 01 Jul 2015, Gary Dale wrote: You missed the point that this would require different partition tables on the two drives. I saw and rejected the point because you do not need different partition tables, as is illustrated below from my original message. % diff -u (sudo fdisk -l /dev/sda)

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 07:01 PM, Arno Schuring wrote: Date: Wed, 1 Jul 2015 18:41:35 -0400 From: garyd...@torfree.net On 01/07/15 03:24 PM, Don Armstrong wrote: On Wed, 01 Jul 2015, Gary Dale wrote: The size of the RAID array is set by the smallest partition so if you want to be able to boot from

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 10:12 PM, Don Armstrong wrote: On Wed, 01 Jul 2015, Gary Dale wrote: You missed the point that this would require different partition tables on the two drives. I saw and rejected the point because you do not need different partition tables, as is illustrated below from my original

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Gary Dale
On 01/07/15 03:24 PM, Don Armstrong wrote: On Wed, 01 Jul 2015, Gary Dale wrote: The size of the RAID array is set by the smallest partition so if you want to be able to boot from either drive, then putting the ef02 partition in the free space on the new drive means that you will either not be

RE: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Arno Schuring
Date: Wed, 1 Jul 2015 18:41:35 -0400 From: garyd...@torfree.net On 01/07/15 03:24 PM, Don Armstrong wrote: On Wed, 01 Jul 2015, Gary Dale wrote: The size of the RAID array is set by the smallest partition so if you want to be able to boot from either drive, then putting the ef02

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Muhammad Yousuf Khan
Partition is created and grub is installed as instructed in the thread. Also Grub is installed now. should i make any config changes ( or not )in the /boot/grub/ directory? Number Start (sector)End (sector) Size Code Name 12048 7813119 3.7 GiB FD00

Re: RAID b/w GPT and NON GPT partition.

2015-07-01 Thread Reco
Hi. On Tue, Jun 30, 2015 at 11:17:11PM -0400, Gary Dale wrote: On 30/06/15 07:04 PM, Lisi Reisz wrote: On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter. But out of 2T??? Lisi Agreed. I remember having

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 07:04 PM, Lisi Reisz wrote: On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter. But out of 2T??? Lisi Agreed. I remember having a 100M /boot partition which was always running out of space if I

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Muhammad Yousuf Khan
Thanks Arno, Pascal and Gary with your input i manage to copy the partition to new drive in GPT format and my all drives (mdadm devices) are synced now. I have 4 RAID1 Partitions for all for different purpose. md1 : active raid1 sdb5[2] sda5[0] 9763768 blocks super 1.2 [2/2] [UU] md3 :

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Christian Seiler
Am 2015-06-30 15:58, schrieb Muhammad Yousuf Khan: number 5 is the swap partition as i know it from size. and i also attached that partition to my mdadm drive md1 which was set to swap by me and it is successfully synced. now my question is as i can not see the extended partition type in the

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Muhammad Yousuf Khan a écrit : Thanks Arno, Pascal and Gary with your input i manage to copy the partition to new drive in GPT format and my all drives (mdadm devices) are synced now. I have 4 RAID1 Partitions for all for different purpose. md1 : active raid1 sdb5[2] sda5[0]

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Christian Seiler a écrit : So if you want to boot from GPT partitions, you need to have a small-ish (I typically use 100-200 MB or so) FAT32 partition of the BIOS Boot Partition type at the beginning of the drive. That's where the boot loader will be installed. (And you need EFI to boot

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Steve McIntyre
pas...@plouf.fr.eu.org wrote: Christian Seiler a écrit : So if you want to boot from GPT partitions, you need to have a small-ish (I typically use 100-200 MB or so) FAT32 partition of the BIOS Boot Partition type at the beginning of the drive. That's where the boot loader will be installed.

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 09:58 AM, Muhammad Yousuf Khan wrote: Thanks Arno, Pascal and Gary with your input i manage to copy the partition to new drive in GPT format and my all drives (mdadm devices) are synced now. I have 4 RAID1 Partitions for all for different purpose. md1 : active raid1 sdb5[2]

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gene Heskett
On Tuesday 30 June 2015 11:55:20 Pascal Hambourg wrote: Christian Seiler a écrit : So if you want to boot from GPT partitions, you need to have a small-ish (I typically use 100-200 MB or so) FAT32 partition of the BIOS Boot Partition type at the beginning of the drive. That's where the

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Arno Schuring a écrit : As Pascal has said, the easiest is to create a new partition in the free space before partition 1 (sectors 34-2047). Make sure it has the correct type for a Bios Boot Partition (gdisk type ef02, with parted you need to set the Bootable flag). Actually no. Parted uses

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Gary Dale a écrit : Number Start (sector)End (sector) Size Code Name 12048 7813119 3.7 GiB FD00 Linux RAID 327344896 1980469247 931.3 GiB FD00 Linux RAID 4 1980469248 2930276351 452.9 GiB FD00 Linux RAID 5

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Muhammad Yousuf Khan
Sorry Arno my last message was mistakenly sent to you only and not the list. Thanks all for you comments. Pascal thanks for the tip about extending one of the partition and using the free space i will do so but for now my primary problem is to create a boot partition so that i can boot and

RE: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Arno Schuring
Hi again, Date: Tue, 30 Jun 2015 18:58:36 +0500 From: sir...@gmail.com but there are few confusions. actually in my old drive. there was a extended partition for SWAP. however when i copy the partition table with gdisk x and u option it created the file successfully however. i

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Muhammad Yousuf Khan a écrit : Pascal thanks for the tip about extending one of the partition and using the free space i will do so but for now my primary problem is to create a boot partition so that i can boot and replace the old 1.5 TB with 2TB drive. as you said boot partition in GPT can

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 02:56 PM, Pascal Hambourg wrote: Gene Heskett a écrit : On Tuesday 30 June 2015 11:55:20 Pascal Hambourg wrote: Actually GPT does not use *all* that space and GRUB could still find out the available unused space. But the GPT partition table could grow and overwrite the beginning of

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Don Armstrong
On Tue, 30 Jun 2015, Muhammad Yousuf Khan wrote: should i create partition 2 of a size of 1 GB. and make it as a boot partition and install grup on that partition. do you think performing these steps will do the job. or i have to more in order to boot my New 2TB GPT drive. Just create a new

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 02:36 PM, Muhammad Yousuf Khan wrote: Sorry Arno my last message was mistakenly sent to you only and not the list. Thanks all for you comments. Pascal thanks for the tip about extending one of the partition and using the free space i will do so but for now my primary problem is

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Don Armstrong
On Tue, 30 Jun 2015, Don Armstrong wrote: Just create a new partition before the 2048 sector to use as a grub bios_grub partition. For example: sudo gdisk /dev/sda p = print n = new partition number = 2 start sector = 34 (or as close to zero as you can get) end sector = 2047 code =

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Muhammad Yousuf Khan
Ramadan Kareem Yousuf. What I would do is shrink partition 5 by 100M then create a new ef02 partition in the freed space. This should be completely safe since it is just a swap partition and contains no permanent data. Do this on both drives after stopping swap (swapoff) then

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Pascal Hambourg
Gene Heskett a écrit : On Tuesday 30 June 2015 11:55:20 Pascal Hambourg wrote: Actually GPT does not use *all* that space and GRUB could still find out the available unused space. But the GPT partition table could grow and overwrite the beginning of the bootloader, so I guess it was

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 02:17 PM, Pascal Hambourg wrote: Gary Dale a écrit : Number Start (sector)End (sector) Size Code Name 12048 7813119 3.7 GiB FD00 Linux RAID 327344896 1980469247 931.3 GiB FD00 Linux RAID 4 1980469248

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Sven Hartge
Gary Dale garyd...@torfree.net wrote: If you are referring to the ef02 partition, you don't install grub on it. In fact, installing grub on the mbr is preferred. The first stage is put into the 512 Bytes of the MBR. The rest (the core.img) is installed into the bios_grub partititon. With a

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gene Heskett
On Tuesday 30 June 2015 14:56:46 Pascal Hambourg wrote: Gene Heskett a écrit : On Tuesday 30 June 2015 11:55:20 Pascal Hambourg wrote: Actually GPT does not use *all* that space and GRUB could still find out the available unused space. But the GPT partition table could grow and

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Gary Dale
On 30/06/15 03:05 PM, Muhammad Yousuf Khan wrote: Ramadan Kareem Yousuf. What I would do is shrink partition 5 by 100M then create a new ef02 partition in the freed space. This should be completely safe since it is just a swap partition and contains no permanent data.

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Sven Hartge
Gary Dale garyd...@torfree.net wrote: There is, but 2048 sectors is only 1M. Shrinking the swap partition and creating a 100M ef02 partition in the free space leaves a lot more headroom. Just because something fits today doesn't mean it will always fit. Wow. 100MB for a bios_grub partition

Re: RAID b/w GPT and NON GPT partition.

2015-06-30 Thread Lisi Reisz
On Tuesday 30 June 2015 23:30:46 Sven Hartge wrote: Wow. 100MB for a bios_grub partition wastes about 99.8MB. Which used to matter. But out of 2T??? Lisi -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: RAID b/w GPT and NON GPT partition.

2015-06-29 Thread Pascal Hambourg
Arno Schuring a écrit : Muhammad Yousuf Khan a écrit : I have been using RAID1 b/w two 1.5 TB drives which worked great with fdisk. now one of the drive is failed and there is no more 1.5 TB available in the market. the least available drive is 2TB. Which means fdisk 2TB issue.

RE: RAID b/w GPT and NON GPT partition.

2015-06-29 Thread Arno Schuring
Hi, Date: Mon, 29 Jun 2015 14:52:32 +0500 From: sir...@gmail.com I have been using RAID1 b/w two 1.5 TB drives which worked great with fdisk. now one of the drive is failed and there is no more 1.5 TB available in the market. the least available drive is 2TB. Which means fdisk

Re: RAID b/w GPT and NON GPT partition.

2015-06-29 Thread Gary Dale
On 29/06/15 05:52 AM, Muhammad Yousuf Khan wrote: Dear All, i have 2 drives installed way back in 2013 /dev/sda and /dev/sdb I have been using RAID1 b/w two 1.5 TB drives which worked great with fdisk. now one of the drive is failed and there is no more 1.5 TB available in the market. the