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

Re: LVM



Am 11. Mai 2018 um 15:04 schrieb Sven Hartge <sven@svenhartge.de>:

[...]

> Wenn man manuell partitioniert, dann muss man die Partiton vom Typ
> "bios_grub" selbst anlegen, sonst kann GRUB2 nicht installiert werden
> und die Installation schlägt an der Stelle fehl.
>
> Nutzt man eine automatische Partitionierung auf GPT, dann legt der
> Installer selbst eine Partition vom Typ "bios_grub" an.
>
> S°
>
> --
> Sigmentation fault. Core dumped.

Hallo Sven,

meinst du mit der Partition vom Typ "bios_grub" die EFI-Partition, Typ EF00?
Diese existiert, aber keine bios_grub. Ich finde diese von dir als
erforderlich erachtete Partition nicht.

- BIOS: UEFI
- Debian Stretch
- Installer im Experten-Modus
- alles auf eine Partition
- Installation in den Wechseldatenträgerpfad erzwingen: Nein

ergibt bei mir:

/----------------------------------------------------------------------
| # df -hT /dev/sda1 /dev/sda2
|
| Dateisystem    Typ  Größe Benutzt Verf. Verw% Eingehängt auf
| /dev/sda1      vfat  511M    132K  511M    1% /boot/efi
| /dev/sda2      ext4  5,4G    1,2G  4,0G   23% /
\----------------------------------------------------------------------

/----------------------------------------------------------------------
| # gdisk -l /dev/sda
|
| GPT fdisk (gdisk) version 1.0.1
|
| Partition table scan:
|  MBR: protective
|  BSD: not present
|  APM: not present
|  GPT: present
|
| Found valid GPT with protective MBR; using GPT.
| Disk /dev/sda: 16777216 sectors, 8.0 GiB
| Logical sector size: 512 bytes
| Disk identifier (GUID): E89E8314-F6CA-4B31-9C67-D6BC4655E2DE
| Partition table holds up to 128 entries
| First usable sector is 34, last usable sector is 16777182
| Partitions will be aligned on 2048-sector boundaries
| Total free space is 4029 sectors (2.0 MiB)
|
| Number  Start (sector)    End (sector)  Size       Code  Name
|   1            2048         1050623   512.0 MiB   EF00
|   2         1050624        12582911   5.5 GiB     8300
|   3        12582912        16775167   2.0 GiB     8200
\----------------------------------------------------------------------

/----------------------------------------------------------------------
| # mmls /dev/sda
| GUID Partition Table (EFI)
| Offset Sector: 0
| Units are in 512-byte sectors
|
|      Slot      Start        End          Length       Description
| 000:  Meta      0000000000   0000000000   0000000001   Safety Table
| 001:  -------   0000000000   0000002047   0000002048   Unallocated
| 002:  Meta      0000000001   0000000001   0000000001   GPT Header
| 003:  Meta      0000000002   0000000033   0000000032   Partition Table
| 004:  000       0000002048   0001050623   0001048576
| 005:  001       0001050624   0012582911   0011532288
| 006:  002       0012582912   0016775167   0004192256
| 007:  -------   0016775168   0016777215   0000002048   Unallocated
\----------------------------------------------------------------------

Die 2048 Sektoren (= 1MiB) vor der ersten Partition sind so gut wie
leer, dort residiert grub2 nicht.


/----------------------------------------------------------------------
| # dd if=/dev/sda bs=1M count=1 | hexdump
| 0000000 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 00001c0 0001 feee ffff 0001 0000 ffff 00ff 0000
| 00001d0 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 00001f0 0000 0000 0000 0000 0000 0000 0000 aa55
| 0000200 4645 2049 4150 5452 0000 0001 005c 0000
| 0000210 579a c3e5 0000 0000 0001 0000 0000 0000
| 0000220 ffff 00ff 0000 0000 0022 0000 0000 0000
| 0000230 ffde 00ff 0000 0000 8314 e89e f6ca 4b31
| 0000240 679c bcd6 5546 dee2 0002 0000 0000 0000
| 0000250 0080 0000 0080 0000 3d11 82cf 0000 0000
| 0000260 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 0000400 7328 c12a f81f 11d2 4bba a000 3ec9 3bc9
| 0000410 7390 f33c eeed 4451 93a7 8270 6868 74d1
| 0000420 0800 0000 0000 0000 07ff 0010 0000 0000
| 0000430 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 0000480 3daf 0fc6 8483 4772 798e 693d 47d8 e47d
| 0000490 2480 2b09 3d38 423a bd94 fc73 e1b9 4129
| 00004a0 0800 0010 0000 0000 ffff 00bf 0000 0000
| 00004b0 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 0000500 fd6d 0657 a4ab 43c4 e584 3309 4bc8 4f4f
0000510 b70e 62b2 dace 4278 d5a2 dd14 0f8a 1555
| 0000520 0000 00c0 0000 0000 f7ff 00ff 0000 0000
| 0000530 0000 0000 0000 0000 0000 0000 0000 0000
| *
| 1+0 Datensätze ein
| 1+0 Datensätze aus
| 1048576 Bytes (1,0 MB, 1,0 MiB) kopiert, 0,00818586 s, 128 MB/s
\----------------------------------------------------------------------

Grub installiert sich in die EFI-Partition als
/boot/efi/EFI/debian/grubx64.efi und in /boot/grub/.

Gruß
Matthias Böttcher


Reply to: