Advertising

Author Topic: Solved - I can not erase anything from any ntfs unit  (Read 171 times)

Offline coco

  • Newbie
  • *
  • Posts: 5
Solved - I can not erase anything from any ntfs unit
« on: June 14, 2018, 01:16:26 pm »
Hi, sorry for my english.

I'm using sparky gnome and I was trying to make the trash (recycle bin) can work from any unit, either ext4 or ntfs. Something I've touched and now I can not erase anything from any ntfs drive, ext4 drives fine, I even have a file in the trash can not delete it.

I use two users, one of them is the root user, both of them with different passwords.

I would like two things; can delete files from any ntfs unit and that the trash can work in any ntfs unit too.

Thanks
« Last Edit: June 15, 2018, 03:47:13 am by coco »

Offline paxmark1

  • Sr. Member
  • ****
  • Posts: 368
Re: I can not erase anything from any ntfs unit
« Reply #1 on: June 14, 2018, 05:42:32 pm »
post output of "ls -al"  of an affected directory from a terminal.    Use #   button under the "Subject Message" field.  - i.e. xml mark up

example

Code: [Select]
~$ ls -al ~/.local/share/Trash/files/
total 48792
drwx------ 3 paxmark paxmark   188416 Jun  5 22:38 .
drwx------ 5 paxmark paxmark     4096 Jul 21  2016 ..
drwxr-xr-x 7 paxmark paxmark     4096 May  6  2017 BUPWIN
-rw-r--r-- 1 paxmark paxmark   368560 Jun  2 23:35 Burmese.Days-20180520.epub
-rw-r--r-- 1 paxmark paxmark   367727 May 12 20:37 burmesedays.epub
-rw-r--r-- 1 paxmark paxmark  1289752 Jan 22  2017 DWA-130_REVC_DRIVERS_0.06_LINUX.ZIP
-rw-r--r-- 1 paxmark paxmark 36971873 Mar 19 17:15 KunstlerCast_301.mp3
-rw-r--r-- 1 paxmark paxmark   269384 Jun  2 23:34 Pastoral-Shute-20180532.epub
-rw-r--r-- 1 paxmark paxmark  5169023 May 31 18:42 tales-of-the-new-cold-war-1-of-2-has-the-us-isolated-russia-from-its-neighbors-stephen-f-cohen-nyu-p.mp3
-rw-r--r-- 1 paxmark paxmark  5315937 May 19 22:38 tales-of-the-new-cold-war-a-public-debate-2-of-2-of-us-vs-russia-in-2018-stephen-f-cohen-nyu-princet.mp3
-rw-r--r-- 1 paxmark paxmark     3856 Jun  5 21:25 totten.epub

Use Ctl-Shift-V to copy from terminal.  The normal Ctl-C to paste into browser. 

If ownership (paxmark owns in the above case) is incorrect remedy with "chown"  for how to use - see "man chown"
 You might have to use "sudo chown   Blah:Blah    Bleh:Bleh" 

Don't make a FrankenDebian

Offline coco

  • Newbie
  • *
  • Posts: 5
Re: I can not erase anything from any ntfs unit
« Reply #2 on: June 14, 2018, 06:25:33 pm »
Thanks @paxmark1 for your help.

Datos1 is an ntfs unit.

Code: [Select]
~$ ls -al /mnt/Datos1/.Trash-1000/files
total 16
drwxrwxr-x 1 arturo arturo     0 jun 13 13:45  .
drwxrwxr-x 1 arturo arturo     0 abr 10 02:58  ..
-rwxrwxr-- 1 arturo arturo 15761 jun 13 13:35 'Protection.docx'


Datos is an ntfs unit.

