Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Changing Permissions of a storage hard drive

  1. #1
    Join Date
    Dec 2007
    Beans
    23

    Changing Permissions of a storage hard drive

    I have two hard drives in my machine.
    /dev/sda1 - this is my main hard drive and what Ubuntu Hardy Heron is installed on

    /dev/sdb1 - this is an ext3 formatted hard drive which has nothing on it except an empty Lost and Found folder. I would like my standard user to be able to read/write to this drive however I cannot for the life of me figure out why the chown command does not appear to be working.

    I have done the following:

    darthopto@darthopto-desktop:~$ chown -hR darthopto:darthopto /dev/sdb1
    darthopto@darthopto-desktop:~$ chown -hR darthopto:darthopto /dev/sdb2
    darthopto@darthopto-desktop:~$ chown -hR darthopto:darthopto /dev/sdb5
    darthopto@darthopto-desktop:~$ ls -la /media
    total 20
    drwxr-xr-x 5 root root 4096 2008-06-13 23:44 .
    drwxr-xr-x 21 root root 4096 2008-06-07 09:49 ..
    lrwxrwxrwx 1 root root 6 2008-06-07 08:57 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2008-06-07 08:57 cdrom0
    -rw-r--r-- 1 root root 140 2008-06-13 23:44 .hal-mtab
    -rw------- 1 root root 0 2008-06-11 21:14 .hal-mtab-lock
    drwxr-xr-x 3 root root 4096 2008-05-28 00:20 storage
    drwxrwxrwx 5 darthopto 4294967295 200 2008-05-17 11:06 UDF Volume

    and still the root user is the owner of the drive. Please someone help me get it so I can read/write to this drive.

    Thank you.

  2. #2
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Changing Permissions of a storage hard drive

    Try placing sudo first on your first command, if it still fails try using chmod:

    Code:
    sudo chmod 666 /mount/point
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #3
    Join Date
    Apr 2008
    Beans
    764

    Re: Changing Permissions of a storage hard drive

    Volume, Mount and File System Permissions are different than FilePermissions.
    check out this link
    https://help.ubuntu.com/community/VolumePermissions

    the 'chown' to the mount point will probably work, but as soon as you create a new directory, that directory wont have permission until you type the command again, i believe thats the diference between volume and file permissions

    any questions we will be around

    sam
    Last edited by sam_delta; June 14th, 2008 at 07:22 AM.

  4. #4
    Join Date
    Dec 2007
    Beans
    23

    Re: Changing Permissions of a storage hard drive

    I am not seeing my sdb volume in my fstab, to even change the volume permissions.
    How do I get that added?

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda1
    UUID=7438e2d1-0e1a-4080-ae58-a2599ec89731 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5
    UUID=fc1ba4b8-a363-4630-9987-3f5808c38d2c none swap sw 0 0
    /dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

  5. #5
    Join Date
    Apr 2008
    Beans
    764

    Re: Changing Permissions of a storage hard drive

    make sure you unmount the volume before continue

    first, make a backup of your fstab by typing
    Code:
    sudo cp /etc/fstab /etc/fstab.backup
    then, make the folder in which it will mount under media by typing
    Code:
    sudo mkdir /media/storage
    open fstab by typing
    Code:
    sudo gedit /etc/fstab
    fstab will open then, add this line to the fstab
    Code:
    /dev/sdb1    /media/storage    ext3   defaults,umask=000    0    0
    then update/mount it with
    Code:
    sudo mount -a

    sam
    Last edited by sam_delta; June 14th, 2008 at 06:05 PM.

  6. #6
    Join Date
    Dec 2007
    Beans
    23

    Re: Changing Permissions of a storage hard drive

    Thank you, but I followed the directions posted by Sam and I still have no permission to put files into my storage volume.

    HELP

  7. #7
    Join Date
    Apr 2008
    Beans
    764

    Re: Changing Permissions of a storage hard drive

    does it mounts on /media/storage?

    sam

  8. #8
    Join Date
    Dec 2007
    Beans
    23

    Re: Changing Permissions of a storage hard drive

    Quote Originally Posted by sam_delta View Post
    does it mounts on /media/storage?

    sam
    Yes it does mount on /media/storage

  9. #9
    Join Date
    Apr 2008
    Beans
    764

    Re: Changing Permissions of a storage hard drive

    try editing your fstab so the line we added looks like this
    Code:
    /dev/sdb1    /media/storage    ext3   umask=000    0    0
    NOTE: we removed the "defaults," word just before umask

    update/mount with
    Code:
    sudo mount -a
    sam

  10. #10
    Join Date
    Dec 2007
    Beans
    23

    Re: Changing Permissions of a storage hard drive

    Quote Originally Posted by sam_delta View Post
    try editing your fstab so the line we added looks like this
    Code:
    /dev/sdb1    /media/storage    ext3   umask=000    0    0
    NOTE: we removed the "defaults," word just before umask

    update/mount with
    Code:
    sudo mount -a
    sam
    Ok, I made that change and still I am unable to make any changes to the storage volume.

    Here is my fstab

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda1
    UUID=7438e2d1-0e1a-4080-ae58-a2599ec89731 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5
    UUID=fc1ba4b8-a363-4630-9987-3f5808c38d2c none swap sw 0 0
    /dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/sdb1 /media/storage ext3 umask=000 0 0

    Here is the result of ls -la /media after making the change.

    drwxr-xr-x 5 root root 4096 2008-06-14 11:11 .
    drwxr-xr-x 21 root root 4096 2008-06-07 09:49 ..
    lrwxrwxrwx 1 root root 6 2008-06-07 08:57 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2008-06-07 08:57 cdrom0
    -rw-r--r-- 1 root root 78 2008-06-14 11:11 .hal-mtab
    -rw------- 1 root root 0 2008-06-11 21:14 .hal-mtab-lock
    drwxr-xr-x 21 root root 4096 2008-06-07 09:49 storage
    drwxrwxrwx 5 darthopto 4294967295 200 2008-05-17 11:06 UDF Volume

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •