LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2015, 12:48 AM   #1
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Rep: Reputation: 0
Smile USB Drive connected to ASUS Router RT-AC66U(SAMBA SHARE),


Hi 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 Code:
sudo chown -R username:username ./folderName 
command to change ownership. Nothing works.

See below Image.
http://i.imgur.com/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
 
Old 07-18-2015, 12:58 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
What happens when you become root, and then change the ownership of Discovery. Any error message?
Same question running rm -rf Discovery as root. Note that this is a dangerous command; ensure you don't delete something else by mistake.
 
Old 07-18-2015, 01:47 AM   #3
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by berndbausch View Post
What happens when you become root, and then change the ownership of Discovery. Any error message?
Same question running rm -rf Discovery as root. Note that this is a dangerous command; ensure you don't delete something else by mistake.
when I issue the following command

sudo rm -rf ./[foldername]


I get the following message.

rm: cannot remove ./[foldername]: Permission denied
 
Old 07-18-2015, 02:05 AM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
you mean rm -rf Discovery, I suppose. Is there anything in the system log (/var/log/syslog, probably)?
Are there files in Discovery? can you delete those?

To find the filesystem type, by the way, run mount and check the output. I guess it's NTFS.
 
Old 07-18-2015, 02:54 AM   #5
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by berndbausch View Post
you mean rm -rf Discovery, I suppose. Is there anything in the system log (/var/log/syslog, probably)?
Are there files in Discovery? can you delete those?

To find the filesystem type, by the way, run mount and check the output. I guess it's NTFS.
Thanks How do I check?

At present I am using the following command to mount

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

when I type

ramdc@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/ramdc/routershare

How do I check rest?

the Directory Discovery is empty. I want to delete.

Thanks

Last edited by ramsforums; 07-18-2015 at 03:00 AM.
 
Old 07-18-2015, 04:30 AM   #6
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by ramsforums View Post
sudo mount.cifs '\\192.168.1.1\shared' routershare -o user=[myusername],workgroup=WORKGROUP,password=xxxxx
I thought the disk was attached directly to the computer, not via CIFS. I doubt there is anything you can do on the Linux side. You just don't have the right credentials to delete this folder.

Suggestions:
  • connect the drive to your computer via USB, then mount it. You should be able to remove Discovery.
  • the router must have an interface to manage attached disks and their content. Try changing permissions and ownership, or simply deleting the directory using this interface.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount samba share only when connected - at boot? adamruss Linux - Networking 1 08-21-2008 12:17 PM
Getting connected with a ASUS USB, Philips Wireless Base station running Suse 10.1 Rob_scared of Vista Linux - Wireless Networking 0 12-21-2007 10:52 AM
Can linux/Samba and wireless connected XP laptops share files and print? Spearhead40 Linux - Wireless Networking 1 08-17-2006 03:05 PM
Strange...can't share usb printer connected to xp pc vatman Linux - Software 2 11-02-2005 07:50 PM
How can I share a USB printer connected to my Win XP computer through a Netgear RP614 PadreFabuloso Linux - Networking 12 06-15-2005 01:15 AM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration