:: Re: [DNG] [OT] Help on ssd/hdd mixe…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Rainer Weikusat
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] [OT] Help on ssd/hdd mixed system... --> bind mounts?
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.