Delete File on NTFS Partition via Linux Boot CD

Posted on 2008-02-02
Medium Priority
Last Modified: 2010-05-18
Hello -

I have a file on an NTFS (XP) partition that I can't delete.  I want to use my PCLinux OS (2007) live CD to delete it.

When I boot to the CD, I can see the file on the drive but PCLinux mounts the partition as read only.  

How can I mount the partition so I can delete the file?

Question by:ttist25
  • 2
  • 2
LVL 10

Expert Comment

ID: 20806007
whats in the partition? is it a recovery partition? easiest way would be slave the drive in another machine with windows and delete via disk management

Author Comment

ID: 20806136
Hey cbmm.  Thanks for the response!

It's a normal partition.  My son thought it would be a fun game  to make a maze of folders and subfolders with a txt file at the end for whomever was persistent enough to wade their way through it.  He slicked his own PC and backed this folder up on his mother's PC (unknowingly) and she wants it off.  

Windows is  balking at the length of the filename when I try to delete it (tried command line in windows and some other things to no avail).  I think he might have a bat file or something in there that copies folders if they're deleted which complicates matters even further.  

He's at his friends at a sleepover.  I'm making a large list of chores for him when he gets home tomorrow as payback (you have to appreciate his geekness though).

I was just hoping I could issue a command from the Linux Live CD that would let me mount the partition (other than read-only) so I could delete the file.

Do you know if  this is not possible, or are you just not aware of a way to do it?  I know I can do it from my BartPE disk but i'll have to hook an analog monitor to the PC because the video card is too old to boot to PE with the LCD monitor.

Ahhhh the joys of children...
LVL 10

Accepted Solution

cbmm earned 1000 total points
ID: 20806149
you can use gparted live
LVL 10

Assisted Solution

by:Pétur Ingi Egilsson
Pétur Ingi Egilsson earned 1000 total points
ID: 20806295
ttist25 mounting a NTFS under linux in "write" mode is VERY dangerous, making changes to it (for an example.. deleting files or directories) might destroy the NTFS filesystem making all data on your drive unaccessible (permanently?)

I found 2 solutions for you:

1. Use this program to delete the directory\files: http://www.purgeie.com/delinv/dldelinv.htm
2.  First move the folder to your desktop. Go to control panel, users account. Create a new account, any name, whatever u like. Move any undeletable file/folders inside the new account. Delete the account. This works on any undeletable file/s, cannot delete byDOS, ant utlities, etc. Try it

Found them both at:

Author Comment

ID: 20806422
Thanks guys.  I ended up booting to safemode with command prompt and, for whatever reason, it let me delete the parent folder.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Welcome back to our beginners guide of the popular Unix tool, cron. If you missed part one where we introduced this tool, the link is below. We left off learning how to build a simple script to schedule automatic back ups. Now, we’ll learn how to se…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question