stark

scrots sorted by users. create your own thread if you wish so ;)
machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: stark

Unread post by machinebacon » Sun Mar 15, 2015 8:28 pm

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
or fstab entries can do a lot :)
..gnutella..

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: stark

Unread post by machinebacon » Sun Mar 15, 2015 8:32 pm

Oh and I want to add the fabulous

Code: Select all

sudo apt-get install gnutils
sudo gitmount /dev/sdb2

sudo apt-get install mountpy
sudo mountpy
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:

Code: Select all

sudo apt-get install disk-manager
gksudo disk-manager
Maybe stark (or whoever) wants to add this to the wiki?
..gnutella..

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: stark

Unread post by rhowaldt » Sun Mar 15, 2015 11:17 pm

^^ 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 :)
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.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: stark

Unread post by machinebacon » Mon Mar 16, 2015 2:57 pm

pmount, IIRC; only does USB devices, but I may be wrong. :)

thanks for editing the wiki
..gnutella..

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: stark

Unread post by Dr_Chroot » Mon Mar 16, 2015 3:15 pm

stark wrote:^ Yep and its doable with most wms too! Remember ?
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.

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

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: stark

Unread post by machinebacon » Tue Mar 17, 2015 11:28 am

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
..gnutella..

User avatar
kexolino
Common Boob
Posts: 557
Joined: Sun Jun 16, 2013 1:57 pm

Re: stark

Unread post by kexolino » Tue Mar 17, 2015 12:42 pm

machinebacon wrote:pmount, IIRC; only does USB devices, but I may be wrong. :)
Also with SD cards (with a laptop's card reader). Does that count as the same thing?

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: stark

Unread post by Dr_Chroot » Tue Mar 17, 2015 3:05 pm

^^ 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

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: stark

Unread post by wuxmedia » Tue Mar 17, 2015 3:17 pm

nope, one doesn't - then, ARRGH!
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: stark

Unread post by stark » Sat Mar 21, 2015 9:10 pm

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

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: stark

Unread post by pidsley » Sat Mar 21, 2015 10:10 pm

In .bash_aliases:

Code: Select all

alias mt='sudo mount'
alias umt='sudo umount'
In /etc/sudoers (use visudo):

Code: Select all

%sudo ALL=NOPASSWD /bin/mount, /bin/umount
Then this works with no password:

Code: Select all

mt /dev/sda8 /media/shared
Make another alias if you do it a lot. I have this for my backup usb stick:

Code: Select all

alias mtusb='mt /dev/sdb /media/8Gusb'

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: stark

Unread post by rhowaldt » Sat Mar 21, 2015 11:35 pm

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

Code: Select all

mt /media/shared
(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 ;)
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.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: stark

Unread post by machinebacon » Sun Mar 22, 2015 12:51 am

..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: stark

Unread post by stark » Sun Mar 22, 2015 8:32 am

^ 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*
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: stark

Unread post by wuxmedia » Sun Mar 22, 2015 1:16 pm

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".
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: stark

Unread post by stark » Sun Mar 22, 2015 1:46 pm

^ 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

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: stark

Unread post by stark » Wed May 13, 2015 11:06 am

Here's the link to the details in /r/unixart: http://ow.ly/MU1d8
Attachments
evabream.png
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

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: stark

Unread post by dkeg » Wed May 13, 2015 11:18 am

that's really nice stark. Good job!

Work hard; Complain less

User avatar
simgin
Meme Fodder
Posts: 1167
Joined: Sun Jan 06, 2013 12:07 am
Location: Bradford-on-Avon, UK

Re: stark

Unread post by simgin » Wed May 13, 2015 11:48 am

Awesome work Stark o.O

cheers
simon
Someone told me that I am delusional, I almost fell off my unicorn.

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: stark

Unread post by rhowaldt » Wed May 13, 2015 1:10 pm

linkin park? ;)

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.

Post Reply