Re: [DNG] gpt boot on bios machine
On Sat, Mar 02, 2019 at 11:15:03PM +0100, k...@aspodata.se wrote: > hendrik: > > Currently booting from a 750G BIOS-partitioned disk. > > Trying to enable booting from the 4.7T drive, which is GPT partitioned. > > > > With grub-install I get errors: > > > > april:/farhome/hendrik# grub-install /dev/sda > > Installing for i386-pc platform. > > grub-install: warning: this GPT partition label contains no BIOS Boot > > Partition; embedding won't be possible. > > grub-install: error: embedding is not possible, but this is required for > > RAID and LVM install. > > april:/farhome/hendrik# > > > > Evidently there is some kind of incompatibility here. > > > > What is going on? What can I to do other than continuing to boot from > > small BIOS disks? > > I have: > > # file -s /dev/sda > /dev/sda: DOS/MBR boot sector, LInux i386 boot LOader; partition 1 : ID=0xee, > start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 4294967295 sectors > # fdisk -l /dev/sda > Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors > Disk model: TOSHIBA MG03ACA3 > 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: gpt > Disk identifier: 7A22F348-BA09-4E8C-9EE5-D2534E719D7C > > Device StartEndSectors Size Type > /dev/sda12048 194559 19251294M Linux RAID > /dev/sda2 19456019537911759232 859M Linux RAID > /dev/sda3 1953792 19531775 17577984 8.4G Linux RAID > /dev/sda419531776 117186559 97654784 46.6G Linux RAID > /dev/sda5 117186560 136718335 19531776 9.3G Linux RAID > /dev/sda6 136718336 1953124351 1816406016 866.1G Linux RAID > /dev/sda7 1953124352 5860532223 3907407872 1.8T Linux RAID > # > > Using lilo and mdraid mirrored partitions, no problems at all. > I always use a small /boot partition first, no initrd, self compiled > kernel. Interesting. I used to have lilo boot from a floppy, as an alternative in case the complicated grub ever failed. But lilo hasn't worked for me lately -- it turns out the problem was hardware -- over the years the floppy disk's magnetic oxides had completely worn off. It was *transparent*! Or at least. transparent where the boot track used to be. I'll get a new floppy disk before I mess with grub. I hope hthe floppy drive's heads aren't also worn down of clotted wit oxide. This does bring up another problem that I've wondered about. Why is my floppy drive always turning when there's a disk in? I'll investigate later. Right now I have enough to do. I'll just make sure I don't keep the disk peranently in the drive. I vaguely remember that it may have started about two years ago when I moved house, so it may also be a hardware problem. Loosened cable, maybe? My USB ports stopped working around the same time. > > Hope this helps you. It might. It reminded me. -- hendrik ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On 3/2/19, Hendrik Boom wrote: > > I will guess that boot partition has to be on the same disk as the MBR. > > And this boot partition that has to be at the "start", I suspect that isn't > the partition that remains mounted as /boot after the Linux system is up and > running. > > -- hendrik I know of three things that people might call a boot partition. One is a separate partition for the /boot directory, another is an EFI partition that contains UEFI bootloaders and the third is what you want, a BIOS boot partition. I don't believe any of these three must necessarily be the first partition. The one you want must be at least 1MB in size, have no filesystem on it and be flagged as bios_grub (in gparted) or EF02 (in gdisk). I'm certain that this one does not need to be the first partition. I'm not sure if it needs to be on the same disk or not. If you use gparted, the unformatted option is at the bottom of the list of filesystem types. fsmithred ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On Sat, Mar 02, 2019 at 11:04:54PM +0100, info at smallinnovations dot nl wrote: > On 02-03-19 23:02, Alessandro Selli wrote: > > On Sat, 2 Mar 2019 at 16:06:51 -0500 > > Hendrik Boom wrote: > > > >> Currently booting from a 750G BIOS-partitioned disk. > >> Trying to enable booting from the 4.7T drive, which is GPT > >> partitioned. > >> > >> With grub-install I get errors: > >> > >> april:/farhome/hendrik# grub-install /dev/sda > >> Installing for i386-pc platform. > >> grub-install: warning: this GPT partition label contains no BIOS Boot > >> Partition; embedding won't be possible. grub-install: error: > >> embedding is not possible, but this is required for RAID and LVM > >> install. april:/farhome/hendrik# > >> > >> Evidently there is some kind of incompatibility here. > >> > >> What is going on? What can I to do other than continuing to boot > >> from small BIOS disks? > > See if this helps you: > > > > https://askubuntu.com/questions/671809/grub-install-this-gpt-partition-label-contains-no-bios-boot-partition > > > > In short: you need to have a "BIOS boot partition" of any size to > > make grub-install happy. > > > > > > Alessandro > > ___ > > Dng mailing list > > Dng@lists.dyne.org > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng > > And according to > https://superuser.com/questions/1337344/is-it-possible-to-boot-linux-from-a-gpt-disk-on-a-bios-system > it should be the first and a 1M+ partition with BIOS boot partition type I can't find where it says that, but I'll take ot for truth. So on my system the question becomes -- does it have to be sda1, or does it have to have the lowest disk address of the partitions on the disk? april:/farhome/hendrik# fdisk -l /dev/sda Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: BE827DEE-CAB8-4DA0-9962-4EE20884A4AC Device StartEndSectors Size Type /dev/sda1 2099200419635120971521G Linux filesystem /dev/sda2 1077938176 5860532223 4782594048 2.2T Linux RAID /dev/sda3 4196352629350320971521G Linux RAID /dev/sda4 62935046313983 20480 10M Linux filesystem Partition table entries are not in disk order. april:/farhome/hendrik# I think my boot configuration uses uuid's to find partitions... ... but that is likely different for getting the zeroth sector boot loader to find the boot loader elsewhere. Or is there room in the MBR to indicate the absolute disk address of the boot partition? I will guess that boot partition has to be on the same disk as the MBR. And this boot partition that has to be at the "start", I suspect that isn't the partition that remains mounted as /boot after the Linux system is up and running. -- hendrik ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
hendrik: > Currently booting from a 750G BIOS-partitioned disk. > Trying to enable booting from the 4.7T drive, which is GPT partitioned. > > With grub-install I get errors: > > april:/farhome/hendrik# grub-install /dev/sda > Installing for i386-pc platform. > grub-install: warning: this GPT partition label contains no BIOS Boot > Partition; embedding won't be possible. > grub-install: error: embedding is not possible, but this is required for RAID > and LVM install. > april:/farhome/hendrik# > > Evidently there is some kind of incompatibility here. > > What is going on? What can I to do other than continuing to boot from > small BIOS disks? I have: # file -s /dev/sda /dev/sda: DOS/MBR boot sector, LInux i386 boot LOader; partition 1 : ID=0xee, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 4294967295 sectors # fdisk -l /dev/sda Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Disk model: TOSHIBA MG03ACA3 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: gpt Disk identifier: 7A22F348-BA09-4E8C-9EE5-D2534E719D7C Device StartEndSectors Size Type /dev/sda12048 194559 19251294M Linux RAID /dev/sda2 19456019537911759232 859M Linux RAID /dev/sda3 1953792 19531775 17577984 8.4G Linux RAID /dev/sda419531776 117186559 97654784 46.6G Linux RAID /dev/sda5 117186560 136718335 19531776 9.3G Linux RAID /dev/sda6 136718336 1953124351 1816406016 866.1G Linux RAID /dev/sda7 1953124352 5860532223 3907407872 1.8T Linux RAID # Using lilo and mdraid mirrored partitions, no problems at all. I always use a small /boot partition first, no initrd, self compiled kernel. Hope this helps you. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On 02-03-19 23:02, Alessandro Selli wrote: > On Sat, 2 Mar 2019 at 16:06:51 -0500 > Hendrik Boom wrote: > >> Currently booting from a 750G BIOS-partitioned disk. >> Trying to enable booting from the 4.7T drive, which is GPT >> partitioned. >> >> With grub-install I get errors: >> >> april:/farhome/hendrik# grub-install /dev/sda >> Installing for i386-pc platform. >> grub-install: warning: this GPT partition label contains no BIOS Boot >> Partition; embedding won't be possible. grub-install: error: >> embedding is not possible, but this is required for RAID and LVM >> install. april:/farhome/hendrik# >> >> Evidently there is some kind of incompatibility here. >> >> What is going on? What can I to do other than continuing to boot >> from small BIOS disks? > See if this helps you: > > https://askubuntu.com/questions/671809/grub-install-this-gpt-partition-label-contains-no-bios-boot-partition > > In short: you need to have a "BIOS boot partition" of any size to > make grub-install happy. > > > Alessandro > ___ > Dng mailing list > Dng@lists.dyne.org > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng And according to https://superuser.com/questions/1337344/is-it-possible-to-boot-linux-from-a-gpt-disk-on-a-bios-system it should be the first and a 1M+ partition with BIOS boot partition type grtz. Nick signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On Sat, 2 Mar 2019 at 16:06:51 -0500 Hendrik Boom wrote: > Currently booting from a 750G BIOS-partitioned disk. > Trying to enable booting from the 4.7T drive, which is GPT > partitioned. > > With grub-install I get errors: > > april:/farhome/hendrik# grub-install /dev/sda > Installing for i386-pc platform. > grub-install: warning: this GPT partition label contains no BIOS Boot > Partition; embedding won't be possible. grub-install: error: > embedding is not possible, but this is required for RAID and LVM > install. april:/farhome/hendrik# > > Evidently there is some kind of incompatibility here. > > What is going on? What can I to do other than continuing to boot > from small BIOS disks? See if this helps you: https://askubuntu.com/questions/671809/grub-install-this-gpt-partition-label-contains-no-bios-boot-partition In short: you need to have a "BIOS boot partition" of any size to make grub-install happy. Alessandro ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On Sat, Mar 02, 2019 at 10:14:57PM +0100, Antony Stone wrote: > On Saturday 02 March 2019 at 22:06:51, Hendrik Boom wrote: > > > Trying to enable booting from the 4.7T drive, which is GPT partitioned. > > > Installing for i386-pc platform. > > That seems like a bizarre (and unlikely to work) combination to me. > > What sort of machine are you starting from which needs i386 to be installed? > > I think the chances of that supporting anything >2Tbytes as a boot device are > small. I wondered about that i386 too. It has an AMD64 processor and runs an AMD64 kernel: april:/farhome/hendrik# uname -a Linux april 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) x86_64 GNU/Linux april:/farhome/hendrik# But, I figured, didn't 64-bit machines boot as 32-bit and then switch modes early in the boot procedure? Still puzzled what to do, though. Perhaps there's some parameter I should have specified at original gpt partitioning time? -- hendrik ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
On Saturday 02 March 2019 at 22:06:51, Hendrik Boom wrote: > Trying to enable booting from the 4.7T drive, which is GPT partitioned. > Installing for i386-pc platform. That seems like a bizarre (and unlikely to work) combination to me. What sort of machine are you starting from which needs i386 to be installed? I think the chances of that supporting anything >2Tbytes as a boot device are small. Antony. -- In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are British, the mechanics are German, the lovers are French, the entertainment is American, and everything is organised by the Swiss. In Hell, the beer is American, the chefs are British, the supermarkets are German, the mechanics are French, the lovers are Swiss, the entertainment is Belgian, and everything is organised by the Italians. Please reply to the list; please *don't* CC me. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng