Results 1 to 3 of 3

Thread: What is the easiest way to change ownership of new USB drive ?

  1. #1
    Join Date
    Oct 2020
    Beans
    114

    What is the easiest way to change ownership of new USB drive ?

    What is the easy way to change ownership of new USB drive ?
    Since I am not the owner I cannot change permissions to copy files into new USB drive, or any drive.

    I did try chown but it is geared to change ownership with files.

    I am not looking for explanations why I have to do this, I just want an easy way to get access to new drives.

    I am open to suggestions.
    Last edited by helen314; January 28th, 2021 at 05:49 PM.

  2. #2
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,902

    Re: What is the easiest way to change ownership of new USB drive ?

    My best suggestions:
    Insert the new drive, then use gparted to unmount it and do the following: Create a new partition table - GPT is best. Create a new partition. Suppose the new partition is sdb1. Format the partition. Assuming for Linux use it was formatted ext4, give it a label - this command will label it 'data':
    Code:
    sudo e2label /dev/sdb1 data
    Quit gparted, remove and reinsert the drive, it will mount at /media/username/data where 'username' will be your user name.
    The command
    Code:
    sudo chown -R username:username /media/username/data
    will give you ownership and full access to the drive through this mount point in your root file system.

    Enjoy your new USB drive.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: What is the easiest way to change ownership of new USB drive ?

    The file system determines what can and cannot be done. "Drives" don't have owners, BTW. Directories and files do.

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
  •