I am having a hard time to copy / rsync to an usb disc (and I am not understanding the issue)
What I am doing: I created a directory in root md transfernotebook worked and shows in the directory. I mounted the device usb to the directory mount /dev/sdm1 /transfernotebook lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 119.2G 0 disk └─md126 9:126 0 119.2G 0 raid1 └─md126p1 259:0 0 119G 0 part /boot/efi sdb 8:16 0 119.2G 0 disk └─md126 9:126 0 119.2G 0 raid1 └─md126p1 259:0 0 119G 0 part /boot/efi sdc 8:32 0 232.9G 0 disk └─sdc1 8:33 0 232.9G 0 part └─md127 9:127 0 232.9G 0 raid1 /var /usr/local /srv /root /opt /boot/grub2/x86_64-efi /boot/grub2/i386-pc / sdd 8:48 0 232.9G 0 disk └─sdd1 8:49 0 232.9G 0 part └─md127 9:127 0 232.9G 0 raid1 /var /usr/local /srv /root /opt /boot/grub2/x86_64-efi /boot/grub2/i386-pc / sde 8:64 0 3.6T 0 disk └─sde1 8:65 0 3.6T 0 part └─md0 9:0 0 3.6T 0 raid1 /var/lib/libvirt sdf 8:80 0 7.3T 0 disk └─sdf1 8:81 0 7.3T 0 part └─md1 9:1 0 7.3T 0 raid1 └─md1p1 259:1 0 7.3T 0 part /home sdg 8:96 0 7.3T 0 disk └─sdg1 8:97 0 7.3T 0 part └─md1 9:1 0 7.3T 0 raid1 └─md1p1 259:1 0 7.3T 0 part /home sdh 8:112 0 3.6T 0 disk └─sdh1 8:113 0 3.6T 0 part └─md0 9:0 0 3.6T 0 raid1 /var/lib/libvirt sdi 8:128 1 0B 0 disk sdj 8:144 1 0B 0 disk sdk 8:160 1 0B 0 disk sdl 8:176 1 0B 0 disk sdm 8:192 1 57.7G 0 disk └─sdm1 8:193 1 57.7G 0 part /transfernotebook sr0 11:0 1 1024M 0 rom So, it is there and it is mounted. I then did: rsync /home/mercurio -aAXHv /transfernotebook and here must be the error. Rsync does the whole transfer without error. I do unmount the device I put it into the notebook to do rsync but all I see is the mounted usb with "lost and found". I go back on the PC, before the directoy is empty, after mounting the device to the directory it is correctly populated. Hence I have the directory correctly on the usb device, it is not empty. Were is my pitfall? And if the files are not there, were are they? The USB drive has been mounted as ext4. Why do I see 0 byte and lost and found only. P.S. I attributed the whole usb disk to the partition (primary) ext4 Thank you.
Ken Schneider
On Jun 6, 2023, at 8:52 AM, Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
So, it is there and it is mounted.
I then did: rsync /home/mercurio -aAXHv /transfernotebook
Your syntax is incorrect. It should be: rsync (options) source (with trailing /) destination rsync -aAXHv /home/mercurio/ /transfernotebook HTH
On 2023-06-06 15:03, kschneider bout-tyme.net wrote:
Ken Schneider
On Jun 6, 2023, at 8:52 AM, Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
So, it is there and it is mounted.
I then did: rsync /home/mercurio -aAXHv /transfernotebook
Your syntax is incorrect. It should be:
rsync (options) source (with trailing /) destination
rsync -aAXHv /home/mercurio/ /transfernotebook
That is so, but then, where have the copied files gone to? Telcontar:~ # md /home/mercurio Telcontar:~ # touch /home/mercurio/file_one Telcontar:~ # md /transfernotebook Telcontar:~ # md /home/mercurio/dir_one Telcontar:~ # touch /home/mercurio/dir_one/file_two Telcontar:~ # rsync /home/mercurio -aAXHv /transfernotebook sending incremental file list mercurio/ mercurio/file_one mercurio/dir_one/ mercurio/dir_one/file_two sent 257 bytes received 62 bytes 638.00 bytes/sec total size is 0 speedup is 0.00 Telcontar:~ # Telcontar:~ # ls /transfernotebook mercurio Telcontar:~ # tree /transfernotebook/ /transfernotebook/ └── mercurio ├── dir_one │ └── file_two └── file_one 2 directories, 2 files Telcontar:~ # So, Stakanov should have a directory under /transfernotebook named "mercurio" with the correct tree inside. I would run "df -h" on the computer, with the usb disk mounted, and then in the laptop, also with the disk mounted, and inspect the results. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
Ken Schneider
On Jun 6, 2023, at 3:03 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
On 2023-06-06 15:03, kschneider bout-tyme.net wrote:
Ken Schneider
On Jun 6, 2023, at 8:52 AM, Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
So, it is there and it is mounted.
I then did: rsync /home/mercurio -aAXHv /transfernotebook Your syntax is incorrect. It should be: rsync (options) source (with trailing /) destination rsync -aAXHv /home/mercurio/ /transfernotebook
That is so, but then, where have the copied files gone to?
Telcontar:~ # md /home/mercurio Telcontar:~ # touch /home/mercurio/file_one Telcontar:~ # md /transfernotebook Telcontar:~ # md /home/mercurio/dir_one Telcontar:~ # touch /home/mercurio/dir_one/file_two Telcontar:~ # rsync /home/mercurio -aAXHv /transfernotebook
Where is the trailing / in the source tree?
sending incremental file list mercurio/ mercurio/file_one mercurio/dir_one/ mercurio/dir_one/file_two
sent 257 bytes received 62 bytes 638.00 bytes/sec total size is 0 speedup is 0.00 Telcontar:~ # Telcontar:~ # ls /transfernotebook mercurio Telcontar:~ # tree /transfernotebook/ /transfernotebook/ └── mercurio ├── dir_one │ └── file_two └── file_one
2 directories, 2 files Telcontar:~ #
You have to include the trailing / in order to copy the entire directory recursively as I provided in my example. Ken
On 2023-06-06 21:53, kschneider bout-tyme.net wrote:
Ken Schneider
On Jun 6, 2023, at 3:03 PM, Carlos E. R. <> wrote: On 2023-06-06 15:03, kschneider bout-tyme.net wrote:
Ken Schneider
On Jun 6, 2023, at 8:52 AM, Stakanov via openSUSE Users <users@lists.opensuse.org> wrote:
So, it is there and it is mounted.
I then did: rsync /home/mercurio -aAXHv /transfernotebook Your syntax is incorrect. It should be: rsync (options) source (with trailing /) destination rsync -aAXHv /home/mercurio/ /transfernotebook
That is so, but then, where have the copied files gone to?
Telcontar:~ # md /home/mercurio Telcontar:~ # touch /home/mercurio/file_one Telcontar:~ # md /transfernotebook Telcontar:~ # md /home/mercurio/dir_one Telcontar:~ # touch /home/mercurio/dir_one/file_two Telcontar:~ # rsync /home/mercurio -aAXHv /transfernotebook
Where is the trailing / in the source tree?
Intentionally not used, because he did not use it. I simply replicated his procedure.
sending incremental file list mercurio/ mercurio/file_one mercurio/dir_one/ mercurio/dir_one/file_two
sent 257 bytes received 62 bytes 638.00 bytes/sec total size is 0 speedup is 0.00 Telcontar:~ # Telcontar:~ # ls /transfernotebook mercurio Telcontar:~ # tree /transfernotebook/ /transfernotebook/ └── mercurio ├── dir_one │ └── file_two └── file_one
2 directories, 2 files Telcontar:~ #
You have to include the trailing / in order to copy the entire directory recursively as I provided in my example.
The entire directory was copied, and I proved it. Just to a different path. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
participants (3)
-
Carlos E. R.
-
kschneider bout-tyme.net
-
Stakanov