Click to See Complete Forum and Search --> : How to mount drives from FLUXBOX menu?


ludwig1
05-14-2003, 10:20 AM
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:)

Cuthbert
05-14-2003, 01:30 PM
I would guess you could add

[exec] (mount floppy) {mount /mnt/floppy}

and

[exec] (mount cdrom) {mount /mnt/cdrom}

Should work if the devices are user mountable.

ludwig1
05-14-2003, 03:02 PM
Well I have this in my fluxbox menu:

[submenu] (Drives)
[exec](Mount Floppy) {mount /dev/fd0 /mnt/floppy}
[exec](Mount CDRW) {mount /dev/cdrom1 /mnt/cdrom1}
[exec](Mount DVD) {mount /dev/cdrom /mnt/cdrom}

and they won't mount (I look in /mnt/cdrom and don't see any files there).

The drives are user mountable becasue my fstab looks like:

/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 and I can mount stuff in gnome.Also,I can mount the drives by using the command line and the commands
#mount /dev/fd0 /mnt/floppy etc but not from the fluxbox menu.

Any ideas?

cheers
Ludwig

crow2icedearth2
05-14-2003, 05:51 PM
what i do is i have bbsmount on mine........it is way easy to use that then have a terminal to type that into .....i use terminals for compile , etc ........ when in x ........ do a search for bbtools on www.google

ludwig1
05-14-2003, 08:58 PM
Should work if the devices are user mountable

How can you make the devices user mountable?


cheers
Ludwig

gleather
05-14-2003, 09:16 PM
Here is one of mine

/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0


Perhaps you should take out 'owner'.

ludwig1
05-14-2003, 09:17 PM
thanks :)
I'll try that :)

ludwig1
05-14-2003, 09:32 PM
still no go,I'm afraid :confused:

joesbox
05-14-2003, 10:23 PM
check to see if your usergroup is "users". i know mine is my username. might that have something to do with it??
<no sarcasm>

Cuthbert
05-15-2003, 08:43 AM
I just put this in my fluxbox menu and it works:

[exec] (mount floppy) {mount /mnt/floppy}
[exec] (mount cdrom) {mount /mnt/cdrom}

Here is my fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/hda8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

ludwig1
05-15-2003, 09:13 AM
if I try and mount from the command line as a user,it tells me that I ahve to be root to use mount.

Isn't that a bit strange considering that my fstab looks the way it does above ?

Shouldn't any user be able to mount with the way I have my fstab?


Ludwig



:confused:

terribleRobbo
05-15-2003, 09:33 AM
Originally posted by Cuthbert

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

Erm, I would have changed 'owner' to 'user'.

But, erm, I'm a newbie. :S

ludwig1
05-15-2003, 09:46 AM
yes,I've done that as someone suggested above.
My fstab looks like

/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,users 0 0

and I still can't mount stuff except as root :confused:

n00bie
05-15-2003, 10:03 AM
Originally posted by ludwig1
Well I have this in my fluxbox menu:

[submenu] (Drives)
[exec](Mount Floppy) {mount /dev/fd0 /mnt/floppy}
[exec](Mount CDRW) {mount /dev/cdrom1 /mnt/cdrom1}
[exec](Mount DVD) {mount /dev/cdrom /mnt/cdrom}

I know this is pretty dumb and I am just comming off stupid...
But.. You need space between [exec] and (Mount Whatever) :confused:

ludwig1
05-15-2003, 10:20 AM
well,it can often be simple things like that ......but not in this case,I'm afraid.

Thanks for the idea though :)

C_Pac
05-16-2003, 03:54 PM
Did you check the permissions on /dev/cdrom and /mnt/cdrom?