Hi,
I'm looking for some tipps to get LE running. Since I turned disk back to GPT LE is not booting anymore.
My jurney:
I flashed LibreELEC-RPi4.arm-9.2.7.img.gz using balenaEtcher on an new 4TB USB drive with GPT.
That turned the drive into a MBR drive and destroyed the GPT info.
On first boot on my RPi4 LibreELEC stated to resize partition and filesystem and did a reboot.
LE booted and I was able to do the initial configurations. But setup didn't resize partition. As I only had a 32MB STORAGE partition I couldn't install any addon. So I resized the partition manually on my PC to 1.5 GB using the GParted App in Linux Mint.
LE booted fine again and I was able to install docker addon for a test.
So I now wanted to turn the disk back to GPT to resize STORAGE to full disk space.
I used gdisk for this and only used the command w to write GPT.
Sadly LE is not booting anymore since then.
Here you find the partition info before and after I used gdisk:
parted:
#######
Modell: WD Elements SE 2622 (scsi)
Festplatte /dev/sdc: 4001GB
Sektorgröße (logisch/physisch): 512B/4096B
Partitionstabelle: msdos
Disk-Flags:
Nummer Anfang Ende Größe Typ Dateisystem Flags
1 4194kB 541MB 537MB primary fat16 boot, LBA
2 541MB 2152MB 1611MB primary ext4
gdisk:
######
GPT fdisk (gdisk) version 1.0.5
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: ERROR
Backup partition table: OK
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged
Found valid MBR and corrupt GPT. Which do you want to use? (Using the
GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT
Your answer: 1
Command (? for help): i
Partition number (1-2): 1
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
Partition unique GUID: A2C5F24C-2739-4FB8-BBC6-C553754B3740
First sector: 8192 (at 4.0 MiB)
Last sector: 1056767 (at 516.0 MiB)
Partition size: 1048576 sectors (512.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'Microsoft basic data'
Command (? for help): i
Partition number (1-2): 2
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: C9B361F3-4AED-4B96-8FAE-5E171856F4B4
First sector: 1056768 (at 516.0 MiB)
Last sector: 4202495 (at 2.0 GiB)
Partition size: 3145728 sectors (1.5 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
Command (? for help): w
NEW GPT written
parted:
#######
Modell: WD Elements SE 2622 (scsi)
Festplatte /dev/sdc: 4001GB
Sektorgröße (logisch/physisch): 512B/4096B
Partitionstabelle: gpt
Disk-Flags:
Nummer Anfang Ende Größe Dateisystem Name Flags
1 4194kB 541MB 537MB fat16 Microsoft basic data msftdata
2 541MB 2152MB 1611MB ext4 Linux filesystem
gdisk:
######
GPT fdisk (gdisk) version 1.0.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sdc: 7813969920 sectors, 3.6 TiB
Model: Elements SE 2622
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): 5CAF0838-E590-4F09-B4FD-4D791D93085A
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 7813969886
Partitions will be aligned on 2048-sector boundaries
Total free space is 7809775549 sectors (3.6 TiB)
Number Start (sector) End (sector) Size Code Name
1 8192 1056767 512.0 MiB 0700 Microsoft basic data
2 1056768 4202495 1.5 GiB 8300 Linux filesystem
Command (? for help): i
Partition number (1-2): 1
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
Partition unique GUID: CB0AD0BD-D51F-4C4C-B79D-287025C1E339
First sector: 8192 (at 4.0 MiB)
Last sector: 1056767 (at 516.0 MiB)
Partition size: 1048576 sectors (512.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'Microsoft basic data'
Command (? for help): i
Partition number (1-2): 2
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 8211D5AB-A3DA-4364-BB43-E0C1AB39C83A
First sector: 1056768 (at 516.0 MiB)
Last sector: 4202495 (at 2.0 GiB)
Partition size: 3145728 sectors (1.5 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
Command (? for help): v
No problems found. 7809775549 free sectors (3.6 TiB) available in 2
segments, the largest of which is 7809767391 (3.6 TiB) in size.
Display More