Discussion:
Copying a large file
(too old to reply)
Doug Laidlaw
2022-04-24 10:42:06 UTC
Permalink
I am trying to copy a file of about 3.5 GB from my Downloads directory
to a mini (phone-type) SD with plenty of room. It always fails, with
no error message.

The "ulimit -S" command shows "unlimited." I seem to recall something
about a maximum size of 2 GB.

Any suggestions, please, or further info required?
Bit Twister
2022-04-24 10:46:51 UTC
Permalink
Post by Doug Laidlaw
I am trying to copy a file of about 3.5 GB from my Downloads directory
to a mini (phone-type) SD with plenty of room. It always fails, with
no error message.
The "ulimit -S" command shows "unlimited." I seem to recall something
about a maximum size of 2 GB.
Sounds like a dose file size limit.
Post by Doug Laidlaw
Any suggestions, please, or further info required?
file system of target media.
Doug Laidlaw
2022-04-25 20:30:55 UTC
Permalink
Post by Bit Twister
Post by Doug Laidlaw
Any suggestions, please, or further info required?
file system of target media.
I have formatted the target to be NTFS, because it is a Windows system
for the Raspberry Pi. According to Bill's list, any FS would allow it.
David W. Hodgins
2022-04-25 22:44:10 UTC
Permalink
Post by Doug Laidlaw
Post by Bit Twister
Post by Doug Laidlaw
Any suggestions, please, or further info required?
file system of target media.
I have formatted the target to be NTFS, because it is a Windows system
for the Raspberry Pi. According to Bill's list, any FS would allow it.
I have a rpi 4b running Mageia 8. On it ...
$ blkid /dev/mmcblk0*
/dev/mmcblk0p1: LABEL_FATBOOT="M8RPI4EFI" LABEL="M8RPI4EFI" UUID="96AA-E132" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="261ea400-01"
/dev/mmcblk0p2: LABEL="M8RPI4" UUID="418d18ba-0eff-474e-bd3e-ca561407ccfd" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="261ea400-02"
/dev/mmcblk0p5: LABEL="RPI4SWAP" UUID="bb3bc321-ca27-4185-b521-a44929413a9e" TYPE="swap" PARTUUID="261ea400-05"

I also have an sd card with Raspbian os (which is based on debian linux). With it
plugged into my desktop system ...
# blkid /dev/sdf*
/dev/sdf: PTUUID="000b624d" PTTYPE="dos"
/dev/sdf1: LABEL_FATBOOT="RECOVERY" LABEL="RECOVERY" UUID="9AE3-8BA0" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="000b624d-01"
/dev/sdf2: PTTYPE="dos" PARTUUID="000b624d-02"
/dev/sdf5: LABEL="SETTINGS" UUID="a1d317dd-077b-41c7-8600-d2651b6dfbf0" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="000b624d-05"
/dev/sdf6: LABEL_FATBOOT="boot" LABEL="boot" UUID="055E-C48A" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="000b624d-06"
/dev/sdf7: LABEL="root" UUID="9d78249b-5843-4195-b79d-b18425e54055" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="000b624d-07"

So no windows system involved.

What model of Raspberry Pi are you using? Where did you get a windows image
file for it?

Regards, Dave Hodgins
Doug Laidlaw
2022-04-27 04:04:54 UTC
Permalink
On Mon, 25 Apr 2022 16:30:55 -0400, Doug Laidlaw
Post by Bit Twister
Post by Doug Laidlaw
Any suggestions, please, or further info required?
file system of target media.
  I have formatted the target to be NTFS, because it is a Windows system
for the Raspberry Pi.  According to Bill's list, any FS would allow it.
I have a rpi 4b running Mageia 8. On it ...
$ blkid /dev/mmcblk0*
/dev/mmcblk0p1: LABEL_FATBOOT="M8RPI4EFI" LABEL="M8RPI4EFI"
UUID="96AA-E132" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="261ea400-01"
/dev/mmcblk0p2: LABEL="M8RPI4"
UUID="418d18ba-0eff-474e-bd3e-ca561407ccfd" BLOCK_SIZE="4096"
TYPE="ext4" PARTUUID="261ea400-02"
/dev/mmcblk0p5: LABEL="RPI4SWAP"
UUID="bb3bc321-ca27-4185-b521-a44929413a9e" TYPE="swap"
PARTUUID="261ea400-05"
I also have an sd card with Raspbian os (which is based on debian linux). With it
plugged into my desktop system ...
# blkid /dev/sdf*
/dev/sdf: PTUUID="000b624d" PTTYPE="dos"
/dev/sdf1: LABEL_FATBOOT="RECOVERY" LABEL="RECOVERY" UUID="9AE3-8BA0"
BLOCK_SIZE="512" TYPE="vfat" PARTUUID="000b624d-01"
/dev/sdf2: PTTYPE="dos" PARTUUID="000b624d-02"
/dev/sdf5: LABEL="SETTINGS" UUID="a1d317dd-077b-41c7-8600-d2651b6dfbf0"
BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="000b624d-05"
/dev/sdf6: LABEL_FATBOOT="boot" LABEL="boot" UUID="055E-C48A"
BLOCK_SIZE="512" TYPE="vfat" PARTUUID="000b624d-06"
/dev/sdf7: LABEL="root" UUID="9d78249b-5843-4195-b79d-b18425e54055"
BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="000b624d-07"
So no windows system involved.
What model of Raspberry Pi are you using? Where did you get a windows image
file for it?
Regards, Dave Hodgins
Thanks, Dave. I have a Pi400,and the initial setup is virtually
identical to yours. On separate SSDs, I have Manjaro and Ubuntu, which
function tolerably well.

