Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I can't get my usb drive to mount from my user account. It says that only root can do that. Before I re-installed, I could use uid=adam in the fstab to allow me to mount, but that isn't working anymore.
ls -l /mnt
drwxr-xr-x 2 adam adam 1536 Jun 5 23:07 usb_drive
Unless I am sorely mistaken, you are only allowed one entry in fstab per device. Otherwise, you create a conflict of some kind. Even if thay seem to be one and the same. Your fstab has 2 entries for the same device. Try commenting out 1 of the lines (add the # before the line) and see if that works. If it does not, remove that # and add it to the next line. Then try again.
If both of those fail, try editing fstab. Change owner to user, so that the logged-in user has permission to mount. You could also try changing owner to users, so that members of the users group have permission.
Sorry for the confusion, but I meant that I had tried without it working
/dev/sda1 /mnt/usb_drive vfat noauto,uid=adam 0 0
then i changed it to
/dev/sda1 /mnt/usb_drive vfat noauto,owner 0 0
and it still didn't work
While changing owner to user or users works, i thought that using uid=adam should have worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.