Having a read-only filesystem isn’t going to work if you’re patching. Why
is your filesystem currently set as read-only? If you did not mean to do
that (likely you would not do that before doing an upgrade, as that would
be silly) then your filesystem may be changing to read-only because the
kernel is detecting a problem.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
I check the mount and see that it is mounted rw!
mount | grep /mnt
linux100:/pub/data/suse/s11sp3dvd1 on /mnt type nfs (rw,addr=9.42.118.196,nfsvers=3,proto=tcp,mountproto=udp)
I decide to ignore the message and continue the update. Everything else went well.
All other packages did not have a problem.
Then I tried to update the package that had the error. Same problem.
rpm -Uvh /mnt/suse/s390x/filesystem-11.1-3.5.3.s390x.rpm
Preparing… ########################################### [100%]
1:filesystem ########################################### [100%]
error: unpacking of archive failed on file /mnt: cpio: chown failed - Read-only file system
Did you try touching a file in that directory as well, preferably as ‘root’?
touch /mnt/test-`date +%s`
If you get an error back, maybe that helps. If not, are there any other
filesystems mounted readonly? nfs has a concept of “squashing” root
privileges to avoid Bad Things ™ from happening, though I’d expect a
regular permissions error instead of a mount error in that case.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
Thanks everyone!! I was able to resolve this issue.
The package filesystem-11.1-3.5.3.s390x.rpm is to set all the permissions for the directories. Since I mounted the repository on /mnt it would not set the permissions. I created a new directory and mounted the repository there. I was then able to update this package.
rpm -Uvh /repro/suse/s390x/filesystem-11.1-3.5.3.s390x.rpm
Preparing… ########################################### [100%]
1:filesystem ########################################### [100%]