I am attempting to download a set of files from an online database, which requires the use of wget. The shell script being used works on one of my computers, but I want to make it run on a different device, and therein lies the problem. For whatever reason, when executing the script, it gives me the following output:
--2021-07-21 12:03:12-- https://archive.eso.org/downloadportalapi/calibrationxml/672f7dfa-65b6-4117-aaf5-9eb2fd4d8759/GRAVI.2017-06-29T02:59:55.346_raw2master.xml
Resolving archive.eso.org (archive.eso.org)... 134.171.46.246
Connecting to archive.eso.org (archive.eso.org)|134.171.46.246|:443... connected.
HTTP request sent, awaiting response... 200
Length: 3484 (3.4K) [application/octet-stream]
GRAVI.2017-06-29T02:59:55.346_raw2master.xml: Invalid argument
Cannot write to 'GRAVI.2017-06-29T02:59:55.346_raw2master.xml’ (Success).
Instead of writing a line describing where it is being saved as/to, it instead outputs "Invalid argument" and I'm not sure why. Both devices are running the same version of wget and the script used on both devices is identical. I also have plenty of disk space, so that isn't an issue either. If you want to look at the shell script, it is available here.
EDIT: Here are the outputs of
mount
/dev/sdb2 on /media/keegan/LaCie type exfat (rw,nosuid,nodev,relatime,uid=1001,gid=1001,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro,uhelper=udisks2)
and df -h
/dev/sdb2/ 9.1T 14G 9.1T 1% /media/keegan/LaCie
as requested in the comments.