LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-16-2005, 08:14 PM   #1
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Rep: Reputation: 30
Fluxbox Menu option for 'Mount'


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
 
Old 05-16-2005, 08:32 PM   #2
funkydan2
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: VectorLinux; Ubuntu
Posts: 135

Rep: Reputation: 15
Do you really want the root user to be the only person who can mount/unmount your cdrom drive?

If 'yes', then you could investigate using gksudo or kdesu (depending which is installed on your system).

If 'no', then after editing /etc/fstab, you'd only need to have {mount /mnt/cdrom} and it should do the trick.

Daniel
 
Old 05-17-2005, 03:05 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You can add yourself to the disk group so you can mount and unmount CDs and hard disks as well. Then you can just use the mount command.
 
Old 05-17-2005, 09:45 AM   #4
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Original Poster
Rep: Reputation: 30
How do I add myself to the disk group, and what modifications should I make to /etc/fstab? -Bill
 
Old 05-17-2005, 10:26 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
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.
 
Old 05-17-2005, 07:43 PM   #6
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Original Poster
Rep: Reputation: 30
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] ( ) { } ?

-Bill
 
Old 05-17-2005, 09:00 PM   #7
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
You can try to list your mounts with :
Code:
cat /etc/mtab
 
Old 05-18-2005, 07:17 AM   #8
TomalakBORG
Member
 
Registered: Dec 2004
Posts: 245

Original Poster
Rep: Reputation: 30
Ok, but will that keep the aterm open, or pop up a message box?

See, I'm running this command from the fluxbox menu. I really need something to come up and STAY up with the list of mounts. -Bill
 
Old 05-18-2005, 12:04 PM   #9
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Maybe you are looking for a light program like Xdiskusage(http://xdiskusage.sourceforge.net/)
 
Old 05-18-2005, 12:37 PM   #10
Croaker
Member
 
Registered: Sep 2004
Location: Oklahoma City, OK
Distribution: Slackware 12.1
Posts: 41

Rep: Reputation: 15
/etc/fstab
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,users,rw        0   0
/dev/dvd         /mnt/dvd         iso9660     noauto,users,rw        0   0
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:
Code:
drwxr-xr-x  2 root cdrom  48 2002-03-16 01:34 cdrom
drwxr-xr-x  2 root cdrom  48 2005-05-15 10:29 dvd
Hope that helps out some
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
No antialias option in fluxbox Dswissmiss Linux - Software 7 10-03-2004 12:02 PM
boot option menu teh_truth Linux - Newbie 16 05-25-2004 04:51 PM
gdm no option for fluxbox b0rcked Debian 14 05-02-2004 02:02 PM
How to mount drives from Fluxbox menu? ludwig W Linux - General 13 05-15-2003 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration