You are not logged in.

#1 2004-10-24 04:03:45

madhattr
Member
Registered: 2004-05-12
Posts: 39

supermount for arch?

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

#2 2004-10-24 11:07:17

rensel
Member
From: Milan, Italy, Europe, Earth, S
Registered: 2004-06-20
Posts: 93
Website

Re: supermount for arch?

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

#3 2004-10-24 14:23:43

Win
Member
Registered: 2004-03-04
Posts: 155

Re: supermount for arch?

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

#4 2004-10-24 16:21:13

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: supermount for arch?

wow, if this isn't in the wiki, it should be

Offline

#5 2004-10-24 17:39:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: supermount for arch?

phrakture wrote:

wow, if this isn't in the wiki, it should be

I'll do it.

Dusty

Offline

#6 2004-10-24 18:17:21

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: supermount for arch?

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

#7 2004-10-24 18:59:24

patrix
Member
Registered: 2004-08-27
Posts: 51

Re: supermount for arch?

whoooooaaaaaaaaaaaaaaaaaaaa complicated wink

if you have gnome 2.6 or 2.8, how about just going to Desktop prefs -> CD & DVD  and activating the auto mounting smile

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

#8 2004-10-24 21:15:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: supermount for arch?

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 wink); its based on Win's post with paths changed based on colnago's.

Dusty

Offline

#9 2004-10-25 00:47:07

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: supermount for arch?

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

#10 2004-10-25 04:17:59

LavaPunk
Member
Registered: 2004-03-05
Posts: 129

Re: supermount for arch?

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

#11 2004-10-25 04:41:15

dammit
Member
Registered: 2004-07-06
Posts: 67

Re: supermount for arch?

LavaPunk wrote:

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.

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

#12 2004-10-25 04:46:37

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: supermount for arch?

nitro includes supermount. but submount is just the same, only in user space.

Offline

#13 2004-10-28 02:03:58

madhattr
Member
Registered: 2004-05-12
Posts: 39

Re: supermount for arch?

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

#14 2004-10-28 02:35:39

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: supermount for arch?

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

#15 2004-10-28 03:16:19

madhattr
Member
Registered: 2004-05-12
Posts: 39

Re: supermount for arch?

also i seet my cdrom drive in /media but how do make a ln to my computer folder

Offline

#16 2004-10-28 05:13:35

patrix
Member
Registered: 2004-08-27
Posts: 51

Re: supermount for arch?

madhattr wrote:

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

#17 2004-10-28 19:05:35

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: supermount for arch?

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

#18 2008-11-18 03:32:06

profylno
Member
Registered: 2008-09-23
Posts: 10

Re: supermount for arch?

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

Board footer

Powered by FluxBB