copy file from windows to freebsd

zodehala said:
how can i copy file named c:\image.png on windows to /etc/

Several methods: USB flash drive, local mounting of the filesystem, network copy using SAMBA, etc.

If the file is on a disk in the local machine then simply mounting the filesystem is fastest method. Something in the lines of:
Code:
# mount -t ntfs /dev/ad4s1 /mnt
# cp /mnt/image.png /etc/

If it's on a different machine you can copy it over the network through SAMBA or just plug in a USB flash drive under Windows, copy the file, boot the FreeBSD machine, mount the USB flash drive and copy back the file.
 
I don't see where the OP said the computers are physically separated or connected through a LAN or something.
He could be dual-booting with Windows, in which case a simple mount(8) suffices.
 
Back
Top