Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The other day installing Linux Mint failed and it took all the space from /dev/sda3.

I wonder if there's some way to remove files and directories inside /dev/sda3 (don't know where it's located) from Windows?

share|improve this question
Can you be more specific? What is your current partition layout? What do you want to accomplish? You know you can just boot up a Linux CD and use it to re-partition or delete files from your local drive? – slhck Dec 1 '11 at 20:33
I Actually made a mistake, and did not make any partition, i selected /dev/sda3 since it was free, and it failed. I Want to remove everything inside /dev/sda3 permanent. -Hope this helped you understand – Stian Olsen Dec 1 '11 at 20:35
I Only want to empty sda3, not remove it. – Stian Olsen Dec 1 '11 at 20:40
Got it, thanks for the explanation. I changed your title so the question becomes clearer. Home that's okay for you. – slhck Dec 1 '11 at 20:45

Use a live CD or boot a live distribution from USB stick, empty that partition => done. Otherwise you would need access to the linux filesystems (guess ext4 or btrfs) which is not very well supported within windows.

share|improve this answer

If you want to keep the partition, with it's ext? file system, but without the files and folders, you can install an appropriate filesystem driver in Windows. This will allow you to create/modify/delete files in that partition the same as in any Windows partition, except there will probably be minor issues because Linux filesystems follow slightly different rules to Windows filesystems (e.g. different permissions flags).

I believe the ext2fsd project supports the ext-family filesystems in Windows, though I've never tried it myself.

However, it's probably much easier to delete the whole partition, then recreate it (or resize another partition to re-use the space). Windows may or may not refuse to delete a partition it doesn't understand, but there are third-party tools to do the job, including free ones.

Possibly the easiest way will be to use a Linux live CD. If you're willing to spend some pennies, personally I used to be a big fan of the Acronis tools (including the boot CDs), but I haven't bought an upgrade in some years.

share|improve this answer

The /dev/*-tree and Linux block devices

Everything on UNIX-systems is a file. It is a paradigm you'll need to get used to if you are diving deeper into Linux.

/dev is the directory that contains special device files, such as /dev/sda3, which is the third primary partition on your first SCSI hard disk.

Windows volumes

In order to write to a volume — also called partition — in Windows, you need to either mount it in a NTFS folder, or assign a drive letter, like C: to it. Windows also needs to be able to be compatible with the file-system of a respective volume, otherwise it will not be able to write to it.


A file-system is the way in which files are named and where they are placed logically for storage and retrieval.

From Techtarget

Linux can be installed on a variety of different file-systems. ext?, BTRFS, ZFS, JFS and XFS are just a small subset of file-systems that can be used for a Linux installation.

These file-systems generally cannot be read and written to from a Windows based OS, without loading special drivers, like Ext2Fsd

Although it is possible to accomplish writing files to ext, ext2 and ext3, using F/LOSS software, I would advice against it, because it will probably lead to more complexity, low performance and other problems.

So in short, you will not be able to easily empty /dev/sda3 from Windows, without jumping through numerous cumbersome hoops.

The superior alternative: Linux

Using Linux to solve this problem isn't that crazy, after all you used a Live Linux system to install Mint.

Emptying /dev/sda3 is done here with a delete and recreate. I assume all of the data on the partition is either backed up or unimportant. Following these steps will erase all data on /dev/sda3.

Boot a live CD and get to a terminal, type in every command exactly as shown:

$ sudo -i
Enter password for root:
Last login: xx-xx-xxxx xx:xx
# cfdisk /dev/sda

The cfdisk program will now be started. If you get an error similar to "Partition ends in the final partial cylinder", use fdisk or parted.

Use the menu's to delete sda3 and create a new partition equal in size. Use Linux as file-system (often number 83). You have now successfully removed all pointers to the data on sda3. Keep in mind that the actual data isn't erased. This post at HTG details it good enough for you to figure it out on your own, if you feel the need to securely wipe your data. I suspect you do not, though.

Final notes

Now you have successfully created space to make an attempt for the Mint installer again. If I were you, I would take a look at the official Mint documentation and also read this blog post on partitioning, it seems to me that you might need some guidance on that.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .