Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
06-05-2006, 04:17 AM
|
#1
|
Member
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143
Rep:
|
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.
|
|
|
06-05-2006, 04:46 AM
|
#2
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
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
|
|
|
06-05-2006, 06:23 AM
|
#3
|
Member
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143
Original Poster
Rep:
|
Where should I include this line? inittab in the /etc folder? Beacause the kernel mounts them on default.
|
|
|
06-05-2006, 06:29 AM
|
#4
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
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
|
|
|
06-05-2006, 09:29 AM
|
#5
|
Member
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143
Original Poster
Rep:
|
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?
|
|
|
06-05-2006, 09:48 AM
|
#6
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
Hmm, you included all the owner,users parameters?
What is the permissions on the device ? (/dev/hdx)
-Y1
|
|
|
06-05-2006, 11:12 AM
|
#7
|
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 941
|
For my local vfat partition I use the options
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.
|
|
|
06-05-2006, 12:27 PM
|
#8
|
Member
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143
Original Poster
Rep:
|
I want to mount it automatically at boot-time, but also write on it as a regular user, and have full privilages ...
|
|
|
06-05-2006, 01:18 PM
|
#9
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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
|
|
|
06-06-2006, 04:47 AM
|
#10
|
Member
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143
Original Poster
Rep:
|
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
|
|
|
06-06-2006, 04:53 AM
|
#11
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
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 02:11 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
|
|