Linux: How do I...?

wine4all

SWM 40 seeking truth
Hey Posty (or anyone who can answer),

I have Mandrake Linux 8.2 beta and 8.1 loaded on two different machines. On each machine I am dual booting with Windows 98 and therefore have vfat partitions which I can access from Linux. The problem is that I cannot figure out how to give my normal user account Read, Write and Execute priveledges to the /mnt/win_c directory where the vfat partition is mounted. I am limited to read only. I have full access as root and probably could give myself SuperUser equivalence but that would defeat the whole point of having a user account rather than running as root all the time. I tried to chmod 777 the directory with the recursive option and it seemed to run but still get "access denied" when trying to write to the windows partition.

What do I need to do?
 

PostCode

Perverted Penguin
Staff member
You can access another partition on your system, for example, a Windows partition, in two different ways.

First, let's assume that your Windows partition is on your first IDE hard drive, in the first partition (/dev/hda1).

At a shell prompt, log in as root (type su and then enter the root password).

Create a directory at which the Windows partition will be mounted by typing the following command:

mkdir /mnt/vfat

Before you can access the partition, you will need to mount it at the directory you just created. As root, type the following command at a shell prompt:

mount -t vfat /dev/hda1 /mnt/vfat

This is the method your want to try:

Another method of mounting a Windows partition is by editing the file /etc/fstab.

At a shell prompt, su to root, following the above example.

Before you can access the partition, you will need to mount it at the directory you just created. As root, type the following command at a shell prompt:

mkdir /mnt/vfat

Next, while you're still root, open the /etc/fstab in a text editor by typing (for example):

pico /etc/fstab

The line that probably shows where Windows is mounted is /dev/hda1 (or similar). Edit this line so it looks like this:

/dev/hda1 /mnt/vfat vfat noauto,owner,users 0 0

Press [Ctrl]-[x] and then press "y" for "yes" when prompted to save the changes. For more information on the mount command, read the man page by typing man mount at a shell prompt.

To access the partition, type cd /mnt/vfat. To navigate through Windows 98's "long filename" directories, surround the directory in quotation marks, as in ls "Program Files".
 
Top