LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2003, 01:04 PM   #1
evano
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
Slackware 9.0 - unable to see fat-c/d drives


Hey,
i just did a fresh install of slackware 9.0 off the ISO release and got it up and running sweet with no probs except 1. I am unable to view my windows xp drives, listed at /fat-c, /fat-d...when i try and click on the dir's in KDE i get empty directories and when in gnome it gives me an error...
has anyone else shared this problem or know of a solution...your input would be much appriciated
thx
evano
p.s i was quite dissapont to find that enlightnment wasn't inculded in the 9.0 release...whats up with that aye?
 
Old 04-18-2003, 01:16 PM   #2
xwings
LQ Newbie
 
Registered: Mar 2003
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
just download enlightenme won;t sause u alot of time to download
 
Old 04-18-2003, 08:21 PM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
I had same trouble with slack 9, did this with /etc/fstab

/dev/hda6 /linux vfat defaults,root,user 1 0

change what you need for your hard dr, partition and try it....good luck
Oh, make sure your user has the proper permissions!!

Last edited by 320mb; 04-18-2003 at 08:24 PM.
 
Old 04-18-2003, 08:30 PM   #4
MykilX
Member
 
Registered: Apr 2003
Location: East Coast USA
Distribution: Slackware
Posts: 59

Rep: Reputation: 16
check out this thread, i had the same problem.
http://www.linuxquestions.org/questi...ows+partitions
 
Old 04-19-2003, 02:06 AM   #5
evano
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
thx for the insightful helps guys...i'll check it over the weekend and will hopefully have it fixed
thx again
evano
 
Old 04-21-2003, 12:45 PM   #6
evano
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
ok
well i mucked around and decided on what i thought would be the right setting for the drive, based on everyones mixed suggestions...

therefore my fstab ended up looking like this;

/dev/hda1 /fat-c vfat users 0 0
/dev/hdb5 /fat-d vfat users 0 0

i used users as i want all my users to be able to read and write my two windows drives...however i still have the same prob with root being able to read and write these partitions however normal users can only read, with write being disable...

This leads me to belive..as 320meg mentioned earlier in this thread that the user persmissions are the problem....can anyone give me an idea on correcting this problem??

also i was just wondering...if i add a user to the 'root' group...can this user then be comprimised as root??

thx in advance
evano
 
Old 04-21-2003, 11:57 PM   #7
MykilX
Member
 
Registered: Apr 2003
Location: East Coast USA
Distribution: Slackware
Posts: 59

Rep: Reputation: 16
Well like I said in the thread I linked to, unmount the windows dir, chmod 0777 /windir, then mount -a. Substituting /windir for each windows directory.
 
Old 04-22-2003, 12:52 AM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try adding umask=000 to your fstab lines. Like this:

/dev/hda1 /fat-c vfat users,umask=000 0 0
/dev/hdb5 /fat-d vfat users,umask=000 0 0
 
Old 04-22-2003, 01:33 AM   #9
evano
LQ Newbie
 
Registered: Apr 2003
Location: Brisbane
Distribution: Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
this might help others...it sure helped me

Yeah, this is a common problem. It is related to the fact that FAT
filesystems really don't have permissions.

The way that linux handles this is that when you mount a FAT drive, all
the files are given the _same_ file permissions at mount time.
Furthermore, once mounted, these permissions can't be modified.

The default permissions that mount will use for FAT partitions is
"rwxr-xr-x". To change this, you can add an option "umask=" in the fstab
file. For example, on my computer, I use:

/dev/hda1 /mnt/c vfat defaults,umask=0000 0 0

The argument to umask is and octal number. To understand what this number
means, you have to understand how file permissions actually work in unix.

The way file permissions are stored on the disk is as a 9-bit binary
number. The best way to show this is with examples. File permission are
commonly represented in three ways:

rwxr-xr-x - human readable
111101101 - binary number
7 5 5 - 3 octal numbers

The last one is the most important. If you read the manpage for chmod, you
will notice that you can specify the desired permissions using and octal
number. Examples:

gsteele@atlas:~$ chmod 0755 foo
gsteele@atlas:~$ ls -l foo
-rwxr-xr-x 1 gsteele gsteele 1123166 Mar 27 11:42 foo*
gsteele@atlas:~$ chmod 0766 foo
gsteele@atlas:~$ ls -l foo
-rwxrw-rw- 1 gsteele gsteele 1123166 Mar 27 11:42 foo*
gsteele@atlas:~$ chmod 0777 foo
gsteele@atlas:~$ ls -l foo
-rwxrwxrwx 1 gsteele gsteele 1123166 Mar 27 11:42 foo*

(Note: the first number is related to "special file permissions". You
should always leave this number as 0. You can read about these here:
http://www.lns.cornell.edu/public/CO...ls_3.html#SEC4)

Now, umask is like the binary NOT of the file permissions you want. For
example:

rwxr-xr-x - desired file permissions
111101101 - binary file permissions
000010010 - umask
0 2 2 - octal umask

So, for example, in my fstab file, I use umask=0000, so that the
permissions on my dos drive are rwxrwxrwx. If you wanted the permissions
on the dos drive to be rwxrwxr-x, you would set umask=0002.

You can also change the group and the owner of the FAT partition files
using the options uid=value,gid=value in the fstab file, where the values
are the user id number and group id number.

The uid numbers for users are listed in the file /etc/passwd, and the gid
numbers are listed in the file /etc/group:

in /etc/passwd:

gsteele:x:1001:1001:Gary Steele,13-2033,3-4810,:/home/gsteele:/bin/bash
| |
uid default gid for user gsteele

in /etc/group:

gsteele:x:1001:
|
gid for group gsteele

This should sort out any problems.


btw thx mykilx...you had the right idea...i just needed it explained a bit more clearly with the reasoning behind it
thx for your help everyone
evano
 
Old 04-22-2003, 12:07 PM   #10
MykilX
Member
 
Registered: Apr 2003
Location: East Coast USA
Distribution: Slackware
Posts: 59

Rep: Reputation: 16
Cool glad you got it sorted. It drove me nuts for a couple of weeks lol And I agree I needed it explained in a way I understood as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Fat drives as User fantacmet Linux - General 5 02-19-2004 02:18 AM
Accessing Local Fat Drives in Suse 9 Lostman Linux - Newbie 1 01-30-2004 10:33 AM
Mounting fat drives in fstab.. subnet Linux - Newbie 3 10-10-2003 04:02 AM
Users can't access Fat drives. puntme Slackware 3 08-12-2003 02:24 PM
fat mounted drives not accessable as user Cubix Slackware 1 07-11-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:22 AM.

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