TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MIKE SCOTT
from: CHRIS ELVIDGE
date: 2019-10-24 12:43:00
subject: Re: problem moving root t

On 22/10/2019 16:12, Mike Scott wrote:
> Hi all, I'm stumped with this one.
>
> I've got a running raspbian system: the root partition is on the SD
> card, while everything else is on various partitions on a connected hard
> drive.
>
> The hard drive has a spare partition, sda3, and I've rsync'ed root from
> the SD card onto that.
>
> I've changed cmdline.txt to reflect the moved root partition:
>
> original:
> console=...... root=PARTUUID=6c586e13-02 .....
> new:
> console=s.... root=PARTUUID=b9a242b4-1890-4c02-808b-36961834b2f6 ...
>
> and fstab (in both the new and old /etc directories)
> original:
> PARTUUID=6c586e13-02  /               ext4    defaults,noatime  0       1
> new:
> PARTUUID=b9a242b4-1890-4c02-808b-36961834b2f6  /               ext4
> defaults,noatime  0       1
>
> The system tries to start up off sda3, and gets as far as running
> /sbin/init. But then it complains about various library files not
> loading, starting with:
>
> ERROR: ld.so object
> '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from
> /etc/ld.so.preload cannot be preloaded (cannot open shared object file):
> ignored
>
> (I had to video the console to get that :-)
>
> followed by a kernel panic.
>
> I know the libarmmem*.so files are there, as it still boots off the SD
> card when I restore the original cmdline/fstab files.
>
> AFAICS what I've done reflects various how-to's off the web. But
> something's amiss, clearly. Any help would be appreciated, thanks.
>
>
>

On mine (Raspbian Buster 9.11) /etc/ld.so.preload only contains the line:

# cat /etc/ld.so.preload
/usr/lib/arm-linux-gnueabihf/libarmmem.so

and:

# ls -l /usr/lib/arm-linux-gnueabihf/libarmmem*
-rw-r--r-- 1 root root 22K Mar 14  2019
/usr/lib/arm-linux-gnueabihf/libarmmem.so

---------------------------------------------

Now looked at another system (Raspbian 10.1) and I see several
libarmmem* files in /usr/lib/arm-linux-gnueabihf/ with the same line as
yours in /etc/ld.so.preload

$ cat /etc/ld.so.preload
/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so

$ ls -l /usr/lib/arm-linux-gnueabihf/libarmmem*
lrwxrwxrwx 1 root root    16 Apr 30 10:22
/usr/lib/arm-linux-gnueabihf/libarmmem-aarch64.so -> libarmmem-v7l.so
-rw-r--r-- 1 root root  9512 Apr 30 10:22
/usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so
-rw-r--r-- 1 root root 17708 Apr 30 10:22
/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
lrwxrwxrwx 1 root root    16 Apr 30 10:22
/usr/lib/arm-linux-gnueabihf/libarmmem-v8l.so -> libarmmem-v7l.so

Are all the softlink files available in your install? What do you get if
you run the 'ls -l' command above?


--

Chris Elvidge, England

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.