LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 06-20-2007, 10:56 PM   #1
kalnaren
LQ Newbie
 
Registered: Dec 2005
Location: Ontario, CA
Distribution: SimplyMEPIS
Posts: 22

Rep: Reputation: 15
Can't write to mounted partition in Mepis


Ok, following my trend of having seemingly unsolvable problems in Linux....

This time, I'm trying to write to a mounted storage partition in Mepis. I can't write to it mounted as a user. If I mount it when I'm root, I can write to it. I can't write to it when mounted as a user. I've tried just about every combination of fstab lines I can think of, including:

/dev/sda4 /mnt/sda4 ext3 user,exec,rw 0 0
/dev/sda4 /mnt/sda4 ext3 noauto,users,exec,rw 0 0
/dev/sda4 /mnt/sda4 ext3 noauto,user,exec 0 0

attempting to add "umask=000" (or any umask) produces an error. This is annoying. This will be the third forum I'v tried, I hope someone can shed some light!

Thanks,

Kal
 
Old 06-20-2007, 11:40 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The ext3 filesystem has user and group permissions. To obtain permissions to write to it use "chmod" or "chown" as root. For example,if your user name is kalnaren, then you can gain exclusive access with the commands:
sudo chown -R kalnaren /mnt/sda4
sudo chmod 0700 kalnaren /mnt/sda4
 
Old 06-21-2007, 11:18 PM   #3
kalnaren
LQ Newbie
 
Registered: Dec 2005
Location: Ontario, CA
Distribution: SimplyMEPIS
Posts: 22

Original Poster
Rep: Reputation: 15
Already tried it. No effect.
 
Old 06-22-2007, 05:50 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Please post the output of "ls -ld /mnt/*". Is this an internal drive or an external one. Normally you need to mount a partition as root. For ext3, the ownership and permissions of the mount point directory will change to reflect owner, group and permissions of the root filesystem. Are you sure that you used chmod and chown after the device was mounted?

If this is an internal drive, then add it to /etc/fstab so that it is mounted as root. If this is an external drive, then use the "user" and "noauto" options in the /etc/fstab entry. That will allow you to mount it as a regular user. ( Note: for a usb drive, you may be using the udev/hal automount facility instead. That would be ok too. )
 
  


Reply



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
Write permissions on a mounted fat32 partition Cain_vX Linux - Newbie 1 03-27-2006 02:54 PM
Can't write to mounted partition thort Linux - Newbie 4 01-27-2006 01:50 AM
can not write data to Mounted partition thachphathien Linux - Newbie 1 09-30-2004 12:41 PM
write premission on mounted partition trollman Linux - Newbie 10 02-14-2004 04:14 PM
can't write on mounted windows partition! icecube Linux - Hardware 21 12-07-2002 11:29 AM

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

All times are GMT -5. The time now is 02:21 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