Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount Location #186

Closed
JP-Ellis opened this issue Jan 20, 2015 · 6 comments
Closed

Mount Location #186

JP-Ellis opened this issue Jan 20, 2015 · 6 comments
Assignees

Comments

@JP-Ellis
Copy link

Tomb always seems mounts to /media/file.tomb/; however, udisks2 changed the default mount location to /run/media/$USER/ and in fact, /media/ is not even present on my system (unless Tomb creates it). It would be good if Tomb uses the system's default mount location.

And whilst we're discussing mount location. Would it be possible to set a default mount location embedded with the file? So for example tomb set-default-mount ~/abc.tomb ~/abc so that subsequently tomb open ~/abc.tomb will mount to ~/abc by default.

And one last point. Mounting currently is all done manually with mount; but have you considered using udevil mount or other similar tools which permits users to mount partitions without sudo?

PS: All suggestions are in one, but if you wish to follow them individually, I can make separate issues.

@jaromil
Copy link
Member

jaromil commented Jan 21, 2015

hi JP-Ellis

mount location (bug)

Thanks for signaling that, I haven't used udisks2 yet on any of my systems. Will add a check: if /media does not exists then look for /run/media/$USER and use that if existing.

set-default-mount (won't fix)

There are no "external" options set in Tomb, which is in fact leaving no trace of its use. I have researched the opportunity of appending options at end of tombs, which works with LUKS on my setups, but I'm afraid that may break some compatibility in future. Needs more research.

Said that, I think your problem doesn't needs fixing: you can simply use bind-hooks to have directories in place where you want them, at the cost of having one subdir in a tomb.

udevil

Interesting! didn't knew it, will look into that. Making users able to access their tombs on a system where they have no root access is one of the goals of Tomb, that's also why we have sudo as a dependency. Please keep us posted if you run experiments on udevil.


ciao

@jaromil jaromil self-assigned this Jan 21, 2015
@Narrat
Copy link
Collaborator

Narrat commented Jan 21, 2015

Will add a check: if /media does not exists then look for /run/media/$USER and use that if existing.

That must not be the case. Since this typically is some kind of tmpfs

run on /run type tmpfs

If /media cannot be found it should switch to /run/media/$USER and create it (the /media/$USER part) if it doesn't exist yet (which could be likely after a reboot).

As for udevil it should be noted that it is currently unmaintained.

@jaromil
Copy link
Member

jaromil commented Jan 21, 2015

ACK. Thanks for the pointers.

@JP-Ellis
Copy link
Author

Thanks for having a look at this.

That is correct regarding the /run, ./media/$USER may not exist and needs to be created.

Regarding udevil, I realise it is now unmaintained; however, it is featured fairly prominently on Arch Linux' Wiki as a mount helper. Additionally, it seems that the reason it is no longer maintained is not due to it becoming unviable, but more to do with the main developer going on some hiatus, so perhaps someone else will start maintaining it?

There's always the possibility of using other mount helpers, though I don't know of any others (nor have I looked for others really).

@jaromil
Copy link
Member

jaromil commented Jan 21, 2015

True that unmaintained software sometimes simply means that it is written so well and farsighted that does not needs updates. Actually, I wish most software we use would be like that ;^)

If you like to follow up on udevil please open another issue.

@JP-Ellis
Copy link
Author

I might have a look around and see what I can do with udevil, and if I succeed at all, I'll create a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants