A
A
arbrspb2019-09-04 22:13:22
linux
arbrspb, 2019-09-04 22:13:22

Ubuntu linux how to move a folder to another hard drive?

There is a folder mnt/owncloud
Located on drive B (SSD drive with the system)
How to move it to drive A (Disk A for files)
and how to check the result?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Талян, 2019-09-04
@flapflapjack

Нет на линуксах дисков B.
Напишите сюда вывод lsblk и mount сперва, потом поговорим

Сайпутдин Омаров, 2019-09-04
@generalx

for nextcloud/owncloud you need to explicitly specify where the files are stored, if you do not like the default location /var/log/www/owncloud/data
and yes I agree with Talyan

A
anikavoi, 2019-09-05
@anikavoi

We don't have any A, B... there is /dev/sda1 /dev/sdb4 or identifiers UUID="00a4ad8e-dbcc-4c32-a0b4-074b5ee2bfb4"
The
fdisk -l command
will show which disks (/dev/sda /dev/ sdb, etc.) you have and what partitions (/dev/sda1 /dev/sda2) are marked on them.
The
mount command will
show which partitions are mounted to which entry point (roughly, a directory).
Those. Unix file tree is ONE, starts with / and partitions from different disks are already mounted to the branches of the tree.
Those. you just need to mount (if there is no automount) the partition to some directory and then just cp or mv between the directories.

P
pfg21, 2019-09-05
@pfg21

option "sotflink":
1. turn off owncloud so that you don't swear at missing files or don't go into enti files.
2. you transfer files to a directory which lies on the necessary section.
3. back to the old place you throw a softlink to the moved directory. those.
ln -s /path/to/dir /path/where/to/softlink
and usually everything works, but some programs track softlink and it doesn't work. then you put in /etc/fstab an entry with bind.
in Windows, by the way, there are softlinks and the same version of transparent movement. but for Windows it is finally a rarity.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question