Quote:
Originally Posted by devidas1984
tell me how to copy the device files(files in "/dev" directory) from linux to windows without making any changes to major and minor numbers??
|
Why do you want to do that? Are you trying to backup your /dev directory?
As far as I know, windows has no equivalent of device files. So if you are trying to save them to windows machine, you should put them into tar archive, otherwise you'll have trouble copying some of them back. You backup /dev by running
Code:
tar -cf dev.tar /dev
from any directory where you have write permissions. This will create dev.tar archive. Notice that it won't save data in the device nodes (i.e. it won't save contents of your harddrives into archives), only nodes itself - where are they located and what are the called. The archive will take approximately 2 megabytes.
If you want to backup data from devices (contents of harddrives, for example), then just copy files to windows machine.