V
V
vipermagi2017-05-28 04:24:29
linux
vipermagi, 2017-05-28 04:24:29

What is the smartest way to partition an SDD under Linux?

I bought my first SSD (Samsung 850 EVO 250GB) and I want to install Kubuntu on it.
My current breakdown on a regular 512Gb drive:

/dev/sda1 - swap 16Gb (размером в оперативную память)
/dev/sda2 - /boot 512Mb
/dev/sda3 - / 30Gb
/dev/sda5 - /home 20Gb
/dev/sda6 - /mnt/storage всё остальное место

Some questions are tormented about reducing the production of a resource and extending life.
Should I format the /boot partition as ext2 or ext4?
What system directories are better to mount on a regular disk?
Will there be any non-obvious problems if /tmp is moved into RAM?
What about the swap partition? Here in the articles they write that swapping to ssd is a sound choice. But I figured that every day it would be guaranteed to eat up about 4-5 gigabytes of the ssd resource, because I use this section purely for hibernation.
How much unallocated area to leave or not to leave? Is it 25%, or 20%, is it under trim or for something else?
What to fear and what to watch out for? The year is 2017 and the old advice from the year before last articles may have lost some of its relevance.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Artem @Jump, 2017-05-28
Tag curated by

Some questions are tormented about reducing the production of a resource and extending life.
Bullshit.
What system directories are better to mount on a regular disk?
Those that contain rarely used information, or are too large in size to fit on an SSD.
What about the swap partition? Here in the articles they write that swapping to ssd is a sound choice.
They write correctly.
How much unallocated area to leave or not to leave? Is it 25%, or 20%, is it under trim or for something else?
If for domestic use - as much as you like. If TRIM is working and the disk is full, then it is not needed for normal use.
If there is a high write load, or TRIM will not work - according to the circumstances, the main thing is that there is always a supply of cells. Usually 10-20% is enough, sometimes you can leave 50% percent.
What to fear and what to watch out for?
Beware of sun spots. Keep an eye on your neighbor, he's up to something.

S
standrew, 2017-05-28
@standrew

I think we need to make one common ext4 partition and that's it. Even without UEFI. This is a more flexible option. I've watched photoshoppers on macs grow their swap to 80 gigs. Macbook with SSD. Well, nothing, everything worked OK.

T
theurs, 2017-05-28
@theurs

200MB under the efi partition, the
rest under the root with ext4
swap can be added as in Windows in a file, if you need
this default option in modern ubunt, in my opinion there is no point in changing something
, but how to enable hibernation? ubuntu only has standby mode by default

I
Ilya Starikov, 2017-06-06
@starikoff72

/boot 512M ext2
swap 2xRAM
/ 15G xfs
/home everything else xfs
Hard mount for storage where the thread is in /store or /raid, remove everything voluminous that does not require speed there.
Be sure to turn on the trim.
For hibernation, install pm-tools. Hibernate pm-hibernate.

V
Valentine, 2017-06-09
@ProFfeSsoRr

Will there be any non-obvious problems if /tmp is moved into RAM?

No, everything is fine, there are distributions where this is done by default.
so what? It's ridiculous, SSD can withstand a lot of overwriting.
don't leave. No, well, if there is so much money that you can afford to buy a huge SSD and leave an empty space, then you are welcome, but most do not have that kind of money.
Is there no UEFI? A handy thing, and the question "what to format" disappears, because. for it, the partition with the bootloader must be in FAT.
forget it, nothing in the system creates a dofiga load, even if it is updated every day. If everything fits on the SSD - let it lie on the SSD.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question