LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-28-2003, 05:26 PM   #1
kierl
Member
 
Registered: Oct 2002
Location: Utah
Distribution: Gentoo(2.6.23-r3)
Posts: 181

Rep: Reputation: 30
Cool Writing to a Windows Partition


I have a dual boot RH8(ext3) WinXP(fat32) setup... when I try to copy files to the WinXP part(maounted as /WinXP) I get a read-only error... How do I make it so that it isn't read-only???
 
Old 01-28-2003, 05:54 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
check your /etc/fstab to see if the partition is being mounted read-only. Take the 'ro' away and change the permissions if you need to.
 
Old 01-28-2003, 06:39 PM   #3
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
/dev/hda1 /win_c vfat defaults 1 0

Lets me write to as root and copy from.
 
Old 01-28-2003, 06:41 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
or at the prompt
mount -o remount,rw /WinXP
 
Old 01-29-2003, 04:55 PM   #5
kierl
Member
 
Registered: Oct 2002
Location: Utah
Distribution: Gentoo(2.6.23-r3)
Posts: 181

Original Poster
Rep: Reputation: 30
thanx. nxny.... didn't know where that file was... & allen kinda... new line:
/dev/hda4 /WinXP vfat defaults 1 1
now I ca write to it in any user. old line was:
/dev/hda4 /WinXP vfat defaults 0 0
THANK-YOU!
 
Old 01-29-2003, 05:57 PM   #6
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
kierl, IMHO what you changed across the lines does not alter permissions. And from your old fstab line, you should have been able to write to the fs. So if you remounted the fs readwrite as whansard suggested when it was already supposed to be mounted rw( defaults = rw, suid, dev, exec, auto, nouser, async - see man mount ) , I dont know what has changed so you can write to the fs now.

You may want to change the line to say 0 0 instead of 1 1
Because you possible are not backing up this fs using dump. And you possibly dont want Linux to fsck this partition at every bootup.

Here's the relevant section of the fstab man page.

The fifth field, (fs_freq), is used for these filesystems by the
dump(8) command to determine which filesystems need to be dumped. If
the fifth field is not present, a value of zero is returned and dump
will assume that the filesystem does not need to be dumped.

The sixth field, (fs_passno), is used by the fsck(8) program to deter-
mine the order in which filesystem checks are done at reboot time. The
root filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a drive
will be checked sequentially, but filesystems on different drives will
be checked at the same time to utilize parallelism available in the
hardware. If the sixth field is not present or zero, a value of zero
is returned and fsck will assume that the filesystem does not need to
be checked.
 
Old 01-29-2003, 06:40 PM   #7
kierl
Member
 
Registered: Oct 2002
Location: Utah
Distribution: Gentoo(2.6.23-r3)
Posts: 181

Original Poster
Rep: Reputation: 30
Whatever the Shmeg I changed It works now where it didn't work before... but yeah, thanks I'l take a look at those man pages.
 
Old 04-08-2003, 08:39 PM   #8
d0m1n0
LQ Newbie
 
Registered: Apr 2003
Distribution: LFS
Posts: 1

Rep: Reputation: 0
All stable Linux kernels don't like to write on NTFS partitions,
which is probably what your Windows XP is instlled on.
You'll have to re-compile the kernel to enable the experimental
NTFS write support... which is HIGHLY discouraged. Linux
still doesn't correctly perform writes on NTFS partitions,
and you would have to run scandisk after every time you modified
a file. It's not really even worth enabling. The best thing
to do is create a FAT32 partition for sharing files between
your Redhat system and Windows XP system. Linux has no prob
writing to FAT32, and Windows XP doesn't either. If having
XP installed on NTFS insn't a high priority for you, and you
just want it installed on FAT32, you could do that too to ease
Linux/Windows file sharing capability.
 
Old 04-09-2003, 01:13 PM   #9
kierl
Member
 
Registered: Oct 2002
Location: Utah
Distribution: Gentoo(2.6.23-r3)
Posts: 181

Original Poster
Rep: Reputation: 30
Wel... Hmmm... it works just fine if I'm logged in as root... so NTFS must be enabled my default in RH8... and yeah, you are right about how it should be discouraged... My XP crashed after I wrote to the partition through linux so I just dumped it... never really used it anyways...
 
Old 04-23-2003, 01:55 PM   #10
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
I have a similar setup winxp(fat32)/mdk9.1 on a toshiba laptop. I finally managed to get vim to edit fstab so that I can rw to the fat32 partition, but only at c:\ , any deeper into the directory tree
and I get a no permissions message. I can live with this but I assume it can be changed. Need pointers please.
 
Old 04-23-2003, 04:37 PM   #11
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Edit your fstab ( vim kicks butt, but it is a tad confusing in the beginning stages . Try pico ) to add the uid/gid ( if you're only user who needs to read/write to the ntfs partition, this is better ) or umask option.

Something like
/dev/hd<disk,partition> /mnt/winxp ntfs defaults,rw,user,uid=500,gid=500,umask=027 0 0

Last edited by nxny; 04-23-2003 at 04:40 PM.
 
Old 04-24-2003, 10:41 AM   #12
mjolnir
Member
 
Registered: Apr 2003
Posts: 815

Rep: Reputation: 99
Thanks nxny I can now rw to my fat32 sub-directories. Wish I had
found linux a year ago when I started computing. Enormous
power to the user!
 
Old 04-24-2003, 04:35 PM   #13
kierl
Member
 
Registered: Oct 2002
Location: Utah
Distribution: Gentoo(2.6.23-r3)
Posts: 181

Original Poster
Rep: Reputation: 30
Oui. Lots of power to the user... unfortunately there are still too many people out there who prefer that all the power go to Microsoft... ( Honestly, If you want something that's really easy then pick like RedHat or Peanut... Not Windows... Only thing windows is good for is syncing with Pocket PC(haven't gotten lin to do this yet) and playing Warcraft 3... The second of which can actually be accomplished in Lin but is kindof a pain in the derrier... BTW: You only started using computers a year ago??? You've kinda been slow getting started... Oh. and yes this is just a nonsense reply... I'm just really bored right now...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to FAT32 Partition Xios Linux - Hardware 8 02-12-2005 12:21 PM
Writing to an NTFS partition Inexactitude Linux - Newbie 3 10-12-2003 10:39 PM
writing to an nt partition.... pdmackenzie Linux - General 4 01-25-2003 07:23 PM
Problems writing to a windows partition sluggo Linux - General 8 03-01-2002 10:40 AM
writing to a windows partition okok Linux - General 3 02-20-2002 03:44 PM

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

All times are GMT -5. The time now is 09: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