Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Beginners • Copy Files From USB Drive to Internal Drive Using CLI

$
0
0
Hello!

I'm sure this is a very basic question for most but I'm having hard time figuring it out myself.

I'm setting up a Rasberry Pi/RetroPi. The housing for the Pi5 has a M.2 built in. I have files I want to copy over from an external USB into that M.2. I'm able to use lsblk and determined the USB drive is listed as 'sda" and has a subset of "sda1" in the list. The M.2 is listed as "nvme0n1" on the list going by drive size. I'm using the Command Line Interface as I'm still working on initial configuration and this is easiest for the point I'm at in the setup than trying to get the Pi GUI started as I already have RetroPie Emulation set to start on boot.

I basically just need correct sytnax to "copy USBdrive/folder-name (and all subfolders) to /M.2drive
------Bonus points, do I need to specify/create a new folder name in the empty M.2 drive?

When all is finished I just need the M.2 to have the /retropie-mount folder and contain all the subfolders

I've tried using basic cd and root commands to browse around and see if I can access the folders so I can get the path naming correct but keep hitting walls. I know it starts with "cp -r /path /destination" but just can't get it right

I appreciate your time helping a newbie!

Statistics: Posted by Starscream60 — Fri Feb 20, 2026 11:51 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles