LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-04-2005, 08:35 PM   #1
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Rep: Reputation: 30
Automount


I can't seem to get my USB pen and my CD-ROM drives to auto mount. Here is my /etc/fstab file:

Code:
/dev/hdc1 / ext3 defaults 1 1
/dev/hdc6 /home ext3 defaults 1 2
/dev/hda /mnt/cdrom auto umask=0,user,iocharset=iso9660,codepage=850,ro,exec,users,noauto 0 0
/dev/hdb /mnt/cdrom2 auto umask=0,user,iocharset=iso9660,codepage=850,ro,exec,users,noauto 0 0
/dev/fd0        /mnt/floppy     auto iocharset=iso9660,codepage=850,noauto,nosuid,umask=0,sync,user,nodev       0 0
#/dev/hdd1 /mnt/lfs ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/hdc5 swap swap defaults 0 0
/dev/sda1 /mnt/removeable vfat auto,user,exec,rw,sync 0 0
/dev/sda2 /mnt/ipod vfat auto,user,exec,rw,sync 0 0
//Server/www /home/rzaleski/Webserver smbfs auto,exec,rw,user,credentials=/etc/samba/pub.cred 0 0
I tried using autofs. Here is my auto.master file:

Code:
/mnt/cdrom /etc/auto.ejectable --timeout=5
My auto.ejectable file is:

Code:
cdrom -fstype=iso9660,ro,sync.nodev/nosuid :/dev/hda
I've tried restarting the service several times. Any ideas? I thought, with Mandrake 10.1 (I'm using Mandriva 2005 LE now), that these devices automatically mounted w/o configuration.

Ryan
 
Old 08-05-2005, 12:49 AM   #2
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Rep: Reputation: 30
Hello, my recommendation is:

1. Use autofs just for network drives (mainly NFS). It is very good for that.

2. Use supermount for local USB- and CD-/DVD-drives. In my opinion and experience it's the best for that. Example lines to /etc/fstab for supermount (comment out all other lines according to /dev/cdrom and /dev/sda1):

Code:
none /mnt/cdrom supermount dev=/dev/cdrom0,fs=auto,ro,--,noexec,iocharset=iso8859-1,codepage=850,umask=0 0 0
none /mnt/removable supermount dev=/dev/sda1,fs=auto,rw,--,kudzu,noexec,iocharset=iso8859-1,kudzu,codepage=850,umask=0 0 0
If you have more CD-drives or USB-devices, you can add more lines with the right device addresses. For example with computers with SATA-drivers for USB-sticks it would be most likely /dev/sdb1 and not /dev/sda1. If the USB-devices don't seem to work, check that the device exists (eg. /dev/sda1) and correct if needed.

There are many advantages in using supermount; the best being that you can unplug USB-devices and eject CDs whenever you want (autofs does not handle it as well, in my opinion).

After adding those lines first make sure that /mnt/cdrom and /mnt/removable exist, then mount both directories. Supermounted folders are always mounted, no matter if there is media or not.

Last edited by make; 08-05-2005 at 12:52 AM.
 
Old 08-05-2005, 06:17 PM   #3
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
It's still not working. Here is my /etc/fstab

Code:
/dev/hdc1 / ext3 defaults 1 1
/dev/hdc6 /home ext3 defaults 1 2
#/dev/hda /mnt/cdrom auto umask=0,user,iocharset=iso9660,codepage=850,ro,exec,users,noauto 0 0
/dev/hdb /mnt/cdrom2 auto umask=0,user,iocharset=iso9660,codepage=850,ro,exec,users,noauto 0 0
/dev/fd0 /mnt/floppy auto iocharset=iso9660,codepage=850,noauto,nosuid,umask=0,sync,user,nodev  0 0
#/dev/hdd1 /mnt/lfs ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/hdc5 swap swap defaults 0 0
#/dev/sda1 /mnt/removeable vfat noauto,user,exec,rw,sync 0 0
/dev/sda2 /mnt/ipod vfat auto,user,exec,rw,sync 0 0
//Server/www /home/rzaleski/Webserver smbfs auto,exec,rw,user,credentials=/etc/samba/pub.cred 0 0
none /mnt/cdrom supermount dev=/dev/cdrom,fs=auto,ro,--,noexec,iocharset=iso8859-1,codepage=850,umask=0 0 1
none /mnt/removable supermount dev=/dev/sda1,fs=auto,rw,--,kudzu,noexec,iocharset=iso8859-1,kudzu,codepage=850,umask=0 0 0
When I insert a cd or my USB pen, nothing happens. Any ideas why?
 
Old 08-06-2005, 02:19 AM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Try in root terminal:
# supermount -i enable

This will edit your fstab for you... Also you have to reboot...

KC
 
Old 08-06-2005, 07:35 AM   #5
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
It still doesn't work. I try to open the cd rom drive (when a CD is inserted) and it shows that there are no files. The same thing happens with my USB pen.
 
Old 08-06-2005, 10:19 AM   #6
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
Nevermind. It works now. I had a typo in my /etc/fstab. Thanks.
 
Old 08-07-2005, 09:15 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Just FYI Mandriva uses gnome-volume-manager which in turn calls fstab-sync to create the fstab entries and mount the drives, supermount is . This should have worked out of the box (it does on my 2 systems at home) but then again nothing's perfect.

Anyway in case it helps someone here's a copy of the response I got when I asked about supermount in the Mandriva development list:
Quote:
> I'm a little bit confused about how removable drives (CD/DVDs and USB
> devices) get mounted in 2005LE. I know that fstab-sync is called by HAL
> to add entries for USB devices to /etc/fstab on the fly but what process
> is meant to mount those newly added devices?

gnome-volume-manager.

> Also what process mounts
> CD/DVD drives?

gnome-volume-manager.

> Why is the floppy drive the only one with 'supermount' in
> the options of its fstab entry?

because floppy drives do not notify the kernel when a medium is
inserted, so you cannot use a mounting method which relies on detecting
the sudden presence of a medium. You have to use one which simply
attempts to mount the drive when access to it is requested - like
supermount.

> Is supermount still used in 2005LE?

Only for floppies and a few other cases where insertion notification
doesn't happen (some tape drives, IIRC).
 
Old 08-08-2005, 04:21 PM   #8
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
I changed my /etc/fstab back to NOT use supermount and nothng automatically mounts. When I try to run gnome-volume-manager, I get the error message:

[root@Desktop rzaleski]# gnome-volume-manager
libhal.c 644 : Error connecting to system bus: Failed to connect to socket /var/run/dbus/system_dbus_socket: No such file or directory

** (gnome-volume-manager:20824): WARNING **: manager.c/935: failed to initialize HAL!

[root@Desktop rzaleski]#

I do have a service "haldaemon", which is running. Do I need any other services running?

Ryan
 
Old 08-08-2005, 06:12 PM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Are the messagebus and hotplug services running?
 
Old 08-08-2005, 07:52 PM   #10
RySk8er30
Member
 
Registered: Jul 2004
Location: Buffalo, NY
Distribution: Mandriva 2005LE
Posts: 274

Original Poster
Rep: Reputation: 30
That was it. Thanks.
 
Old 08-21-2005, 08:13 AM   #11
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Hi, I have a brand new install of Fedora Core 3 here and i am having big difficulties to use my removable media: cdrom, dvd and usb drives.

I tried the supermount tip (edit my fstab) above and i got:
mount: fs type supermount not supported by kernel

My kernel is: 2.6.9-1.667 and i got it straight from fedora's installation discs.

Any ideas?
 
Old 08-21-2005, 10:07 PM   #12
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
AFAIK supermount is not used in fedora and is not compiled into their kernel.

Please don't hijack threads - this thread is about a Mandriva issue that's been resolved. Go and repost this in the Fedora forum.
 
Old 08-22-2005, 05:53 AM   #13
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
i am sorry Mr Know it All

I am sorry but many people do this when they look for advice and most distributions are alike they can find their solution in any thread. I dont bother when i am asked by someone that uses a different distribution and i dont waste my time complaining. FYI i solved my issue by myself. But thank you anyway. I wont waste my time anymore.
 
Old 08-22-2005, 06:22 AM   #14
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
That's Ok Mr Crybaby.

Next time don't get so offended when someone corrects you on a minor point of netiquette on this site.
If you look around you'll find lots of posts where people have been told to not hijack threads, among other reasons because its against the rules of the site.

And BTW I was trying to help you - I pointed out that Fedora uses a different system for mounting and that you'd be better off posting in the Fedora forum. I'm glad that you've solved your problem but please don't come back here until you've grown up a bit and read up on how to post questions properly.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automount: no more in LE LinxNew Mandriva 2 05-07-2005 09:21 AM
Automount help short101 Linux - Newbie 2 07-17-2004 08:23 PM
automount thematrimix Linux - General 5 05-07-2004 10:56 PM
automount alaios Linux - Hardware 1 11-16-2003 11:47 AM
Automount jailbait Linux - Software 2 07-16-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:32 AM.

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