Can Delete But Not Trash Files in NTFS Partition

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Wed Sep 28, 2016 11:14 am

Greeting!

I Googled up a 1001 solutions and guesses to the topic of being unable to trash files but can delete but not in Mint to a NTFS partition, so than risk my HD I'm getting a solution from the horses' mouth from the seasoned Mint mavens here!

In a nutshell, I got a second-hand Thinkpad z61t with Windows 7 which I installed Mint 17.3 to dual boot. All works just fine except I'm unable to trash files from the big 340 GB partition in Mint mode. I can delete but not trash with its salvage option. Are there (hopefully non-techie) workarounds? Also, to my surprise, why isn't there a partition #4?

As displayed in Disks Devices:

System Partition 1 5.8 GB NTFS
Windows Partition 2 124 GB NTFS
Extended Partition 3 370 GB
Filesystem 5 28 GB Ext4
Swap Partition 6 2.1 GB Swap
Free Space 5.6
Main Partition 7 340 GB NTFS

Any assist much appreciated!

Jim in NYC

Mute Ant
Level 13
Level 13
Posts: 4945
Joined: Tue Sep 03, 2013 7:45 pm
Location: Norfolk UK

Re: Can Delete But Not Trash Files in NTFS Partition

Post by Mute Ant » Wed Sep 28, 2016 11:29 pm

The desktop Trash can is actually several folders presented as a single container. When you first Trash a file in the NTFS file system, Mint will try to make a folder called .Trash-1000 so it can move the data within the file system (fast) instead of moving it into your home folder Trash (slow). If Mint fails to make a .Trash-1000 folder you get the Delete-It-Or-Cancel choice.

o Can you really use the Delete option, or is the NTFS actually mounted Read-Only?
Tommy reports the scan of zircon and opal storage is complete. When shall we go today?

jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Thu Sep 29, 2016 7:51 am

o Can you really use the Delete option, or is the NTFS actually mounted Read-Only?

Yes. I have deleted many files from the Main (NTFS) partition, just can't trash. Permission properties are root read and write down the line. Everything works in it except trash for which I'm seeking a solution for if any, but I doubt this is a unique condition among Mint-Windows dual boot unless this is a peculiarity of Mint 18 which created the dual boot out of a Win 7 drive. Will keep checking.

Jim in NYC

rene
Level 8
Level 8
Posts: 2365
Joined: Sun Mar 27, 2016 6:58 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by rene » Thu Sep 29, 2016 8:46 am

The missing partition #4 is an uninteresting consequence of the "old" MBR partitioning format the system is using. In said format there's room for 4 primary partitions, numbered 1 to 4, one of which can be an extended partition, a container for so-called logical partitions, thereby allowing for more than 4 total. The logical partitions are sequentially numbered starting at 5, whether or not you in fact use all 4 primary partitions.

In your case you have two primary partitions as 1 and 2, an extended partition as 3 and your two Linux partitions as 5 and 6. Seeing as how you have only two Linux partitions, having them be primary partitions 3 and 4 would've in fact done here -- but the installer didn't. It used a single primary partition slot for an extended partition, slot 3, and then placed your further partitions inside of it. Certainly when you had elected to for example split of your /home partition, i.e., to have 3 or more Linux partitions, it would have needed to do this. Not in this case, but no worries; the missing #4 is expected.

altair4
Level 19
Level 19
Posts: 9316
Joined: Tue Feb 03, 2009 10:27 am

Re: Can Delete But Not Trash Files in NTFS Partition

Post by altair4 » Thu Sep 29, 2016 9:12 am

Please post the output of the following commands so the folks here can see how you are set up:

Code: Select all

sudo blkid -c /dev/null -o list

Code: Select all

cat /etc/fstab
Just a guess on my part without the above information but I'll bet you have an entry in fstab for this partition that does not specify you as the owner of the mounted partition.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Thu Sep 29, 2016 2:02 pm

Greetings!

Hope this does it!

jimwg@spacepad2 ~ $ sudo blkid -c /dev/null -o list
[sudo] password for jimwg:
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/sda1 ntfs System (not mounted) 3ABCE2EEBCE2A41B
/dev/sda2 ntfs Windows /mnt/3476E51776E4DA9E 3476E51776E4DA9E
/dev/sda5 ext4 / 036a1989-8e38-4aa6-b1c7-7409e664194f
/dev/sda6 swap <swap> 986ce6c0-ee3d-46de-8fbe-0a2582c1a852
/dev/sda7 ntfs Main /mnt/01D204A2BAB4F480 01D204A2BAB4F480
jimwg@spacepad2 ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=036a1989-8e38-4aa6-b1c7-7409e664194f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=986ce6c0-ee3d-46de-8fbe-0a2582c1a852 none swap sw 0 0
/dev/disk/by-uuid/01D204A2BAB4F480 /mnt/01D204A2BAB4F480 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/3476E51776E4DA9E /mnt/3476E51776E4DA9E auto nosuid,nodev,nofail,x-gvfs-show 0 0
jimwg@spacepad2 ~ $


Thanks for the assist!

Jim in NYC

altair4
Level 19
Level 19
Posts: 9316
Joined: Tue Feb 03, 2009 10:27 am

Re: Can Delete But Not Trash Files in NTFS Partition

Post by altair4 » Thu Sep 29, 2016 2:10 pm

Oh lord, a "Disks" user......

[1] Unmount a partition:

Code: Select all

sudo umount /mnt/01D204A2BAB4F480
[2] Edit fstab:

