Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Help W/ Saving To Windows Drive
jason122
post Aug 10 2003, 11:46 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 10-August 03
Member No.: 1,241



Hi, I'm new here and somewhat new to Linux. I am currently running RH9, and need some help with access to a drive. I have a partition (hde2) formatted as FAT32, and store all of my stuff from Windows here. I would like to be able to save things in RH to this drive, but currently can't. I have mounted the drive and can read from it, but can't save anything to that drive. Can't create any files, folders, nothing. I've looked around for what might be the cause and found a few things that didn't quite get it. I added a line to my fstab file that reads:
/dev/hde2 /mnt/mydocs auto auto,rw,user,exec,unmask=000 0 0
The hard drive is now mounted when the system starts up (nice) but I still can't save anything to the drive. I have also added myself to the adm and root groups and still can't save to that drive. I've tried changing the permissions on /mnt/mydocs (the mount point for the drive) and get an error back that says I can't perform that operation or something like that. I'm a little stumped. I appreciate any help that you could offer, and if you need any additional information or have any questions for me, please let me know.

Thanks in advance!
Jason
Go to the top of the page
 
+Quote Post
Joey
post Aug 10 2003, 12:35 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



What is the exact error message you get when trying to save to the partition.

Can you try it as root and see what happens.
Go to the top of the page
 
+Quote Post
jason122
post Aug 10 2003, 01:20 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 10-August 03
Member No.: 1,241



I can save to the drive when su root. If I try it as user Jason I receive the following message:

mkdir: cannot create directory `test2': Permission denied

Here is what I get if I try to change the permissions on the /mnt/mydocs directory:

[root@localhost mnt]# ls -l
total 32
drwxr-xr-x 2 root root 4096 Jul 6 16:29 cdrom
drwxr-xr-x 2 root root 4096 Jul 6 16:29 cdrom1
drwxr-xr-x 2 root root 4096 Jul 6 16:29 floppy
drwxr-xr-x 5 root root 16384 Aug 10 13:25 mydocs
drwxr-xr-x 2 root root 4096 Jul 6 16:29 zip
[root@localhost mnt]# chmod a+w /mnt/mydocs
chmod: changing permissions of `/mnt/mydocs' (requested: 0777, actual: 0755): Operation not permitted
[root@localhost mnt]#
Go to the top of the page
 
+Quote Post
jason122
post Aug 10 2003, 02:37 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 10-August 03
Member No.: 1,241



Ok, I tried this and it seems to be working now. I modified my fstab file to look like this:

/dev/hde2 /mnt/mydocs vfat uid=500,gid=500,unmask=002,auto,rw,user,exec, 0 0

If I understand it correctly....uid is the user owner, gid is the group owner, not sure what unmask does....do you know?
Go to the top of the page
 
+Quote Post
hughesjr
post Aug 10 2003, 02:44 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



The problem is that directory permissions are

rwxr-xr-x root root

Meaning that root user has read, write, execute permissions, but the root group and everyone else has only read and execute (no write).

Before you issue the chmod command, you must unmount the drive....

cd /mnt
unmount /mnt/mydocs


Then change permissions:

chmod -R 777 /mnt/mydocs

Then mount it again with:

mount /mnt/mydocs

That should do it....


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
jetblackz
post Aug 11 2003, 12:24 PM
Post #6


./configure
***

Group: Members
Posts: 98
Joined: 1-April 03
Member No.: 613



Do yourself a favour next time you're not sure what something does.

man mount

umask is interpreted the opposite. 002 = 775 = full read/write/run for owner and group, run only for others. Personlly, I prefer 007 = 700.


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2017 - 03:50 PM