Copying Data to NextCloud USB

Hi. I have a USB drive which my NC data is stored : /media/myCloudDrive.

I have another external USB drive that I need to copy data off from and put it on my NC drive about 250GB. I plugged in the second USB drive and thought I could ssh and just copy the data put putty keeps freezing when trying to browse to the second USB drive. Also I get an error when trying to get to the NC web page something about .ocdata file is not available.

Is there not a simple way of copying data to my NC drive?

I tried plugging in both USB drives into my Windows computer to copy the data like that but I am unable to access the “ncdata” folder because www.user or something like that owns it.

with the webgui or the desktop client?

my best guess is you run into trouble mounting the usb drives. you should check with mount and/or df which device is mounted where.
after you fixed that problem you can of course copy any file from your usb drive to nextcloud. but you have to tell nc that you did so. just run the occ file:scan comand.

https://docs.nextcloud.com/server/13/admin_manual/configuration_server/occ_command.html#file-operations-label

everything gets mounted fine but when I try to copy (cp) the putty session freezes and the wegui goes bananas

would i be able to plug in both usb drives to a windows machine and copy the data that way?

anything in /var/log/syslog ? or /var/log/messages depends on your linux.

start a second putty session and run tail -f /var/log/syslog there whiletrying to copy.

which filesystem is on the usb drives? a linux or a windows one?

it would be better to start a livecd (knoppix, et.al.) and to it with that linux running on your pc.

Here is the tail when i plug in the usb drive:

Mar 12 19:05:23 nextcloudpi kernel: [ 3676.693652] usb 1-1: new high-speed USB device number 2 using dwc2
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.138738] usb 1-1: New USB device found, idVendor=1058, idProduct=1100
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.138761] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.138776] usb 1-1: Product: My Book
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.138791] usb 1-1: Manufacturer: Western Digital
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.138804] usb 1-1: SerialNumber: 57442D574341563531363236323732
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.139935] usb-storage 1-1:1.0: USB Mass Storage device detected
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.144379] usb-storage 1-1:1.0: Quirks match for vid 1058 pid 1100: 800000
Mar 12 19:05:24 nextcloudpi kernel: [ 3677.144518] scsi host3: usb-storage 1-1:1.0
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.142692] scsi 3:0:0:0: Direct-Access WD 10EADS External 1.75 PQ: 0 ANSI: 4
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.147195] sd 3:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.147568] sd 3:0:0:0: [sdb] Write Protect is off
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.147594] sd 3:0:0:0: [sdb] Mode Sense: 23 00 00 00
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.147938] sd 3:0:0:0: [sdb] No Caching mode page found
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.147958] sd 3:0:0:0: [sdb] Assuming drive cache: write through
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.158470] sdb: sdb1
Mar 12 19:05:25 nextcloudpi kernel: [ 3678.161003] sd 3:0:0:0: [sdb] Attached SCSI disk
Mar 12 19:05:25 nextcloudpi nc-automount-links-mon[4006]: BigData CREATE,ISDIR
Mar 12 19:05:26 nextcloudpi ntfs-3g[5782]: Version 2016.2.22AR.1 integrated FUSE 28
Mar 12 19:05:26 nextcloudpi ntfs-3g[5782]: Mounted /dev/sdb1 (Read-Write, label “BigData”, NTFS 3.1)
Mar 12 19:05:26 nextcloudpi ntfs-3g[5782]: Cmdline options: rw,nodev,nosuid,uid=0,gid=0,uhelper=udisks2
Mar 12 19:05:26 nextcloudpi ntfs-3g[5782]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Mar 12 19:05:26 nextcloudpi ntfs-3g[5782]: Global ownership and permissions enforced, configuration type 7
Mar 12 19:05:26 nextcloudpi udisksd[4374]: Mounted /dev/sdb1 at /media/BigData on behalf of uid 0
Mar 12 19:05:26 nextcloudpi udiskie[4002]: mounted /org/freedesktop/UDisks2/block_devices/sdb1 on /media/BigData

and when your putty session freezes?

Why everytime I plug in a second usb drive and try to vist the webpage I get this:

Error

  • Your data directory is invalidEnsure there is a file called “.ocdata” in the root of the data directory.

nothing shows

do you have an automounter active? could you turn it off?

what is the content of the nc data folder?