Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hey guys, I want to be able to mount my cdrom drive from the fluxbox menu. As is, I open a terminal, su [password], mount /dev/hdc /mnt/cdrom. Now, what would be the way to do this from the fluxbox menu? I've tried aterm -e su & mount... but nothing seems to work. What would be the way to do this? All I want is to punch in the root password or something and then have it mount, and then have a similar command for eject or umount. Any ideas? -Bill
Well I think most distros add your CD automatically to your /etc/fstab so no need to change anything in there. You can just use the same command as you used before.
To add yourself to the disk group you open /etc/group go to the line disk and add your username behind it. You have to do this as root.
Ok, well I did that - (add myself to disk) but it still says only root can do mount. Well, I edited the sudo file so everyone in wheel can run everything. Now I have a fluxbox question. I made a submenu called mount, with dev/hdc and hdd for my drives. Both have mount and eject options, which work. Now, what I want to know is if theres a way to list the mounts (i.e., the mount command). I did aterm -e mount, but the aterm just closes off. Is there a way to either keep the aterm open after running the mount command, or is there a way to parse the output from mount into the form for the fluxbox menu - [exec] ( ) { } ?
Here's what I did to mine. If you want your drives mounted when you boot, change to 'noauto' to 'auto'. To access the disks without having to su, I added 'users' so anybody in the 'users' group can mount them. The 'rw' is so I can burn to them. If it's a normal cdrom drive change that to 'ro'. I don't know if you can add 'mount' to a menu. Another thing is to check your permissions in /mnt directory. I used 'chgrp cdrom cdrom/' and added myself to the cdrom group in /etc/group. You could also do 'chgrp users cdrom/'. So mine looks like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.