Page 1 of 1

dump-session errors normal?

Posted: 28 May 2019, 23:35
by nanZor
Porteus 4.0 X86_64 XFCE.

When I run a dump-session as root at the commandline, should I be seeing these errors?

Code: Select all

root@porteus:/home/guest# dump-session
syncing what's left in buffers
saving changes to /mnt/sda1/porteussave.dat - this may take a while...
find: `bin': No such file or directory
find: `lib': No such file or directory
find: `lib64': No such file or directory
find: `opt': No such file or directory
find: `sbin': No such file or directory
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
sed: -e expression #4, char 1: unknown command: `_'
find: `bin': No such file or directory
find: `lib': No such file or directory
find: `lib64': No such file or directory
find: `opt': No such file or directory
find: `sbin': No such file or directory
session saved
Ultimately, the file is saved, but was surprised a little bit.

dump-session errors normal?

Posted: 29 May 2019, 03:39
by ncmprhnsbl
(i guess) the 'find' parts relate to not having any changes in those dirs, therefore not present in /mnt/live/changes(maybe output should be suppressed?)
the sed bit: looks like it might some (non fatal) bad syntax...
the line from /opt/porteus-scripts/dump-session:

Code: Select all

# Fix whiteout names so `egrep' doesn't interpret special characters as regex
fixwh() { sed -e 's_\._\\._g' -e 's_?_\\?_g' -e 's_+_\\+_g' -e '_*_\\*_g' -e 's_\$_\\$_g' -e 's_\[_\\[_g' -e 's_(_\\(_g'  -e 's_\&_\\&_g' -e 's@^@^@'; }
#4 expression being this: -e '_*_\\*_g' i presume
regex continues to be beyond my feeble mind.. but a wild stab at it suggests it should be: -e 's_*_\\*_g' (like all the other expressions)
whole line:

Code: Select all

# Fix whiteout names so `egrep' doesn't interpret special characters as regex
fixwh() { sed -e 's_\._\\._g' -e 's_?_\\?_g' -e 's_+_\\+_g' -e 's_*_\\*_g' -e 's_\$_\\$_g' -e 's_\[_\\[_g' -e 's_(_\\(_g'  -e 's_\&_\\&_g' -e 's@^@^@'; }

dump-session errors normal?

Posted: 29 May 2019, 04:54
by Ed_P
Thank you ncmp, that works. :happy62:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# dump-session
syncing what's left in buffers
saving changes to /mnt/sda6//porteus4.0/changes/porteussave.dat - this may take a while...
find: `bin': No such file or directory
find: `lib': No such file or directory
find: `lib64': No such file or directory
find: `sbin': No such file or directory
find: `bin': No such file or directory
find: `lib': No such file or directory
find: `lib64': No such file or directory
find: `sbin': No such file or directory
session saved
root@porteus:/home/guest# 
:good: