/mnt/foo directory as a normal use and then
sudo mount -t ext3 /dev/sda5 /mnt/foo. Owner of the directory is changed to
root.root. How can I instruct
mount to leave ownership unchanged?
ps. It is "Amazon Linux"
after you execute mount, the permission you see is the mounted directory, not the mounting point (directory) that you created. if you umount /mnt/foo successfully, you will see that the mounting point itself has not changed. therefore, if you want to preserve the same ownership after mounting the partition, you need to do a sudo chown desireduser /mnt/foo.