Facing error while installing Op on ubuntu 22.04

Hello!

I am installing openwrt on 22.04. I followed this steps mentioned on site

Unpack image

gunzip openwrt-*.img.gz

Identify disk (to replace sdX in the following command below)

lsblk

Write image

dd if=openwrt-21.02.0-x86-64-generic-ext4-combined.img bs=1M of=/dev/sdX

sudo reboot

On restating I am facing this error. Image attached.

Please (make sure to) use 23.05.2, according to your screenshot you probably need the combined-efi image instead.

2 Likes

I used generic-ext4-combined.img.gz this image. And 23.05 version
.
Using this image "combined-efi" steps of installing are same? Please help
thanks in advance

yes, they are

2 Likes

Just to be clear, clarify the phrase "installing Op on ubuntu 22.04"?

I just wanted to be clear that you do not install OpenWrt "on top of" another OS or Distro. OpenWrt is a full Operating System.

1 Like

Hello all,

I am trying to install openwrt using following steps:

  • 1 USB Stick
  • Linux Live ISO (I tried with Fiinnix and Ubuntu 23.10)
    Steps:
i) wget https://archive.openwrt.org/releases/22.03.5/targets/x86/64/openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img.gz
ii) gunzip openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img.gz
iii) fdisk -l
iv)sudo dd if=./openwrt-22.03.5-x86-64-generic-ext4-combined-efi.img of=/dev/sda bs=256 status=progress
sudo fdisk /dev/sda

GPT PMBR size mismatch (246303 != 468862127) will be corrected by write.
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
The backup GPT table is not on the end of the device. This problem will be corrected by write.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

sudo fdisk /dev/sda

Command (m for help): p
Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: Patriot Burst El
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: gpt
Disk identifier: BF7A017B-4794-7EEB-750B-7774328FBD00

Device      Start    End Sectors  Size Type
/dev/sda1     512  33279   32768   16M Linux filesystem
/dev/sda2   33280 246271  212992  104M Linux filesystem
/dev/sda128    34    511     478  239K BIOS boot

Partition table entries are not in disk order.

Command (m for help): x
Expert command (m for help): f
Partitions order fixed.
Expert command (m for help): r
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Last step: sudo gparted /dev/sda
When I am using Gparted with ubuntu 23.10, in gparted section the Move/Resize option is disabled.
I tried this resize2fs command as well with finnix but after reboot black screen is coming. Op is not booting

are you sure you wrote openwrt to the correct drive ?

normally sda would be the flash drive you booted from, in worst case, for you, the fixed storage in your computer.

unrelated, latest openwrt version is 23.05.2.

fdisk -l
Output: Disk model: Corsair Force GS
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: gpt
Disk identifier: 80CDD189-4CE8-125D-9E5C-32A6BB5C6500

Device Start End Sectors Size Type
/dev/sda1 34 511 478 239K BIOS boot
/dev/sda2 512 33279 32768 16M Linux filesystem
/dev/sda3 33280 246271 212992 104M Linux filesystem

Disk /dev/sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS541010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 80CDD189-4CE8-125D-9E5C-32A6BB5C6500

Device Start End Sectors Size Type
/dev/sdc1 34 511 478 239K BIOS boot
/dev/sdc2 512 33279 32768 16M Linux filesystem
/dev/sdc3 33280 246271 212992 104M Linux filesystem

Partition 1 does not start on physical sector boundary.

Disk /dev/sdb: 7.45 GiB, 8004304896 bytes, 15633408 sectors
Disk model: Cruzer Blade
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: 0x1e286d42

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 15633407 15631360 7.5G c W95 FAT32 (LBA)

Disk /dev/loop0: 2.65 GiB, 2843815936 bytes, 5554328 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

please use the </> button for cli output.

so where are you installing it ?

on the /dev/sda Corsair ?

1 Like

on the /dev/sda Corsair :- Yes I am trying to install it on this drive. But Op is not booting after reboot. I tried with latest version as well

if you try to boot it from the sdc Cruzer Blade ?
seems to be the same image written to the drive.

1 Like

cruzer blade is the usb containing linux iso. So which drive should I use?
kindly help

my bad, the layout is 1:1 with the one written to the sdc Hitachi, not the Cruzer.

makes one wonder what was dd:ed where.

1 Like

I tried using sdc drive with the latest version. Again the resize/move option was disabled in gparted so I simply rebooted the system.
After reboot this message is flashing on screen.
"Selected boot image did not Authenticate. Press to continue.

disable secure boot in bios, and perhaps enable legacy boot.

I disabled secure boot but the op is not booting. Please help.

kind out of ideas :frowning:

pull the drives, dd openwrt to a flash drive, try booting from USB.

what's the hw you use for this, anyway ?

I tried balenaetcher to create a flash oS image of openwrt. But it is showing error. same with the rufus as well. Is there any mistake that I am doing? I tried another linux iso as well. In gparted move./resize option is disabled in that as well.

On enabling the legacy support a black screen with a message press ESC key for start up menu is showing on screen

no camera to post a photo, huh ?

not really helping yourself with the resizing attempts, don't touch the image, write it, boot it (if you can)