You are not logged in.
Hi,
is there a possibility to mount /dev/sdb1 without a password request from Gnome3?
I tried many things in fstab but couldn't find a solution for that.
I don't want to mount this drive at boot because i don't want to spin up the drive every time i boot, but it would be nice to mount it without the requiring of a password.
Last edited by D4ve (2012-08-30 04:18:04)
Offline
it is possible, but this information is also incredibly available and easy to find... did you RTFM? You get this one for free... assuming it is not ntfs-3g driving it (ie mount.ntfs-3g) you can simply add noauto,users and it should do the trick.
Offline
Lol, if it were that easy i would not ask here.
Btw, its an ext4-partition ![]()
Offline
Lol, if it were that easy i would not ask here.
I don't think lol is an appropriate response. At least, not a politic one. Evidently you *did* ask here. Had you not done so, I doubt that WonderWoofy would have bothered to reply.
Btw, its an ext4-partition
So I take it you have your answer. Please mark the thread [solved].
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I don't think lol is an appropriate response. At least, not a politic one. Evidently you *did* ask here. Had you not done so, I doubt that WonderWoofy would have bothered to reply.
Pardon, i didn't want to attack someone.
I just wanted to say, that of course i read the manual, the Arch-Wiki, the Ubuntu-Wiki and a few posts i found via a searchengines about this topic.
So RTFM is not an answer that helps me.
EDIT: My problem is not solved. I tried following entry in my fstab and it didn't work:
/dev/sdb1 /media/Datengrab auto noauto,users 0 2Of course i tried a few other combinations, but nothing changed ![]()
Last edited by D4ve (2012-08-28 01:51:44)
Offline
So what did you try? Your question is way too vague for me to have assumed that you tried other things. So if you want an aswer teh *helps* you try asking it in a more intelligent way, yeah?
Offline
So what did you try?
I tried:
/dev/sdb1 /media/Datengrab auto noauto,users 0 2
/dev/sdb1 /media/Datengrab auto noauto,users,x-gvfs-show 0 2
/dev/sdb1 /media/Datengrab auto noauto,users,noexec 0 2
/dev/sdb1 /media/Datengrab auto noauto,users,ro 0 2
(Of course not at once)
So if you want an aswer teh *helps* you try asking it in a more intelligent way, yeah?
I'll try to do that but (no, thats no excuse) writing text in english is hard for me. So i write short sentences and provide only information that is absolutely necessary.
But i try to fix that, still learning english every day.
Offline
If you know it's an ext4 partition, why are you using "auto" for the filesystem type?
And if you're not attached to fstab, there's always pmount, and many other mount utilities out there (did you see them in your search?)
(edit) I have a shared data partition. It's formatted reiserfs. I usually mount it at boot with this line in my fstab:
/dev/sda8 /media/shared reiserfs defaults 0 2I just tried this instead:
/dev/sda8 /media/shared reiserfs noauto,users 0 2And when I rebooted, as expected the partition was not mounted. But if I did this:
mount /dev/sda8It mounted without asking for a password.
Last edited by 2ManyDogs (2012-08-28 02:21:27)
Offline
If you know it's an ext4 partition, why are you using "auto" for the filesystem type?
Well, do you know "palimpsest"? Its a tool installed by gnome-shell and could theoretical manage all the fstab-related stuff. And the tool said "auto" for filesystem-type ![]()
I don't know if this changes anything, but I try it.
And if you're not attached to fstab, there's always pmount, and many other mount utilities out there (did you see them in your search?)
It's possible to do that with fstab, so why install another program for the same function?
Offline
Read my edits.
It's possible to do that with fstab, so why install another program for the same function?
Again, you're not being specific enough in your request for help. You asked if there was a way to do this. You didn't say you needed to do it with fstab. I said "if you're not attached to fstab" -- obviously you are. We're giving you options. For me, it's just easiest to do this with "mount" and type my password, or mount the partition at boot.
Last edited by 2ManyDogs (2012-08-28 02:25:32)
Offline
I'll try to do that but (no, thats no excuse) writing text in english is hard for me. So i write short sentences and provide only information that is absolutely necessary.
But i try to fix that, still learning english every day.
Sorry, twas a moment of frustration.
Offline
Well, do you know "palimpsest"? Its a tool installed by gnome-shell and could theoretical manage all the fstab-related stuff. And the tool said "auto" for filesystem-type
It's possible to do that with fstab, so why install another program for the same function?
So why are you trying to use this palimpsest if you don't want to use another program for an alreadyin cluded function? I don't get it... how is palimpsest better than pmount?
Offline
Aehm, okay:
If i mount /dev/sdb1 over nautilus i must enter my password.
If i mount /dev/sdb1 over "mount" in a terminal, it works without a password request.
So, it seems like a bug in gnome-shell or nautilus or the gvfs utilities. Didn't expect that.
Sorry, twas a moment of frustration.
I think i know why, so again sorry for my behavior.
EDIT:
So why are you trying to use this palimpsest if you don't want to use another program for an alreadyin cluded function? I don't get it... how is palimpsest better than pmount?
I did not say its better. Palimpsest is included in gnome-shell so i tried it out after getting frustrated with fstab. But palimpsest is only a fronted with a few extra-features for fstab and the result was the same.
Last edited by D4ve (2012-08-28 02:41:36)
Offline
I think if youwant to mount without root in nautilus, you need gvfs... it is implemented by the fuse layer though.
Offline
I think if youwant to mount without root in nautilus, you need gvfs... it is implemented by the fuse layer though.
Gvfs and fuse are already installed, i'm not sure but i think the two packages are dependencies of gnome-shell (or nautilus or whatever)
(I edited my previous post a few minutes ago, please read it too)
Offline
So I no longer use gvfs, or anything gnome really, but when I did use it (albiet with thunar) it took no configuration whatsoever. But I did notice that what you put in your fstab seemed to change whether it showed up in thunar or not. Not sure if it is teh same for gnome/nautilus, but I recall (it was a while ago) using something in fstab to have things like my efi system partition not show up. when I was using a Mac. I mainly used the gvfs-smb package though, so I am unsure where to go from here.
Offline
Perhaps you can try ldm...lightweight device mounter... it is in the aur and can be utilized as user AFAICT
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Not sure if it is teh same for gnome/nautilus, but I recall (it was a while ago) using something in fstab to have things like my efi system partition not show up. when I was using a Mac.
Well, i found something like that for nautilus: if "x-gvfs-show" is used as option, the partition will show up in nautilus. If not, then you won't see it ![]()
EDIT: "gvfs-mount -d /dev/sdb1" works as user
Last edited by D4ve (2012-08-28 03:43:24)
Offline
So still no go with mounting nautilus as user huh? How is it that you are starting gnome? are you using gdm, or are you logging in through the console with startx?
Offline
So still no go with mounting nautilus as user huh? How is it that you are starting gnome? are you using gdm, or are you logging in through the console with startx?
I use the gdm.service file provided for use with systemd and the service file executes: "/usr/sbin/gdm -nodaemon".
I tried another entry in fstab with my uid and gid:
/dev/sdb1 /media/Datengrab ext4 noauto,users,uid=1000,gid=100 0 2Unfortunately it didn't work ![]()
Offline
I could be way off here but I thought I read recently that gnome was now using /run/media, or have I imagined that? I don't use gnome either so I can't confirm this from my own system but does it work any better if you use /run/media/Datengrab?
Note: you really don't want to set uid and gid as it will mount the file system with that user and group. (Unless that's what you want, of course.)
Also, your English is infinitely better than my German. Still, you need to provide information when you post here in order for people to help you (and not get irritated/frustrated). As long as what you say can be understood, people won't much care whether you've said it correctly. This is especially true if you put something in your signature to the effect that English isn't your first language and you apologise for any errors. Then people know you're not just being careless or not respecting them but are trying to communicate in a language which isn't ideal for you. I'm not suggesting you should feel compelled to do this but I have seen other people do it and I suspect that it avoids getting people unnecessarily irritated. Lots of native speakers just don't bother and that's what gets people irritated.
Remember, too, that information can be as simple as:
Here's what I've tried:
1. <code>
<output>
2. <code>
<output>
Just pass LC_ALL=C before your commands and you'll have English output to post.
Last edited by cfr (2012-08-29 00:12:15)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
@cfr
I do believe you are correct with the /run/media speculation. I remember thinking where the f*ck did it put it, and had to list mounts to find it. But I think what he is referring to (and I could be wrong) is opening up nautilus and seeing the removable media and other partitions in the left column, then being able to, as a regualr user, click and have it mount. I was pretty sure this is done by gvfs since I was pretty sure that gvfs stood for gnome virtual file system, but he is saying that does not do the trick as he already has it installed.
@D4ve
Your English is better than mine is when I am carelessly typing, so I think you have no need to fear not being understood. The only challenge in understanding you is your intensely vague descriptions...
Offline
Ah. Sorry - I think you're right. I guess I was thinking it might confuse things if fstab thinks it should be in a different place than gnome looks for it. But probably it is supposed to work, in that case, with no fstab line at all?
Is anything in this thread relevant? It isn't about gnome but it seems to concern a similar issue with Nautilus.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
You may be on to something there with the whole confusing via specified mountpoint... so D4ve, what happens when you put 'none' as the mountpoint for you fstab line? I figure if you still have 'users', you will still be able to mount as user from the command line, you just ahve to then also specify a mount point for it. Though I am not sure if you would consider that ideal. To me I just enter my password and whatnot every time, and think nothing of it.
Offline
So, let's begin:
I could be way off here but I thought I read recently that gnome was now using /run/media, or have I imagined that? I don't use gnome either so I can't confirm this from my own system but does it work any better if you use /run/media/Datengrab?
That's true, gnome uses /run/media/$USER/$LABEL as mountpoint. I tested this too, but didn't change anything.
Note: you really don't want to set uid and gid as it will mount the file system with that user and group. (Unless that's what you want, of course.)
Well, i tried that with a little hope of success, but (of course...) it didn't change anything
Also, your English is infinitely better than my German.
That's no wonder, my native language is german (better: bavarian)
Lots of native speakers just don't bother and that's what gets people irritated.
Yeah, that's true. For me, i hate when people write german and don't use german grammatics/syntax or ignoring lowercase/uppercase. Probably this is the reason why i try to not make mistakes in english.
Just pass LC_ALL=C before your commands and you'll have English output to post.
As i changed my initprocess to systemd, i've set my locale to en_US.UTF-8, so i think i can ignore that. Only my keyboardlayout is german.
The only challenge in understanding you is your intensely vague descriptions...
Yes, i know (people point me out that sometimes)
You may be on to something there with the whole confusing via specified mountpoint... so D4ve, what happens when you put 'none' as the mountpoint for you fstab line?
If i put "none" as mountpoint, mount complains:
$ mount /dev/sdb1
mount: mount point none does not exist
$ mount /dev/sdb1 /media/Datengrab
mount: only root can do thatAnd i can't see my partition in nautilus anymore.
If i set "/media/run/$USER/Datengrab" as mountpoint, i can mount from terminal without any erros, but in nautilus i must still enter my password.
Offline