[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem when installing stretch with btrfs





On 09/20/2017 05:38 PM, Lennart Sorensen wrote:
On Wed, Sep 20, 2017 at 05:19:14PM +0200, Pierre Couderc wrote:
On 09/20/2017 04:38 PM, Steve McIntyre wrote:
On Wed, Sep 20, 2017 at 04:32:06PM +0200, Pierre Couderc wrote:
On 09/20/2017 03:06 PM, Steve McIntyre wrote:
What does fdisk show on sdb for you?
Normal results :
root@nous:/# fdisk -l /dev/sdb
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: 0x9c9fb5db

Device     Boot   Start        End    Sectors  Size Id Type
/dev/sdb1  *       2048    1953791    1951744  953M ef EFI (FAT-12/16/32)
/dev/sdb2       1953792 3907028991 3905075200  1.8T 83 Linux

and.... on sda the same results you get on your sdc !!
OK, that's good.

...

Right. Either you're not booted in EFI mode, or /sys is not
mounted. Grub is assuming you're on a normal BIOS-boot machine. Make
sure that you have /sys mounted, and /dev/sdb1 mounted on /boot/efi,
then run

# grub-install --target x86_64-efi

and see what it does.

root@nous:/# mount /dev/sdb1 /boot/efi
root@nous:/# mount /dev/sdb1 /boot/efi
mount: /dev/sdb1 is already mounted or /boot/efi busy
        /dev/sdb1 is already mounted on /boot/efi
root@nous:/# grub-install --target x86_64-efi
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist.
Please specify --target or --directory.
root@nous:/# ls /usr/lib/grub
grub-mkconfig_lib  i386-pc

I thank you very much of your help - and I am honoured - but I could follow
some hoto if find one, but I do not find one.
It is surprising, I suppose am not the first to try make a btrfs raid1...
Actually, that's not your problem. My best guess is that you've done
an installation booted in BIOS mode, not UEFI mode. That's why you've
got grub-pc installed rather than grub-efi-amd64. Do you actually care
about booting via UEFI, or are you just looking for a bootable system?
If the latter, simply reformat your ESP (/dev/sdb1) to be a normal
ext2 or ext3 partition and use that as /boot. You could even do a RAID
/boot using sdb1 and sdc1 together...

I am sure that my "bios" is UEFI.
But I have done as you say, in case it exists an hypothetical  "BIOS mode"
in UEFI :

root@nous:~# grub-install /dev/sdb1
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: error: filesystem `btrfs' doesn't support blocklists.

And it fails (as usual with a initramfs prompt)...
if you had booted in UEFI mode rather than legacy compatibility mode,
grub should have said:

"Installing for x86_64-efi platform."

i386-pc platform means it is running in legacy mode.
Thank you very much, I think that you are right.

You really should boot the installer in UEFI mode instead.
Mmm, why ? is  legacy mode a problem ?

Usually the boot menu will list the same USB key twice.  Once for UEFI
boot and once for legacy boot.

In fact my boot asks me nothing...(Asus P8H67_M_LE board)


Reply to: