Cannot change permission to external hard drive on Ubuntu 18.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I know this question has been asked before, but I cannot find a solution for Ubuntu 18.04
I have an external hard drive (FAT32) that had a default name with spaces that was making my life hell for scripting. So I manually changed the mount point to /media/$user/Ext1TB
but now I do not have write access to the disk and cannot save or modify the content. It used to work fine.
Things I have tried:
sudo chown -R $USER:$USER path/to/folder
gksu nautilus (doesn't work on 18.04?)
sudo chmod -R 777 /<folder name or path>
changing permissions through sudo nautilus
(works but does not stay like that)
So I am a bit out of ideas. Any other suggestion that doesn't involve formatting?
I have already looked at the following posts:
- Changing file permissions on USB external hard drive
- External hard drive not allowing permission
Edit:
Thanks to guiverc I now understand the problem with FAT32 permissions. I have tried the following with no result:
sudo mount /dev/sda1 /media/$USER/Ext1TB
should I add the -w
? The help says it is implicit. Can somebody help with the mount call?
From what I understand of the post suggested to make it permanent I have to add or modify a line in fstab similar to this:
UUID=8C52-C1CD /home/storage auto user,umask=000,utf8,auto 0 0
But I have no idea on how to build the line, find the correct UUID number and set the correct options. Any suggestion with that?
permissions mount hard-drive
New contributor
|
show 1 more comment
I know this question has been asked before, but I cannot find a solution for Ubuntu 18.04
I have an external hard drive (FAT32) that had a default name with spaces that was making my life hell for scripting. So I manually changed the mount point to /media/$user/Ext1TB
but now I do not have write access to the disk and cannot save or modify the content. It used to work fine.
Things I have tried:
sudo chown -R $USER:$USER path/to/folder
gksu nautilus (doesn't work on 18.04?)
sudo chmod -R 777 /<folder name or path>
changing permissions through sudo nautilus
(works but does not stay like that)
So I am a bit out of ideas. Any other suggestion that doesn't involve formatting?
I have already looked at the following posts:
- Changing file permissions on USB external hard drive
- External hard drive not allowing permission
Edit:
Thanks to guiverc I now understand the problem with FAT32 permissions. I have tried the following with no result:
sudo mount /dev/sda1 /media/$USER/Ext1TB
should I add the -w
? The help says it is implicit. Can somebody help with the mount call?
From what I understand of the post suggested to make it permanent I have to add or modify a line in fstab similar to this:
UUID=8C52-C1CD /home/storage auto user,umask=000,utf8,auto 0 0
But I have no idea on how to build the line, find the correct UUID number and set the correct options. Any suggestion with that?
permissions mount hard-drive
New contributor
1
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so thechmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)
– guiverc
yesterday
4
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
should besudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday
|
show 1 more comment
I know this question has been asked before, but I cannot find a solution for Ubuntu 18.04
I have an external hard drive (FAT32) that had a default name with spaces that was making my life hell for scripting. So I manually changed the mount point to /media/$user/Ext1TB
but now I do not have write access to the disk and cannot save or modify the content. It used to work fine.
Things I have tried:
sudo chown -R $USER:$USER path/to/folder
gksu nautilus (doesn't work on 18.04?)
sudo chmod -R 777 /<folder name or path>
changing permissions through sudo nautilus
(works but does not stay like that)
So I am a bit out of ideas. Any other suggestion that doesn't involve formatting?
I have already looked at the following posts:
- Changing file permissions on USB external hard drive
- External hard drive not allowing permission
Edit:
Thanks to guiverc I now understand the problem with FAT32 permissions. I have tried the following with no result:
sudo mount /dev/sda1 /media/$USER/Ext1TB
should I add the -w
? The help says it is implicit. Can somebody help with the mount call?
From what I understand of the post suggested to make it permanent I have to add or modify a line in fstab similar to this:
UUID=8C52-C1CD /home/storage auto user,umask=000,utf8,auto 0 0
But I have no idea on how to build the line, find the correct UUID number and set the correct options. Any suggestion with that?
permissions mount hard-drive
New contributor
I know this question has been asked before, but I cannot find a solution for Ubuntu 18.04
I have an external hard drive (FAT32) that had a default name with spaces that was making my life hell for scripting. So I manually changed the mount point to /media/$user/Ext1TB
but now I do not have write access to the disk and cannot save or modify the content. It used to work fine.
Things I have tried:
sudo chown -R $USER:$USER path/to/folder
gksu nautilus (doesn't work on 18.04?)
sudo chmod -R 777 /<folder name or path>
changing permissions through sudo nautilus
(works but does not stay like that)
So I am a bit out of ideas. Any other suggestion that doesn't involve formatting?
I have already looked at the following posts:
- Changing file permissions on USB external hard drive
- External hard drive not allowing permission
Edit:
Thanks to guiverc I now understand the problem with FAT32 permissions. I have tried the following with no result:
sudo mount /dev/sda1 /media/$USER/Ext1TB
should I add the -w
? The help says it is implicit. Can somebody help with the mount call?
From what I understand of the post suggested to make it permanent I have to add or modify a line in fstab similar to this:
UUID=8C52-C1CD /home/storage auto user,umask=000,utf8,auto 0 0
But I have no idea on how to build the line, find the correct UUID number and set the correct options. Any suggestion with that?
permissions mount hard-drive
permissions mount hard-drive
New contributor
New contributor
edited 7 mins ago
Zanna
51.6k13141244
51.6k13141244
New contributor
asked yesterday
ciskohciskoh
11
11
New contributor
New contributor
1
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so thechmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)
– guiverc
yesterday
4
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
should besudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday
|
show 1 more comment
1
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so thechmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)
– guiverc
yesterday
4
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
should besudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday
1
1
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so the
chmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)– guiverc
yesterday
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so the
chmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)– guiverc
yesterday
4
4
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
should be
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
should be
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday
|
show 1 more comment
1 Answer
1
active
oldest
votes
To mount your drive you must use the argument -o umask=000
this will mount the whole drive as write. since it is a FAT32 formatted drive this is how user rights work on it : they are set at mount so :
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
will solve your issue.
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
ciskoh is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138317%2fcannot-change-permission-to-external-hard-drive-on-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To mount your drive you must use the argument -o umask=000
this will mount the whole drive as write. since it is a FAT32 formatted drive this is how user rights work on it : they are set at mount so :
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
will solve your issue.
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
add a comment |
To mount your drive you must use the argument -o umask=000
this will mount the whole drive as write. since it is a FAT32 formatted drive this is how user rights work on it : they are set at mount so :
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
will solve your issue.
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
add a comment |
To mount your drive you must use the argument -o umask=000
this will mount the whole drive as write. since it is a FAT32 formatted drive this is how user rights work on it : they are set at mount so :
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
will solve your issue.
To mount your drive you must use the argument -o umask=000
this will mount the whole drive as write. since it is a FAT32 formatted drive this is how user rights work on it : they are set at mount so :
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
will solve your issue.
answered yesterday
tatsutatsu
605737
605737
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
add a comment |
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
the solution proposed works. Could you tell me how to make it permanent?
– ciskoh
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
you could use DISKS, it's an installed app on your system. simply open it up, navigate to the partition you want to mount, turn off automounting (the default it no mount for a usb drive) and set the mount point and mount arguments like above or anything else that suits your needs
– tatsu
yesterday
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
@ciskoh if this worked for you you need to mark my answer as the correct answer.
– tatsu
20 hours ago
add a comment |
ciskoh is a new contributor. Be nice, and check out our Code of Conduct.
ciskoh is a new contributor. Be nice, and check out our Code of Conduct.
ciskoh is a new contributor. Be nice, and check out our Code of Conduct.
ciskoh is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138317%2fcannot-change-permission-to-external-hard-drive-on-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
FAT32 partitions don't include space to store posix/unix/linux file permission bits (+r +w +x etc) as it has different bits (/hid /sys /ro /arc) so the
chmod
cannot work. Your 'fix' is to mount (ie. mount with permissions you want; the new directory has different permissions to where you mounted it previously)– guiverc
yesterday
4
Possible duplicate of Mount USB drive with write permissions for everyone or specific user
– guiverc
yesterday
@guiverc Indeed your suggestion seems fitting but it didn't work for me. please see the edit for details
– ciskoh
yesterday
should be
sudo mount /dev/sda1 /media/$USER/Ext1TB -o umask=000
– tatsu
yesterday
Thanks @tatsu that worked
– ciskoh
yesterday