You are not logged in.
Pages: 1
Hello i just recently
upgrade my system with a new SSD
i would like to move all the /var/log
from SSD to HDD
i have already achieve to mount the HDD automatically
during the boot
with this command
/dev/sdb1 /mnt/joal ext4 defaults,rw 0 0how do i move the /var/log to the HDD and link it ?
thanks everyone ![]()
Last edited by sefacs89 (2020-02-19 10:02:37)
Offline
Well, you can copy files using cp.
After that, change the mount point of the HDD to /var, so it is being mounted at the correct place.
That is, if you really want to use the HDD as /var.
Otherwise mount the HDD wherever you want and create an appropriate var directory on it.
Then add a bind mount after the HDD mount to the fstab, which mounts this var directory to /var.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Offline
Also: don't use /mnt for permanent mountpoints[1] and note that defaults includes the rw option. See also hier(7) & fstab(5).
[1] If you get caught doing that by the mount Police you *will* go to jail ![]()
Jin, Jîyan, Azadî
Offline
Well, you can copy files using cp.
After that, change the mount point of the HDD to /var, so it is being mounted at the correct place.
That is, if you really want to use the HDD as /var.
Otherwise mount the HDD wherever you want and create an appropriate var directory on it.
Then add a bind mount after the HDD mount to the fstab, which mounts this var directory to /var.
so my line of code will be
/dev/sdb1 /var ext4 defaults,rw 0 0 @Slithery
Why ?
caused i cant change the location of journals logs
@Head_on_a_stick
Do you think they care about mounts @ all
they use the commands some other build ![]()
Thanks everyone
Offline
Offline
I meant why do you want them on the HD instead of the SSD.
to eliminate read/write cycles
as much as possible
Offline
to eliminate read/write cycles
You don't have to do that any more, your SSD will probably outlast the spinning rust drive: https://techreport.com/review/27909/the … -all-dead/
Jin, Jîyan, Azadî
Offline
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
see this wiki dd article on cloning a drive, you can clone current install onto the new SSD provided the SSD is large enough to fit all the partitions of current install.
https://wiki.archlinux.org/index.php/Dd … _hard_disk
this is only but one method there are other methods
Ancestoral Clan https://cirrus.freevar.com/mclean.html
Offline
yo the problem
has been solved succesfully
i have move some files
thanks everyone
changing status to solved
Offline
Pages: 1