Delete CDFS volume from USB drive in windows?
Solution 1
All Windows versions earlier than Windows 10 1703 will refuse to manage partitions on removable devices (USB drives, card readers, …). This applies to diskpart
as well as Disk Management, because both use the same underlying operation system services.
The only action you could use is clean
in diskpart
, followed by create partition primary
. However, Windows appears to have problems dealing with remainders of the ISO image in some areas of the disk.
It is simply not possible to accomplish what you want with these operating systems. You can use third-party software (partition managers) on top, though.
Still, I’d recommend using a GParted Live Linux to do this. It’s easy to use and free.
Update: Further experimentation has revealed that Rufus can also do the job. Just make sure “Boot selection” is set to not bootable and you’re good to go. Rufus is also a great way to put ISO images on USB drives while keeping them writable.
Solution 2
You can try diskpart on windows (as admin)
list disk
select disk n
clean
Now you have a blank USB-Stick that you can format in the explorer
Solution 3
I always use a Kali live OS on any computer and use the dd command line tool to delete the partitions on the usb drive. Word of caution is to make sure you select the correct drive.
dd if=/dev/zero of=/dev/sda bs=512 count=1 conv=notrunc
Solution 4
Negative answer: You cannot add the CDFS partition space to the usable hard disk, for the simple reason that it is not on the disk.
This drive contains a hard disk that you may access freely, but the CDFS file system is on a separate partition that is actually found on a separate write-protected NAND Chip.
The most you can do is reprogram the JMS539 Bridge controller on the drive to bridge the connection directly to the hard drive and not go through the NAND Chip. This will either remove the CDFS partition leaving only the hard disk, or it will brick the drive totally (especially if your drive has another model of Bridge controller).
If you wish to live dangerously, see this answer on the post How to delete a CDFS partition on a hard drive. It refers to software from an article that still exists only on the Wayback Machine where the software can still be downloaded. I don't take responsibility for anything that will happen if it's used.
If the USB in question is an SMI device, it may be possible to format it by the program sm32Xtest.exe.
For tutorial, see the article How to Format the Apple USB Restore stick (the utility can be used for more types of devices).
Or watch on YouTube the video
Delete USB Virtual CD Drive, Delete CDFS Partition & Make USB Virtual CD Drive + Autorun.
Related videos on Youtube

B''H Bi'ezra -- Boruch Hashem
Updated on September 18, 2022Comments
-
B''H Bi'ezra -- Boruch Hashem 3 months
I recently attempted to install ubuntu onto a removable USB drive. Eventually, I wanted to replace the ubuntu version with another, but the problem is that, besides for the 3.7gb of "free space" I can mount the new boot ISO onto, there is about 6mb of some "CDFS" boot file system, which is preventing any other boot system from being booted from.
So basically, I need to delete this CDFS voluem.
Running diskpart, I do the following commands:
list volume
to which I see volume 1 is the CDFS filesystem I am trying to delete, so then
select volume 1
so far so good
but then:
delete volume
is where the trouble is, because I get the following output:
DiskPart cannot delete volumes on removable media.
I've tried looking this up but couldn't find any conclusive articles, and for sure not on the stackexchange, so:
How do I remove a CDFS filesystem from a removable USB drive, using windows [vista or 7]?
-
Daniel B over 2 yearsPlease specify the Windows version you’re using.
-
B''H Bi'ezra -- Boruch Hashem over 2 years@DanielB it says in the question, vista or 7
-
fa wildchild over 2 yearsMy best bet is try to use Partition Wizard first for managing non-windows (FAT*/NTFS) partition. Free version should've enough to delete/recreate partition.
-
B''H Bi'ezra -- Boruch Hashem over 2 years@fawildchild I tried that and tried removing all partitions other ways but it still shows up
-
-
B''H Bi'ezra -- Boruch Hashem over 2 yearsIs there a way to do this with windows though?
-
B''H Bi'ezra -- Boruch Hashem over 2 yearsdid that, cdfs is still there
-
B''H Bi'ezra -- Boruch Hashem over 2 yearsdid that, formatted multiple times, cdfs is still there
-
B''H Bi'ezra -- Boruch Hashem over 2 yearsdid clean on diskpart, but didnt remove cdfs. What 3rd party software would be OK? Also, how could I use live linux on windows, without booting from linux? Because the problem is I have no other drive to boot from, only 1 USB drive, so in order to use a live linux, I would need to install it on a USB drive, but that is what I'm trying to do in the first place, but am unable to do so
-
Daniel B over 2 yearsI updated my answer after struggling even with an up-to-date Windows 10.
-
harrymc over 2 yearsYou are right, and it will stay there for eternity, as I explain above. Getting another drive is perhaps the best solution.
-
B''H Bi'ezra -- Boruch Hashem over 2 yearsanother drive cost money, and it wasn't there before I had installed this other ubuntu ISO on it, all I want to do is undo what i have already done so I dont have to waste a bunch of money on the USB drive i already have
-
Daniel B over 2 yearsOP said they put an Ubuntu image on a regular USB flash drive. Not sure how you arrive at the conclusion that this is about CD-ROM simulation with a specific SATA-USB bridge chip.
-
harrymc over 2 yearsIt seems strange for the CDFS to appear because of something that was written to the disk, unless the Bridge controller was somehow reprogrammed. I would think that re-format would remove anything that could have ever been written to the disk. Your experience proves to me that the CDFS is not in that space. It's more likely it was always there but was never before a problem. Even if the Bridge controller can be reprogrammed to hide the CDFS, this is then unlikely to gain more space, and will just change the nature of the device.
-
Daniel B over 2 yearsIt’s not strange at all. It’s how these so-called Hybrid ISO images work. You can use them either on a CD/DVD or write them to regular block storage (hard disk, flash drive, …). It’s a popular way of distributing Linux installers.
-
harrymc over 2 years@DanielB: No, it is strange. Anything that can be written by one program can be written by any other, and certainly erased by diskpart/clean or format. The inability to erase the CDFS indicates that it's not on the disk. It's possible that the Linux installer reprogrammed the Bridge controller; seems a bit farfetched but everything is possible.
-
Daniel B over 2 yearsNo. The inability to erase the CDFS stuff simply means that Windows is not up to the task. I confirmed it myself with a USB flash drive that had the current Arch ISO written on it. There is no need to speculate. This is something that can be easily replicated.
-
harrymc over 2 yearsThere is another possible hardware key that can actually be formatted on Windows. I added the references.
-
Daniel B over 2 years@bluejayke Did you have the time to try Rufus yet?