Quote:
Originally Posted by indu.a
How do I copy a file present in one of the directories in linux to a flash disk, unmount it and then extract it back from the flash disk and store it on the linux drive?
|
There is more than one way to skin a cat..
If your flash disk is not mounted,
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
cp yourfile /mnt/sda1
sync
umount /mnt/sda1
should get the file onto the flash (if it's seen as sda1)
Restoring it is the same except for the cp line where the arguments are reversed (and of course the mkdir is only necessary the very first time).
Regards,
Chris