Why does Windows occupy more disk space, compared to Linux?

7

5

Why does a Windows install take so much place compared to most Linux distributions, despite being capable of much less? For example, a standard Ubuntu installation takes about 4 GB and can actually be sufficient for everyday work, while Windows 7 requires 15 GB of disk space from the start and doesn't offer nearly as much functionality without external programs.

So what is it - drivers? Configuration GUIs? DRM? Just poor space management?

EDIT: I don't want to imply that any of the systems is better. It's just my general impression that Linux distributions are able to fit much more in smaller amount of disk space.

hmp

Posted 2009-10-04T20:12:59.780

Reputation: 376

Question was closed 2013-06-07T20:09:21.267

You can check the windows kernel in C:\Windows\System32\ntoskrnl.exe. It is so small just about 8MB. – g10guang – 2018-08-12T02:31:38.003

7And Windows doesn't even have a decent DHCP server. – wfaulk – 2009-10-04T21:23:21.150

3I like both, but usability costs more space than server features. – hyperslug – 2009-10-04T22:14:52.403

5You argue that Linux has fewer features. When shown that Windows also has fewer features, you argue that Windows' features cost more space. (Not that Flash comes with Windows.) What is your argument, exactly? Also note that SWF has been a closed spec until about 17 months ago, and is only partially open now. – wfaulk – 2009-10-04T23:15:57.053

Then forget the Flash part, my apologies. Do you disagree that in general usability features cost more space? – hyperslug – 2009-10-04T23:42:15.923

1It's hard to say "no" in more than 15 characters. – wfaulk – 2009-10-05T01:33:50.467

1Where are the Linux users that should correct your question, because they they should say "Don't compare Linux with Windows, because Linux is Not an OS, it's a kernel." – thenonhacker – 2009-10-05T04:14:20.797

1Trying to make something solve a problem it wasn't designed to solve is futile. As in, don't try to hammer wood screws, or screw nails. I don't try to use Linux as a gaming/multimedia OS, and I don't try to run servers on Windows. Some people do this, and that's great if it scratches their itch, but I approach my back-scratching with a different solution. – jtimberman – 2009-10-05T04:36:25.853

Wfaulk: Then just say 'no' in less than 15 characters? – Josh Hunt – 2009-10-05T06:54:14.110

Answers

54

Windows has lots of legacy code for backwards compatibility with heaps of third-party vendor software and platforms. It also includes full third-party drivers for heaps of software. Windows software in general has a history and reputation for being bloated, which is largely due to compatibility reasons. Windows also has the capability to play a variety of games across many DirectX versions, and a variety of proprietary multimedia formats. Compatibility and universal usage for any task are Microsoft's goals so they can maintain their position in the desktop market.

Linux drivers are often more universal, using a common driver API across various hardware models. This is good and bad. For example, some hardware doesn't work at all, some works perfectly, and some has missing features. Software on Linux often follows the Unix philosophy - each component or tool should do one thing and do it very well, and software developers aren't afraid to break backwards compatibility to remove cruft and bad code.

Both operating systems have their strength and weaknesses. These days where 500 GB hard drives are cheap, the disk size of the installation should be the least of your concerns. A bigger concern is how much of the system's resources are consumed by running programs.

Either Windows or Linux is inefficient about resource usage depending on what you're doing. They have different design goals, different target markets, and different philosophies driving their development.

jtimberman

Posted 2009-10-04T20:12:59.780

Reputation: 20 109

Moore's Law is a thing that applies to hard drive speed as much as CPU. – jtimberman – 2014-07-22T17:20:59.643

1"These days where 500G hard drives are cheap" one more time: on tablets it's not even close to that. – arsaKasra – 2014-11-24T08:47:52.407

2There is another contributing factor, which I think is an example of inefficiency at best. Most Windows features and many third party apps cache unnecessary files, that can be easily retrieved from the internet when need, on the system drive. For example, take a look at your user profile's Downloaded Installation Files or similar locations. They probably have large (100MB+) installation files (.MSI, .EXE) of programs, some of them you already have uninstalled long long times ago. Those programmers thought hard drives were so cheap, little did they care for SSDs or tablets or VMs. – Damn Vegetables – 2015-06-14T15:14:17.487

4"These days where 500G hard drives are cheap"... except that an 80GB SSD costs more than a 1TB 2.5" drive. So those GB's can still matter if you care enough about blazing speed :) – Stephen – 2010-08-18T23:01:46.203

17+1 Well-said! No traces of Linux or Windows bias. No bitterness and love/hate tones with Microsoft. :D – thenonhacker – 2009-10-05T04:16:39.450

5Thanks. I see the strengths in every bit of technology I come across. I use OS X, Linux and Windows daily and they're all useful for something. – jtimberman – 2009-10-05T07:30:57.327

