LinuxQuestions.org
Review your favorite Linux distribution.
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 02-08-2004, 06:00 PM   #1
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Rep: Reputation: 15
Accessing a fat32 Partition


During the Slackware installation, it automatically detected my Windows partitions and asked if I wanted to mount them. I clicked yes and set them up. Now, I can access those partitions when logged in as root, but not as a normal user. When I try to go to /data (it's mountpoint) in konqueror it says "Access denied to /data". Here's what's in my /etc/fstab file:

Code:
/dev/hda8        swap             swap        defaults         0   0
/dev/hda6        /                reiserfs    defaults         1   1
/dev/hda3        /boot            ext2        defaults         1   2
/dev/hda7        /usr             reiserfs    defaults         1   2
/dev/hda10       /var             reiserfs    defaults         1   2
/dev/hda11       /home            reiserfs    defaults         1   2
/dev/hda9        /data            vfat        auto,users,rw,exec,uid=1000,gid=1001,umask=777         1   0
/dev/hda5        /wind            vfat        defaults         1   0
/dev/hda1        /winc            vfat        defaults         1   0
/dev/cdrom       /mnt/cdrom       iso9660     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
I'm trying to access the hda9 (/data) partition as a normal user. Any help will be greatly appreciated. Thanks.
 
Old 02-08-2004, 06:20 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
You are mounting data as user 1000 and group 1001. What is the group id of users listed in /etc/groups set the gig equal to that value in the fstab file.
 
Old 02-08-2004, 06:35 PM   #3
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks for your help. Unfortunately, it didn't work. Now, when I try to access it as root or as a regular user, it says "You do not have enough permissions to read file:/data".
 
Old 02-08-2004, 06:38 PM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Sorry it's not gig but gid=100. After making the change you need to remount the filesystem.
 
Old 02-08-2004, 06:43 PM   #5
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Yeah, I understood and made it gid=100. I remounted the filesystem, but it's still giving me the same error.
 
Old 02-08-2004, 06:46 PM   #6
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What is the output of
cat /etc/passwd;
cat /etc/group;
What user are you logged in as?
ls -l the file/directory you are trying to access.
 
Old 02-08-2004, 06:49 PM   #7
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Code:
crawford@Kevin:~$ cat /etc/passwd
root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/log:
lp:x:4:7:lp:/var/spool/lpd:
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/:
news:x:9:13:news:/usr/lib/news:
uucp:x:10:14:uucp:/var/spool/uucppublic:
operator:x:11:0:operator:/root:/bin/bash
games:x:12:100:games:/usr/games:
ftp:x:14:50::/home/ftp:
smmsp:x:25:25:smmsp:/var/spool/clientmqueue:
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash
rpc:x:32:32:RPC portmap user:/:/bin/false
sshd:x:33:33:sshd:/:
gdm:x:42:42:GDM:/var/state/gdm:/bin/bash
pop:x:90:90:POP:/:
nobody:x:99:99:nobody:/:
crawford:x:1000:100:Kevin Crawford,,,562.597.5130:/home/crawford:/bin/bash
crawford@Kevin:~$ cat /etc/group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm
lp::7:lp
mem::8:
kmem::9:
wheel::10:root
floppy::11:root
mail::12:mail
news::13:news
uucp::14:uucp
man::15:
games::20:
slocate::21:
utmp::22:
smmsp::25:smmsp
mysql::27:
rpc::32:
sshd::33:sshd
gdm::42:
shadow::43:
ftp::50:
pop::90:pop
nobody::98:nobody
nogroup::99:
users::100:
console::101:
crawford:*:1000:
crawford@Kevin:~$ ls -l /data
/usr/bin/ls: /data: Permission denied
I'm logged in as crawford.

Thanks for your help.
 
Old 02-08-2004, 06:49 PM   #8
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
O s__t I forgot also add umask=0 in addition to gid=100
 
Old 02-08-2004, 06:52 PM   #9
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Just added umask=0. No luck.
 
Old 02-08-2004, 06:58 PM   #10
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What is the output of
ls -l / | grep data;
ls -l /data/*;
 
Old 02-08-2004, 07:00 PM   #11
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Code:
crawford@Kevin:~$ ls -l / | grep data
d---------    5 crawford users       16384 Dec 31  1969 data/
crawford@Kevin:~$ ls -l /data/*
/usr/bin/ls: /data/*: Permission denied
crawford@Kevin:~$
 
Old 02-08-2004, 07:06 PM   #12
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
As root unmount the /data filesystem and post the output from the two ls below
ls -l / | grep data;
then
mount /dev/hda9 /data -o gid=100,umask=0;
ls -l / | grep data;
 
Old 02-08-2004, 07:08 PM   #13
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Code:
root@Kevin:/home/crawford# umount /dev/hda9
umount: /dev/hda9: not mounted
root@Kevin:/home/crawford# ls -l / | grep data
drwxr-xr-x    2 root     root           48 Jan 31 18:21 data
root@Kevin:/home/crawford# mount /dev/hda9 /data -o gid=100,umask=0
root@Kevin:/home/crawford# ls -l / | grep data
drwxrwxrwx    5 root     users       16384 Dec 31  1969 data
root@Kevin:/home/crawford#
 
Old 02-08-2004, 07:10 PM   #14
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Those permissions look good. Can you
echo "test" > /data/test;
as a normal user now?
 
Old 02-08-2004, 07:14 PM   #15
Cr4wford
Member
 
Registered: Oct 2003
Location: Southern California
Distribution: Win98SE + Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Code:
crawford@Kevin:~$ echo "test" > /data/test
crawford@Kevin:~$
And there's a "test" file with the word "test" in it, so it works. I'm listening to music off of the partition 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
Problem accessing FAT32 partition btb Linux - Laptop and Netbook 5 10-09-2005 07:29 PM
accessing a linux partition from a fat32 partition? abtimoteo Ubuntu 4 09-19-2005 10:41 PM
accessing fat32 partition with fedora core 1 cartman12345 Linux - Newbie 2 08-06-2004 10:33 PM
Accessing Fat32 partition through linux from the network Raidflex Linux - Networking 8 12-11-2003 05:48 PM
Creating a FAT32 partition (in Windows) and accessing it in RH 8 j_l_ajaste Linux - Newbie 3 07-09-2003 06:40 PM

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

All times are GMT -5. The time now is 03:50 PM.

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