Identical fstab options end up with different permission
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
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?
mount fstab automounting
add a comment |Â
up vote
1
down vote
favorite
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?
mount fstab automounting
1
Post the output oflsattr /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 at 17:38
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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?
mount fstab automounting
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?
mount fstab automounting
asked Apr 1 at 16:06
ArunMKumar
370517
370517
1
Post the output oflsattr /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 at 17:38
add a comment |Â
1
Post the output oflsattr /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 at 17:38
1
1
Post the output of
lsattr /home/arun/HDD
. Also, it may be better to create anSSD
and HDD
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 at 17:38
Post the output of
lsattr /home/arun/HDD
. Also, it may be better to create anSSD
and HDD
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 at 17:38
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
run from root this command:
chown -R arun:arun /home/arun/HDD
and after try to write something in it.
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
run from root this command:
chown -R arun:arun /home/arun/HDD
and after try to write something in it.
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
add a comment |Â
up vote
1
down vote
accepted
run from root this command:
chown -R arun:arun /home/arun/HDD
and after try to write something in it.
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
run from root this command:
chown -R arun:arun /home/arun/HDD
and after try to write something in it.
run from root this command:
chown -R arun:arun /home/arun/HDD
and after try to write something in it.
answered Apr 1 at 17:06
D'Arcy Nader
678414
678414
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
add a comment |Â
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
already tried, same error: operation not permitted
â ArunMKumar
Apr 1 at 17:29
1
1
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
is that an fat16 or fat32 or exfat filesystem? if yes they can't handle permissions.
â D'Arcy Nader
Apr 1 at 17:36
1
1
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
NTFS won't take the permissions either.
â Nasir Riley
Apr 1 at 17:55
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
yes you are right, you have to set permission on mount. something like this : /dev/sda2 /home/arun/HDD/ auto rw,user,fmask=0022,dmask=0000,nodev,nofail,x-gvfs-show 0 0
â D'Arcy Nader
Apr 1 at 18:14
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
thanks @D'ArcyNader it was a FAT32 partition, now formatted to ext4. problem gone now.
â ArunMKumar
Apr 24 at 10:01
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434855%2fidentical-fstab-options-end-up-with-different-permission%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Post the output of
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 at 17:38