LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-13-2005, 05:21 PM   #1
milad126
Member
 
Registered: Oct 2004
Distribution: Ubuntu 8.04
Posts: 62

Rep: Reputation: 15
auto-mount in suse


hello,
when I connect a usb device to my computer it will be recognized and mounted automatically to a directory in " /media" . but i want it to be mounted somewhere else. how can I change the default mounting point.
actually I have changed fstab so in booting the connected devices get mounted to the place i like but if i connect a device when the system is up it get mounted inside " /media".
(suse 9.2)
this is my fstab:

Quote:
/dev/hda3 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0

/dev/sda1 /home/habib/media/1personal subfs gid=users
/dev/sda5 /home/habib/media/2empty subfs gid=users
/dev/sda6 /home/habib/media/3movie subfs gid=users
/dev/sda7 /home/habib/media/4mehdistuff subfs gid=users
/dev/sda8 /home/habib/media/5downloads subfs gid=users
/dev/sdb1 /home/habib/media/6usbflash subfs gid=users
i have added the last 6 lines myself.
 
Old 03-14-2005, 04:00 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could change the definition of MPDIR in /etc/hotplug/hotplug.subfs.functions

However, /media is the standard location now, so you might want to leave it as it is.

Otherwise, you could blacklist the usb device and mount them as you would a regular vfat drive.
 
  


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
This is how to Auto Mount Crypticus Linux - Newbie 6 03-28-2005 02:48 PM
Auto mount. non root mount canyon289 Linux - Hardware 1 02-21-2005 10:05 PM
mount permmissions and auto mount mokojin Slackware 3 02-28-2004 10:47 AM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:12 PM.

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