You are not logged in.
Pages: 1
Hey, i just used my friends mandrake computer the other day and i noticed all his cds auto mounted without the need to type mount /mnt/cd I think this is becasue mandrake has some program called supermount? I might be wrong but i think thats what it was. Is there any way to get my gnome 2.8 desktop to auto mount all my cds right when i enter them like in windows?
Offline
Try using submount; it's similar to supermount but it doesn't need kernel patching.
It's in punkrockguy318's TUR.
Arch GNU/Linux 0.7 Trusted User
"If I were more modest, I would be perfect"
Offline
Hi madhattr.
You can download and install via pacman the autofs package. This provices a startup script for automount.
This is not exactly the same as the Mandrake supermount, but it provides most of the relevant functionality.
[BTW: Much of he following is taken the autofs entry in the Libranet support archives:http://libranet.com/support/2.8/0381]
Install the autofs package.
As root edit the file /etc/auto.master. Delete the existing contents of the file and add the following line:
/media /etc/auto.media
Create the file /etc/auto.media with the following contents:
cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdroms/cdrom0
floppy -fstype=auto,sync,nodev,nosuid,umask=000 :/dev/floppy/0
You will need to adjust the CD-ROM device (/dev/cdroms/cdrom0 above) to match the device of your CD-ROM drive.
If you have additional CD-ROM devices you can add them as well. For example, to add a second cdrom you could add an entry similar to the following to /etc/auto.media:
cdrom1 -fstype=iso9660,ro,nodev,nosuid :/dev/cdroms/cdrom1
Create the file /etc/default/autofs and add the TIMEOUT line to the following:
TIMEOUT=1
Create the /media directory with the following command:
mkdir /media
Finally, start the autofs daemon by running the following command as root:
/etc/rc.d/autofs start
You can also add 'autofs' to the DAEMONS list in /etc/rc.conf.
Devices will be mounted when accessed. For example, to access the CD-ROM, you would browse to the /media/cdrom directory. The device will stay mounted as long as you are accessing it.
Note: If you browse to the /media directory in a file manager, you will not see directory entries for the cdrom and floppy. These entries will only be created when you access them. This means that in the file browser you will need to type in, or create a link to, the access point to access the CD-ROM or floppy using the automounter.
Good luck!
Win
Offline
Offline
wow, if this isn't in the wiki, it should be
I'll do it.
Dusty
Offline
Note that for the arch package there is an /etc/autofs directory with the config files. Instead of /etc/auto.media use /etc/autofs/auto.misc.
Offline
whoooooaaaaaaaaaaaaaaaaaaaa complicated
if you have gnome 2.6 or 2.8, how about just going to Desktop prefs -> CD & DVD and activating the auto mounting
You'll probably also need to start hal and dbus (/etc/rc.d/hal start for example, and adding them in /etc/rc.conf).
Offline
http://wiki.archlinux.org/index.php/AutoFS%20HOWTO
Test, correct, and edit. I didn't actually try it (typing mount /mnt/cdrom works fine for me ); its based on Win's post with paths changed based on colnago's.
Dusty
Offline
Submount seems way easier... just put fstype in fstab to submt...
Anyways, I rebuilt my submount pkg for 2.6.9... If your using 2.6.8.1, then wait..
If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing. 1 Corinthians 13:2
Offline
If you build your own kernels you can easily patch the kernel source and enable it yourself. I did it this evening just to check...
For 2.6.9 you can download the supermount patch here http://ck.kolivas.org/patches/2.6/2.6.9 … ng207.diff
Then copy supermount-ng207.diff into your kernel source directory and apply it like this
patch -p1 <supermount-ng207.diff
Enable it under pseudo filesystems and edit your fstab.
Offline
If you build your own kernels you can easily patch the kernel source and enable it yourself. I did it this evening just to check...
For 2.6.9 you can download the supermount patch here http://ck.kolivas.org/patches/2.6/2.6.9 … ng207.diffThen copy supermount-ng207.diff into your kernel source directory and apply it like this
patch -p1 <supermount-ng207.diff
Enable it under pseudo filesystems and edit your fstab.
Can this be applied to the nitro kernel 2.6.9 as well? I havnt tried nitro b4, but i was wondering if i can add this command in the PKGBUILD?
thankx
Offline
nitro includes supermount. but submount is just the same, only in user space.
Offline
Hey, i followed the wiki and it worked great!
I am woundering though what i need to add to my /etc/auto.media to get my second ide hd to show up! here is my fstab:
/dev/discs/disc0/part3 / ext3 defaults 0 1
/dev/discs/disc0/part1 /boot ext2 defaults 0 1
/dev/discs/disc0/part2 swap swap defaults 0 0
Offline
Your hard drive can go in /etc/fstab, can't it? It's not removeable media or anything (IDE hard drives aren't, usually...).
Something like this, perhaps, in fstab?
/dev/discs/disc1/part1 / ext3 defaults 0 1
That loads disc1 instead of disc0, which should be your second hd... it depends on how the devices are set up though.
Dusty
Offline
also i seet my cdrom drive in /media but how do make a ln to my computer folder
Offline
also i seet my cdrom drive in /media but how do make a ln to my computer folder
AFAIK, the computer folder in gnome reads the contents of /etc/fstab, so if your cdrom is in there, gnome will see it (and with gnome-volume-manager and all that nifty stuff, you don't need supermount and that /media stuff)
Offline
I would reccomend hal/dbus/and a volume manager over submount/supermount/autofs. Ivman is still in early development, so I would reccomend Gnome-volume-manager.
If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing. 1 Corinthians 13:2
Offline
Hi! I'm being driven mad by autofs. When I `/etc/rc.d/autofs start', it tells me "/media" and says "DONE", but then it doesn't work and no automount process seems to exist. When I try `/etc/rc.d/autofs stop', it FAILS (presumable because nothing actually started). I managed to find out that the command which the rc.d script was running is `/usr/sbin/automount --pid-file=/var/run/autofs/_:media.pid --timeout=3 /media file /etc/autofs/auto.media'. I run this, and again, nothing. No new process called 'automount'. Am I wrong to expect this? When I run the aformentioned command with -v, I still get nothing.
My auto.media file looks like this
dvd -fstype=iso9660,ro,nodev,nosuid :/dev/sr0
disk -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdf1
Can anyone suggest anything?
Offline
Pages: 1