copying files from windows partition onto linux partition

i am new to linux and am currently running the redhat linux 8 along with windows XP , could someone give me a detailed description of copying a file from a windows partition say (d:/lin) to a folder in linux(/ab/win)

Thank u..
abhimenonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

haydes007Commented:
As root, open a terminal window. Type the following commands(press enter after each):

cd /mnt
mkdir windows
mount -t ntfs /dev/yourWindowsPartition /mnt/windows (replace yourWindowsPartition with the partition you have windows on. In my case, /dev/hda1 )

cd /mnt/windows
ls


If you don't see anything, you'll probably need to recompile the kernel to include NTFS read support. Read the kernel howto for that as it will take too long to explain here. Go to http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Kernel-HOWTO.html

Larry
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rhinocerosCommented:
(mount -t ntfs) It's worked, but only read the file from Windows under NTFS partition, you cannot write the files back to Windows side.


Windows XP
1. Create one local user account in Windows XP
2. Share the folder (d:/lin) for above user has the access right


Linux
1. cd /mnt
2. mkdir win
3. mount -t smbfs -o username=peter,password=789 //WindowsXPName/lin /mnt/win
Even create one batch file (e.g. test.sh) to run it each time when you need as well)


I hope it can help
0
rhinocerosCommented:
One more,

If your linux server has no DNS service, I suggest you use IP to seach as well as follow

"mount -t smbfs -o username=peter,password=789 //192.168.1.1/lin /mnt/win"

I hope it can help
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

rhinocerosCommented:
One more,

If your linux server has no DNS service, I suggest you use IP to seach as well as follow

"mount -t smbfs -o username=peter,password=789 //192.168.1.1/lin /mnt/win"

I hope it can help
0
CichaCommented:
Hi

I think rhinoceros is't right.
His solution doesn't work on alone computer.
The solution can work only in network.

If you want to write to a NTFS partition you should
have kernel allowing it. But the feature is developed
yet.
0
collins23Commented:
you could use vim ware
0
haydes007Commented:
It is developed and you could use it but in recent kernels it has been disabled again. I think they are having a problem with the way NTFS sets file permissions up. If you do have a kernel where you can enable NTFS write support, leave it disabled or you will toast your NFTS and have to reformat it. As collins said, you can use VMWare instead. VMWare will allow you to open an instance of Windows in a window on your Linux desktop. You may download it here:

http://www.vmware.com/support/linux/
0
CleanupPingCommented:
abhimenon:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
TheWeakestLinkCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from haydes007 as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.