PDA

View Full Version : Deleting Files/Dirs on NTFS Partition using Knoppix 3.7



Tiepo
03-28-2005, 04:47 AM
Hey all,

I am having problems deleting files in knoppix on a ntfs partition.

I booted up into knoppix 3.7 using the live cd.

Then I went to "devices" and right clicked on hda1 and "mount"

I went into the command konsole and typed the following:

"su" (which logged me in as root)

I typed the following: "mount -o remount, rw /mnt/hda1"

then I typed "rm -rf file:/mnt/hda1/Program Files/test"

but it did not seem to remove the directory :(

I would like to know what I am doing wrong. Thanks alot :)

-Tiepo

fingers99
03-28-2005, 04:59 AM
If you do delete stuff on an ntfs filesystem from Linux you will destroy the filesystem.

If you still want to go ahead, mount the partition through the icon, click on actions and r/write enable and that should be it.

Tiepo
03-28-2005, 05:07 AM
If you do delete stuff on an ntfs filesystem from Linux you will destroy the filesystem.

If you still want to go ahead, mount the partition through the icon, click on actions and r/write enable and that should be it.

Sorry could you please be a bit more specific I am very new to knoppix.

And yes I do want to go through it. I have my hdd backed anyway. :wink:

I have clicked the icon and the hdd is already mounted. When I go to action only

Send file per mail>
Zip File>
Send zip file>

Show up.

Harry Kuhman
03-28-2005, 05:15 AM
MS did a lot of stuff to make and keep NTFS propritary. While Linux can read NTFS well, it still can't write to it safely. This includes both writing files and deleting files. There is software called "captive ntfs" that claims to be able to write to an NTFS partition, but from what I've seen in the support forums it's more like playing Russian Roulet with a bullet in one chamber rather than with bullets in five of six chambers.

Since you have the disk backed up anyway, there is no good reason to do this. If it did look like it worked you may well end up with a corrupt disk that may come back to haunt you later. The only good reason to do it would be if you didn't have a backup and needed to get Windows up just long enough to recover important files before you reformatted and reinstalled everything. If you already have a good backup then don't mess with this, it will catch up with you in the end if you do.

Tiepo
03-28-2005, 01:53 PM
Since you have the disk backed up anyway, there is no good reason to do this. If it did look like it worked you may well end up with a corrupt disk that may come back to haunt you later. The only good reason to do it would be if you didn't have a backup and needed to get Windows up just long enough to recover important files before you reformatted and reinstalled everything. If you already have a good backup then don't mess with this, it will catch up with you in the end if you do.

Yeah I have backed up all important files. and Can completely wipe my hdd and re-install windows (if I wanted too).

I just really want to get this delete thing working properly. Was I on the right track? Im really trying to expand my knowledge of knoppix here. Anymore assitance would be great ;)

fingers99
03-28-2005, 02:37 PM
OK, I'd do what Harry says --- you've got all the stuff you need from that HD. So, re-install Windows, but this time make a fairly large fat 32 partition as well as ntfs (use Windows to do this). I say fairly large as it'll act as a partition to share stuff between Linux and Windows, safely. Before you put anything on that partition you might even look at making some of it a "persistant home directory" for Knoppix.

Tiepo
03-29-2005, 06:23 AM
ok thanks. fat 32 will have to do :(