I am trying to set up OpenWrt (22.03.2) on a x86 device to use as a router. Therefore I downloaded the image and used: dd if=openwrt-22.03.2-x86-64-generic-ext4-combined-efi.img bs=1M of=/dev/sda
to write it to the system drive. I expected the disk layout to use ext4 partitions, but after booting parted shows the system partition to be ext2.
Is there something wrong with the image or have I messed up the installation?
I just did a complete reinstall und followed these instructions. OpenWrt is runnung on the X86 System, the partition type is still ext2 though:
root@OpenWrt:~# echo fix | parted -l ---pretend-input-tty
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
OK/Cancel? fix
parted: invalid token: fix
OK/Cancel? Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 15375839 blocks) or continue with the current setting?
Fix/Ignore? Model: ATA Innodisk DEMSR- (scsi)
Disk /dev/sda: 7999MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
128 17.4kB 262kB 245kB bios_grub
1 262kB 17.0MB 16.8MB fat16 legacy_boot
2 17.0MB 126MB 109MB ext2
Thanks for the hint! I just checked. While parted and file report the filesystem to be ext2, blkid reports the type to be ext4 So I guess the type is really ext4 but somehow it is not always reported correctly.
There is the "partition type" (a tag on the partition table) reported by fdisk, and the "filesystem" (the actual format on the physical partition) reported by blkid.