Skip to main content

drivers - How to mount read-write an ext4 partition on Windows?



I want to use ext4 on my external HDD, but it must be cross-platform. (At least Linux, Win7 & WinXP).


Unfortunately, I haven't found any proper driver allowing Windows to WRITE to ext4. I've found Ext2Fsd, but it only reads ext4.



9. ext4 extent read-only, no size truncating and expanding support



More:



Supported Ext3/4 features:



  • flexible inode size: > 128 bytes, up to block size

  • dir_index: htree directory index

  • filetype: extra file mode in dentry

  • large_file: > 4G files supported

  • sparse_super: super block backup in group descriptor

  • uninit_bg: fast fsck and group checksum

  • extent: reading, writing with no extending.

  • journal: only support replay for internal journal


Unsupported Ext3/4 features:



  • journal: log-based operations, external journal

  • extent: size truncating & expanding, file deletion

  • flex_bg: first metadata group

  • EA (extended attributes), ACL support



Also, I have found a patch for Ext4Fsd v0.50 (here):



New: Matt Wu has made a new release 0.50 at ext2fsd.com. Ext2fsd-0.48-bb8-signed Support for ext4 extents and fix for BSOD on Windows 7.



I don't think it will be safe. Also I've read some words about writing ext4 in Windows could cause data loss on the disk...


What is the External HDD used for? - First, it will store backups, then family movies, pictures. Some music, and etc. It will be connected to a Raspberry Pi, if I finally receive it. It won't really move, just when it is used to migrate computer's data to a new one. The largest files it will store are Clonezilla disk images (I don't know, if they will be large files or not).


Can someone provide a solution for this problem? Or is there NO important enough difference between ext4 and ext3, and I should use ext3? - (If yes, then can I use Ext2Fsd for that ext3 mount?)


Thank you!



Answer



I would use NTFS instead. It can easily be read/written to by Linux, Windows and OS X (among others).


Considering the intended use and the fact that it is an external drive, I see no reason why you should go through the hassle that using ext4 will be.


If this were your primary hard drive, perhaps the advantages of ext4 (briefly, less drive fragmentation and slightly improved performance, for more information see here) would be worthwhile. I doubt you will even notice a difference on an external USB drive. The bottleneck will be the rate of data transfer over the USB cable.


For most users, the only obvious benefit of ext4 over NTFS is that ext4 allows file names with special characters (? & % etc). Such file names, however, are both a bad idea and of no particular interest to you.




EDIT: In answer to B. Roland's question about defragmenting, yes, there are two ways I know of to defragment an NTFS drive under linux. One is an open source tool called shake. I haven't used it but it seems to work. The other is simply copying all data from the external drive, deleting everything from the drive and then copying everything back. Finally, since your drive will also be accessed under windows you can use the windows defragmenter.


I think, however, that you are attaching way too much importance to drive defragmentation. Have a look here for a simple explanation of fragmentation. Briefly, a fragmented drive is one where the files on the drive are not stored in contiguous blocks but spread out across the drive. This is usually caused by changing a file's size after it has been written. So, say you save a 1 MB file on your drive. You then modify the file and its size goes up to 20 MB. If there is not enough free space at the position where the file was created, this extra data will be written to a different part of the hard drive. In other words, the file will be fragmented.


This kind of thing is not likely to occur very often in a drive used for storing "backups, then family movies, pictures. Some music, and etc". Most of these files will never change in size, and therefore, will never fragment the drive.


In addition, even if your drive is fragmented, you don't really care. Fragmentation can be a problem for system drives where you can have many I/O operations per second. In those cases you can notice a decrease in drive performance. As I said before, on an external drive I don't think you will be able to detect this, even if it does happen.


So, in conclusion, you almost certainly will not need to defragment an NTFS formatted external HDD. However, if you really want to, you can do it both in Linux and in Windows.


Comments

Popular Posts

Use Google instead of Bing with Windows 10 search

I want to use Google Chrome and Google search instead of Bing when I search in Windows 10. Google Chrome is launched when I click on web, but it's Bing search. (My default search engine on Google and Edge is http://www.google.com ) I haven't found how to configure that. Someone can help me ? Answer There is no way to change the default in Cortana itself but you can redirect it in Chrome. You said that it opens the results in the Chrome browser but it used Bing search right? There's a Chrome extension now that will redirect Bing to Google, DuckDuckGo, or Yahoo , whichever you prefer. More information on that in the second link.

linux - Using an index to make grep faster?

I find myself grepping the same codebase over and over. While it works great, each command takes about 10 seconds, so I am thinking about ways to make it faster. So can grep use some sort of index? I understand an index probably won't help for complicated regexps, but I use mostly very simple patters. Does an indexer exist for this case? EDIT: I know about ctags and the like, but I would like to do full-text search. Answer what about cscope , does this match your shoes? Allows searching code for: all references to a symbol global definitions functions called by a function functions calling a function text string regular expression pattern a file files including a file

How do I transmit a single hexadecimal value serial data in PuTTY using an Alt code?

I am trying to sent a specific hexadecimal value across a serial COM port using PuTTY. Specifically, I want to send the hex codes 9C, B6, FC, and 8B. I have looked up the Alt codes for these and they are 156, 182, 252, and 139 respectively. However, whenever I input the Alt codes, a preceding hex value of C2 is sent before 9C, B6, and 8B so the values that are sent are C2 9C, C2 B6, and C2 8B. The value for FC is changed to C3 FC. Why are these values being placed before the hex value and why is FC being changed altogether? To me, it seems like there is a problem internally converting the Alt code to hex. Is there a way to directly input hex values without using Alt codes in PuTTY? Answer What you're seeing is just ordinary text character set conversion. As far as PuTTY is concerned, you are typing (and reading) text , not raw binary data, therefore it has to convert the text to bytes in whatever configured character set before sending it over the wire. In other words, when y

networking - Windows 10, can ping other PC but cannot access shared folders! What gives?

I have a computer running Windows 7 that shares a Git repo on drive D. Let's call this PC " win7 ". This repo is the origin of a project that we push to and pull from. The network is a wireless network. One PC on this network is running on Windows 10. Let's call this PC " win10 ". Win10 can ping every other PC on the network including win7 . Win7 can ping win10 . Win7 can access all shared files on win10 . Neither of the PCs have passwords. Problem : Win10 cannot access any shared files on win7 , not from Explorer, nor from Git Bash or any other Git management system (E-Git on Eclipse or Visual Studio). So, win10 cannot pull/push. Every other PC on the network can access win7 shared files and push/pull to/from the shared Git origin. What's wrong with Windows 10? I have tried these: Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings\ File sharing is on, Discovery is on, Password protected sharing is off Adapte