| |
10-29-2008
|
#1 (permalink)
| | Just Joined!
Join Date: Oct 2008
Posts: 9
| How do I delete hidden files on NTFS drive I have a file located c:\documents and settings\jerry\local settings\temporary internet files\content.outlook\CBVPSK45\image00627.jpg that I want deleted. In WinXP explorer I can only go as far as the folder Temporary Internet Files, it does not show the child-folder or anything below it.
In Knoppix I can see the full path to the file but cannot delete it. When I try to delete it I just get an error window that lists the path and file and says that it can't be deleted, if I try to change file permissions from Read only to Read & Write I get another error message that says that I can't change the permissions.
Can anyone tell me how to get rid of this file? |
|
|
10-30-2008
|
#2 (permalink)
| | Linux Guru
Join Date: Apr 2005 Location: CA, but from N.Ireland
Posts: 2,408
| Welcome to the forums!
Since it's on an NTFS drive, knoppix may not be able to delete this file. First try to delete it as the root user. If that doesn't work, you'll have to try to enable ntfs write access on knoppix, or use a liveCD with that ability.
__________________ Registered Linux user #388328 || Registered LFS user #15880 AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII Need instant help? Try us on IRC -- #linuxforums on freenode |
| |
10-30-2008
|
#3 (permalink)
| | Linux Guru
Join Date: Feb 2008 Location: Louisville, Kentucky
Posts: 1,595
| Hello and Welcome!
If it's a LiveCD of Knoppix, then you'll have to change the write permissions, as suggested by smolloy, and then use the sudo command to delete the files. |
| |
11-01-2008
|
#4 (permalink)
| | Just Joined!
Join Date: Oct 2008
Posts: 9
| Please explain in detail I am totally new to Knoppix. How do I enable write access? What is a "LiveCD"? I'm booting from a CD is that a LiveCD? What is the SUDO command? How is it used? |
| |
11-02-2008
|
#5 (permalink)
| | Linux Guru
Join Date: Feb 2008 Location: Louisville, Kentucky
Posts: 1,595
| When booting up with Knoppix, you should see all of your partitions on the desktop. Right-click on the ones you need to work with, you'll get a menu that will allow you to mount them and change permissions. Then, open a terminal, and start removing the files: sudo gives you temporary root permissions. |
| |
11-08-2008
|
#6 (permalink)
| | Just Joined!
Join Date: Oct 2008
Posts: 9
| Quote:
Originally Posted by jayd512 When booting up with Knoppix, you should see all of your partitions on the desktop. Right-click on the ones you need to work with, you'll get a menu that will allow you to mount them and change permissions. Then, open a terminal, and start removing the files: sudo gives you temporary root permissions. | Jay,
I booted with knoppix, right clicked on the correct drive & changed permissions (I think--it showed that I had "read-write" permission. However when I opened the command prompt, I don't know how to change to the drive I want to modify, and I also don't know how to log on to root---if it requires a password I don't have it. I tied dragging and dropping the file in the trash after changing permissions on the whole drive, but again I get the error message that I cannot delete that file. |
| |
11-12-2008
|
#7 (permalink)
| | Linux Guru
Join Date: Feb 2008 Location: Louisville, Kentucky
Posts: 1,595
| Sorry for the delay here. Using Knoppix to remove Windows files is both easy and tricky at the same time. Here's what you do though. After changing permissions (as you have done), you are going to have to actually hunt down the path name to the program/file that you want gone. And you'll have to use sudo for it (good news... Knoppix doesn't have a root password!) So then, for an example... Code: sudo rm /mnt/hdx/C:\My_Documents\<my_file
Sorry... been a while since I looked at a Windows file system! |
| |
11-15-2008
|
#8 (permalink)
| | Just Joined!
Join Date: Oct 2008
Posts: 9
| Quote:
Originally Posted by jayd512 Sorry for the delay here. Using Knoppix to remove Windows files is both easy and tricky at the same time. Here's what you do though. After changing permissions (as you have done), you are going to have to actually hunt down the path name to the program/file that you want gone. And you'll have to use sudo for it (good news... Knoppix doesn't have a root password!) So then, for an example... Code: sudo rm /mnt/hdx/C:\My_Documents\<my_file
Sorry... been a while since I looked at a Windows file system! | Hi Jay,
I tried again to delete this file, but again no success. When I type in the command sudo rm /mnt/sda2/c:\documents_and_settings\jerry\local_settings\tem porary_internet_files\content.outlook\cbvpsk45\ima ge000627
I get a couple of lines of text saying that it can't find the file or folder and it shows the path that I typed EXCEPT it removes the last back-slash "\" so the path ends up c:\documents_and_settings\jerry\local_settings\tem porary_internet_files\content.outlook\cbvpsk45imag e000627
I tried changing the command to only go to the folder cbvpsk45 to delete the entire folder, but again I get that same error showing it can't find folder "content.outlooksbvpsk45" again leaving out the last back-slash.
What am I doing wrong? |
| |
11-15-2008
|
#9 (permalink)
| | Linux Guru
Join Date: Feb 2008 Location: Louisville, Kentucky
Posts: 1,595
| Here's what I would try. When you get your Knoppix desktop going, mount the Windows drive, then change permissions (make it writable). Open a terminal, and go one step at a time...
1) cd /mnt
2) Do an ls -a to double check everything
3) cd/mnt/hd x ( x being Windows)
4) Repeat step 2
5) Keep going until you get to the directory in question...
When you get to the proper directory, do one more ls -a to make sure you have the right filename that you're looking for. A little time consuming, but if nothing else is working for you, this may be the solution.
By the way, remember that with Linux you can use the <TAB> button in the middle of typing a command or filename for an auto-complete function. Helps avoid typos  |
| |
11-16-2008
|
#10 (permalink)
| | Just Joined!
Join Date: Oct 2008
Posts: 9
| Hi Jay,
I followed the instructions above, it took some time to get the syntax correct, but your instructions helped. However when I finally drilled down to the correct folder and tried to delete the file, I get the error "Cannot remove 'image00627.jpg':Read only file system". I tried to rename the file, but I don't know Knoppix command to do that, I also tried to delete *.* in that folder and that time I got a line for every file that said the same thing as the one I quoted above except for the actual file name. HELP??? |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |