X64 Installation seems to use ext2 when ext4 was expected

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?

Thx!

I get the following:

user@machine:~/Downloads$ sudo dd if=openwrt-22.03.2-x86-64-generic-ext4-combined-efi.img bs=1M of=/dev/sdb
[sudo] password for user: 
120+1 records in
120+1 records out
126107648 bytes (126 MB, 120 MiB) copied, 15.4083 s, 8.2 MB/s

1 Like

Thank you for the quick reply. This is what is on my drive:

root@OpenWrt:/# parted -l
Model: ATA Innodisk DEMSR- (scsi)
Disk /dev/sda: 7999MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      262kB   17.0MB  16.8MB  primary  ext2         boot
 2      17.3MB  7999MB  7981MB  primary  ext2

Wrong drive?

You wrote to sdb, but are showing sda.

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

Is it, or does it just come up as ext2 in parted ?

2 Likes

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.

1 Like

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.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.