Howto delete windows folder in linux

Hi, today is my first time using OpenSUSE.

When I mounted an ntfs drive, I did it 2 times, and create 2 different folders in root/windows (C and E).

Is there anyway to remove 1 of them?

Thank you in advance.

i’m not sure of what you did, but i suggest you leave them alone (how
else can you be sure you don’t actually delete real data?

instead, at your level of experience i’d say the safest thing to do is
to do a normal shutdown (right click desktop, select “Log out” then
“Restart computer” to do a reboot…and, next time be more careful
when you mount…

and, you can use the forum’s advanced search to learn how to
auto-mount those by editing your fstab…

-=welcome=- i suggest you move slowly and deliberately…learn more
about this system and make sure you have a back up of all important
data in your Redmond filesystems, BEFORE you do a lot of deleting of
anything…

[tip: more than one has deleted all their good stuff and then blamed
it on openSUSE instead of just “playing around and learning by
doing”…and, tip 2: in linux delete means REALLY delete, there are
some recovery options but nowhere nearly as easy as in other
systems…so, caution is advised…]


palladium

You check which is the valid mount and you leave it alone. If you delete the valid mount when the NTFS partition is mounted then you delete all the files on it.

You can see mounted NTFS partitions and the mount points with this command in a console:

df -Th

.

Then suppose E is the inactive one that you want to delete, next you double check by browsing to E in your file manager (Nautilus or Dolphin) and looking in E and making sure there are no files.

Then you can delete E with this console command:

sudo rm -Rf /path_to/E

Oooo, dangerous. The OP states it’s his first day on linux.

@avcomputer: did you mount the partitions by hand, or did you make a mistake in the partitioner ?

Please open a terminal window and show us output of the command below:


su -c 'cat /etc/fstab'

Post that please, and we will be able to tell you if, for example, a simple reboot would clear things, or that you have to take action and which actions.

Welcome to the forums BTW.

On 03/07/2010 02:36 AM, avcomputer wrote:
>
> Hi, today is my first time using OpenSUSE.
>
> When I mounted an ntfs drive, I did it 2 times, and create 2 different
> folders in root/windows (C and E).
>
> Is there anyway to remove 1 of them?
>
> Thank you in advance.
>
>

Same folder right??\

Sudo umount /windows/E -L

su

umount /windows/E -L <=== -L for lazy unmount

man umount

Thank you all for helping me! I deleted the folder.

At first, I used “sudo rm -Rf /path_to/D”, but the folder’s still there, then I used superuser mode to delete the folder. :slight_smile:

Congrats on the job well done.

For future reference, the bit “path_to” has to be replaced by the real path, making something like “rm -Rf /windows/D”.