5And the band starts playing Kumbaya... – Telemachus – 2009-10-05T11:49:37.350

Like, but personally at end of first paragraph, I would say leader, not monopoly!... it is debatable, but I don't see why Microsoft would aim for this - it is a secondary benefit from being a leader. – William Hilsum – 2009-10-27T22:55:06.117

2

It is a very difficult thing to say...

There isn't really one answer fits all, for Ubuntu, it is mainly because it installs a subset of tools plus every day ones. Anything you want extra is downloaded when you need it (Such as frameworks for other programs)...

Windows Vista and 7 on the other hand copy the whole contents of the DVD to the drive and any Windows components you want to install at a later date do not require the disk to be put in.

Again, this is a very awkward question... I am not exactly sure what to say! It can be also said that you can get string from two different companies with different widths, yet they can both tie knots...

If you are just curious, I would download Vlite so you can take out components and just have a play to see how small you can make Windows.

William Hilsum

Posted 2009-10-04T20:12:59.780

Reputation: 111 572

1IMHO, the question is fine. The formulation could be improved, but it's true - you need to install a lot of stuff before it's of any use. This may be subjective, nonetheless -- at least for me -- it's true. – maaartinus – 2011-02-06T01:17:45.683

4Yeah, but Ubuntu also includes things like OpenOffice.org, whereas Windows comes with, well, nothing. – Rich Bradshaw – 2009-10-04T20:22:46.577

Open office isn't to big, I think about 300MB installed... No excuses - I left that out of the above.... I was trying to do a more general comparison of the differences without getting in to specific applications. – William Hilsum – 2009-10-04T20:29:58.403

6the question isn't awkward, it's trollish ("capable of much less", "doesn't offer nearly as much functionality", "poor space management") and best be closed or ignored. – None – 2009-10-04T20:31:53.517

2

A Windows installation contains almost all possible software. To the point that even some "uninstalled" software packages are present on disk, so that "installing" these packages doesn't even require the installation CD.

On the other hand, a standard Linux installation is much more "lean and mean", where packages can easily be added via web depositories. Windows doesn't for the moment have this flexibility (although it's starting), and requires the installation CD.

So, while the Windows installation does include superfluous components, the difference isn't as large as you might think. If you went ahead and installed almost every possible Linux package, this will also require a lot of disk space. If you then went ahead and down-cut Windows to the bone by uninstalling every unneeded option or executable, you would end up with a much smaller foot-print.

Conclusion: Linux starts small and builds up. Windows starts large and shrinks down (however, with modern disk-space, nobody bothers).

harrymc

Posted 2009-10-04T20:12:59.780

Reputation: 306 093

I'd simply like to add that on both systems you need to add at least some software to the OS post install. What frightens me is that Windows also essentially demands that you procure a software CD or download install files from a website, whereas up until Windows 8, Linux had a software centre and built-in CLI for installing anything you could ever want that was supported by the OS. In that regard, linux is lean because there's less effort to install more packages and there are far fewer leftover installers etc... – Tmanok – 2019-10-28T18:30:36.533

2Destkop distributions as Ubuntu come with open office, software for IM, gimp, and a few games. Windows has nothing of the sort already installed. – LtWorf – 2013-04-20T15:59:06.420

@LtWorf: Ever tried to compare the size of OpenOffice etc. with Microsoft Office? And why do you downvote an answer from 4 years ago? – harrymc – 2013-04-20T16:40:23.700

I googled and found this page. And well windows doesn't come with office, so your point is invalid. – LtWorf – 2013-04-20T17:43:55.530

1

Linux and other Unix operating systems are better designed architectural wise and disk size is an issue. Windows developers on the other hand concentrate more on the plug n play nature of Windows not to forget backward compatibility and hence so many legacy code, device drivers which gobble up so much real estate. And as the system gets older and more programs/features are installed/removed it's disk usage gets bigger & bigger.

One primary reason for such huge space allocation specially in Windows Vista and 7 editions is the C:\Windows\winsxs folder. It takes up most of the space in the windows folder. Read more about winsxs here.

If you want to reduce the size of winsxs, there is a tool called winsxslite. But use it at your own risk.

Space requirement was never such a serious issue with the Windows makers, given the ever expanding hard drives. It only recently became a concern because of solid state drives and people buying netbooks.

detj

Posted 2009-10-04T20:12:59.780

Reputation: 893

3(a) I'd put a [citation needed] sticker on your claim of Linux/UNIX being better designed. Both operating system families were designed with different goals and if you look at only the kernel you won't find much backwards compatibility and unclean APIs. If you take userspace into account, then you also need to count many Linux things (b) All system DLLs are hardlinks into WinSxS, greatly skewing the perception of size there. Yes, starting with Vista, the folder is very large in size, but at the same time, most of the Windows directory gets linked back there, creating no additional size cost. – Joey – 2009-10-04T22:16:28.157

