google
yahoo
bing

Archive for April, 2007

Backup Data from Windows using Knoppix Part 2

Thursday, April 5th, 2007
Q: I want to copy files to a windows box over the network

A:

  • Second Method

I boot with Knoppix from the CD drive. Once it has fully loaded to the KDE desktop, I open a konsole command window. I assume the the hda1 (C: drive) is a FAT32 drive, so I mount it with the command:

sudo mount -t vfat -o ro,users /dev/hda1 /mnt/hda1

If instead the the hda1 (C: drive) is a NTFS drive, the I mount it with the command:

sudo mount -t ntfs -o ro,users /dev/hda1 /mnt/hda1

Next I open up the GUI file manager (called konqueror).

sudo konqueror

Once that comes up, in the location bar, I use the following to authenticate to a Windows domain & then access a windows networking share.In the location bar:

smb:/domain\username@IP.address.of.machine

If you do not need to authenticate to a domain, the form is:

smb:/hostname

or

smb:/IP.address.of.machine

This allows me to access windows shares. I navigate to where I want to save the data, then hit the keys CTRL-T to open a tnew tabbed window. Then in that location bar type:

/mnt/hda1/

Now I see the hda1 (C: drive) contents. Just like in windows explorer, select the file & folders you want to copy, CTRL-C or right-click & copy them. Use the mouse & move over to the other tab with the smb connection, then CTRL-V or right-click paste to initiate the transfer. When you are done copying files, close the konqueror window, click the KDE K menu and choose to reboot/shutdown the PC. TO shutdown the PC by command:

sudo init 0
  • Other method, in which both directions are possible. Either start SAMBA or mount the remote share.
    • "sudo /etc/init.d/samba start", add users with "smbpasswd -a knoppix". After this, the home directory of user knoppix will be shared as readonly. If you need other shares, edit /etc/samba/smb.conf and restart samba (replace "start" with "restart").
    • "mkdir tmp/share; sudo mount -t smbfs -o username=Administrator //otherbox/share /tmp/share" (maybe start samba too to get rid of the warnings, especialy when using "nmblookup")
  • Or you can obtain a lissetup.sh ("wget http://users.volja.net/zejnovi/lissetup.sh" in console). After doing that, in console, type: "chmod +x lissetup.sh", and then "./lissetup.sh". After doing this, you can use the LAN browser in Konqueror.