You are not logged in.

#1 2008-01-11 22:02:55

isolier
Member
Registered: 2008-01-10
Posts: 24

Mount External Hardrive[SOLVED]

I do not want to automount anything, I don't mind running mount, so I inserted an fstab entry to allow me to mount /dev/sdb1 which is my external usb hard drive to /mnt/backup but even when I do this as a regular user the permission is only for root.  Therefore I cant really access any of the files...  Is there a way I can have it automatically mount with the user group having permission rwx?  Thanks in advance for your time.

Last edited by isolier (2009-01-24 17:54:00)

Offline

#2 2008-01-11 22:06:56

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Mount External Hardrive[SOLVED]

isolier wrote:

I do not want to automount anything, I don't mind running mount, so I inserted an fstab entry to allow me to mount /dev/sdb1 which is my external usb hard drive to /mnt/backup but even when I do this as a regular user the permission is only for root.  Therefore I cant really access any of the files...  Is there a way I can have it automatically mount with the user group having permission rwx?  Thanks in advance for your time.

Have you added the "user" option in the FSTAB?
Anyway, I'd recommend to do this:

su -c 'chown -R youruser:users /mnt/backup'

wink


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#3 2008-01-11 22:54:18

isolier
Member
Registered: 2008-01-10
Posts: 24

Re: Mount External Hardrive[SOLVED]

Ah well at first I tried that and nothing happened, then I realized I was mounting read only smile  Anyhow, all of the directories were changed but none of the files were, man chown says -R is supposed to change all directories and their contents so I was confused as to why the file ownerships weren't being changed.  So I then went to a directory within backup and tried to chown a particular file and it gives me "operation not supported"...  What am I doing wrong?

Last edited by isolier (2008-01-11 23:07:54)

Offline

#4 2008-01-12 00:07:21

isolier
Member
Registered: 2008-01-10
Posts: 24

Re: Mount External Hardrive[SOLVED]

Ok, well I got it working, it had to do with ntfs so I needed to specify ntfs-3g in file system type within my fstab.  This also required me to add fuse to my mods list in rc.conf as well as change the permissions of ntfs-3g so that it could be run by the storage group in order for the drive to be mountable by non root users.  So there it is.

Offline

Board footer

Powered by FluxBB