LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2003, 09:21 AM   #1
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Rep: Reputation: 30
How to mount drives from Fluxbox menu?


Hi,
Running fluxbox, I want to mount drives (cd,floppy etc) without having to type the command line stuff in.What would I need to add to the fluxbox menu file?


cheers
Ludwig
 
Old 05-14-2003, 09:52 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Assuming your user(s) can normally mount your devices that you are wishing to have mounted, it's the same simple text:
mount -t iso9660 /dev/cdrom /mnt/cdrom
OR whatever it is your normally type. Your entry in your menu file might look like this:
[exec] (Mount CD) {mount -t iso9660 /dev/cdrom /mnt/cdrom}

And that's it. You'll probably want one to eject afterwards as well if you are trying to avoid the command line.

Something else you might consider looking into would be Supermount or Automount:
http://hints.linuxfromscratch.org/hints/supermount.txt
http://hints.linuxfromscratch.org/hints/automount.txt

Cool
 
Old 05-14-2003, 10:17 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you should really be using fstab fully, and shouldn't normally be able to mount a non-fstabised drive as a normal use, so make sure it's set up in /etc/fstab just right, and then just have the menu command as "mount /mnt/cdrom" or such like.
 
Old 05-14-2003, 10:20 AM   #4
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
thanks for the reply.
The reason that I ask is cos I tried
[exec](Mount CD) {mount /dev/cdrom /mnt/cdrom}
before and it didn't work.
I thought I might have missed something out.
So,I tried your suggestion :
[exec] (Mount CD) {mount -t iso9660 /dev/cdrom /mnt/cdrom}
and still nothing.
Yet if I use the command line and type:
mount /dev/cdrom /mnt/cdrom or
mount -t iso9660 /dev/cdrom /mnt/cdrom

then the cd mounts.

Any ideas?

cheers
Ludwig
 
Old 05-14-2003, 10:25 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Try using full path's to mount (just for kicks). Maybe it's trying to execute it, but doesn't have a path to use. Also, use Chris's suggestion as it will permit a user to mount (nice catch ).

Cool
 
Old 05-14-2003, 10:25 AM   #6
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
you should really be using fstab fully, and shouldn't normally be able to mount a non-fstabised drive as a normal use, so make sure it's set up in /etc/fstab just right, and then just have the menu command as "mount /mnt/cdrom" or such like.
Not quite sure quite what you mean by setting it up right in fstab.The relevant parts of that file are as follows:

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0


does that look right?

PS I can mount ok as a user when in Gnome.

Last edited by ludwig W; 05-14-2003 at 10:26 AM.
 
Old 05-14-2003, 10:28 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That looks right, except no entry for 'users' which will permit any user to mount or umount a filesystem. Also, I don't wanna mess up anything for ya, but I personally would remove that kudzu crap:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,owner,ro 0 0

Cool
 
Old 05-14-2003, 10:34 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Just to make sure, I looked up what kudzu is:
Quote:
Automatic hardware detection on boot

New to Red Hat Linux is Kudzu , a tool that automatically detects any new hardware on your system upon rebooting. A dialog box will appear identifying your new hardware and Kudzu will then ask if you would like to configure the hardware at that time. Kudzu will make it both convenient and easy for you to install and configure new hardware components on your Red Hat Linux system.
Unless you are constantly adding and removing storage devices (IDE) then I think you can safely remove kudzu from those entries. However, if you prefer not to, I doubt it would hurt anything

Cool
 
Old 05-14-2003, 10:47 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"PS I can mount ok as a user when in Gnome."

afaik gnome uses the entries in fstab to decide where to mount the drives, that's what they're for, so everything looks fine. just use the "mount /mnt/drom" command and you should be fine.
 
Old 05-14-2003, 10:58 AM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You could launch the gui tool usermount
 
Old 05-14-2003, 01:54 PM   #11
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
ok.,Ive edited my fstab file to the folowing but I still can't ge the drives to mount: neither the 2 cd drives nor the floppy.But they will mount fine from the command line.
What gives?

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,users,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,users 0 0
 
Old 05-14-2003, 10:55 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
And you are trying to mount them with:
mount /mnt/cdrom
OR
mount -t iso9660 /dev/cdrom /mnt/cdrom

I think if you try the first one you'll have more success...

Cool
 
Old 05-14-2003, 10:58 PM   #13
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
I've tried both and neither seem to work.However,they do work from the command line,which is strange,Just not from the Fluxbox menu.
 
Old 05-15-2003, 03:06 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Do you get into flux by typing 'startx' from a console? If so, after you execute the menu selection, CTRL ALT F1 to your console and see if you can view an error or anything at all relating to it.

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox Menu Sk8trf69 Linux - Newbie 4 07-07-2005 09:03 PM
Fluxbox Menu option for 'Mount' TomalakBORG Linux - Software 9 05-18-2005 12:37 PM
fluxbox menu help cs-cam Linux - Software 3 11-13-2004 08:05 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
FluxBox not in menu Darkseid Linux - Software 2 12-15-2003 07:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:31 PM.

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