LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Partition Acces Problem (https://www.linuxquestions.org/questions/slackware-14/partition-acces-problem-451715/)

Mercurius 06-05-2006 04:17 AM

Partition Acces Problem
 
I have two DOS partitions which are mounted at boot time /dos/c and /dos/d I can write to them as root, but I cannot write to them as any other user. I dont know why this happends, tryed chmoding and chowning in root in recursive mode, but it does not change anything. I still get a permission denied error.

Yalla-One 06-05-2006 04:46 AM

Hi,

You need to mount the DOS partitions with the user parameters - here's how I mount my VFAT USB disk:
Code:

/dev/maxtor /mnt/maxtor vfat noauto,owner,users  0 0
Check out the noauto, owner, users parameters - that should do the trick so that when you mount the DOS partition, you're the owner.

-Y1

Mercurius 06-05-2006 06:23 AM

Where should I include this line? inittab in the /etc folder? Beacause the kernel mounts them on default.

Yalla-One 06-05-2006 06:29 AM

Hi,

Sorry - forgot to mention that :)
The correct file is /etc/fstab

(inittab is where you control the different runlevels, and is where you change default runlevel from 3 to 4 to get it to boot into X windows - fstab is where you define the filesystems and such)

-Y1

Mercurius 06-05-2006 09:29 AM

I have done that, and now I mount them manualy, but it is the same. I can only mount them as root (otherwise the mount command does not work). And even as root, when I try to change ownership, it gives me an permision denied error. What should I do?

Yalla-One 06-05-2006 09:48 AM

Hmm, you included all the owner,users parameters?

What is the permissions on the device ? (/dev/hdx)

-Y1

drumz 06-05-2006 11:12 AM

For my local vfat partition I use the options
Code:

auto,rw,umask=000
If you want to be able to mount as a regular user, and not automatically at boot time
Code:

noauto,rw,user,umask=007
should work. Since dos partitions don't allow permissions, Linux gives every file the same permission at mount time, and they can't be changed later (except with a remount). check the man page for mount for more info.

Mercurius 06-05-2006 12:27 PM

I want to mount it automatically at boot-time, but also write on it as a regular user, and have full privilages ...

Alien Bob 06-05-2006 01:18 PM

So, after nine posts, could you please post your /etc/fstab file so that we can see what you have instead of letting others repeat the solution over and over again?

Eric

Mercurius 06-06-2006 04:47 AM

Here is the contents of fstab file

Code:

/dev/hda3        swap            swap        defaults        0  0
/dev/hda2        /                ext3        defaults        1  1
/dev/hda1        /dos/c          vfat        defaults        1  0
/dev/hdb1        /dos/d          vfat        defaults        1  0
#/dev/hda1        /dos/c          vfat        noauto,owner,user        0  0
#/dev/hdb1        /dos/d          vfat        noauto,owner,user        0  0
/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
none                /sys                sysfs                defaults        0  0


Alien Bob 06-06-2006 04:53 AM

Quote:

Originally Posted by Mercurius
Code:

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


So, why did you not try the advice given in this thread and changed the above to
Code:

/dev/hda1        /dos/c          vfat        rw,umask=000        1  0
/dev/hdb1        /dos/d          vfat        rw,umask=000        1  0

That should work.

Eric


All times are GMT -5. The time now is 11:02 AM.