Reply To: Best way to tranfer files to ZeroShell?

Home Page Forums Network Management ZeroShell Best way to tranfer files to ZeroShell? Reply To: Best way to tranfer files to ZeroShell?

#47570

jt
Member

I sometimes use a USB flash drive to copy files to or from zeroshell. (My sshd on my server only allows key pairs, so I can’t just scp without installing a key first)

Insert the flash drive in a usb slot.
ssh to zeroshell, or use the console, and select a shell prompt.
Enter:
dmesg

My zeroshell shows this (I have zeroshell booting from a hard drive):
…etc…
scsi 2:0:0:0: Direct-Access USB 2.0 USB Flash Drive 0.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] 7897088 512-byte hardware sectors (4043 MB)
…etc…
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1

So, my zeroshell assigns the flash drive to be sda1. You may get a different sdxx name, depending on your hardware.

Enter:
mkdir /usbtemp {make a temporary mount point}
mount /dev/sda1 /usbtemp {mount the flash drive}
cd /usbtemp
ls {see the files and directories that are on the flash drive}

copy files as needed, using cp

when done:
cd /
umount /usbtemp

Now you can remove the flash drive from the usb slot.