:: Re: [DNG] [OT] Help on ssd/hdd mixe…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: al3xu5
Date:  
À: dng
Sujet: Re: [DNG] [OT] Help on ssd/hdd mixed system... --> bind mounts?
Thu, 29 Jun 2023 15:55:29 +0100 - Rainer Weikusat via Dng
<dng@???>:

> al3xu5 via Dng <dng@???> writes:
> > Tue, 20 Jun 2023 01:56:04 -0400 - Steve Litt
> > <slitt@???>:
> >
> >
> >> [...] But I use bind mounts, not symlinks.
> >>
> >> SteveT
> >
> > Can you help me about bind mounts, please?
> >
> > I usually use symlinks (having a bind mount just for a nsf mount in
> > fstab), and I'm not very experienced with bind mounts.
> >
> > Say I want to "move" /home/me/desktop from a SSD system disk to
> > /media/data onto a different disk (to reduce writings on SSD).
> > I would do this:
> > $ cp -p -R /home/me/.claws-mail/ /media/data/claws-mail
> > $ mv /home/me/.claws-mail /home/me/.claws-mail.bak
> > $ ln -s /media/data/claws-mail /home/me/.claws-mail
> >
> > Instead, what would it be like using a bind mount?
>
> Use
>
> mkdir /home/me/.claws-mail
> mount -o bind /media/data/claws-mail /home/me/.claws-mail
>
> (untested) instead of the 'ln -s' command.
>
> > Once this is done, with the bind mount:
> > - this will avoid writings on the SSD (or it is a sort of mirror)?
>
> Yes.
>
> > - actual data will be only on /media/data/claws-mail ?
>
> Yes.


Just another point: how to keep it after a reboot?
Should I put the bind mount in fstab? Or what else?

Thanks
al3xu5

--
Property is theft! (P-J Proudhon) ...today more than ever.
____________________________________________________________________________

Public GPG/PGP key: 8FC2 3121 2803 86E9 F7D8 B624 DA50 835B 2624 A36B