or fstab entries can do a lot :)rhowaldt wrote:just in case you didnt see it, check out the wiki article on mounting, it might be of use: http://linuxbbq.org/wiki/index.php/Mount
stark
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: stark
..gnutella..
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: stark
Oh and I want to add the fabulous
the latter mounts everything in one command, might be exactly what most people need (careful, depends on python)
If you like GUI tools for easy one-click tasks:
Maybe stark (or whoever) wants to add this to the wiki?
Code: Select all
sudo apt-get install gnutils
sudo gitmount /dev/sdb2
sudo apt-get install mountpy
sudo mountpy
If you like GUI tools for easy one-click tasks:
Code: Select all
sudo apt-get install disk-manager
gksudo disk-manager
..gnutella..
Re: stark
^^ ja, that article has both some info on fstab entries (obviously got my info from the Arch wiki but it gives some good real-world examples as that is how i have my fstab set up), and talks about mounting with r/w perms as regular user.
the suggestions for mountpy are good too, i think pmount is mentioned on the wiki as a good replacement.
consider the extra info added to the wiki :)
the suggestions for mountpy are good too, i think pmount is mentioned on the wiki as a good replacement.
consider the extra info added to the wiki :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: stark
pmount, IIRC; only does USB devices, but I may be wrong. :)
thanks for editing the wiki
thanks for editing the wiki
..gnutella..
- Dr_Chroot
- Alfalfa
- Posts: 1100
- Joined: Mon Jun 09, 2014 9:49 pm
- Location: among the sagebrush
- Contact:
Re: stark
I completely forgot about that! I usually have things like that bookmarked, but I lost them all when I screwed things up. This is great; not that I really have too much of a use for it at the moment. I was thinking that this would allow me to just completely remove borders on evilwm and then use this instead, which would be nice :D I'm working on a Gentoo install at the moment (fun in its own way) will definitely try to put this to good use.stark wrote:^ Yep and its doable with most wms too! Remember ?
And thanks for (albeit in a roundabout way) finally teaching me how to mount my Windows partitions ;) mountpy is amazing; just started playing with it. Thanks MB! I renamed it mounty-python in my /usr/bin :D
Fight internet censorship.
EFF | Tor Project | Bitcoin
"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden
EFF | Tor Project | Bitcoin
"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: stark
Dr, this one time I allow you renaming an executable. For the future, please either use an alias in your bash/zsh, or a bash wrapper script in /usr/local/bin or create a symlink :) Or even better: rename it back to mountpy, you never know what the next update brings :sweet_smile:
Btw, there is also umountpy
Btw, there is also umountpy
..gnutella..
- Dr_Chroot
- Alfalfa
- Posts: 1100
- Joined: Mon Jun 09, 2014 9:49 pm
- Location: among the sagebrush
- Contact:
Re: stark
^^ Thank you! Dr_Clueless has been educated again... I should have thought of adding a bash alias! I hadn't even thought of upgrades :/
Fight internet censorship.
EFF | Tor Project | Bitcoin
"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden
EFF | Tor Project | Bitcoin
"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden
Re: stark
Thanks so much everyone ! I used to do it the fstab way but then I noticed I don't always need the data partition hence the bloat. Looks like I need to compile both gnutils and mountpy from source, Debian +1 :D
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: stark
In .bash_aliases:
In /etc/sudoers (use visudo):
Then this works with no password:
Make another alias if you do it a lot. I have this for my backup usb stick:
Code: Select all
alias mt='sudo mount'
alias umt='sudo umount'
Code: Select all
%sudo ALL=NOPASSWD /bin/mount, /bin/umount
Code: Select all
mt /dev/sda8 /media/shared
Code: Select all
alias mtusb='mt /dev/sdb /media/8Gusb'
Re: stark
pids, do you have a particular reason for staying away from fstab? because i would have /media/shared defined in my fstab (without automount) so i could just type
(lazy, i know)
i was just wondering whether you have reasons to stay away from fstab that i should know about so i might stay away as well ;)
Code: Select all
mt /media/shared
i was just wondering whether you have reasons to stay away from fstab that i should know about so i might stay away as well ;)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: stark
WHat all others said, and this http://linuxbbq.org/bbs/viewtopic.php?f=15&t=1012
..gnutella..
Re: stark
^ Awesome, Thanks again guys !
I have just this one question regarding permissions as I don't fully understand how they are handled or work. When I use sudo to mount a device or partition, will the permissions get messed up when I write to it ? If not when do permissions get messed up ?
Apologies for being such a pain in the *arse*
I have just this one question regarding permissions as I don't fully understand how they are handled or work. When I use sudo to mount a device or partition, will the permissions get messed up when I write to it ? If not when do permissions get messed up ?
Apologies for being such a pain in the *arse*
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: stark
mount as sudo/root is obligatory, how you mount the thing is where the perms come from.
if you can write to it then thats fine, I find NTFS doesn't really care that much, basically the perms are wide open (777)
Also depends on how the dirs are set (look up sticky bit) and who you are writing as.
Normally you write as root, the files are owned as root:root.
ie; at work have to remember to chown test files back to the user:group otherwise user cannot remove them :)
When sticky bit set on for user 'bob', 'touch file' as root, written as bob
Can be set for groups also, this is how we maintain half decent permission for WP installs, instead of some developers using 777 "welcome all malware".
if you can write to it then thats fine, I find NTFS doesn't really care that much, basically the perms are wide open (777)
Also depends on how the dirs are set (look up sticky bit) and who you are writing as.
Normally you write as root, the files are owned as root:root.
ie; at work have to remember to chown test files back to the user:group otherwise user cannot remove them :)
When sticky bit set on for user 'bob', 'touch file' as root, written as bob
Can be set for groups also, this is how we maintain half decent permission for WP installs, instead of some developers using 777 "welcome all malware".
Re: stark
^ Woah, Thanks for the brief explanation. Weirdly enough, all the writes and modification that I have done on the data partition are owned by the regular user.
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: stark
Here's the link to the details in /r/unixart: http://ow.ly/MU1d8
Last edited by stark on Wed May 13, 2015 5:10 pm, edited 1 time in total.
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu
Re: stark
linkin park? ;)
supernice stark! really impressive :)
supernice stark! really impressive :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.