LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2008, 11:55 PM   #1
devidas1984
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Rep: Reputation: 0
Copying /dev directory


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??
 
Old 12-02-2008, 12:03 AM   #2
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
Quote:
Originally Posted by devidas1984 View Post
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??
first of all you look your /etc/fstab

look for your C:\ its look like /dev/hda0 or 1....

mount it# mount /dev/hda0 /mnt

on that you will see all your window files...then use cp to copy...

hope it helps

by the way I am talking of computers with dual boot. boot to xp and linux.

Last edited by RMLinux; 12-02-2008 at 12:04 AM.
 
Old 12-02-2008, 12:33 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by devidas1984 View Post
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??
I wonder what do you want to do.

/dev only holds device nodes. These have absolutely no meaning in windows so why do you want to copy them? Fat and ntfs do not support device nodes as such either. You could copy them as regular files. I don't know what the result will be, but in any case it would be useless (if you succeed at all to copy it).

So, I suggest you to reword your question, and to let us know why do you think that minor and major numbers of the device nodes has anything to do with your question. Right now I can't understand your purpose.
 
Old 12-02-2008, 12:36 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by devidas1984 View Post
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.

Last edited by ErV; 12-02-2008 at 12:38 AM.
 
Old 12-02-2008, 12:45 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Is it really needed to backup your /dev directory? may be you need to backup your system before formatting it, but new installation will create it regardless you back it up or not. Also, every system will have its own /dev depending on the system hardware, so there is no need to back it up. Rather it will not function on other systems with other hardware.
 
Old 12-02-2008, 11:10 PM   #6
devidas1984
LQ Newbie
 
Registered: Nov 2008
Posts: 2

Original Poster
Rep: Reputation: 0
ok thank you for your valuable replies..
 
Old 12-02-2008, 11:16 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by devidas1984 View Post
ok thank you for your valuable replies..
With all due respect, that's not much of an answer for several members who have requested clarification of what you are doing.

Why is my homework detector flickering?

Last edited by pixellany; 12-02-2008 at 11:17 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 10:18 PM
Copying from /dev/sda to /dev/sdb fof3 Linux - Newbie 8 07-04-2006 06:19 AM
Copying a Directory into Another Directory with Subdirectories oadvantage Linux - Newbie 4 03-06-2006 05:27 PM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
Copying etc directory njschroe SUSE / openSUSE 6 12-15-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration