LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-29-2010, 12:14 AM   #1
brpy1
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Rep: Reputation: 0
Question How do I make drives readable/writeable in Fedora 14?


Hi all

I decided I could get by without WIN7 on my computer on a permanent basis, so re-installed Fedora 14 on drive SDA (Drive 0), previously occupied by WIN7, and formatted all other drives in the system (SDB, SDC, and SDD to EXT4.

The install went well, and everything is working except one thing - I cannot get SDB,SDC or SDD to copy files one to the other. The message I get is that permissions do not allow this process. I have changed to ownership of thes drives to myself, rather than root, and set them to automount, as follows:

/dev/sdb1 /media/drivb ext4 defaults 0 0
/dev/sdc1 /media/drivc ext4 defaults 0 0
/dev/sdd1 /media/drivd ext4 defaults 0 0

The automount works OK, and I can access the contents of individual files on these drives, but as far as copying goes, there is no go.

What other parameters do I have to add to the automount in /etc/fstab to allow for this read/write function, or am I looking in the wrong area entirely?

I have searched these forums and the Internet in general, but I cant seem to find anything specific to this problem.

Any help would be greatly appreciated.


brpy1
 
Old 12-29-2010, 12:47 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
What is the permission granted to all these mounted directories?
 
Old 12-29-2010, 01:33 AM   #3
brpy1
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Kirukan

Sorry, I have no idea. I presume that the permission levels are contained in the 'default' part of the automount, but that's where my knowledge stops.

For what it's worth, the error message I get is:-

**************************************************************************
Error opening file '/media/drivd/Firefox_wallpaper.png': Permission denied
**************************************************************************

Sorry I can't give you any more info than that, but this is new territory for me.

brpy1
 
Old 12-29-2010, 01:40 AM   #4
brpy1
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Kirukan

Further to the above, when I look at the properties of each drive, I get the message "the permissions of drive (whatever) could not be determined.

brpy1
 
Old 12-29-2010, 02:05 AM   #5
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Which information that i asked from you?.... Ummm I hope you need some Linux/Unix administration ideas.

Quote:
Sorry I can't give you any more info than that
My system also kind of mission critical system but by having these information no one penetrate. Please keen when you seek help from others

Code:
[root@Est /]# ll 
total 3910810
drwxr-xr-x   2 root root       4096 Mar 11  2010 bin
drwxr-xr-x   4 root root       1024 Mar 11  2010 boot
-rw-r--r--   1 root root 4000606208 Dec 26  2009 CentOS-5.4-i386-bin-DVD.iso
-rw-r--r--   1 root root          0 Oct 21 17:51 daily_hicard.out
drwxr-xr-x  11 root root       4440 Nov 29 10:15 dev
drwxr-xr-x 108 root root      12288 Dec 29 04:02 etc
drwxr-xr-x   7 root root       4096 Oct 21 17:37 home
drwxr-xr-x  13 root root       4096 Mar 11  2010 lib
drwx------   2 root root      16384 Mar 11  2010 lost+found
drwxr-xr-x   2 root root       4096 Mar 10  2009 media
drwxr-xr-x   2 root root          0 Nov 29 10:15 misc
drwxr-xr-x   2 root root       4096 Mar 10  2009 mnt
drwxr-xr-x   2 root root          0 Nov 29 10:15 net
drwxr-xr-x   9 root root       4096 Dec 28 14:43 opt
dr-xr-xr-x 111 root root          0 Nov 29 10:14 proc
drwxr-x---  18 root root       4096 Dec 29 15:40 root
drwxr-xr-x   2 root root      12288 Mar 11  2010 sbin
drwxr-xr-x   4 root root          0 Nov 29 10:14 selinux
drwxr-xr-x   2 root root       4096 Mar 10  2009 srv
drwxr-xr-x  11 root root          0 Nov 29 10:14 sys
drwxrwxrwt   6 root root       4096 Dec 29 15:48 tmp
drwxr-xr-x  16 root root       4096 Mar 22  2010 usr
drwxr-xr-x  28 root root       4096 Mar 23  2010 var
See how read write and execute permission granted to the files and directories in root partition and who own all these as like you need to confirm on your system on /media path

Last edited by kirukan; 12-29-2010 at 02:09 AM.
 
Old 12-29-2010, 02:12 AM   #6
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Rep: Reputation: 19
Have you tried the "chown" command on /media/xxx?

-gibb
 
Old 12-29-2010, 02:58 AM   #7
brpy1
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
ubyt3m3

Yes - I've changed ownership of sda, sda1 sda2,sda3, sdb, sdb1, sdc, sdc1, sdd and sd1 in /dev, and changed ownership of drivb, drivc and drivd in /media.
as in chown bruce /dev/sdb1, chown bruce /media/drivb in /media, etc (drivb drivc, drivd being the directories created in /media for mounting.)

(the permissions for each drive show myself as owner with r/w access.)

I've tried changing 'defaults' in fstab to 'defaults -w --rw' and just -w --rw' in fstab, but the system then refused to recognise the file systems at all.

The thing that bugs me is that I had almost exactly the same setup when WIN7 was installed, and this problem just didn't happen.


brpy1
 
Old 12-29-2010, 03:38 AM   #8
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Rep: Reputation: 19
I believe -w and --rw options in fstab are invalid. Options in fstab are comma delimited string. Just curious... how about mounting them from CLI? Try below steps and see if it brings any different results:

# umount /media/drivb
# id bruce
uid=xxx(bruce)... <= get the uid of bruce and use it below
# mount -t ext4 -o uid=xxx,rw /dev/sdb1 /media/drivb

Can you now read/write from/to /media/drivb?

-gibb
 
Old 12-29-2010, 03:44 PM   #9
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 38 x86_64
Posts: 539

Rep: Reputation: 59
Hullo brpy1,

Quote:
Originally Posted by brpy1 View Post

[snip]

I've tried changing 'defaults' in fstab to 'defaults -w --rw' and just -w --rw' in fstab, but the system then refused to recognise the file systems at all.

brpy1
I have a couple of additional disks on my F13 system, and have these entries in my /etc/fstab;

/dev/sdc2 /media/disk2 ext3 rw 0 0
/dev/sdb1 /media/disk3 ext3 rw,users 0 0

It is a while since I looked at this, and now not sure why the entries are different, but they both work OK.
Not sure if this will solve your problem, but does give you something to try.

Cheers,
Terry
 
Old 12-30-2010, 01:41 AM   #10
brpy1
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Many thanks to you all for your suggestions and comments. However, early this morning I got sick of beating my head against a brick wall, having tried various solutions (except Terrys, which looks as though it would work) without success, and I re-installed. As far as I can recall, I did nothing differently in the second install as compared to the 1st, except that now, everything works as it should.

Again, thanks to you all for your assistance - it is very gratifying to know that there are people out there who have the knowledge and who are willing to help those of us who are new, or relatively new, to Linux.

Regards

brpy1
 
  


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 - cannot make writeable shares tpn Linux - Server 15 07-27-2007 10:09 AM
how do I make a HD writeable cole07 Linux - Software 5 06-14-2007 04:31 PM
mounting sata drives user readable duclicsic Linux - General 3 02-03-2005 08:07 AM
make a folder readable evensen Linux - Software 6 12-29-2004 06:37 AM
Make an archive readable aizkorri Programming 4 03-07-2002 11:01 AM

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

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