Hi Josef,

On Mon, Oct 11, 2021 at 01:18:55PM +0200, Josef Strýček wrote:
> I have a question how to partition new debain installation.I have 64GB ssd
> and 500GB hdd. Can I have / on ssd with ext4 and hdd with btrfs /hame /var 

Of course.

> /tmp /opt. Could you recommend layout for ssd and hdd, that ssd is not
> overwritten unnecessarily and ideal filesystem for ssd and hdd.

You've asked questions which are largely down to taste so you will
get a lot of different answers.

I would use "manual layout" in the installer to ensure I got exactly
what I wanted.

I would use whatever filesystems I wanted and not care about SSD
writes unless it's an ancient SSD or a truly exceptional use case.

For most uses /tmp is best left as a tmpfs (memory-backed) and /opt
starts off empty. If you think you're going to use /opt then you
must have some idea what you're going to put into it.

I would put a 1G or so swap partition on HDD and then dedicate whole
rest of the HDD to either btrfs or to LVM, in both cases for the
purposes of volume management. That way if your initial guesses for
sizing are incorrect you can easily change them and/or switch things
into btrfs subvolumes or LVM logical volumes later on.

But to be honest, SSD is life changing compared to HDD so I'd want
to put everything on SSD as long as it fits. I am a big lover of
redundancy so the lack of matched pairs of storage worries me, but
assuming that can't be changed I think I would use say the first
5GiB of SSD for / and then the rest as either btrfs or LVM again for
volume management.

I'd then create subvolumes or logical volumes for /home and /var and
initially have them on the SSD for speed. I'd move them into the
btrfs/LVM on the HDD only if you began to run out of SSD space.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to