Change owner of a partition in Ubuntu

To Change owner of a partition in Ubuntu user following commend in terminal:

$ sudo chown username:username /media/username/diskname

Here,

username = your user name

diskname = the name of the disk you need to change permission. You will find all your disk in “/media/username/” directory.

Note: You must mount the partition first to change the owner.

Note: The above commend tested in Ubuntu 16.04.

Source: http://sourcedigit.com/16391-change-ownership-set-write-permission-on-ext4-partition-in-linux-ubuntu/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.