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

Thread: Cannot write to 2nd HDD, "you are not the owner"?

  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Cannot write to 2nd HDD, "you are not the owner"?

    I just got a new laptop with 2 drives. (one normal HDD and one eSata SSD). This machine came without an OS installed. I installed Ubuntu 13.10 on the SSD and this went fine. I can see the normal HDD, I can open its window but I cannot create new files or use it. The owner seems to be Root. Under the drive properties window the drive is shown as a Folder (inode/directory), it shows this location: /media/jacques and under the permisions tab I get "you are not the owner and cannot change the permissions. I have named this drive "Data" And the idea would be to put all of my data there instead of on the SSD with symlinks to my home folder on the SSD.
    I would very much appreciate any help to solve this problem. How can I take back the control over this drive?

  2. #2
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    It sounds as though you have one large partition formatted to a Linux filesystem. The fix is easy - you simply mount the partition and chown the mountpoint, which has the effect of changing ownership of the filesystem. But before describing how to do that, we need a bit more more information. You mention /media/jacques. That sounds like part of the path to the mountpoint if you mounted it from the file browser and your username is jacques. I would expect it to be /media/jacques/something-or-other.

    Anyway. First question. Are you mounting the partition from the file manager or have you added a custom mount line in /etc/fstab?

    Secondly, mount the drive/partition the way you have done when you get the "no permission" error and then run these terminal commands and post the output:

    Code:
    sudo fdisk -lu
    sudo blkid
    mount
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  3. #3
    Join Date
    Jul 2008
    Location
    Germany
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    Thank you for your response. The file seems to be automaticaly mounted on startup. I did not change anything in the fstab
    Here the output as requested:
    jacques@jacques-ThinkPad-X230:~$ sudo fdisk -lu
    [sudo] password for jacques:

    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x000e05a5

    Device Boot Start End Blocks Id System
    /dev/sda1 2048 976773119 488385536 83 Linux

    Disk /dev/sdb: 128.0 GB, 128035676160 bytes
    255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000dc206

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 233916415 116957184 83 Linux
    /dev/sdb2 233918462 250068991 8075265 5 Extended
    /dev/sdb5 233918464 250068991 8075264 82 Linux swap / Solaris
    jacques@jacques-ThinkPad-X230:~$ sudo blkid
    /dev/sdb1: UUID="3c9eae44-e031-4e11-8a01-2de49cb7713a" TYPE="ext4"
    /dev/sdb5: UUID="683d4293-1eb6-4079-bf5e-14fcdd46b727" TYPE="swap"
    /dev/sda1: LABEL="Data" UUID="9e97e491-92a2-452b-b1aa-17a8200d4544" TYPE="ext4"
    jacques@jacques-ThinkPad-X230:~$ mount
    /dev/sdb1 on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/cgroup type tmpfs (rw)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
    none on /sys/fs/pstore type pstore (rw)
    systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=jacques)
    /dev/sda1 on /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
    jacques@jacques-ThinkPad-X230:~$

    The HDD appears in the dock. Left click opens the HDD which is still empty. Right click shows:
    Type: Folder
    Contents: nothing
    Location: slash media slash jacques
    permissions tag shows owner as Root
    Last edited by germanix; October 26th, 2013 at 03:38 PM.

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    There are some things which are puzzling me at the moment.

    Quote Originally Posted by germanix View Post
    The file seems to be automaticaly mounted on startup. I did not change anything in the fstab
    I think you mean partition. It won't be automatically mounted at startup unless you add a line to /etc/fstab, at least in Ubuntu. In Ubuntu, you would need to mount it by clicking on it in the file manager - or using the Disks utility, but the mount details below don't look like the product of Disks. Are you by chance using Kubuntu, or one of the other Ubuntu derivatives? I seem to remember there is another way of mounting partitions in Kubuntu, but I can't remember the details, as I don't use Kubuntu.

    Your mount point is this:

    Quote Originally Posted by germanix View Post
    /dev/sda1 on /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544 type ext4 (rw,nosuid,nodev,uhelper=udisks2)
    /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544. Except that you've allocated the sda1 partition the label "Data":

    Quote Originally Posted by germanix View Post
    /dev/sda1: LABEL="Data" UUID="9e97e491-92a2-452b-b1aa-17a8200d4544" TYPE="ext4"
    In Ubuntu, if you were to mount a partition which has a partition label "Data" with the file manager, the mountpoint will be /media/jacques/Data, not the mountpoint you are seeing which is using the UUID instead of the partition label. Which is why I wonder if you are using Kubuntu.

    Assuming the mountpoint is still /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544, run this terminal command:

    Code:
    sudo chown jacques:jacques /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544
    If sda1 is still mounted to /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544, then it will be owned by you and you will be able to use it.
    Last edited by coffeecat; October 26th, 2013 at 04:43 PM.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  5. #5
    Join Date
    Jul 2008
    Location
    Germany
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    I am running Ubuntu 13.10 with Unity.
    This code did not do the trick: sudo chown jacques:jacques /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544
    I do not see this file in my home file: /media/jacques. I did not create a media file?
    Teh Partition/HDD appears in the Unity Dock on startup and is already mounted but will not let me use it. It opens in a window but belongs to root.
    This partition is a primary partition with ext4. I did label it as data but when i open the partition it shows the name 9e97e491-92a2-452b-b1aa-17a8200d4544 in "properties"

  6. #6
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    Quote Originally Posted by germanix View Post
    This code did not do the trick: sudo chown jacques:jacques /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544
    So what error did you see when you ran this command?

    Quote Originally Posted by germanix View Post
    I do not see this file in my home file: /media/jacques. I did not create a media file?
    You won't see it in your home folder (not file) because it is not in your home folder. It is a system folder - /media/jacques.

    Quote Originally Posted by germanix View Post
    Teh Partition/HDD appears in the Unity Dock on startup and is already mounted but will not let me use it. It opens in a window but belongs to root.
    Now I understand what you are doing. It appears in the Unity Dock but is not mounted until you click on it. It will then be mounted on /media/jacques/something-or-other. It's the same mechanism as mounting from the file manager.

    My guess is that you had mounted it before you added the label Data to the partition, which is why the mount point you quoted included the UUID in the path. Now that you have added the label Data, it will be mounted to /media/jacques/Data and not to /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544. In which case, try this:

    Code:
    sudo chown jacques:jacques /media/jacques/Data
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  7. #7
    Join Date
    Jul 2008
    Location
    Germany
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    This is what I get with both sets of the code you provided:
    jacques@jacques-ThinkPad-X230:~$ sudo chown jacques:jacques /media/jacques/Data
    [sudo] password for jacques:
    chown: cannot access ‘/media/jacques/Data’: No such file or directory
    jacques@jacques-ThinkPad-X230:~$ sudo chown jacques:jacques /media/jacques/9e97e491-92a2-452b-b1aa-17a8200d4544
    jacques@jacques-ThinkPad-X230:~$

    So ithere is no error message with the first line of code but I still cannot use the partition.
    by the way i realy appreciate your help.

  8. #8
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    It sounds as though the one with the long UUID worked since there is no error message, so we need to investigate why you still cannot write to the partition.

    Post the output of this command:

    Code:
    ls -l /media/jacques
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  9. #9
    Join Date
    Jul 2008
    Location
    Germany
    Beans
    459
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    jacques@jacques-ThinkPad-X230:~$ ls -l /media/jacques
    total 4
    drwxr-xr-x 3 jacques jacques 4096 Okt 26 13:06 9e97e491-92a2-452b-b1aa-17a8200d4544
    jacques@jacques-ThinkPad-X230:~$

  10. #10
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Cannot write to 2nd HDD, "you are not the owner"?

    According to that output, the ownership and permissions on that partition are saying you should be able to use it. What exactly do you mean by not being able to use the partition? What are you doing? What error messages do you see?

    Click on the icon in the Unity launcher that corresponds to the partition so that a file browser opens. Try to copy a file to it from your home folder by dragging and dropping. Any file will do. What happens?
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

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
  •