Code: [Select]
ls -al /mnt/Datos
total 4189
drwxr-x--- 1 arturo arturo    8192 jun 12 22:05  .
drwxr-xr-x 4 root   root      4096 may 11 23:50  ..
drwxr-x--- 1 arturo arturo  176128 jun 13 13:19  Android-KDE
drwxr-x--- 1 arturo arturo    4096 ago 23  2017  anterkde
drwxr-x--- 1 arturo arturo    4096 dic 11  2017  Bios
drwxr-x--- 1 arturo arturo    4096 abr 10 03:03  Carpetas
drwxr-x--- 1 arturo arturo   16384 ago 23  2017  ContaSol
-rwxr-x--- 1 arturo arturo 1276889 may 10 12:14 'Corporate order.pdf'
drwxr-x--- 1 arturo arturo    4096 ago 23  2017  Deco
-rwxr-x--- 1 arturo arturo     282 may 22  2014  desktop.ini
-rwxr-x--- 1 arturo arturo  732441 may 10 12:14  IMG_0001_backup.pdf
-rwxr-x--- 1 arturo arturo  802279 may 10 11:11  IMG_0001.jpg
-rwxr-x--- 1 arturo arturo  603390 may 10 12:08  IMG_0002.jpg
-rwxr-x--- 1 arturo arturo  547413 may 10 12:10  IMG_0002.pdf
drwxr-x--- 1 arturo arturo    4096 ago 23  2017 'Linux carpetas'
drwxr-x--- 1 arturo arturo    4096 nov  6  2017  Música
drwxr-x--- 1 arturo arturo    4096 ago 23  2017 'PGOU La Vila'
drwxr-x--- 1 arturo arturo       0 oct 22  2017 '$RECYCLE.BIN'
drwxr-x--- 1 arturo arturo    4096 ago 23  2017 'System Volume Information'
drwxr-x--- 1 arturo arturo    4096 ago 23  2017  Wii

In Data and Data1 I can not delete anything.

Offline paxmark1

  • Sr. Member
  • ****
  • Posts: 368
Re: I can not erase anything from any ntfs unit
« Reply #3 on: June 14, 2018, 10:14:05 pm »
Your ownership looks good - hopefully others have some other ideas.  I do not have a Gnome DE and do not have any ntfs directories. 

Sparky4 or Sparky5?

Can you delete from the command line as arturo ?  If you feel comfortable doing it can you remove the trash files as root? 

If you have some usb sticks you might want to check out /media.Arturo/LabelOfUsb/.Trash-1000/files   and see if you can delete fat32 files if you have any trash there. 

Quick search on my end, old posts here and there.  Only one interesting was
https://forum.kde.org/viewtopic.php?t=136865

/local/share/Trash vs .Trash  vs .Trash-1000 vs .trash-1000     (1000 is

Don't make a FrankenDebian

Offline coco

  • Newbie
  • *
  • Posts: 5
Re: I can not erase anything from any ntfs unit
« Reply #4 on: June 14, 2018, 11:03:56 pm »
Thanks.

Sparky5

Is incredible, I created an ext4 partition in a space that was free on the disk and I can not write on it either.

Neither as root nor as arturo can I erase anything in the ntfs partitions ... and now neither in the ext4 that created new.

I do not have ntfs partitions for using windows, I do not use it, I only use those ntfs partitions with linux. This is a nightmare, all this for wanting the Trash to work in all the units of my system.

I started with a live usb of ubuntu mate and it was impossible to delete the file from the trash, neither as user nor as root ....
« Last Edit: June 14, 2018, 11:46:18 pm by coco »

Offline coco

  • Newbie
  • *
  • Posts: 5
Re: I can not erase anything from any ntfs unit
« Reply #5 on: June 15, 2018, 03:45:49 am »
Problem solved.

Everything has been windows problem, I left the computer to a friend because I had to do something with windows, at the end I did not turn off but suspended the computer and that was what prevented the file from the trash and write in the ntfs units, I discovered it because I have installed another linux and did the same, besides that with ubutu mate in live usb mode I could not delete the file from the trash.

Thanks