Hello,
It is the first time I need some help to resolve a problem. I could not find an answer.
I want to copy my installation to an other UFS partition with dump and restore.
I use:
I made a dump with:
Now I want to restore this to an other partition mounted on /mnt/tmp
restore gives the following error:
When I look in /mnt/tmp I see my user directory content, but some directories do not have the same permissions. I have also copied my root partition. The copied system boots fine. The root user can do anything, but a normal user can do almost nothing because of the wrong permissions (for /lib and other directories. ).
I think there is something wrong with my original /usr directory, but
Does anyone know how to correct the inode 2016459 that could not be found by restore?
Is there a way to know the directory name of inode 2016459?
Thanks!
It is the first time I need some help to resolve a problem. I could not find an answer.
I want to copy my installation to an other UFS partition with dump and restore.
I use:
% uname -a
Code:
FreeBSD cmp8 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r273642: Sat Oct 25 21:37:27 CEST 2014 jwb@cmp8:/usr/obj/usr/src/sys/GENERIC amd64
I made a dump with:
#dump -C16 -b64 -0uanL -h0 -f - /usr | gzip -2 > /mnt/spare/usrss.dump.gz
Now I want to restore this to an other partition mounted on /mnt/tmp
#gzcat /mnt/spare/usrss.dump.gz | ( cd /mnt/tmp && restore -ruf - )
restore gives the following error:
Code:
expected next file 2016460, got 2016459
cannot find directory inode 2014389
abort? [yn] y
dump core? [yn] y
Abort (core dumped)
I think there is something wrong with my original /usr directory, but
%fsck
does not find anything.Does anyone know how to correct the inode 2016459 that could not be found by restore?
Is there a way to know the directory name of inode 2016459?
Thanks!
Last edited by a moderator: