Posted On September 30, 2020

Ubuntu Linux: Unable to Write to a Mounted Media

kimconnect 0 comments
blog.KimConnect.com >> Linux >> Ubuntu Linux: Unable to Write to a Mounted Media

Issue:

Unable to create an object in a certain mounted media directory

Resolution:

Discover mounted directories in the Linux machine

kim@kimlinux:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 14.9G 0 disk
└─volumegroup1-vmstorage1 253:1 0 75.6G 0 lvm /media/kim/c7d5f77d-29d6-4ac7-bcf6-cf32b691ce48
sdb 8:16 0 477G 0 disk
├─sdb1 8:17 0 300M 0 part /boot/efi
├─sdb2 8:18 0 400G 0 part /
└─sdb3 8:19 0 76.7G 0 part
├─volumegroup1-swap 253:0 0 16G 0 lvm [SWAP]
└─volumegroup1-vmstorage1 253:1 0 75.6G 0 lvm /media/kim/c7d5f77d-29d6-4ac7-bcf6-cf32b691ce48

kim@kimlinux:~$ ls -la /media/kim/c7d5f77d-29d6-4ac7-bcf6-cf32b691ce48
total 4
drwxr-xr-x 2 root root 6 Aug 26 22:21 .
drwxr-x---+ 4 root root 4096 Sep 29 21:09 ..

From the output above, it appears that such directory has been owned by root, and it’s secured with root permissions. Hence, normal users shouldn’t have access to it by design. If one wants to bypass this, one may set permissions toward such directory:

chmod ugo+rwx foldername # to give read, write, and execute to everyone.
chmod a=r foldername # to give only read permission for everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Mount NFS Share On Linux Client

# Install prerequisite sudo apt-get install nfs-common # Set variables nfsShare=test # assuming that the…

Linux: ‘Initramfs Unpacking Failed’ Error Upon Booting

Error: initramfs unpacking failed: Decoding failed Resolution: sudo sed -i 's/COMPRESS=lz4/COMPRESS=gzip/g' /etc/initramfs-tools/initramfs.confsudo update-initramfs -u# reboot…

Ubuntu 19.04: How to Install Adobe Acrobat Reader

Back  in the days when Adobe Acrobat Reader for Linux was supported and available on…
Other project: DragonCoin.com