You are not logged in.

#1 2012-07-25 11:21:38

Iacus
Member
Registered: 2012-07-25
Posts: 16

[SOLVED] Cannot use trash in NTFS partition

Hello,

I have a workstation dual booting Arch and Windows 7. My setup entails automonting an NTFS partition at boot (common home/user partition) and symlinking the directories to my Arch home folder. This works, and i have read/write permissions. Thing is, I cannot use the trash when I'm on the NTFS partition.

I have ntfs-3g installed, as well as gvfs and consolekit. I'm using standalone Openbox with Thunar as main file browser, and it complains that "The trash directory cannot be found or created". Nautilus lets me delete files, but only right away, without moving them to the trash.

This is my fstab file:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
/dev/sda7 swap swap defaults 0 0
LABEL=ahome /home ext4 defaults 0 1
LABEL=aroot / ext4 defaults 0 1
/dev/sda6 /mnt/whome ntfs-3g gid=users,fmask=113,dmask=002,permissions 0 0

I'm guessing the only problem lies in the fstab line, since when I mount external usb drives (also NTFS formatted) everything works perfectly. I can create, delete and use the trash. However, I haven't found any reliable solution to use the trash in the internal partition.

Last edited by Iacus (2012-08-03 09:30:43)

Offline

#2 2012-07-28 16:46:47

Eishorn
Member
From: somewhere
Registered: 2011-04-18
Posts: 36

Re: [SOLVED] Cannot use trash in NTFS partition

I had to set the uid in fstab to a specific user account in order to use the trash can on my NTFS partition. Having two accounts, I get the same message when I'm logged in with the other one. Something tells me there could be a quite simple solution but my studies are preventing me from doing much more as to maintain my system smile

Offline

#3 2012-07-28 17:13:26

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Cannot use trash in NTFS partition

...
/dev/sda6 /mnt/whome ntfs-3g gid=users,fmask=113,dmask=002,permissions 0 0

What does ",permissions" supposed to do?

I don't see anything about that in here: https://wiki.archlinux.org/index.php/NTFS-3G



Also, only the "/" partition needs "1" at the end. Everything else should have "2" or "0".

https://wiki.archlinux.org/index.php/Fs … efinitions

Last edited by DSpider (2012-07-28 17:13:46)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-07-28 19:41:55

Iacus
Member
Registered: 2012-07-25
Posts: 16

Re: [SOLVED] Cannot use trash in NTFS partition

So, how whould I go about getting my uid? There's only one account in my computer so that would be an acceptable workaround.

From what I read on a forum thread, "permissions" is an ntfs-3g flag that supposedly preserves standard permissions when mounting the filesystem. That would, in theory, allow me to make use of the trash, but it doesn't work

Last edited by Iacus (2012-07-28 19:47:09)

Offline

#5 2012-07-28 20:08:05

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Cannot use trash in NTFS partition

NTFS doesn't have a concept of owner, groups or permissions.


There is no such thing as a "permissions" flag. Where did you get that from? It certainly wasn't from the Arch wiki, was it?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-07-28 20:24:56

Iacus
Member
Registered: 2012-07-25
Posts: 16

Re: [SOLVED] Cannot use trash in NTFS partition

I kinda elucidated it from what i read here: http://forums.fedoraforum.org/showpost. … ostcount=3
but I admit I wasn't quite able do decipher the manual.

Offline

#7 2012-07-28 23:43:47

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] Cannot use trash in NTFS partition

DSpider wrote:

NTFS doesn't have a concept of owner, groups or permissions.

There is no such thing as a "permissions" flag. Where did you get that from? It certainly wasn't from the Arch wiki, was it?

"permissions" is a valid option for ntfs-3g mounts.  But Windows file-ownership and access-control is different from the unix/linux flavor.

From man ntfs-3g, under Options:
permissions
              Set standard permissions on created files and use  standard  access  con‐
              trol.  This option is set by default when a user mapping file is present.

Iacus wrote:

So, how whould I go about getting my uid?

With Arch, the first non-root user's UID is usually 1000.

$ echo $UID
1000

Offline

#8 2012-07-29 05:57:09

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Cannot use trash in NTFS partition

Try one of these entries and reboot:

/dev/sdb5    /mnt/Datos      ntfs-3g     uid=alex,gid=users       0    0
/dev/sdb1           /media/Games    ntfs-3g    defaults                0       0

Adjust accordingly (including spaces, etc).

Keep it simple.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#9 2012-08-03 09:30:57

Iacus
Member
Registered: 2012-07-25
Posts: 16

Re: [SOLVED] Cannot use trash in NTFS partition

That works. Thank you.

Offline

Board footer

Powered by FluxBB