Can't write on FAT32 partition although having rw mount option [Ubuntu 18]?
I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo
. I added an fstab
option rw
to make it writable but still it doesn't work.
partitioning permissions mount fstab
add a comment |
I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo
. I added an fstab
option rw
to make it writable but still it doesn't work.
partitioning permissions mount fstab
add a comment |
I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo
. I added an fstab
option rw
to make it writable but still it doesn't work.
partitioning permissions mount fstab
I have recently moved from Ubuntu 16 to 18 and I have a problem using a partition that I have set it automatically mount on startup. The problem is shift-delete or right click-new folder are not working. In terminal I have to do it by sudo
. I added an fstab
option rw
to make it writable but still it doesn't work.
partitioning permissions mount fstab
partitioning permissions mount fstab
asked Jan 28 at 9:09
DeadDead
5314
5314
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Read man mount
, especially the "Mount options for fat
" part. You can use the uid=
and gid=
options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like
target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
I changed bothuid
andgid
to 1000 (my user id) and now it works! Thank you so much!
– Dead
Jan 28 at 15:23
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
});
}
});
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%2f1113469%2fcant-write-on-fat32-partition-although-having-rw-mount-option-ubuntu-18%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
Read man mount
, especially the "Mount options for fat
" part. You can use the uid=
and gid=
options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like
target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
I changed bothuid
andgid
to 1000 (my user id) and now it works! Thank you so much!
– Dead
Jan 28 at 15:23
add a comment |
Read man mount
, especially the "Mount options for fat
" part. You can use the uid=
and gid=
options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like
target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
I changed bothuid
andgid
to 1000 (my user id) and now it works! Thank you so much!
– Dead
Jan 28 at 15:23
add a comment |
Read man mount
, especially the "Mount options for fat
" part. You can use the uid=
and gid=
options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like
target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
Read man mount
, especially the "Mount options for fat
" part. You can use the uid=
and gid=
options to make all the files owned by the specified UID and GID. If it's already mounted, you could do something like
target=/dev/...
mntdir=the directory where it should be mounted
sudo mount -t vfat -o remount,rw,user,users,nosuid,nodev,relatime,uid=$(id -u),gid=$(id -g),fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2 $target $mntdir
answered Jan 28 at 14:58
waltinatorwaltinator
22.4k74169
22.4k74169
I changed bothuid
andgid
to 1000 (my user id) and now it works! Thank you so much!
– Dead
Jan 28 at 15:23
add a comment |
I changed bothuid
andgid
to 1000 (my user id) and now it works! Thank you so much!
– Dead
Jan 28 at 15:23
I changed both
uid
and gid
to 1000 (my user id) and now it works! Thank you so much!– Dead
Jan 28 at 15:23
I changed both
uid
and gid
to 1000 (my user id) and now it works! Thank you so much!– Dead
Jan 28 at 15:23
add a comment |
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%2f1113469%2fcant-write-on-fat32-partition-although-having-rw-mount-option-ubuntu-18%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