Linux Mint Deleting folders/ CHOWN

itsme220

Senior Member
Joined
Sep 1, 2006
Messages
620
Reaction score
0
Hi

I Have a ASUS RT-AC66U router and I have connected USB Drive. Enabled SAMBA SHARE.

The drive is I think NTFS or FAT32 Formated. I am not sure. it is 3TB Drive.

I have mounted this drive on my Linux Mint (Xfce). I can create folders, copy files etc. even delete folders if I create.

If already a folder with ownership root, I am unable to delete this folder. When I want to delete some files unable to delete if it is owned by root.

I have used

PHP:
sudo chown -R username:username ./folderName

command to change ownership. Nothing works.

See below Image.

DkZZ2jG.png



I can not delete Discovery folder.
The video folder I have created. I can delete easily from any PC.



how do I solve this problem?

Thanks
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Hi

I Have a ASUS RT-AC66U router and I have connected USB Drive. Enabled SAMBA SHARE.

The drive is I think NTFS or FAT32 Formated. I am not sure. it is 3TB Drive.

I have mounted this drive on my Linux Mint (Xfce). I can create folders, copy files etc. even delete folders if I create.

If already a folder with ownership root, I am unable to delete this folder. When I want to delete some files unable to delete if it is owned by root.

I have used

PHP:
sudo chown -R username:username ./folderName

command to change ownership. Nothing works.

See below Image.

DkZZ2jG.png



I can not delete Discovery folder.
The video folder I have created. I can delete easily from any PC.



how do I solve this problem?

Thanks

Have you tried delete as root user ?

Code:
sudo rm -rf Discovery
 

itsme220

Senior Member
Joined
Sep 1, 2006
Messages
620
Reaction score
0
Have you tried delete as root user ?

Code:
sudo rm -rf Discovery


Thank you davidktw for your reply. I have tried. It is not working.

At present I am mounting using the following command

Code:
sudo mount.cifs '\\192.168.1.1\shared' routershare -o user=[myusername],workgroup=WORKGROUP,password=xxxxx

when I type

Code:
johnc@dc7700 ~ $ df
Filesystem 1K-blocks Used Available Use Mounted on
/dev/sda3 956977828 139826880 768516224 16 /
none 4 0 4 0 /sys/fs/cgroup
udev 1005812 12 1005800 1% /dev
tmpfs 203964 1312 202652 1% /run
none 5120 0 5120 0% /run/lock
none 1019820 76 1019744 1% /run/shm
none 102400 8 102392 1% /run/user
/dev/sda1 463844 46388 388989 11% /boot
\\192.168.1.1\shared 1953480700 428321664 1525159036 22% /home/johnc/routershare

This may be due to cifs mount I am unable to delete. Even if I change it to root(sudo) the USB drive on the router is formated with NTFS or FAT. Not sure which one. It is 3TB single partition.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
Thank you davidktw for your reply. I have tried. It is not working.

At present I am mounting using the following command

Code:
sudo mount.cifs '\\192.168.1.1\shared' routershare -o user=[myusername],workgroup=WORKGROUP,password=xxxxx

when I type

Code:
johnc@dc7700 ~ $ df
Filesystem 1K-blocks Used Available Use Mounted on
/dev/sda3 956977828 139826880 768516224 16 /
none 4 0 4 0 /sys/fs/cgroup
udev 1005812 12 1005800 1% /dev
tmpfs 203964 1312 202652 1% /run
none 5120 0 5120 0% /run/lock
none 1019820 76 1019744 1% /run/shm
none 102400 8 102392 1% /run/user
/dev/sda1 463844 46388 388989 11% /boot
\\192.168.1.1\shared 1953480700 428321664 1525159036 22% /home/johnc/routershare

This may be due to cifs mount I am unable to delete. Even if I change it to root(sudo) the USB drive on the router is formated with NTFS or FAT. Not sure which one. It is 3TB single partition.

I'm not exactly sure, might need to do some debugging to see the samba.logs to know exactly what happened ? If not you might wanna read http://unix.stackexchange.com/questions/68079/mount-cifs-network-drive-write-permissions-and-chown and see if any suggestions in there works for you.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top