LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-27-2007, 10:50 PM   #1
setlec_seta
Member
 
Registered: Oct 2003
Location: somewhere around the world
Distribution: Mandriva 2010.1 pwp 64bit
Posts: 199

Rep: Reputation: 31
a 2nd HDD on linux?


Hello there,

i would like to know how could i make my user be able to write on my 2 HDD that will host some videos and music files?

I've edited the mtab like that:
Code:
/dev/sdb5 /media/multimedia ext3 rw 0 0
but i can only write on it with root acces how to make it writable with a non root account?

thanks
 
Old 08-28-2007, 12:12 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
With the sdb5 partition mounted, run as root:

# chmod -R 777 /media/multimedia

That will give all users rwx permissions on sdb5.
 
Old 08-28-2007, 07:45 AM   #3
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
I would just create a group (say "users) and then, once mounted, run
Code:
chgrp users /media/multimedia
chmod -R 775
then add all the users you want to have access to the "users" group. Rather than just allowing all to read/write without restriction.
Both these solutions will work for you, just pick the one with the "best fit" for you.
 
Old 08-28-2007, 08:05 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You don't want to edit /etc/mtab---that is the file that shows--post-facto--how things actually got mounted. Edit /etc/fstab to control mounting.
 
Old 08-28-2007, 10:26 AM   #5
setlec_seta
Member
 
Registered: Oct 2003
Location: somewhere around the world
Distribution: Mandriva 2010.1 pwp 64bit
Posts: 199

Original Poster
Rep: Reputation: 31
i've a new problem related with this topic... when i try to mount the /media/multimedia, i got this message:

Code:
setlec@ruthlessearth:~$ sudo mount /media/multimedia/
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?
what is going on? i can't figure it aout...

cheer

Last edited by setlec_seta; 08-28-2007 at 11:29 AM.
 
Old 08-28-2007, 02:43 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
HMMM---why would "mount" be trying to create a link?

Do you already have an entry in /etc/fstab for /media/multimedia? If so, please post it here. Also, before trying to mount, just issue the "mount" command with no arguments to be sure the thing is not already mounted.
 
Old 08-28-2007, 03:07 PM   #7
setlec_seta
Member
 
Registered: Oct 2003
Location: somewhere around the world
Distribution: Mandriva 2010.1 pwp 64bit
Posts: 199

Original Poster
Rep: Reputation: 31
well i edited the fstab and deleted the entry from mtab, that have solved my problem...

thanks anyway
 
Old 08-28-2007, 03:12 PM   #8
WAJEDUR REHMAN
Member
 
Registered: Aug 2007
Posts: 43

Rep: Reputation: 15
Hi setlec seta
Edit /etc/fstab Try
/dev/sdb5 /media/multimedia ext3 auto,umask=0 0 0
 
Old 08-30-2007, 11:50 AM   #9
setlec_seta
Member
 
Registered: Oct 2003
Location: somewhere around the world
Distribution: Mandriva 2010.1 pwp 64bit
Posts: 199

Original Poster
Rep: Reputation: 31
small question what does the umask do?
 
Old 08-30-2007, 12:39 PM   #10
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
In general, umask sets the default permissions on newly created files. It has particular relevance for setting the rw permissions on FAT32 or vfat filesystems. Unlike native linux filesystems, FAT32 has no native rwx permission structure. However, everything in linux must have rwx permissions. In order to get around this problem, linux grafts or superimposes rwx permissions onto FAT32 filesystems when they are mounted. The internally set umask default rwx perms for FAT32 are generally set to read only. To get around that, you have to reset the umask value in the fstab entry for a FAT32 filesystem. It's the only way to change permissions on FAT32.
For native linux filesystems, umask options inserted fstab are not used or needed. You change the rwx permissions on a native linux partitions by using the chmod command to reset the permissions on the partition mount point which must be done with the partition mounted. This method will not work with FAT32 due to the limitations of that filesystem.
 
  


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
XP on 1 HDD,Linux on 2nd HDD,remove ,other won't launch Dark Templar Linux - Newbie 3 05-07-2006 11:03 AM
How to format & mount 2nd hdd after FedCor1 has been installed on 1st hdd? clay394 Fedora 1 05-18-2004 01:50 PM
Setting up Linux on a 2nd HDD? jacatone Linux - Newbie 4 03-06-2004 10:12 PM
2nd hdd for linux 54az Linux - Newbie 7 02-06-2004 05:12 PM
Linux boot from 2nd HDD in T21 pholm01 Linux - Software 4 12-14-2001 08:41 AM

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

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