LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2003, 12:15 PM   #1
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Rep: Reputation: 30
Copying files to WinXP(NTFS)partition


I would like to if anyone figured out how to copy files to a WinXP(NTFS)
partition?
When ever I try :
cp ~/colors.txt /mnt/hd/
I get the error message :
cp : Cannot create regular file '/mnt/hd/colors.txt' : Read-only file system

And I'm logged in as root.Not just sued.
Any help would be greatly appreciated.
 
Old 11-10-2003, 12:23 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
You can't do it from inside linux. You've got to find one of those windows programs that allow you to read from a linux partition and then copy from inside windows.
 
Old 11-10-2003, 12:25 PM   #3
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Thats what I figured.. *sigh*.. oh well I shouldn't need windows much longer anyway.

Last edited by trickykid; 11-10-2003 at 04:02 PM.
 
Old 11-10-2003, 01:11 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You can use a fat32 filesystem.

NTFS writing from Linux can be (and usually is) fatal at this point in time. All files are in the Windows registry in NTFS..
 
Old 11-10-2003, 01:26 PM   #5
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Do you mean change my XP partition to fat32?
 
Old 11-10-2003, 01:41 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Linux can safely read and write to a fat32 partition, whether it is your xp parition or another one. WindowsXP can also read/write to a fat32 partition, so a fat32 partition is needed for R/W with both OSs.
 
Old 11-10-2003, 03:04 PM   #7
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
So how do I change the partition type of the windowsXP partition without losing everything?
 
Old 11-10-2003, 03:22 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I have no Idea as I quit using Windows software much in 1999.

Do you have room to create a partition for sharing?

# How are the hard drives partitioned
fdisk -l

# How much free/used drive space
df -h
 
Old 11-10-2003, 04:03 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
At times you can change the format in Windows if you select the properties of the drive and somewhere in there you have the option to change the format to FAT32 instead of using NTFS, etc. If not you'd probably have to reinstall the whole OS to change the format.
 
Old 11-10-2003, 04:08 PM   #10
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
The drives are partitoined like so :

Disk /dev/hda: 6480 MB, 6480101376 bytes
255 heads, 63 sectors/track, 787 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 786 6313513+ 7 HPFS/NTFS

Disk /dev/hdb: 4325 MB, 4325529600 bytes
255 heads, 63 sectors/track, 525 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 61 489951 5 Extended
/dev/hdb2 62 525 3727080 83 Linux
/dev/hdb5 1 61 489919+ 82 Linux swap

The amount of room left is :

Filesystem Size Used Avail Use% Mounted on
/dev/hdb2 3.4G 2.9G 423M 88% /
/dev/hda1 6.0G 2.3G 3.7G 38% /mnt/hd

I'm going to just delete windows anyway in a month or two.
I just figure there might be a simple way to copy to NTFS other than email.

The reason I want to is I am developing games and would like to test them on windows.... but oh well.. *sigh*
 
Old 11-10-2003, 04:28 PM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
If you can find a program that will resize your NTFS on hda, you have some space there to create a fat32 filesystem. I think a mandrake install CD may have that capability.

I think I would get a larger hard drive, myself.
 
Old 11-10-2003, 04:56 PM   #12
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
I don't have mandrake so that wont work.I can check the slackware cd though.

I'm going to get a bigger hard-drive as soon as I have to rub together.
 
Old 11-10-2003, 05:00 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# Cheap CDs
AlmostFreeLinux
Discount Linux CDs
Linux Central
Cheapbytes
TuxCDs
ComputerHelperGuy
CheapISO
Os Heaven
 
Old 11-10-2003, 07:14 PM   #14
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
ntfs resize tools...
http://linux-ntfs.sourceforge.net/
 
Old 11-11-2003, 08:53 AM   #15
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Original Poster
Rep: Reputation: 30
Thanks for all your help guys.
But I just about got wine compiled properly and I just removed windows.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount winxp NTFS partition UltraSoul Solaris / OpenSolaris 4 06-13-2007 09:53 AM
Knoppix: copying files from NTFS to FAT32 Manhhh Linux - Newbie 6 08-25-2005 03:21 PM
Mandrake 10.1 and WinXP NTFS Partition Mr. Kinky Mandriva 7 10-15-2004 09:14 AM
Possible to write to WinXP NTFS partition ? wlaw Linux - Newbie 14 10-01-2004 01:15 PM
I/O error when copying (some) NTFS files cherup Linux - Newbie 1 05-21-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:34 PM.

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