Click to See Complete Forum and Search --> : how to write to windows partition?


chenliway
03-03-2001, 08:35 PM
i read the file permissions nhf, so i did
chmod 0777 /mnt/DOS_hda1
it said the file permissions were changed, but when im logged in as a normal user, i can't write to any directories under DOS_hda1


someone said there was an nhf about this but i couldn't find it... the closest was the file permissions nhf and accessing files in the windows partition nhf.

fanx

Tyr-7BE
03-03-2001, 08:41 PM
What distro are you using? I can't be of too much help at this point, but by some strange twist of fate I had EXACTLY the same problem this morning. Under debian, take a look at /etc/fstab. Might be the same for other systems, but I'm not completely positive. See if you can make sense of anything there...might be a start. I'll be watching this thread, because under my old mandrake system I could write to the win partition as a normal user. Does anyone have Mandrake as well as the ability to do this? If so, do you have an /etc/fstab? If you do, do you think you could post it? I mount my win partition as /mnt/windows vfat rw, but only root has writing privileges.

willk
03-03-2001, 08:42 PM
Check out yer /etc/fstab

dos partitions should look something like this:

/dev/hda1 /dos/c vfat defaults 1 0

chenliway
03-03-2001, 09:50 PM
im usin drake 7.2, i was actually gonna try out debian, but wanted to figure this out first.

my fstab says:
/dev/hda1 /mnt/DOS_hda1 vfat user,exec,rw,conv=auto 0 0


theres some other stuff in there but they dont hafto do with my win partition

chenliway
03-03-2001, 10:10 PM
oh btw, i CAN read files from my win partition

i can play mp3's and all... but say im trying to save a file from vi, it'll say i don't have permission

musthavemuzk
03-03-2001, 10:48 PM
how do you read files in a win partition??
i am interested in doing this for mp3z.

chenliway
03-03-2001, 10:54 PM
well, for me (im using drake 7.2), i didn't have to do anything.
try to open up gmc
go to start/applications/file tools/gmc
then go to /mnt/DOS_hda1/
then look for where u keep your mp3's and double click =]

if that doesn't work, there's an NHF that tells u exactly how to do it.

Tyr-7BE
03-03-2001, 10:54 PM
You need to mount the partition. First you need to know what device your windows drive is on (hd<something> ). Then type "mount /dev/<yourwindowsdevice> /locationwhereyouwantitmounted"
For example, my device is hda2, and I have it mounted on /mnt/windows. If I need to mount the drive, I type "mount /dev/hda2 /mnt/windows" When I go to /mnt/windows, there's my entire C drive layed out for you. Hope this helps you.

chenliway
03-03-2001, 10:58 PM
tyr, can you tell me how ur fstab looks? cuz you can write to win partition no?

chenliway
03-04-2001, 03:32 PM
hmm anyone? i hear this question a lot, so you wouldnt be just helping me =P

bdg1983
03-04-2001, 04:22 PM
You can read the NHF's here on Mounting Window Partitions. Check out any others that may be of interest to you.

nemesiox
03-04-2001, 04:42 PM
I thought you cannot set file permission to a DOS partition. Therefore a normal user can't write in that device.

When I was using RED HAT 6.2 I had the same issue. I just recently migrate to SuSe 7.1 and I can read and write into a DOS partition with a normal user

Here's my fstab looks like..

/dev/hda1 /windows/C vfat noauto,users, 0 0

bdg1983
03-04-2001, 05:27 PM
Yes, you can set a partition to be writable by a normal user.

Just edit /etc/fstab so that on the line pertaining to your windows drive it says "uid=<youruserid>" instead of "defaults".

To find out what your user ID is, execute the command "id".

This worked just fine for me, please feel free to post to this topic or e-mail me if it gives you any trouble.