LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-02-2009, 07:27 AM   #1
AKA the A
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
secondary disc write access issue in suse 11


hey, I have installed a secondary disc on what I want-to-be a HTPC, I managed to format it to ext3 and mount it, but don't have write access to it...
The only way I wrote on it was with midnight commander running as root...(also, dolphin or konqueror won't run as root)
Any way to allow access to a normal user account?

I do know it keeps bitching when the disk is formated in NTFS, however this one is in ext3...
Any suggestions?
 
Old 03-02-2009, 07:18 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
If the disk is mapped as /dev/sdb1 which you want to map to /home/jim/multimedia then mount the disk and execute the following commands.
Code:
chown jim:users /home/jim/multimedia
chmod 770 /home/jim/multimedia
You only have to do this once. The next time that it is mounted the permissions and ownership will be okay.

On the other hand if the disk has several directories for different types of files you can mount the disk in one place and use the bind function in the mount utility to mount the subdirectories on different mount points. For example, lets say that the second disk has high level directories music, movies, and pictures you may want to mount them to /home/jim/music, /home/jim/movies, and /home/jim/pics respectivesly. In that case you could mount the disk on /mnt/sdb1 and use the bind option of mount to mount each directory to a different place. Your fstab would look like this.
Code:
/dev/sdb1 /mnt/sdb1 auto defaults 1 1
/mnt/sdb1/music /home/jim/music auto auto,bind,uic=jim,gid=users 0 0
/mnt/sdb1/movies /home/jim/movies auto auto,bind,uic=jim,gid=users 0 0
/mnt/sdb1/pictures /home/jim/pics auto auto,bind,uic=jim,gid=users 0 0

Last edited by stress_junkie; 03-02-2009 at 07:21 PM.
 
  


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
Samba issue on Lenny with new kernel 2.6.26.1.486 no read write access ? phil81 Debian 25 03-26-2009 02:35 PM
can't write to dvd-r disc SharpyWarpy Linux - Software 5 12-16-2005 06:06 AM
[SuSE fstab] No write access pEeDy Linux - Newbie 7 10-11-2005 02:58 AM
Can't mount secondary hardrive for write access subversivesoul Linux - General 2 06-05-2004 04:20 PM
Win98 to Samba PDC write-access issue NetAX Linux - Networking 3 05-08-2004 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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