Find the answer to your Linux question:
Results 1 to 9 of 9
Hi All, I have a system that is dual booting Windows/Ubuntu, I rarely use Windows but when I do I want to have access to m files in Ubuntu, so ...
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958

    Deleting Files on NTFS shared

    Hi All,

    I have a system that is dual booting Windows/Ubuntu, I rarely use Windows but when I do I want to have access to m files in Ubuntu, so I basically have set it up to where all of my storage is in Windows and thus is accessible in Ubuntu. I can read/write to the NTFS partition no problem.

    The issue is when I try to delete a file it doesn't go to the trash, instead it gives me a warning saying it can't go to the trash and instead must permanently delete the file and asked me if I'm sure....this gets really old as I constantly have to "verify" that I'm sure I want to delete a file, much easier to have it go to the trash and just to empty the trash once every week or two.

    So, is there a way I can set it up so I can do this? If not, should I bug report this or is it a limitation put on by Windows which is insurmountable?

    Thanks all!
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    Hi,
    You might want to do a safe-rm
    safe-rm - Project Hosting on Google Code

  3. #3
    Just Joined!
    Join Date
    Aug 2009
    Posts
    76
    If you use shift+delete, it will bypass that warning, since shift-delete is the hotkey for permanent delete.

  4. #4
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    Quote Originally Posted by Zeroangel View Post
    If you use shift+delete, it will bypass that warning, since shift-delete is the hotkey for permanent delete.
    No man,
    he wants to get the warning before deleting and even if he does approves the warning, it should go to the Trash.
    Maybe Removing the keyboard shortcut (Shift+Delete) will help you.

  5. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    76
    This other thing will allow you to use trash:

    Edit your /etc/fstab file, by typing the command gksu gedit /etc/fstab

    Find the entry which points to your NTFS drive

    add the following information into the 'options' area of the fstab entry (the options are immediately before the two 0/1 numbers, and seperated by commas)

    Add these entries to it

    umask=000,uid=1000

    So if your fstab entry looks like this

    UUID=4DD2955E3E83EC02 /media/wardog ntfs defaults,nls=utf8,gid=047 0 1

    Change it to

    UUID=4DD2955E3E83EC02 /media/wardog ntfs defaults,nls=utf8,umask=000,uid=1000,gid=047 0 1

    Save and reboot
    ---------------------------------------------------
    The UID entry sets your user as the owner and gives you read write execute permissions, and the umask entry removes other potential permissions problems. The result is a working trash can for that drive.

  6. #6
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    hey all,

    I think I was unclear on what I want (ZeroAngel I think you have it right but your command failed, my drive doesn't even mount when I add those)

    UUID=23914C023V234B1FA /media/Windows ntfs defaults,nls=utf8,umask=000, uid = 1000,gid=46 0 1

    I don't want to be prompted every time, I don't want warnings, I don't want to verify deletes after each round, I don't want to have to permenantly delete each thing before it going to trash. I want it to go to the trash without being prompted and then be able to just empty my trash like normal once a week or so, exactly how it works "normally" under EXT partitions.

    Thanks all
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  7. #7
    Just Joined!
    Join Date
    Aug 2009
    Posts
    76
    Try this one:

    UUID=23914C023V234B1FA /media/Windows ntfs defaults,nls=utf8,umask=000,uid=1000,gid=46 0 1

    Its exactly like the one you posted but note how there are no longer any spaces around the part that says "uid"

  8. #8
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    excellent! worked, can you tell me what those extra two things really do? Thanks!
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  9. #9
    Just Joined!
    Join Date
    Aug 2009
    Posts
    76
    Good to know!

    umask = 000 gives rwx (read-write-execute) permissions to all users -- (its the inverse of chmod 777 which does the same)

    uid=1000 sets the 'owner' of the files on the partition to the main user, which by default has the user id # 1000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...