How to transfer files between Embedded and host Windows system Beta

From DSL Wiki

Contents

Introduction

You have a couple main options when moving data between DSL and Windows:

  • Put files on media that both DSL and Windows can read (like a usb stick, floppy, or CD)
  • Transfer files over a network (LAN or internet)

Common file systems

Both Linux and Windows can read FAT16 and FAT32 file systems. If you format a USB disk or floppy in Windows, you should be able to mount it in DSL or any other Linux. Put your files on a FAT16 USB stick (or drive partition) and you're set.

If you use a Linux file system (ext2, ext3, etc.), it may be faster to transfer your files over a network as below.

Transferring files over a network (walkthrough)

You can transfer files between DSL and Windows over a network. This walkthrough assumes you have two computers (one DSL Embedded, one Windows) and a working network connection at each.

Steps:

  1. Connect your computer to a network. Local LAN, whole Internet, doesn't matter.
  2. In Windows, create a network share directory, or use the built-in one called "SharedDocs". You may need to enable read/write authority for your share.
  3. In Windows, open up a command prompt (Start -> Programs -> Accessories -> Command Prompt).
  4. For Win2k/WinXP, type "ipconfig" and write down your IP Address.
  5. Go into DSL embedded and open up an smbclient window (DSL Menu -> Apps -> Net -> SMBClient).
  6. Type in your IP Address for the "Computer Name". Type in the EXACT share directory name ("SharedDocs" by default) and a username/password combination.
  7. When you get to the smbclient command prompt, use the commands get and put to transfer files:
       get filename #to retrieve a file from the Windows share directory
       put filename #to send a file over to the Windows share directory

When you are done type exit, quit, or bye (I forget the exact command).


EDIT: Info above assume 2 computers. To know more about host-guest communication see QEMU '-net' options.
You can refer to QEMU at http://wiki.qemu.org
or better: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:qemu#user_mode_networking

Other options

It is also possible to run sshd on the linux host, then use WinSCP (GPL) on the Windows system. The latter has a real nice gui and encrypts the xfer with the ssh (scp) protocol. A howto/walkthrough contribution would be welcome!