How to set fstab to be able to umount my external HDDs under normal user account?Can't mount EXT4 hard drive after mounting it in windowsError mounting drivesUnable to change permissions of file system rootNew SSD only mounts after issuing blkid command. [Ubuntu 14.04]USB hard drive doesn't auto mountExternal HDD won't Mount during BootWrong fs type, bad option, bad superblock on /dev/sdaXVirtualbox VMDK to bootable usb stick not workingTrigger script to run when USB drive connected with no user logged on on Ubuntu 18.04SSD clone doesn't boot or mount correctly
What happens if you roll doubles 3 times then land on "Go to jail?"
How do scammers retract money, while you can’t?
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
How to run a prison with the smallest amount of guards?
Is expanding the research of a group into machine learning as a PhD student risky?
Do sorcerers' Subtle Spells require a skill check to be unseen?
For a non-Jew, is there a punishment for not observing the 7 Noahide Laws?
How do I go from 300 unfinished/half written blog posts, to published posts?
Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?
Anatomically Correct Strange Women In Ponds Distributing Swords
Crossing the line between justified force and brutality
Sort a list by elements of another list
Do the temporary hit points from the Battlerager barbarian's Reckless Abandon stack if I make multiple attacks on my turn?
Integer addition + constant, is it a group?
Opposite of a diet
How to Reset Passwords on Multiple Websites Easily?
Are student evaluations of teaching assistants read by others in the faculty?
Why, precisely, is argon used in neutrino experiments?
Why Were Madagascar and New Zealand Discovered So Late?
Is this apparent Class Action settlement a spam message?
Applicability of Single Responsibility Principle
How to be diplomatic in refusing to write code that breaches the privacy of our users
How long to clear the 'suck zone' of a turbofan after start is initiated?
How to set fstab to be able to umount my external HDDs under normal user account?
Can't mount EXT4 hard drive after mounting it in windowsError mounting drivesUnable to change permissions of file system rootNew SSD only mounts after issuing blkid command. [Ubuntu 14.04]USB hard drive doesn't auto mountExternal HDD won't Mount during BootWrong fs type, bad option, bad superblock on /dev/sdaXVirtualbox VMDK to bootable usb stick not workingTrigger script to run when USB drive connected with no user logged on on Ubuntu 18.04SSD clone doesn't boot or mount correctly
System: Linux Mint 19.1 Cinnamon.
Disks in this question are considered external HDDs either ext4
or ntfs
formatted.
I am interested in how do I manage to set my fstab
or whatever else to be able to Unmount (umount
) those external HDDs under my normal user account?
I have:
one External hard disk over USB 3.0 formatted as
ext4
one External hard disk over USB 2.0 formatted as
ntfs
Relevant parts of my fstab
:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail 0 0
mount fstab disk automounting
add a comment |
System: Linux Mint 19.1 Cinnamon.
Disks in this question are considered external HDDs either ext4
or ntfs
formatted.
I am interested in how do I manage to set my fstab
or whatever else to be able to Unmount (umount
) those external HDDs under my normal user account?
I have:
one External hard disk over USB 3.0 formatted as
ext4
one External hard disk over USB 2.0 formatted as
ntfs
Relevant parts of my fstab
:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail 0 0
mount fstab disk automounting
add a comment |
System: Linux Mint 19.1 Cinnamon.
Disks in this question are considered external HDDs either ext4
or ntfs
formatted.
I am interested in how do I manage to set my fstab
or whatever else to be able to Unmount (umount
) those external HDDs under my normal user account?
I have:
one External hard disk over USB 3.0 formatted as
ext4
one External hard disk over USB 2.0 formatted as
ntfs
Relevant parts of my fstab
:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail 0 0
mount fstab disk automounting
System: Linux Mint 19.1 Cinnamon.
Disks in this question are considered external HDDs either ext4
or ntfs
formatted.
I am interested in how do I manage to set my fstab
or whatever else to be able to Unmount (umount
) those external HDDs under my normal user account?
I have:
one External hard disk over USB 3.0 formatted as
ext4
one External hard disk over USB 2.0 formatted as
ntfs
Relevant parts of my fstab
:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail 0 0
mount fstab disk automounting
mount fstab disk automounting
edited yesterday
Vlastimil
asked yesterday
VlastimilVlastimil
8,3431465145
8,3431465145
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You actually might not need to do the first step, I will test this later - tomorrow onwards.
First, I found out I needed to add myself to disk
user group with:
sudo usermod -aG disk YourUserName
Second, you need to add users
option to your fstab
entries.
Working example on my setup:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0
This will allow you (upon reboot) to execute for example:
umount /dev/sdX1
as an ordinary user without sudo
.
Additionally, on Linux Mint, there is a Disks GUI, where you can then even power off those drives, I stress: once you unmounted them!, by pressing the Power off this disk button in the top bar, on the right:
Are you sure you need to add yourself to thedisk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup,users
in/etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e.umount
works if the disks were mounted withmount
, not if they were mounted byudisks
or some other mechanism.
– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f508681%2fhow-to-set-fstab-to-be-able-to-umount-my-external-hdds-under-normal-user-account%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
You actually might not need to do the first step, I will test this later - tomorrow onwards.
First, I found out I needed to add myself to disk
user group with:
sudo usermod -aG disk YourUserName
Second, you need to add users
option to your fstab
entries.
Working example on my setup:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0
This will allow you (upon reboot) to execute for example:
umount /dev/sdX1
as an ordinary user without sudo
.
Additionally, on Linux Mint, there is a Disks GUI, where you can then even power off those drives, I stress: once you unmounted them!, by pressing the Power off this disk button in the top bar, on the right:
Are you sure you need to add yourself to thedisk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup,users
in/etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e.umount
works if the disks were mounted withmount
, not if they were mounted byudisks
or some other mechanism.
– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
add a comment |
You actually might not need to do the first step, I will test this later - tomorrow onwards.
First, I found out I needed to add myself to disk
user group with:
sudo usermod -aG disk YourUserName
Second, you need to add users
option to your fstab
entries.
Working example on my setup:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0
This will allow you (upon reboot) to execute for example:
umount /dev/sdX1
as an ordinary user without sudo
.
Additionally, on Linux Mint, there is a Disks GUI, where you can then even power off those drives, I stress: once you unmounted them!, by pressing the Power off this disk button in the top bar, on the right:
Are you sure you need to add yourself to thedisk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup,users
in/etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e.umount
works if the disks were mounted withmount
, not if they were mounted byudisks
or some other mechanism.
– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
add a comment |
You actually might not need to do the first step, I will test this later - tomorrow onwards.
First, I found out I needed to add myself to disk
user group with:
sudo usermod -aG disk YourUserName
Second, you need to add users
option to your fstab
entries.
Working example on my setup:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0
This will allow you (upon reboot) to execute for example:
umount /dev/sdX1
as an ordinary user without sudo
.
Additionally, on Linux Mint, there is a Disks GUI, where you can then even power off those drives, I stress: once you unmounted them!, by pressing the Power off this disk button in the top bar, on the right:
You actually might not need to do the first step, I will test this later - tomorrow onwards.
First, I found out I needed to add myself to disk
user group with:
sudo usermod -aG disk YourUserName
Second, you need to add users
option to your fstab
entries.
Working example on my setup:
UUID=<the UUID of the Ext4 disk drive> /mnt/external-hdd-2tb-usb3-ext4 ext4 nosuid,nodev,nofail,users 0 0
UUID=<the UUID of the NTFS disk drive> /mnt/external-hdd-500gb-usb2-ntfs ntfs nosuid,nodev,nofail,users 0 0
This will allow you (upon reboot) to execute for example:
umount /dev/sdX1
as an ordinary user without sudo
.
Additionally, on Linux Mint, there is a Disks GUI, where you can then even power off those drives, I stress: once you unmounted them!, by pressing the Power off this disk button in the top bar, on the right:
edited yesterday
answered yesterday
VlastimilVlastimil
8,3431465145
8,3431465145
Are you sure you need to add yourself to thedisk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup,users
in/etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e.umount
works if the disks were mounted withmount
, not if they were mounted byudisks
or some other mechanism.
– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
add a comment |
Are you sure you need to add yourself to thedisk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup,users
in/etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e.umount
works if the disks were mounted withmount
, not if they were mounted byudisks
or some other mechanism.
– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
Are you sure you need to add yourself to the
disk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup, users
in /etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e. umount
works if the disks were mounted with mount
, not if they were mounted by udisks
or some other mechanism.– Stephen Kitt
yesterday
Are you sure you need to add yourself to the
disk
group? That’s rather dangerous since processes running as you can now write directly to all disk devices. In my setup, users
in /etc/fstab
is sufficient, as long as mounting/unmounting is done consistently — i.e. umount
works if the disks were mounted with mount
, not if they were mounted by udisks
or some other mechanism.– Stephen Kitt
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
@StephenKitt Not sure. I will stress it now, and continue testing tomorrow ok? Too much work today.
– Vlastimil
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
Of course, there’s no rush ;-).
– Stephen Kitt
yesterday
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f508681%2fhow-to-set-fstab-to-be-able-to-umount-my-external-hdds-under-normal-user-account%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