The question of Windows is apparently "iffy." Originally, it was said
to be impossible, but now, it seems, Win11 is usable, but not Win10.
That struck me as odd, especially since the CLI method below seems to
install Win 10 then upgrade it to Win 11. At https://www.worproject.ml,
there is a link to a script for Ubuntu, and I have Mint, but the script
seems to be out-of-date. After a couple of failures, I opted for a
command-line approach, using "How to Install from other OSes" from the
above site. It worked well until now, and I should possibly seek help
there, but this error sounds more basic. In switching directories, the
command "getcwd" often fails to find the parent directory or even the
current directory. That may be behind the original error message I
quoted. I have reached the limit of my knowledge.

Regards,
Doug Laidlaw
2022-04-27 04:08:57 UTC
Permalink
On separate SSDs, I have Manjaro and Ubuntu, which function tolerably well.
P.S.: Both of these are specially developed for ARM.
David W. Hodgins
2022-04-27 13:44:38 UTC
Permalink
Post by Doug Laidlaw
there, but this error sounds more basic. In switching directories, the
command "getcwd" often fails to find the parent directory or even the
current directory. That may be behind the original error message I
quoted. I have reached the limit of my knowledge.
That sounds like a problem with the sd card. First try re-seating the sd card.
Try using another card. If that doesn't help, try cleaning the contacts on the
card and reader.

Regards, Dave Hodgins
TJ
2022-04-27 14:14:33 UTC
Permalink
The question of Windows is apparently "iffy."  Originally, it was said
to be impossible, but now, it seems, Win11 is usable, but not Win10.
That struck me as odd, especially since the CLI method below seems to
install Win 10 then upgrade it to Win 11.  At https://www.worproject.ml,
there is a link to a script for Ubuntu, and I have Mint, but the script
seems to be out-of-date.  After a couple of failures, I opted for a
command-line approach, using "How to Install from other OSes" from the
above site.  It worked well until now, and I should possibly seek help
there, but this error sounds more basic.  In switching directories, the
command "getcwd" often fails to find the parent directory or even the
current directory.  That may be behind the original error message I
quoted.  I have reached the limit of my knowledge.
Regards,
I would consider an inability to run Windows to be a valuable "feature."

TJ
Bobbie Sellers
2022-04-27 15:44:50 UTC
Permalink
Post by TJ
The question of Windows is apparently "iffy."  Originally, it was said
to be impossible, but now, it seems, Win11 is usable, but not Win10.
That struck me as odd, especially since the CLI method below seems to
install Win 10 then upgrade it to Win 11.  At
https://www.worproject.ml, there is a link to a script for Ubuntu, and
I have Mint, but the script seems to be out-of-date.  After a couple
of failures, I opted for a command-line approach, using "How to
Install from other OSes" from the above site.  It worked well until
now, and I should possibly seek help there, but this error sounds more
basic.  In switching directories, the command "getcwd" often fails to
find the parent directory or even the current directory.  That may be
behind the original error message I quoted.  I have reached the limit
of my knowledge.
Regards,
I would consider an inability to run Windows to be a valuable "feature."
TJ
Even if you must use Windows surely running it on a Virtual Machine
with limited connectivity to the Internet is preferable to an
installation to your fixed disk...

bliss - on PCLOS - The Perfect Computer Linux Operating System
--
bliss dash SF 4 ever at dslextreme dot com
David W. Hodgins
2022-04-27 16:38:39 UTC
Permalink
Post by Bobbie Sellers
Even if you must use Windows surely running it on a Virtual Machine
with limited connectivity to the Internet is preferable to an
installation to your fixed disk...
A raspberry pi boots, and normally runs from an sd card. It doesn't have enough
ram, speed, etc. to support VirtualBox. Mageia doesn't even build it for the
aarch64 architecture.

As each os is installed on separate sd cards, there's no additional risk other
then what's normal when using any m$ software. One os cannot access an other os's
files, since there is only one sd card reader (unless you also add a usb connected
sd card reader).

I have an rpi 4b with 4GB ram, using 32 GB sd cards. I was expecting it to run
very slowly compared to my desktop system. For large file operations, it is slower,
but normal application usage is reasonably close to the same speed.

I used the raspberry os to confirm it works, and now use Mageia 8 on it.
On that system, running Mageia 8 with kde plasma, primarily for running konversation
and firefox ...
[***@rp4 ~]# free -m
total used free shared buff/cache available
Mem: 3831 1639 717 59 1473 1944
Swap: 6696 0 6696

Regards, Dave Hodgins

William Unruh
2022-04-24 20:22:57 UTC
Permalink
Post by Doug Laidlaw
I am trying to copy a file of about 3.5 GB from my Downloads directory
to a mini (phone-type) SD with plenty of room. It always fails, with
no error message.
The "ulimit -S" command shows "unlimited." I seem to recall something
about a maximum size of 2 GB.
Any suggestions, please, or further info required?
What is the filesystem on the SD? From Wikipedia


File system Maximum size[a]
APFS 8 EB
exFAT 16 EB
FAT12 16 MB (4 KB clusters) or 32 MB (8 KB clusters)
FAT16B 2 GB (without LFS) or 4 GB (with LFS)
FAT32 4 GB
HFS 2 GB
HFS+ 8 EB
HPFS 2 GB
NTFS 16 EB

It sounds like you have either Fat16 or HPFS
EB-Exabyte= 1000000000 GB
Ie, a hell of a lot larger than any SD. You could use FAT32 or exFAT
instead if you really want compatibility with Windows.
Loading...