Kezman,
Seperate your commands with a ; and Linux should execute them one after another:
"mount /dev/hda1;mount /dev/sda2;cp /dev/hda1/windows/syatem32/config/* /dev/sda2/.;umount /dev/hda1;umount /dev/sda2"
That should get it from one to the other and you can modify the path as necessary to your particular set up or configuration of the drives and how each one is recognized by Knoppix.
Also I assumed sda2 for the thumb drive as sda1 was the CD???? Anyway that should at least get you started.
You have to mount the drives first since you are booting up from the ISO. The hard drive and the thumb drive are not mounted by default. You could also make a shell script that is on the thumb drive and then just mount it and run the script. The script could mount the harddrive and then copy the files and unmount both drives.
If you want a short term project you could make your own ISO on the thumb drive, set the bios to boot from the thumb drive. Set it up to run a script to do all of these things as part of the boot up sequence, and then shut down. The end result would be you walk up power down the computer, plug in the thumb drive, enter bios setup on boot, configure to boot from USB, run script and then shut down. All you do is power up and configure the bios, everything else is scripted. I have seen floppy disks that do this to pull password files.




Reply With Quote