LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Deleting files on a USB drive. (https://www.linuxquestions.org/questions/linux-hardware-18/deleting-files-on-a-usb-drive-560860/)

MheAd 06-11-2007 08:07 AM

Deleting files on a USB drive.
 
Hi,
I have this USB-based 160GB Seagate hard drive that is formated in NTFS and used as storage space both in my Linux (Fedora 7) and WinXP Sp2.

When I installed Fedora, I never needed to mount this device as it got directly recognised + mounted by the OS itself.

However, when I delete a certain file, or folder on the USB drive when I'm using Linux, it appears to be deleted, but once I boot in my Windows, the deleted files are still present on the drive, put in a ".Trash_username" folder, so I need to remove them once again, this time from Windows.

What I basically want to do is to make these files get permanently deleted even when I delete them from Linux and don't want them to reappear in a Windows-visable-only folder above.

Is there an enforce mount command or something else that can do this?

Thanks in advance.

pusrob 06-11-2007 08:21 AM

Hi.
You don't need any special mount options. The files are put there (in .Trash_username) because you don't use the permanent delete function. This is the same situation like in windows: you press del, and the file goes to recycle bin. In linux recycle bin is named Trash. In win when you move files to recyce bin, in reality you move the files to a hidden folder. You can see this folder in linux, but not in win. In linux this is the same. The files are moved to a hidden folder (.Trash_username), which you can't see from lin, but you can see in win. This is because win and lin use different approaches how to make a folder hidden.
If you want to delete a file permanently, both in win and lin, use this key combination: Shift+DEL. Pressing these 2 keys will result an immediate file deletion without moving anywhere.


All times are GMT -5. The time now is 09:14 PM.