Re: [gentoo-user] MBR partition
On Saturday 06 Sep 2014 15:42:32 Neil Bothwick wrote: On Sat, 6 Sep 2014 04:44:56 -0600, Joseph wrote: I'll continue on Monday and let you know. If it will not boot with sector starting at 2048, I will re-partition /boot sda1 to start at 63. Don't even think about aligning partitions like that on an SSD. Why do you want to move it to sector 63? Leave exactly where it is and you will not have any problems installing and booting with GRUB2 or GRUB legacy. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] MBR partition
On Saturday 06 Sep 2014 13:49:27 Alan McKinnon wrote: On 06/09/2014 05:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. There is no such thing as an MBR partition. Please clarify. The MBR is the first sector of the disk. It simply exists and you use it as such. I think the OP is meant to say that he is formatting an older disk (I'm guessing less than 2TB) with a DOS partition table for the purpose of booting with an MBR (as opposed to UEFI). Of course I am reading between the lines here, because the OP has not formulated the question clearly enough for me to know what kind of code he is referring to (the whole PC is full of ... code) and where does he intend to enter such code. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] MBR partition
On 07/09/2014 13:44, Mick wrote: On Saturday 06 Sep 2014 13:49:27 Alan McKinnon wrote: On 06/09/2014 05:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. There is no such thing as an MBR partition. Please clarify. The MBR is the first sector of the disk. It simply exists and you use it as such. I think the OP is meant to say that he is formatting an older disk (I'm guessing less than 2TB) with a DOS partition table for the purpose of booting with an MBR (as opposed to UEFI). Of course I am reading between the lines here, because the OP has not formulated the question clearly enough for me to know what kind of code he is referring to (the whole PC is full of ... code) and where does he intend to enter such code. I agree, and I figured the same. Still waiting for his answer. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] MBR partition
On Sunday 07 September 2014 14:25:50 Alan McKinnon wrote: On 07/09/2014 13:44, Mick wrote: On Saturday 06 Sep 2014 13:49:27 Alan McKinnon wrote: On 06/09/2014 05:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. There is no such thing as an MBR partition. Please clarify. The MBR is the first sector of the disk. It simply exists and you use it as such. I think the OP is meant to say that he is formatting an older disk (I'm guessing less than 2TB) with a DOS partition table for the purpose of booting with an MBR (as opposed to UEFI). Of course I am reading between the lines here, because the OP has not formulated the question clearly enough for me to know what kind of code he is referring to (the whole PC is full of ... code) and where does he intend to enter such code. I agree, and I figured the same. Still waiting for his answer. He said he'd resume after the weekend, so don't hold your breath just yet... -- Regards Peter
Re: [gentoo-user] MBR partition
On 06/09/2014 04:10, Joseph wrote: On 09/05/14 21:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. Not that it particularly matters but a partition dedicated to /boot contains a Linux filesystem and, thus, 83 is appropriate. My current configuration: fdisk -l /dev/sda Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x021589e5 DeviceBoot Start EndBlocks Id System /dev/sda1 * 2048155647 76800 83 Linux /dev/sda2 155648 4349951 2097152 82 Linux swap / Solaris /dev/sda34349952 937703087 466676568 83 Linux Does the sda1 has to start with 1 or 2048? As of util-linux-2.18, partitions are aligned to 1 MiB boundaries by default, so as to avoid performance degradation on SSDs and advanced format drives [1]. Further, beginning at 2048 as opposed to 63 (in the manner of MS-DOS) provides more room for boot loaders such as grub to embed themselves. To have the first sector be a partition boundary is impossible because that is the location of the MBR and the partition table. In summary, let it be. --Kerin [1] https://bugs.gentoo.org/show_bug.cgi?id=304727 [2] https://en.wikipedia.org/wiki/Master_boot_record
Re: [gentoo-user] MBR partition
On 09/06/14 07:15, Kerin Millar wrote: On 06/09/2014 04:10, Joseph wrote: On 09/05/14 21:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. Not that it particularly matters but a partition dedicated to /boot contains a Linux filesystem and, thus, 83 is appropriate. My current configuration: fdisk -l /dev/sda Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x021589e5 DeviceBoot Start EndBlocks Id System /dev/sda1 * 2048155647 76800 83 Linux /dev/sda2 155648 4349951 2097152 82 Linux swap / Solaris /dev/sda34349952 937703087 466676568 83 Linux Does the sda1 has to start with 1 or 2048? As of util-linux-2.18, partitions are aligned to 1 MiB boundaries by default, so as to avoid performance degradation on SSDs and advanced format drives [1]. Further, beginning at 2048 as opposed to 63 (in the manner of MS-DOS) provides more room for boot loaders such as grub to embed themselves. To have the first sector be a partition boundary is impossible because that is the location of the MBR and the partition table. In summary, let it be. --Kerin Thank you for the information. I'll continue on Monday and let you know. If it will not boot with sector starting at 2048, I will re-partition /boot sda1 to start at 63. -- Joseph
Re: [gentoo-user] MBR partition
On 06/09/2014 05:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. There is no such thing as an MBR partition. Please clarify. The MBR is the first sector of the disk. It simply exists and you use it as such. -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] MBR partition
On Sat, 6 Sep 2014 04:44:56 -0600, Joseph wrote: I'll continue on Monday and let you know. If it will not boot with sector starting at 2048, I will re-partition /boot sda1 to start at 63. Don't even think about aligning partitions like that on an SSD. -- Neil Bothwick No, you *can't* call 999 now. I'm downloading my mail. signature.asc Description: PGP signature
Re: [gentoo-user] MBR partition
On 09/05/14 21:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. My current configuration: fdisk -l /dev/sda Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x021589e5 DeviceBoot Start EndBlocks Id System /dev/sda1 * 2048155647 76800 83 Linux /dev/sda2 155648 4349951 2097152 82 Linux swap / Solaris /dev/sda34349952 937703087 466676568 83 Linux Does the sda1 has to start with 1 or 2048? -- Joseph
Re: [gentoo-user] MBR partition
On 6 September 2014 05:10:59 CEST, Joseph syscon...@gmail.com wrote: On 09/05/14 21:02, Joseph wrote: I'm configuring MBR partition for older disk and need to know what code to enter for boot partition. My BIOS is not EFI type. My current configuration: fdisk -l /dev/sda Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x021589e5 DeviceBoot Start EndBlocks Id System /dev/sda1 * 2048155647 76800 83 Linux /dev/sda2 155648 4349951 2097152 82 Linux swap / Solaris /dev/sda34349952 937703087 466676568 83 Linux Does the sda1 has to start with 1 or 2048? This should work. If, after following the handbook, it doesn't boot. Please tell us what actually happens. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.