Help with aarch64

Hello,

Requirements:

I have Searched the forum for my issue and found nothing related or helpful
I have checked the Resources category (Resources Index)
I have reviewed the Wiki for relevant information
I have read the the Release Notes and Errata

OpenMandriva Lx version:

Rock 6 (aarch64)

Desktop environment (KDE, LXQT…):

None

Description of the issue (screenshots if relevant):

Need help installing/using (see below)

Relevant informations (hardware involved, software version, logs or output…):

This is a continuation from this thread. I got past the DNS issue, but I can’t seem to move forward. Here’s the goal and the situation:

  1. I got a Libre Computer Renegade because Raspberry Pis are too expensive now.
  2. I wanted to run Nextcloud on it, and I installed it using the default Armbian several months ago. Armbian booted off the SD card, and I attached a USB enclosure with an old NVMe in it for the Nextcloud storage.
  3. Every couple of days, the thing would crash with kernel panics. It got worse and worse until it was crashing more than once a day. I blame Armbian, because I have another of these on a Linode and it works fine.
  4. Fed up with this situation, I decided to replace the OS with OpenMandriva. I had trouble finding an image so someone (I think @rugyada ) linked one to me on the Matrix chat.
  5. This board needs a special bootloader that OM doesn’t have, but you can install the bootloader on an SD card. I used dd to copy the OM image to the NVMe and put the bootloader on the SD card. It boots fine. So I have an SD card installed with the bootloader, which then searches the USB bus for an image. If you have the NVMe with OM plugged into the right port, it finds it and boots it from the NVMe.
  6. The NVMe is 256GB. The root partition, however, is only 1.2 GB. I want to resize this partition to be the full size of the NVMe, but everything I try hasn’t worked:
    • I tried using fdisk to delete and re-add the partition. The partition is re-added, but I can’t use resize2fs on it when it’s mounted (even though the article says this is safe, OM won’t let me).
    • I tried using KDE Partition Manager from my laptop to check/fix the partition size. This also did not make the partition bigger.
    • I tried just resizing the partition from KDE Partition Manager (without the fdisk step), but then it wouldn’t boot.
    • I ran the install-openmandriva script in the default omv user’s home directory. It made some new partitions, but failed with a message saying it couldn’t sync the partition table, and that this same error happens on ABF (looks like line 29 of /usr/share/om-text-installer/partitions which is called from the main script).

I seem to be stuck at this point. The default partition size isn’t sufficient for me to install Nextcloud, let alone have any data in it. I can find no documentation on the aarch64 build of OpenMandriva, but when I’m finished (as I did with making packages), I would be happy to write some.

Can anybody help me out?

have you checked on OMV , any pref about removable media to not auto mount partitions ?

This sounds like you are just using the live ISO and didn’t actually install it.

It’s normally not a good idea to resize a mounted filesystem. You will want to do that from a live disk.

Well that’s the thing: I can’t figure out how I’d use the installer to install it, given that

  1. I have to launch the bootloader from the SD card
  2. Apparently only one of the USB ports works to boot the image, and that’s where my USB/NVMe is.

I’ve also been going with the assumption that the .img file just gets copied to the system and then the partition is resized. This is how it works with the Raspberry Pi, and how it works with another of these Libre Computer boards I have (that one sits in my basement as a Syncthing server, running Armbian).

If I’m supposed to use the .img as I would an ISO and use that script to install OM to the NVMe, I’ll have to try dd-ing the OM image to a USB stick and then seeing if I can install it to the NVMe via one of the other USB ports. If that works, I’ll have to move the NVMe to the USB port that the bootloader can boot from and see if it works.

Yeah; I’ll go with that plan. :wink:

Agreed, but the article said it was safe. :wink:

Anyway, that’s why I tried plugging the thing into my laptop and using KDE Partition Manager to resize it. But that didn’t work either. :man_shrugging:

1 Like

Yup; that did it. Here’s what I did:

  1. Used dd to copy the .img to a USB stick.
  2. Booted to the USB stick, then plugged the NVMe into another USB port.
  3. Ran install-openmandriva /dev/sdb.
  4. There were a ton of errors that made me scared, including a message about Grub not installing.
  5. Undaunted, when it was finished, I shut it down, removed the USB stick, put the NVMe in its place, and prayed.

IT BOOTED!

This is awesome! I’m now free to configure this thing, which I’ll go happily do (later; it’s bedtime).

Thanks, all!

1 Like