Fedora Linux Support Community & Resources Center
  #16  
Old 18th September 2012, 12:49 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
linuxfirefox
Re: Changing permissions. . . .

Quote:
Originally Posted by rich52 View Post
Screw it. .. .I bit the bullet and formatted both drives sdb1 and sdc1 to ntfs. Simple. I can now read and write back and forth to them without all of this hit and miss coding with ext4, permissions crap. . . . . . Appreciate all the help. . . someday there will an easier method like what I just did.


Thanks for all the help. Most appreciative. . .

Rich
If you have 2 disks I would create 2 physical volumes. Create volume group and include these 2 physical volumes into this volume group and then create logical volume and format it as ext4 if you're using fedora version > 14. In this case in future if you will need extend logical volume all you'll need is to add new disk or replace one of the disk in logical volume.

here is commands:

1) pvcreate /dev/sdb1 ; pvcreate /dev/sdc1 # these to create physical volumes
2) vgcreate vg.photos /dev/sdb1 /dev/sdc1 # this to create volume group
3) lvcreate -l 100%VG -n lv.photos vg.photos # create logical volume
4) mkfs -t ext4 /dev/mapper/vg.photos-lv.photos format it as Ext4
5) edit fstab. add this line
vim /etc/fstab
....
/dev/mapper/vg.photos-lv.photos /mount_point ext4 1 2

mount_point - can be anything, but in your case I would recommend to mount new LV to /home/<user>/Pictures.

After all this change permission to directory:

chown -R <user_name>:<user_group> /home/<user>/Pictures
Reply With Quote
  #17  
Old 18th September 2012, 02:16 AM
rich52 Offline
Registered User
 
Join Date: May 2009
Posts: 144
linuxchrome
Re: Changing permissions. . . .

[richard@localhost ~]$ mount | grep /dev/sdb1
/dev/sdb1 on /run/media/richard/_photo type ext4 (rw,nosuid,nodev,relatime,seclabel,data=ordered,uh elper=udisks2)
[richard@localhost ~]$ mount | grep /dev/sdc1
/dev/sdc1 on /run/media/richard/_panoramas type ext4 (rw,nosuid,nodev,relatime,seclabel,data=ordered,uh elper=udisks2)
[richard@localhost ~]$ ls -lZd /mnt/photos
ls: cannot access /mnt/photos: No such file or directory
[richard@localhost ~]$ ls -lZd /mnt/panoramas
ls: cannot access /mnt/panoramas: No such file or directory
[richard@localhost ~]$ chmod ugo+rw mountpoint -R
chmod: cannot access `mountpoint': No such file or directory
[richard@localhost ~]$

Ok. . . .I'm back. I reformated the drives with gparted and created /photo ext4 on sdb1 and panoramas on sdc1.

#
# /etc/fstab
# Created by anaconda on Fri Sep 14 17:12:28 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg-lv_root / ext4 defaults 1 1
UUID=b48fba90-022a-462e-a2ed-ade75c160efb /boot ext4 defaults 1 2
/dev/mapper/vg-lv_home /home ext4 defaults 1 2
/dev/mapper/vg-lv_swap swap swap defaults 0 0

UUID=5a652b39-3178-484b-95ef-f5ab60b92b93 /mnt/photos ext4 auto,umask=0000 0.2

UUID=16e856d1-a0eb-4efd-bd81-913e9020c0d8 /mnt/panoramas ext4 auto,umask=0000 0.2

Here is my new fstab. . .

What's going on??????

I need help. . . . I'm doing the best I can. .

Rich
Reply With Quote
  #18  
Old 18th September 2012, 02:25 AM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
linuxfirefox
Re: Changing permissions. . . .

What error messages do you get when you run (as root)

mount -a

because if nothing else, I'd expect mount to object to your ending the lines with 0.2 instead of 0 2 as it's supposed to be.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #19  
Old 18th September 2012, 02:46 AM
6e617a696d's Avatar
6e617a696d Offline
Registered User
 
Join Date: Sep 2012
Location: Dallas, TX
Posts: 45
linuxfirefox
Re: Changing permissions. . . .

1) Is there any particular reason why not to use LVM?
2) Why you giving UUID instead of path to disk?

Troubleshooting:

try mount disk manually.
i. Switch to superuser su -
ii. try to mount disk.
mkdisk -pv /tmp/tempdisk1
mount /dev/sdb1 /tmp/tempdisk1

If this command will give you an error you probably did not format it:
mkfs -t ext4 /dev/sdb1
and then
mount /dev/sdb1 /tmp/tempdisk1

If this will gave you error check /var/log/messages for any errors and post it here
Reply With Quote
  #20  
Old 29th September 2012, 06:39 PM
rich52 Offline
Registered User
 
Join Date: May 2009
Posts: 144
linuxchrome
Re: Changing permissions. . . .

After numerous peoples advice. .. and a few day's away from the computer and to say the least other new problems I've had with repositories and yum with and without yumex, I restarted a new clean install of the whole system.

I followed the info below:
http://fedoranews.org/tchung/storage/

I now have my two additional drives working and mounted using ext4 on my system.


Now I have a new question? How is it possible to show both new drives in 'Nautilus' as icons in the menu bar? If I go 'file system' in the menu I can see the folders on the new drives I've created and also go into the folders I've created for the 'user'. How can I get icons for these drives into the topmost main menu so they can be mouse clicked to 'mount' and 'unmount' them at will? Right now the drives are mounted when the system boots up. I'd like to have the ability to mount and unmount them at will.

Any idea's would be appreciated. . .

Rich
Reply With Quote
  #21  
Old 29th September 2012, 06:49 PM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
linuxfirefox
Re: Changing permissions. . . .

Change the mount options in /etc/fstab from defaults to noauto,user and that should do it.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
Reply

Tags
changing, permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Permissions for FAT Partition... icanfly0307 Using Fedora 4 2nd February 2009 02:23 PM
Changing Permissions of files. Elliot Using Fedora 6 30th July 2007 06:16 AM
changing the permissions Powerdog Using Fedora 4 28th February 2006 10:07 PM


Current GMT-time: 00:54 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat