Results 1 to 7 of 7

Thread: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

  1. #1
    Join Date
    Jul 2020
    Beans
    2

    "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    I wanted to convert a Ubuntu 18.04 BIOS to Ubuntu 20.04 UEFI. To do this in (what I thought was) the most efficient approach, I physically removed the secondary storage SSD and used the option to "wipe and install" Ubuntu 20.04. This process worked with one exception:

    After physically reinstalling and mounting the secondary storage SSD, I am able to read it but do not have write privileges. I have subsequently tried to change ownership as root user to no avail:

    Code:
    sudo -s
    chown -R username /storage
    Looking for recommendations to restore access to this secondary storage drive without having to back it up, re-format it, and then transfer all of my content back.

    Thank you

  2. #2
    tea for one is offline Extra Foam Sugar Free Ubuntu
    Join Date
    May 2008
    Beans
    749
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    Here is a guide.

    https://www.computerhope.com/unix/uchown.htm

    There are some examples towards the end of the webpage.

    I reckon you may need something like this:-

    Code:
    sudo chown -R  username:usergroup /storage

  3. #3
    Join Date
    May 2010
    Beans
    472

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    How are you mounting the storage please? If it is an entry in /etc/fstab can you please give the output of:
    Code:
    grep storage /etc/fstab
    Thanks

  4. #4
    Join Date
    Dec 2009
    Beans
    6,409

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    And if it is not in fstab how is this partition formatted:
    Code:
    sudo blkid -c /dev/null

  5. #5
    Join Date
    Jul 2020
    Beans
    2

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    Code:
    grep storage /etc/fstab
    returns

    Code:
    /dev/disk/by-uuid/B971-95FF /storage auto x-gvfs-show 0 0
    and

    Code:
    sudo blkid -c /dev/null
    returns

    Code:
    /dev/sdb1: UUID="B971-95FF" TYPE="vfat" PARTUUID="d248a510-01"
    Last edited by alexvucenovic; 3 Weeks Ago at 02:04 PM.

  6. #6
    Join Date
    Dec 2009
    Beans
    6,409

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    Someone needs to make a concerted effort to remove Disks from the repository.
    /dev/disk/by-uuid/B971-95FF /storage auto x-gvfs-show 0 0

    ** Unmount the partition:
    Code:
    sudo umount /storage
    ** Edit /etc/fstab and change the line above to:
    /dev/disk/by-uuid/B971-95FF /storage auto uid=1000,x-gvfs-show 0 0
    I'm assuming your uid=1000. To make sure run this command to find out your real uid and change the above:
    Code:
    id
    ** Save fstab

    ** Remount with this:
    Code:
    sudo mount -a

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    20,550
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: "You are not the owner" after upgrade Ubuntu 18.04 BIOS to 20.04 UEFI

    Non-Linux file systems like FAT32, exFAT, and NTFS don't support chown or chmod. Those are Windows file systems.

    All permissions for those file systems are set through the mount options. That is a key understanding.

    If this storage has a Linux file system, then chown, chmod, will work.
    Linux file systems include: ext2/3/4, zfs, jfs, btrfs, xfs, f2fs and about 50 others for specialized needs. In general, using ext4 is the best, default, for Ubuntu systems.

    After a file system is mounted, the easy way to see the file system is
    df -Th or a plain mount though the output from mount is very _busy_.
    Another option is lsblk -e 7 -o name,size,type,fstype,mountpoint

    I use aliases for those commands so there isn't any need to remember them or type all that in.

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
  •