[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need syntax for /etc/fstab to mount space on an ssd over /tmp



On Monday 17 February 2020 01:34:02 Andrei POPESCU wrote:

> On Lu, 17 feb 20, 00:10:52, Gene Heskett wrote:
> > Greetings all;
> >
> > I am trying to remove as much write activity as possible from the
> > u-sd that a raspi boots from.  To that end I'll create a partition
> > on an ssd, of 5000 megs, then copy the existing /tmp's contents to
> > it it, then mount the ssd partition of that name on top of it where
> > it is in the u-sd now. A partition labeled tmp-u-sd-temp would be
> > about the least mistake prone to put in /etc/fstab. I did this once
> > at least a decade or more ago because I outgrew the /home/partition
> > but can't in 2020 remember the fstab syntax a decade+ later.
>
> To mount by label:
>
> # what              where   type    options     dump    fsck order
> LABEL=tmp-u-sd-temp /tmp    ext4    noatime     0       2
>
> man fstab
>
Thanks Andrei.

> Kind regards,
> Andrei


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply to: