LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2009, 09:07 PM   #1
Geraldsmod
Member
 
Registered: Sep 2009
Posts: 46

Rep: Reputation: 15
Help mounting ext2 partition with write permissions


Hi, I need to mount my ext2 partition with write permissions for an average user. Right now, I can only write to the volume using sudo or the root account.

/etc/fstab:
Code:
# Filesystem:   Mountpoint:     Type:       Options:               Dump: FSCK:
/dev/sda1       /               ext4        defaults               1     1
/dev/sda5       swap            swap        defaults               0     0
/dev/sda6       /mnt/shared     ext2        auto,user,exec,rw,sync 1     0
/dev/hda1       /mnt/ide        vfat        auto,user,exec,rw,sync 0     0
/etc/mtab:
Code:
/dev/hda1 /mnt/ide vfat rw,sync,nosuid,nodev,relatime,uid=500,gid=500,fmask=0022,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1 0 0
/dev/sda6 /mnt/shared ext2 rw,sync,nosuid,nodev,relatime,errors=continue 0 0
I can't add the options uid=500,gid=500 to the ext2 volume because it says "bad option"

Also, I have 1 question. If you have a volume listed in /etc/fstab, and you try to mount it with different options than the ones listed in fstab, will it mount with the new options, or the fstab options? (e.x. if I try to mount /dev/sda6 with: mount -o auto,user,exec,rw,async. Will it mount with async or sync?)

Thanks in advance.

Last edited by Geraldsmod; 10-25-2009 at 09:15 PM.
 
Old 10-25-2009, 09:54 PM   #2
Geraldsmod
Member
 
Registered: Sep 2009
Posts: 46

Original Poster
Rep: Reputation: 15
FIXED:

All I had to do was type:
sudo chmod -R a+w /mnt/shared
sudo chown -R username /mnt/shared
sudo chgrp -R groupname /mnt/shared
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting CIFS with write permissions alkos333 Slackware 5 03-02-2012 12:16 PM
After formatting partition NTFS can't write to ext2 emer_son Ubuntu 3 06-02-2008 11:22 AM
NFS share not mounting with read/write permissions syphoncode.32 Linux - Software 1 06-15-2007 02:46 AM
mounting windows share with write permissions gw1500se Mandriva 10 04-15-2007 03:10 PM
Mounting FAT32 with write permissions? 65_289 Linux - General 14 06-05-2002 03:40 PM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration