So I know you can share files between OSes with NTFS partitions, but can I install Linux packages/programs/software into the NTFS partition and will they work fine on the Linux OS?

My situation:

  • I have an SSD with low memory. It has Windows and I'll partition it to have Linux as well. I am hoping I can give 20 GB to an Arch Linux root (/) and it'd be enough.

  • I have an HDD for large files and programs, right now only large Windows programs are in here, but I wanted to put in the large Linux programs in there as well.

I understand Linux stores binaries in the /bin folder so I'm not sure, were I to install something in the HDD, that it would work.

This answer implies that I would need to create an ext4 partition inside the HDD in order to install programs in it (or store program data in it).

You can create an ext4 partition in the HDD and mount it at /home/[your user name]/.wine
You can create a separate Steam (ext4) partition in the HDD if you want.

it also says:

Only "static-binary" compiled programs may be installed (rather copied) in sub-folders of /home and expected to work.

Which seems like it'd be the answer to my question, but I'm not sure what it means.

  • 4
    The best idea would be to have Windows and Ubuntu on the SSD, and put /home and swap on the HDD, and relocate Windows user directories to the HDD also.
    – heynnema
    Jun 10, 2017 at 23:59
  • so in this scenario will i be able to install linux programs on the /home directory (hdd)? The other post said that it is possible but only for static-binary software, how common are statically linked binaries on linux?
    – Jose V
    Jun 11, 2017 at 0:12
  • You really won't be able to install many programs in /home on HDD. Partly because not many programs are stand-alone, like some are in the PC world, and partly because your current PATH to find programs (normally) doesn't include the /home on HDD. Not really a good idea IMHO.
    – heynnema
    Jun 11, 2017 at 0:17
  • 3
    By the way: we are an official support site dedicated to UBUNTU. Arch is off topic. Use unix.stackexchange.com
    – Rinzwind
    Jun 11, 2017 at 0:18

2 Answers 2


The Unix/Linux way of dealing with partitions is quite different from the Windows way. In Linux, most programs and their related files have pretty rigidly-defined locations, set by their authors or packagers. Typically, program binaries go in /bin, /sbin, /usr/bin, or /usr/sbin. Shared libraries go in /lib or /usr/lib. System-wide configuration files go in /etc, and user-specific configuration files go in the users' home directories. Support files (graphics, sound clips, etc.) go in various locations depending on the file type. This is all defined in the Linux Filesystem Hierarchy Standard (FHS).

Most (but not all) directories in the FHS may optionally be split off onto separate partitions. Thus, if you have enough knowledge (or good advice) to predict how much stuff will go into particular directories, you can split your installation across disks by assigning particular directories to reside on particular disks.

You haven't provided enough information for me to know how much space you'll need in particular directories, but speaking in general terms, most desktop/laptop Linux installations consume roughly 15-40 GB, without considering user data. The real space-gobblers on such installations tend to be big user files -- digital photos, MP3 collections, .iso image files, and especially videos. These are all user files, which go in the /home directory. Thus, splitting off /home is often a top priority when you need to trim the size of a main Linux partition. Beyond that, you could split off directories like /var, /tmp, and others; but without knowing a lot more about your expected configuration, it's hard to make specific suggestions. 20 GB might be enough for your needs, once /home is split off; but I can't be sure of that.

OTOH, some uses put lots of files elsewhere. The /var directory tree is often huge on certain types of servers, for instance. Your question implies you might be installing Windows programs for use with WINE, and that's another exception to the usual rules -- depending on how you configure WINE, those binaries could go just about anywhere. (Personally, I wouldn't install lots of big programs for use with WINE, but that may be just me. IMHO, WINE is best used for an occasional program, and preferably for small ones, not for multiple big programs. If you need to run multiple big Windows programs, I'd recommend running them in Windows, not in Linux.)

All of this is necessary background so you can understand why your main question about installing Linux programs to NTFS is not very meaningful. Linux programs are scattered about in such a way that the only way to fully install most Linux programs on NTFS would be to use an NTFS root (/) filesystem, and that simply will not work. In principle, you might be able to get away with using NTFS for some obscure subdirectory somewhere; but Linux tends to want to adjust ownership and permissions in many of its directories, so even if you found a directory in which you could use NTFS, that might not hold when you install some new package. If you're planning to install big packages using WINE, though, you could set aside some directory for that purpose, mount an NTFS partition there, and configure WINE to use that directory as if it were C:. AFAIK, Windows programs run from WINE can run from NTFS just fine. Using your actual Windows C: partition in this way might be inadvisable, though; WINE might make changes to its configuration that would not be good. (OTOH, I'm not a WINE expert, so maybe there's a way to do this reasonably safely. Sharing OS boot partitions is always at least a little risky, though.)

Another option you might consider to work around the limited space you have on your SSD is to employ Logical Volume Management (LVM). This tool enables you to combine multiple partitions (physical volumes, or PVs, in LVM-speak) into volume groups (VGs), and then split these VGs into logical volumes (LVs). One advantage is that the resulting LVs can be sized differently than the PVs, so if you've got two smallish partitions, you can combine them together and create one LV that spans both of them. In your case, this would be useful to fit a root (/) filesystem of, say, 30 GB on a combination of the 20 GB of SSD space you've got and 10 GB of space on your HDD. Access speed would be highly variable, but this might be better than putting the root (/) filesystem entirely on the HDD.

Yet another option might be to employ bcache. This is a method of using an SSD as, essentially, an extra-large cache for a hard disk. I've played with bcache a bit, but I'm not an expert on it. The claim is that it can produce speeds that approach those of an SSD over much larger disks. In principle, you could use the 20 GB of space you've got on your SSD as the cache for the bigger space on your hard disk.


Purely addressing the title question: "Can I install a linux program on an ntfs partition?"

Yes. But not easily, and it may not work correctly or at all, even if it appears that the installation did. Even the kind of programs that just consist of an archive that you expand and then type the /path/to/where_you_put_it/some_executable won't always work. Sometimes they are written with assumptions about permissions of files in the archive. When the archive is expanded on a filesystem that doesn't support the same kind of permissions the app can fail, and error messages aren't always helpful. You can try it. Occasionally it will work.

And yeah, what heynnema said in the comment (which I upvoted) - if you want to use ntfs it would make more sense to reinstall most of your Win programs there and then shrink your Win partition. Win programs are typically written with the assumption that they will be installed on ntfs or fat.

Not the answer you're looking for? Browse other questions tagged or ask your own question.