I recently attached a SSD to my system, with the old HDD in the DVD drive bay I set up the file mount option in the /etc/fstab file.
The permissions are as follows for SSD:
/dev/sda2 /home/arun/SSD/ auto rw,user,nodev,nofail,x-gvfs-show 0 0
for HDD
/dev/sdb2 /home/arun/HDD/ auto rw,user,nodev,nofail,x-gvfs-show 0 0
The differnce is the HDD do not give me any write permissions unless i am operating as root.
What I tried:
using 'sudo chmod 777 /home//HDD' to change the permissions. command passes correctly but nothing reflects in action(root permission still needed), file permissions do not get a 'w' when i do 'ls -l'
using 'sudo chown /home//HDD' , error: operation not permitted.
I was able to write to this HDD, before I cleaned both my disks and Installed the operating system Ububntu 16.04 LTS.
both the commands were run recursively and non-recursively.
Can This be due to the fact that I installed it in the DVD drive bay? Do I need to change something in the BIOS setting?
lsattr /home/arun/HDD
. Also, it may be better to create anSSD
andHDD
directory in/mnt
and change your/etc/fstab
to mount the drives there rather than mounting them in your home directory. – Nasir Riley Apr 1 '18 at 17:38