TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: MIKE SCOTT
from: CHRIS ELVIDGE
date: 2019-10-24 12:55: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.
>
>
>

Further to my last, these are on my 10.1 install (512Mb SD card and 16Gb
USB stick):

root@redraspberry:~# df -lh | grep ^/dev/
/dev/root        15G  1.6G   13G  12% /
/dev/mmcblk0p1  490M   41M  449M   9% /boot

root@redraspberry:~# cat /etc/fstab | grep ^PART
PARTUUID=4a80fd15-01  /boot     vfat    defaults          0       2
PARTUUID=f69d5e19-01  /         ext4    defaults,noatime  0       1

root@redraspberry:~# blkid | grep [ap]1
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="KINGMAX512" UUID="8215-480C"
TYPE="vfat" PARTUUID="4a80fd15-01"
/dev/sda1: UUID="7336da1d-b3dc-4639-978f-d7d1376946ab" TYPE="ext4"
PARTUUID="f69d5e19-01"

root@redraspberry:~# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1
root=PARTUUID=f69d5e19-01 rootfstype=ext4 elevator=deadline
fsck.repair=yes rootwait

Does your system match?

--

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™.