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

Re: Problem when installing stretch with btrfs



On 09/20/2017 03:06 PM, Steve McIntyre wrote:
On Wed, Sep 20, 2017 at 02:21:59PM +0200, Pierre Couderc wrote:
On 09/20/2017 01:59 PM, Steve McIntyre wrote:
Number  Start   End     Size    Type     File system  Flags
1      1049kB  1000MB  999MB   primary  fat32        boot, esp
2      1000MB  2000GB  1999GB  primary  btrfs
sdb1 here *is* an EFI System Partition - that's what the esp and boot
flags mean.
Fine, thank you. Why is it not detected as EFI like SDA1 ?
That's just the way parted describes things.

Model: Generic Flash Disk (scsi)
Disk /dev/sda: 124GB
Sector size (logical/physical): 2048B/512B
Partition Table: mac
Disk Flags:

Number  Start   End     Size   File system  Name   Flags
1      2048B   6143B   4096B               Apple
2      1925kB  2351kB  426kB               EFI
I'm slightly worried by that "Apple" partition on sda - is this a Mac?
No !! I think it is mistake of parted. It is a flash usb key, filled by dd
if=debian-9.1.0-amd64-netinst.iso
Really? (checks) Wow, OK - parted is on serious crack there. fdisk is
more sane, and on the same image will show:

# fdisk -l /dev/sdc
Disk /dev/sdc: 30.3 GiB, 32497729536 bytes, 63472128 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: 0x2c869ef3

Device     Boot Start    End Sectors  Size Id Type
/dev/sdc1  *        0 593919  593920  290M  0 Empty
/dev/sdc2        3760   4591     832  416K ef EFI (FAT-12/16/32)

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 !!

What do you think an "EFP" is?? ESP is the normal name.
yes sorry (I am a bit lost).
OK.

Now, I think I need to install grub on sdb1, but it refuses :

root@nous:/# grub-install /dev/sdb1
Installing for i386-pc platform.
grub-install: warning: File system `fat' doesn't support embedding.
grub-install: error: filesystem `btrfs' doesn't support blocklists.
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...


Reply to: