2

How can I prevent Windows 8 from trying to format my external ext3-format hard disk?

Every time I connect my ext3-format hard disk for the guest virtual machine(ubuntu), Windows(host) shows the dialog that it is about to format my ext3-format disk.

ubuntu(guest) - virtual box - windows(host) - ext-format external disk

I'm afraid I may push the confirm button accidentally someday.

I do not want to see the dialog to format it.

Anyway, I'm using Windows 8.


EDIT:

  • I changed Windows into Windows 8
  • Sorry, everyone. I forgot to mention I'm using ext-format external disk for the virtual box guest machine. I forgot it since I had intended to ask this question inside my another question.
19 Lee
  • 125
  • 1
  • 2
  • 10
  • 3
    Really? Two upvotes for such a useless comment? "Don't use Linux" is not an option here. – psusi May 22 '13 at 20:04
  • psusi, I don't see what's wrong with @Ramhound's comment. Read properly, he didn't say "don't use Linux". Since Windows doesn't recognise the ext file system, can you tell me one good reason *why* anyone should connect a disk formatted with it to a Windows PC? If you're not going to use FAT32/NTFS (for which Linux has drivers), or install an ext driver on Windows as Ali stated, why bother? Just don't connect the drive (no-one's forcing the OP to do so) and the problem is solved! – Karan May 22 '13 at 21:35
  • @Karan, because you install Linux on the only hard drive then you automatically have such an fs connected. – psusi May 22 '13 at 23:19
  • @psusi: The question was about connecting an *external* HDD formatted as ext. Again I ask you, who's forcing the OP to connect the drive to a Windows PC? – Karan May 22 '13 at 23:22
  • @Karan, external or internal makes no difference. – psusi May 22 '13 at 23:28
  • @psusi: Why does it make no difference? He is free to use the external drive for Linux and have it formatted as ext, but unlike an internal drive he can simply just stop himself from connecting the drive to a Windows PC if he doesn't want to format it or use it on that system. If he doesn't know what the drive contains, a sticker or marker can come in handy. – Karan May 22 '13 at 23:31
  • @Karan - You can unmount internal drives in Window or Linux. I stand by my statement about not plugging in a drive with an unsupported filesystem to a Windows installation – Ramhound May 23 '13 at 00:18
  • @Ramhound: You do understand I was defending your comment and agreeing with you, right? Read [psusi's comment](http://superuser.com/questions/598644/how-can-i-prevent-the-windows-from-trying-to-format-my-ext-hard-disk?noredirect=1#comment737351_598644) carefully, and my responses to him. Any response from you should be directed towards him. – Karan May 23 '13 at 00:20
  • @Karan - of course I do my comment was more half serious in the realm of using a file system supported by both Linux an Windows – Ramhound May 23 '13 at 00:22
  • @Karan, just because you have the option to not plug in an external drive does not make "don't plug in such a drive" any more acceptable than it would be if it weren't external; Windows shouldn't be offering to format it, and it won't if it is partitioned correctly. – psusi May 23 '13 at 00:48
  • @psusi: "Windows shouldn't be offering to format it" - That should be a suggestion directed towards MS I guess, since Windows refuses to acknowledge the existence of any other OS and it is Linux that has always had to accommodate it given Windows' market share. As for your suggestion, I cannot confirm without further testing that it works, so no comment or vote either way (although Ramhound certainly seems to think it won't work). – Karan May 23 '13 at 00:55
  • @Karan, Windows has always acknowledged the existence of other OSes, which is why it ignores partitions that are marked as belonging to *other* OSes. The problem is when the partition is marked as belonging to Windows, then it is within its rights to offer to format it. – psusi May 23 '13 at 00:59
  • @Lee please edit your question. As you can see from the comments there's confusion about your use of the words 'ext format'. Are you talking about the Linux file system on an external hard disk? If so, ext-3 or 4? – Jan Doggen May 23 '13 at 06:44
  • 1
    This happens every time I connect a truecrypt-formatted HD as well. Very annoying. – tomsv May 23 '13 at 09:08
  • @dontomaso - That likely only happens because you don't have TrueCrypt installed on the system itself. I don't have the same problem. – Ramhound May 23 '13 at 10:59
  • I'm very sorry that I confuse you. I connect an ext3-format external hard disk for the ubuntu virtual machine guest on the Windows 8 host machine. – 19 Lee May 23 '13 at 11:38

5 Answers5

3

Try installing the Ext driver for windows: http://www.ext2fsd.com/

Ali
  • 1,199
  • 1
  • 8
  • 11
  • A note on the site: :WARNINGS: The driver may crash your system and ruin your data unexpectedly, since there might be software conflicts and I could only test it on some of the popular platforms. You should use it with care and use it at your own risk!" – Carl B May 22 '13 at 18:22
  • Great suggestion! I have forgotten this. Now, I remember I tried similar things at first time. But, I think no free ext-format driver software supported Windows 8. I'm using Windows 8. – 19 Lee May 23 '13 at 11:13
1

You could simply try to create a very small (some megabytes) FAT32 partition on your external drive. Then Windows would be able to find one understandable partition and therefore the format dialog should not appear anymore as the disk is not "Empty" (from Windows perspective).

It may be necessary to create this partition as the first partition on the disk.

Robert
  • 7,667
  • 3
  • 33
  • 51
  • You're genius! I'll try this. Thank you!! It will take time that I partition it without loosing data. I don't know how to do it, and I'm not sure whether it's possible. I'm working on it. If it works, I'll choose this answer. – 19 Lee May 23 '13 at 11:18
  • 1
    This does not work for me. Windows displays multiple drives (D: and E:) for my external drive and wants to format the ext4 one. [This answer](http://superuser.com/a/49385/11808) shows how to tell windows to hide the disk and [this question](http://superuser.com/q/37512/11808) asks how to get Windows to read that disk (I now use ext2fsd to read my ext4 internal and external disks). – idbrii Aug 04 '14 at 18:01
-1

You can't.

Whenever Windows sees a partition that it doesn't understand it will assume it still needs to be formatted with a format that Windows can understand.

So you will have to be careful, very careful NOT to hit the wrong button when you get the format dialog.
(Press Escape when you get it. You are less likely to make a mistake by using the keyboard then by using the mouse to cancel the dialog.)

Tonny
  • 29,601
  • 7
  • 52
  • 84
-1

Prevent is not possible.

Make a Backup and format it. Then store all your files back. Othe only way you can avoid the format dialog.

TIP: Format your extHDD with a Linux system, Ubuntu for example. Live CD is more than enough to do it. Start it with CD/DVD on Startup, mount your extHDD and format it in NTFS.

I had simular troubles not long ago, my ArchLinux detected, that my extHDD needs to repair. It repairs and since then, my Windows never pops up the format dialog again.

zeyorama
  • 117
  • 4
-1

If the disk is using GPT instead of MSDOS partitioning, you need to use the gdisk utility to change the partition type to linux instead of Windows. Debian and its derivatives set up GPT partitions using the Microsoft type code, so Windows assigns them a drive letter and offers to format them if it doesn't recognize the filesystem.

psusi
  • 7,837
  • 21
  • 25
  • Just to confirm, are you saying that if gdisk is used to change the GPT partition type to Linux instead of Windows, then plugging the drive into a Windows PC will *not* cause the format dialog to pop up due to an unrecognised file system, and the drive will simply be silently ignored? Also, what's your solution for MBR formatted disks? – Karan May 22 '13 at 21:41
  • @Karan, same thing only you can set the type with `fdisk` or `parted`, but it should already have the correct type. – psusi May 22 '13 at 23:18
  • Ok, but *does your answer solve the OP's issue* is what I am asking. If he does what you suggest and then connects the USB HDD formatted as ext to a Windows PC, will it stop asking him to format the drive because of an unrecognised file system? Will it just silently ignore the drive altogether? – Karan May 22 '13 at 23:24
  • @Karan, yes... that's exactly what I said. – psusi May 22 '13 at 23:28
  • 1
    @pseudo - even in your answer you say it will STILL ask him to format the drive. – Ramhound May 23 '13 at 00:19
  • @Ramhound, no, I don't. I clearly explained exactly why it offers to format, and what to change to make it not do that. – psusi May 23 '13 at 00:44
  • @Ramhound: Can you test this suggestion? And psusi: 1) By gdisk you meant [GPT fdisk](http://www.rodsbooks.com/gdisk/), right? 2) What's the Linux type code to be used? 3) Any major distro other than Debian that gets this "right"? 4) How can a drive with such "Linux type" MBR/GPT partitions be formatted in Windows, since no drive letter will be assigned to it? Will it be visible under Disk Management? – Karan May 23 '13 at 01:36
  • @Karan, 1) yep, 2) the program has a menu that lists the codes, 3) Yes, it will be visible in disk management as an unknown partition, rather than having a drive letter assigned for you to accidentally open in explorer and be prompted to format it. – psusi May 23 '13 at 01:40