Raspberry-pi : convert to 64 bit installation?


Is there anyone with experience in migrating a Raspberry Pi (4) from 32bit raspbian to 64 bit ?

In particular, I’m searching for a way to convert the system without reinstalling, for several reason but the main one is : I don’t want to reinstall and reconfigure all customs tools I installed and configured on this 4 years old installation…
(Yes, it’s mainly for Nextcloud ≥26 versions)

Any good tutorial or tips to share ?

Thanks !


I have the same problem pending, since nextcloud has no more updates for 32 bit.
My way will be an update of the 32-bit machine with the regular function in the webadmin, not to forget downloading it somewhere, where I can access it after the 32-bit system is overwritten,
then a new installation in 64 bit with only minimal additions like the same primary user as in 32bit,
and then copy the backup back to the new /home/yunohost.backup/archives/ and the playing the complete update back to that 64bit machine.
I really hope, this will work, since I allready was lucky some time ago with a raspi 4 that way.
Good luck for all followers

1 Like

Hello, I am in the same boat with my Raspberry 3 (which I think supports 64bits?) and the Nextcloud 25 update.

Depending of the complexity of the 32 to 64bits upgrade I am wondering if it’s not better to to take this opportunity to switch to a Raspberry 4 (or maybe even wait for an eventual Raspberry 5?)

So I am also interested in any kind of tutorial for doing this upgrade.


1 Like

It does until version 25, you can upgrade to v25.0.2, and all next 25.x versions (until October 2023 if I remember well).
Version 26 will end 32 support.

It does.
Installing a new Yunohost system and restoring backups there will work fine.

In my case, I also want to migrate all utilities and config files I changed during… years, and I can’t even remember all of them so it’s not the way to go for me :sweat_smile:

For all posters: Is your hardware even x64 compatible? If it’s not, it can’t be done. From terminal / ssh:
First item in output (Architecture) will give your answer.

If the Hardware is x64, you do must reinstall because the kernel, packages, libraries are all x64 and you can’t just convert them from x32 - but the good news is you can back up & restore your configurations post-install, as those are not hardware dependent.

Use a USB drive, or rsync, or scp to backup config files (research this) and the /var/lib/mysql database. Use a USB drive to boot from on your Rasp-Pi to install fresh Yunohost x64, then restore the configs / data. You could use PXE booted tftp + http to achieve this as well, but that’s another discussion :slight_smile:


Ok thanks, so effectively I didn’t check, the processor on my Raspberry 3 is an armv7l which is 32 bits so it settles it for me. It seems I need to think about switching to a new hardware next year.

Hi Lanky,
armv7l sounds a bit more like the used firmware-system and not the hardware.
Use lscpu in a root-terminal as intended above.
If for example your raspi 3 is a 3B then the first line after lscpu should be:
Architecture: aarch64
and you should be happy

1 Like

Hi brunogiscoat, thanks for your answer,

My Raspberry is indeed a 3B, lscpu give me this, but searching further I have read that it reports an armv7 and not an armv8 because the OS is 32 bits. The ARM Cortex A53 has an armv8 64bits architecture.

Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               4
Model name:          Cortex-A53
Stepping:            r0p4
CPU max MHz:         1200.0000
CPU min MHz:         600.0000
BogoMIPS:            38.40
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idi
                     vt vfpd32 lpae evtstrm crc32

Sorry for my optimism, that a command like lscpu does not list the data about the cpu but about the used system-software.
You are absolutely right and armv7l is only the actual system-software.
But: now you know, that you have a 3B and can change to arm64. Use a really quick card!

1 Like

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