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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-10-2003, 12:15 PM
|
#1
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Rep:
|
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. 
|
|
|
11-10-2003, 12:23 PM
|
#2
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
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.
|
|
|
11-10-2003, 12:25 PM
|
#3
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
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.
|
|
|
11-10-2003, 01:11 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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.. 
|
|
|
11-10-2003, 01:26 PM
|
#5
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
Do you mean change my XP partition to fat32?
|
|
|
11-10-2003, 01:41 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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.
|
|
|
11-10-2003, 03:04 PM
|
#7
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
So how do I change the partition type of the windowsXP partition without losing everything?
|
|
|
11-10-2003, 03:22 PM
|
#8
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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
|
|
|
11-10-2003, 04:03 PM
|
#9
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
11-10-2003, 04:08 PM
|
#10
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
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*
|
|
|
11-10-2003, 04:28 PM
|
#11
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
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.
|
|
|
11-10-2003, 04:56 PM
|
#12
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
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. 
|
|
|
11-10-2003, 05:00 PM
|
#13
|
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141
Rep:
|
|
|
|
11-10-2003, 07:14 PM
|
#14
|
Member
Registered: Apr 2002
Posts: 549
Rep:
|
|
|
|
11-11-2003, 08:53 AM
|
#15
|
Member
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 01:34 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|