Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-02-2007, 08:23 AM   #1
LQ Newbie
Registered: Feb 2007
Location: Nairobi, Kenya
Distribution: Kubuntu 7.04 Feisty
Posts: 16

Rep: Reputation: 0
Question How to delete the .trash folder on a NTFS partition (or the files within)

I installed Kubuntu 6.10. I went to the terminal and initiated the oem config.

Before rebooting, I installed NTFS-3g.deb. I had access to my NTFS partition (Seperate HDD, see signature below).

I deleted a big file. All was well.

I rebooted. I got to the "New user menu". I started adding details. I clicked continue/OK. Before it completed the operations, there was then a powercut (a common occurance in Kenya).

When power returned, I turned on the PC. None of my passwords worked. Frustrated about this, I left the PC.

Later, I receive Kubuntu 7.04. I install a clean copy (Format + Installation). I decide to remain with the oem login this time. I instead create a new user and join the user to all groups (root included).

I install NTFS-3g.deb. I have access to my NTFS partition. ".Trash" folder is obviously not visible in linux, but very visible in Windows. Windows cannot open folder. Kubuntu can open, but cannot delete folders within.

One question: Can the .trash folder or the folders within, be deleted without formating the windows partition?

Last edited by Elzix; 07-02-2007 at 10:01 AM.
Old 07-02-2007, 10:43 AM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
It's not "visible" under Linux because the directory name starts with a dot. By default, Linux hides files (and directories, which are special kinds of files) that start with a dot. However it doesn't affect anything else; you can work with the files just like with other files, only if the program you use to view the files doesn't show them, you'll have to tell it to show them.

I wonder why Windows doesn't open the should be a normal directory. Well, whatever the reason, Linux should be able to remove it if your ntfs driver just allows writing/deleting stuff from an NTFS partition. Try
rm -r .Trash
the -r switch means "recursive", so it removes all the files and directories under (and including) the directory mentioned, recursively. If rm asks you about each file removal, you can add the option letter 'f' to force "yes" answer, but be careful not to remove stuff you would not want to.

NTFS support isn't perfect under Linux yet, if I'm right, even though that ntfs-3g is better than nothing.


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
Delete without moving to trash? Nigh Unstoppabl Linux - Newbie 1 11-15-2004 01:55 AM
How to delete file on NTFS partition jalperin Linux - Newbie 1 08-27-2004 08:47 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM
delete from trash today53 Linux - Newbie 6 11-05-2003 10:32 AM
Shrinking NTFS partition - can I delete mirror of MFT in the middle of the drive? hktonk Linux - Hardware 4 09-17-2003 05:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 AM.

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