User Tools

Site Tools


Sidebar

start:debugging:linux

Linux Problems

NFS won't start

In Devuan Beowulf, I installed nfs-common so I could mount some nfs shares, but the mount on boot does not work. After boot is complete, I can mount my nfs shares manually.

Looking in the logs, I see the following error: /run/rpcbind not owned by root failed!

This is caused by an incorrect path (see https://lists.debian.org/debian-user/2018/10/msg01012.html), which can be fixed by the following:

echo 'PATH="$PATH:/usr/bin"' >> /etc/default/rpcbind

/etc/default/rpcbind is called in the startup scripts, so this will add /usr/bin to the path when nfs is started.

sort gives unexpected results

Ran into a problem on Devuan (Debian) Linux where sort did not give expected results.

INPUT:

f.dat
02-175CB:D
022C11EE:D
02-2D270:D
sort f.dat

returns

02-175CB:D
022C11EE:D
02-2D270:D

Run under FreeBSD and also

perl -e '@a=(<>);chomp(@a);print join($/,sort @a).$/;' <f.dat

returns

02-175CB:D
02-2D270:D
022C11EE:D

Which I expected.

Under Linux, you can get the same results by setting the collate first:

LC_COLLATE=C sort f.dat

I tracked this down from a similar problem using ls on Linux. See https://unix.stackexchange.com/questions/35469/why-does-ls-sorting-ignore-non-alphanumeric-characters.

start/debugging/linux.txt · Last modified: 2022/06/01 21:46 by rodolico