Make sure that your /boot partition and your / partition actually are not mounted in ro mode and if you are operating from a live system then you can't change that but if it is a barebone system then you could change it.
run mount
and post output of the command
or better run mount | grep -i boot
and check do you have ro
flag which mean that your /boot partition is mounted in ReadOnly mode.
If its not a live system then you could run mount -o remount,rw /boot
if you get answer like
cannot remount /boot read-write, is write-protected
that mean that you are trying to mount ro volume as rw like the partition on CD/DVD or the iso image that was dd into the usb drive.
sudo chown -R root:root BOOT/
. If you are being told that operation is not permitted, than you have no super user rights, simple as that. If you performsudo touch 1.txt
you get the same error?chown: changing ownership of 'BOOT/.Trash-1000/info/System Volume Information.trashinfo': Operation not permitted chown: changing ownership of 'BOOT/.Trash-1000/info': Operation not permitted chown: changing ownership of 'BOOT/.Trash-1000/files/System Volume Information/IndexerVolumeGuid': Operation not permitted chown: changing ownership of 'BOOT/.Trash-1000/files/System Volume Information': Operation not permitted
.Trash-1000
should not be present on your BOOT partition, it's a trashbin folder, you might as well try to delete it withsudo rm -rf BOOT/.Trash-1000/
. How about other files? Did all relevant files change an owner? Check it withls -l BOOT/
ls -lart total 8 drwsrwxrwx+ 5 root root 4096 Aug 1 11:25 .. drwxr-xr-x 2 janani janani 4096 Aug 1 11:46 .
nope when i checked withls -lart
these are present in my BOOT folder and the same error message when i tried to change owner...chown: changing ownership of 'BOOT/': Operation not permitted
uid=id
mount option. This sets the owner of all files on the file system to id.