MEPISThis forum is for the discussion of MEPIS Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
As you can see in the subject field, I am asking how to mount my USB pendrive form a terminal? I know that Mepis has an automount feature for such devices, but I created a user profile for my mom, and I didn't give mount rights for her. To be clear, I don't want to give mount rights for her. This user profile also works as an internet browsing profile too, so this little restriction makes the system more secure (there are some personal data on other partitions). So: the automount function doesn't work any more. I tried the mount command, but it says there is no such device or it is not in the fstab. I tried the mount command of course as root. Some months ago I was given an advice not to add entries for pendrives into the fstab, so I didn't add anything. So, my question: how to mount my pendrive from console (using root mode), without adding mount permissions to user profile, without adding anything to fstab and without typing kilometer long commands? Thanks for reading, and trying to answer.
Assume the pendrive is /dev/sda1 and you want to mount it at /media/pendrive, then you should be able to mount it as a priveleged user with
Code:
mount /dev/sda1 /media/pendrive
There is a wrapper called pmount that, IIRC, the Debian folks created to allow non-priveleged users to mount things such as pendrives. This might be something you want to install for mom. If you use pmount, the command would be
Code:
pmount /dev/sda1 /media/pendrive
Additionally, you might want to create and alias so mom doesn't need to type so much
Code:
alias pen='mount /dev/sda1 /media/pendrive'
Then mom just executes the command pen to mount the pendrive.
Could read writing udev rules and allow her to mount that one particular pen drive . thats what i do for my wife and debian auto mounts it but she can't mount anything else (like my usb drive) and i can't mount hers. The beauty of this is limiting access but still allowing the automount features.
edit
Think mounting is something like:
sudo mount -t vfat /dev/sda1 /mnt/mountpoint
just make sure the mountpoint exist. this should work if you don't want a fstab entry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.