Code: Select all

gksu gedit /etc/fstab
[3] Add another option to that thing:
/dev/disk/by-uuid/01D204A2BAB4F480 /mnt/01D204A2BAB4F480 auto nosuid,nodev,nofail,x-gvfs-show,uid=jimwg 0 0
[4] Then remount using this comand:

Code: Select all

sudo mount -a
If it runs without errors it should just come back to the prompt. If there are any errors post them back here.

Now send something to the trash and see if it works.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Fri Sep 30, 2016 10:07 am

altair4 wrote:Oh lord, a "Disks" user......

[1] Unmount a partition:

Code: Select all

sudo umount /mnt/01D204A2BAB4F480
[2] Edit fstab:

Code: Select all

gksu gedit /etc/fstab
[3] Add another option to that thing:
/dev/disk/by-uuid/01D204A2BAB4F480 /mnt/01D204A2BAB4F480 auto nosuid,nodev,nofail,x-gvfs-show,uid=jimwg 0 0
[4] Then remount using this comand:

Code: Select all

sudo mount -a
If it runs without errors it should just come back to the prompt. If there are any errors post them back here.

Now send something to the trash and see if it works.
No joy. On boot-up Mint pauses and requests "Press S to Skip Mount. Press M to Manual." And afterwards trash still doesn't trash. Good try!!

Jim in NYC

altair4
Level 19
Level 19
Posts: 9316
Joined: Tue Feb 03, 2009 10:27 am

Re: Can Delete But Not Trash Files in NTFS Partition

Post by altair4 » Fri Sep 30, 2016 11:45 am

OK, I'll play

Please post the output of these commands:

Code: Select all

cat /etc/fstab

Code: Select all

id
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Sat Oct 01, 2016 4:04 pm

altair4 wrote:OK, I'll play

Please post the output of these commands:

Code: Select all

cat /etc/fstab

Code: Select all

id

jimwg@spacepad2 ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=036a1989-8e38-4aa6-b1c7-7409e664194f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=986ce6c0-ee3d-46de-8fbe-0a2582c1a852 none swap sw 0 0
/dev/disk/by-uuid/01D204A2BAB4F480 /mnt/01D204A2BAB4F480 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/3476E51776E4DA9E /mnt/3476E51776E4DA9E auto nosuid,nodev,nofail,x-gvfs-show 0 0

jimwg@spacepad2 ~ $
jimwg@spacepad2 ~ $ id
uid=1000(jimwg) gid=1000(jimwg) groups=1000(jimwg),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin),110(sambashare)
jimwg@spacepad2 ~ $


Good luck!


Jim in NYC

altair4
Level 19
Level 19
Posts: 9316
Joined: Tue Feb 03, 2009 10:27 am

Re: Can Delete But Not Trash Files in NTFS Partition

Post by altair4 » Sat Oct 01, 2016 4:42 pm

I don't know what to tell you. I can't reproduce your symptom.

** I took a test box with Mint 17.3 Cinnamon on it.
** I even used Disks so that I could reproduce that goofy fstab entry:
/dev/disk/by-uuid/40F76A4E40B0C5CB /mnt/40F76A4E40B0C5CB auto nosuid,nodev,nofail,x-gvfs-show 0 0
The problem here is that the Trash bin is owned by root so you as an ordinary user can't send anything to it.

The solution for me and the one I suggested to you is to become the owner of the mounted partition. In my case it was:
/dev/disk/by-uuid/40F76A4E40B0C5CB /mnt/40F76A4E40B0C5CB auto nosuid,nodev,nofail,x-gvfs-show,uid=tester 0 0
Now "tester" can send something to the trash:
tester@vmint173cin ~ $ ls -al /mnt/40F76A4E40B0C5CB | grep Trash
drwxrwxrwx 1 tester root 0 Sep 30 14:55 .Trash-1000
I have nothing more to offer. Sorry.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

jimwg
Level 4
Level 4
Posts: 252
Joined: Sun Apr 22, 2012 9:31 pm

Re: Can Delete But Not Trash Files in NTFS Partition

Post by jimwg » Sat Oct 01, 2016 4:58 pm

altair4 wrote:I don't know what to tell you. I can't reproduce your symptom.

** I took a test box with Mint 17.3 Cinnamon on it.
** I even used Disks so that I could reproduce that goofy fstab entry:
/dev/disk/by-uuid/40F76A4E40B0C5CB /mnt/40F76A4E40B0C5CB auto nosuid,nodev,nofail,x-gvfs-show 0 0
The problem here is that the Trash bin is owned by root so you as an ordinary user can't send anything to it.

The solution for me and the one I suggested to you is to become the owner of the mounted partition. In my case it was:
/dev/disk/by-uuid/40F76A4E40B0C5CB /mnt/40F76A4E40B0C5CB auto nosuid,nodev,nofail,x-gvfs-show,uid=tester 0 0
Now "tester" can send something to the trash:
tester@vmint173cin ~ $ ls -al /mnt/40F76A4E40B0C5CB | grep Trash
drwxrwxrwx 1 tester root 0 Sep 30 14:55 .Trash-1000
I have nothing more to offer. Sorry.
Would it help if I said I was using a Thinkpad z61t with XFCE MInt 17.3? At least you gave it the old college try which is far more than most other Mint "support" blogs did! Thanks for all your sweat and time! You deserve a medal or a peck from a babe!

Jim in NYC

Post Reply

Return to “Newbie Questions”