1They started using NTFS's hard links feature? Does that mean that it's supported now? – wfaulk – 2009-10-04T23:18:05.410

1@Johannes, Let's not mention that Windows NT's networking stack was stolen almost wholesale from BSD, and a lot of the design of the OS in general was very similar to VMS. Oh, shoot. I mentioned it :). – jtimberman – 2009-10-05T01:56:34.837

oh snap! 'better designed' when it comes to space. not being trollish here :) – detj – 2009-10-05T04:41:08.603

1jtimberman: Only up to Windows XP. Nothing of that remains as far as I know since they've erwritten it from scratch for Windows Vista. And the similarity to VMS is hardly surprising, given the designer of Windows NT ;-) – Joey – 2009-10-05T05:40:42.493

3wfaulk: Hard links were supported since NT 4 at least. Also, if you look around a little on Vista and later you'll notice that they also use reparse points (junctions in this case) in many areas of the file system. The reason they all weren't used before was that you still could install Windows on FAT volumes. I doubt anyone in their right mind would want to do that but it could be done. It makes no sense for Microsoft to maintain two file system layouts, one for FAT and one for NTFS. Starting with Vista only NTFS is supported as the installation volume's file system. – Joey – 2009-10-10T08:29:54.887

1

Nobody knows for sure the answer to your question, except the guys at Microsoft. Because Windows is a closed-source product.

You'd rather go to support.microsoft.com and ask there, I bet they enjoy receiving such questions :-)

geek

Posted 2009-10-04T20:12:59.780

Reputation: 7 120

0

In two words: package management.

I think a stock Windows install is larger than a stock Linux distribution install because Linux can store most everything not needed immediately "somewhere out there" on a package repository mirror, in the cloud, or wherever. Need a new driver or app not installed yet? Simply apt-get install foo and a few minutes later you have it and are ready to go (substitute apt-get with the package manager of choice for your distribution).

Windows on the other hand needs to have a lot more 3rd party compatibility stuff at hand, right now, because there is no coherent and capable package management system. Windows Update is okay for some drivers and security patches, but that's about it. There's very limited user side control for picking and choosing and even less ability for installing applications to request dependency X. So Windows needs to have as much as it possibly can ready to go out of the box.

Yes there a host of useful things like flash and popular media codecs which aren't so easy to install on Linux. That doesn't detract from the central point though: Linux is smaller on the local machine because it can more easily pull what it needs from elsewhere and Windows can't.

I surmise if you took a stock linux distribution and added all the backwards compatibility stuff in the standard Windows install there wouldn't be as big a gap, in terms of occupied storage space.

matt wilkie

Posted 2009-10-04T20:12:59.780

Reputation: 4 147

0

Windows has a lot more graphical config and admin tools than the average Linux distribution, which adds to the bulk. Linux is catching up in that respect, but still has a lot less in this area than Windows.

Another area of extra bulk comes from the fact that Window keeps a second copy of many key files, so that it can restore them if they get corrupted.

andynormancx

Posted 2009-10-04T20:12:59.780

Reputation: 539

"Windows has a lot more graphical config…. Linux is catching up in that respect." You say that like it's a good thing, Andy. ;) – wfaulk – 2009-10-04T21:30:23.243

A GUI isn't necessarily a larger binary than a console application. Also the dllcache directory was eliminated in Vista. – Joey – 2009-10-04T22:18:45.063

I don't know how you can say that. Assume two programs that have the same features; one is CLI, the other GUI. There is a lot of shared code between them: the parts that do the actual work. So throw that out. Now all you're left with is UI code. Your argument is that GUI code is more compact that CLI code? That said, yeah, if the CLI utility is, for example, find and the GUI utility is that crud that Windows uses to find a file, that has a quarter of the features, maybe so. – wfaulk – 2009-10-04T23:05:17.653

1@wfaulk: Your comment is saddening, and will make the Year of Linux be delayed even further. Lack of decent UI will prevent Linux from reaching out to real people. Well do Not complain if Linux is still way behind Apple! Beat Apple, then you can beat Microsoft. – thenonhacker – 2009-10-05T04:21:26.350

2GUI config apps are extremely useful for some things. For example configuring the vhost under apache can be very painful if you don't know your way around the config files. In comparison on Windows it is much easier. However I am a big fan of all config ending up in human readable text files, even if it is editted with a GUI tool. At least Windows is now getting that right as well in some areas (like the web.config file for example). And no Bitt, I wasn't making a value judgement ;) – andynormancx – 2009-10-05T07:04:37.690