Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automount [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
senzacionale
Guru
Guru


Joined: 29 Jun 2004
Posts: 532
Location: Slovenia

PostPosted: Tue Nov 15, 2005 5:27 pm    Post subject: automount [SOLVED] Reply with quote

I hope you undesrtand what i want. How to make that when useb key and cdrom are plugged they are automaticaly mount and icons are shown in desktop (kde or gnome)

What i must do for that?
Thnx
_________________
Spletno narocanje hrane in dostava hrane na dom na portalu DostavaHrane.si


Last edited by senzacionale on Mon Nov 21, 2005 8:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Tue Nov 15, 2005 5:50 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/udev-guide.xml

http://www.reactivated.net/writing_udev_rules.html

those should give you a bit of a help. Make sure you have udev and hotplug all done correctly
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
Ctrl+Alt+Del
Guru
Guru


Joined: 04 Jul 2004
Posts: 326
Location: .de

PostPosted: Tue Nov 15, 2005 5:50 pm    Post subject: Reply with quote

edit: damnit Cokehabit beat me to it :)
Back to top
View user's profile Send private message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Tue Nov 15, 2005 7:19 pm    Post subject: Reply with quote

this is very interesting for me too. So this howto is ok
http://www.gentoo.org/doc/en/udev-guide.xml

if i use it then i will have automatically mount in gnome and kde?
Back to top
View user's profile Send private message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Wed Nov 16, 2005 12:42 pm    Post subject: Reply with quote

General setup --->
[*] Support for hot-pluggable devices

i don'thave this options to use. I have --- infornt of Support for hot-pluggable devices

what i can do now?
I use 2.6.12-rc6-love1 sources kernel

What about /etc/fstab

i don't need to add anything in it that this automount will work?
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Wed Nov 16, 2005 6:49 pm    Post subject: Reply with quote

This shouldn't need much manual configuration at all. You should really not have to write any udev rules.

You should be able to get this working by simply having the and hal USE flag set when emerging kde (or gnome) and make sure dbus and hald are running.
Back to top
View user's profile Send private message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Thu Nov 17, 2005 9:42 am    Post subject: Reply with quote

dbus and hald are running and this is my make.conf
Code:

CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="-gnome gtk gtk2 qt kde dvd alsa cups pam python xml xml2 acl X java mpeg cdr bcmath berkdb bzlib calendar
cpdflib crypt ctype curl curlwrappers dba dbase dbx dio exif fam flatfile ftp gd gdbm gmp iconv imap inifile jpeg kerberos ldap mcve memlimit mhash mime mssql mysql
ncurses nls odbc pcntl pcre png posix postgres readline sasl session sharedext simplexml soap sockets spell spl ssl
sysvipc tidy tiff tokenizer truetype xml2 xmlrpc xpm xsl zlib apache2 ssl threads oav readline oggvorbis perl png spell truetype xvid xmms wxwindows yahoo msn usb tcltk sd$quicktime opengl artsmakesuid flac alsawrappersuid network nas mmx mmx2 mmxext samba live fbcon dvdread divx4linux
tga sse sse2 ggi rtc libcaca bigger-fonts screenshot bash-completion mozsvg cscope ncurses win32codecs xanim xvmc
cap maildir pcre commercial pcmcia server svg mng mono gd dba libgd pic server aac aalib custom-cflags berkdb innodb
readline tcpd hal"
LINGUAS="sl"
# SYNC="rsync://rsync16.de.gentoo.org/gentoo-merged"
PORTDIR_OVERLAY="/usr/local/portage"


is it ok now that i just reemerge gnome with emerge gnome. Will then this works?

Thnx
Back to top
View user's profile Send private message
StaraDama
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 253

PostPosted: Fri Nov 18, 2005 9:34 am    Post subject: Reply with quote

is ok like this?
Back to top
View user's profile Send private message
senzacionale
Guru
Guru


Joined: 29 Jun 2004
Posts: 532
Location: Slovenia

PostPosted: Mon Nov 21, 2005 7:21 pm    Post subject: Reply with quote

doesn't want to aoutomount usb stick or cd/dvd rom

Can someone hel me with this?
_________________
Spletno narocanje hrane in dostava hrane na dom na portalu DostavaHrane.si
Back to top
View user's profile Send private message
senzacionale
Guru
Guru


Joined: 29 Jun 2004
Posts: 532
Location: Slovenia

PostPosted: Mon Nov 21, 2005 7:45 pm    Post subject: Reply with quote

i read
http://gentoo-wiki.com/HOWTO_Submount

and

http://de.gentoo-wiki.com/HOWTO_Automatisches_Mounten

after
Code:

mount -a


only CD or DVD are mounted and icons is shown. Usb stick is mounted but no image is shown

this is fstab for usb stick
Code:

/dev/sda           /mnt/usbstick           subfs    fs=auto,rw,noatime,sync     0 0


why only when i write mount -a cd rom is mounted and not just when i put it in?
_________________
Spletno narocanje hrane in dostava hrane na dom na portalu DostavaHrane.si
Back to top
View user's profile Send private message
senzacionale
Guru
Guru


Joined: 29 Jun 2004
Posts: 532
Location: Slovenia

PostPosted: Mon Nov 21, 2005 8:52 pm    Post subject: Reply with quote

solved


this is my fstab that works now!
Code:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda5               /boot           ext2            defaults,noatime        1 2
/dev/hda7               /               ext3            noatime         0 1
/dev/hda6               none            swap            sw              0 0

#/dev/hdc                /mnt/cdrom              subfs    fs=auto,ro,noatime,sync,users         0 0
#/dev/sda                /mnt/usbstick           subfs    fs=auto,rw,noatime,sync,users     0 0

/dev/hdc                /mnt/cdrom      udf,iso9660 user,noauto         0 0
#/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro      0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

#Windows particije
/dev/hda1               /mnt/Windows            ntfs    ro,defaults,umask=0222   0 0

_________________
Spletno narocanje hrane in dostava hrane na dom na portalu DostavaHrane.si
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum