LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-21-2017, 09:37 AM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 474

Rep: Reputation: Disabled
Can I compress the hard drive?


I am using Linux Mint 17.3 Cinnamon.

Windows XP used to have the option of compressing the hard drive, and thus effectively make it larger without any further expense or hassle.

Does Linux Mint have the same option, or is it already enabled as the default? Or is hard drive compression not supported in Linux?

Thanks
 
Old 01-21-2017, 10:18 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
SSD drive or Platter drive? I don't think you would want to do disk indexing on a SSD drive.


Besides. Linux file structure is different than a windows registry I would think.
On my boxes. My Linux systems search through their file systems a lot faster than Windows does.
Just speaking from personal experience though.

Maybe I am not understanding the question here, though. Make the drive bigger?

http://www.makeuseof.com/tag/using-l...e-compression/

Last edited by rokytnji; 01-21-2017 at 10:21 AM.
 
Old 01-21-2017, 10:30 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
you cannot compress the hard drive itself (you would need a road roller to do that), but you can use a compressed filesystem. That means the files will be compressed "on the fly" and only the compressed data will be stored on the filesystem, instead of the real file. Actually there are several solutions for that on linux, but the default filesystem(s) used by Mint are not compressed. To make a partition compressed you need to remove the existing filesystem and put a new one which supports compression, this is not an easy job. You may say it is a conversion, but I would rather say, it looks like a conversion:
http://www.linux-magazine.com/Online...th-Fstransform
http://superuser.com/questions/88468...ystem-on-linux
https://docs.oracle.com/cd/E37670_01...se7_btrfs.html

Actually I suggest you save all your important data before trying it...
 
Old 01-21-2017, 10:33 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

Rep: Reputation: Disabled
Here are a couple of articles I found by Googling 'using compressed filesystem' - there are more.

https://lwn.net/Articles/219827/

https://www.linux.com/news/save-disk...ss-filesystems
 
Old 01-21-2017, 01:29 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Perhaps I'm just overly cautious but I'm not sure I'd trust a compressed file system. With a non-compressed one a bad sector only affects the file stored on it (well, unless it's in the FAT etc.) whereas one bit in a compressed system could mean lots of data loss. Add to that the CPU overhead and it doesn't look like a good option to me.
 
Old 01-23-2017, 05:43 AM   #6
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 474

Original Poster
Rep: Reputation: Disabled
So the conclusion is, that disk compression is not supported in Linux, at least not in any user-friendly way yet.

Thanks.
 
Old 01-23-2017, 11:51 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by grumpyskeptic View Post
So the conclusion is, that disk compression is not supported in Linux, at least not in any user-friendly way yet.

Thanks.
I think it's more that disk compression is unlikely to be supported for general use on any modern OS. XP used it because hard drives were a few hundred megabytes so it was, arguably, worth the hassle.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimum downtime way to switch server data from bad hard drive to new hard drive? postcd Linux - Hardware 1 05-18-2014 11:27 AM
format hard drive and add to existing hard drive to extend the capacity in linux boby.kumar Linux - Newbie 1 04-10-2013 07:18 AM
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 02:55 PM
[SOLVED] Hardware crash,Repaired,New Install New Hard drive,how to access original Hard drive flatstan Linux - Hardware 7 07-21-2009 06:51 PM
Compress DVD files on the hard drive? ksgill Linux - Newbie 7 03-04-2005 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration