LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-04-2007, 09:18 AM   #1
warun
Member
 
Registered: Aug 2007
Posts: 39

Rep: Reputation: 15
mount point for usb


hi,

i'm using slackware 12... it has an USB auto-mount feature... i need to know where in the file system the USB will be mounted....

thanks in advance
 
Old 12-04-2007, 09:27 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,988

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
IIRC slackware creates a mount point for automounted devices in /media and removes that mount point when the device is removed.
 
Old 12-04-2007, 11:34 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Check '/etc/fstab', all the drives that will be automounted are listed there. You should also read the HAL sticky.
 
Old 12-04-2007, 11:49 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
If you are using konqueror or dolphin you can ...

go to the storage media section
right click on the one for your USB stick->Properties->Mounting tab

It should tell you where it mounted it (eg. /media/disk).

You can also run the mount command (with no options) in a terminal as your normal user before and after the USB drive is mounted. Note the difference, and this should tell you where it is mounted.
 
Old 12-05-2007, 12:31 AM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by H_TeXMeX_H View Post
Check '/etc/fstab', all the drives that will be automounted are listed there.
That can't be right.
 
Old 12-05-2007, 03:43 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by rkelsen View Post
That can't be right.
Then please correct me.

To automount things, I followed the HAL sticky and you must add device nodes and corresponding mount points where they are to be mounted to your '/etc/fstab'. How is that wrong ?
 
Old 12-05-2007, 05:36 AM   #7
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by H_TeXMeX_H View Post
To automount things, I followed the HAL sticky and you must add device nodes and corresponding mount points where they are to be mounted to your '/etc/fstab'. How is that wrong ?
Well I didn't do either of those things and HAL auto-mounts all the removable media I can throw at it. There are no USB devices in my /etc/fstab file.

Last edited by rkelsen; 12-05-2007 at 05:42 AM.
 
Old 12-05-2007, 05:44 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Really ? Well that's odd. It didn't do that for me.
 
Old 12-05-2007, 06:09 AM   #9
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
i didn't add anything to /etc/fstab and everything mounts for me too
 
Old 12-05-2007, 06:52 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by zux View Post
i didn't add anything to /etc/fstab and everything mounts for me too
Just to clear some things up. From the 'man fstab';
Quote:
FSTAB(5) Linux Programmer's Manual FSTAB(5)

NAME
fstab - static information about the filesystems

SYNOPSIS
#include <fstab.h>

DESCRIPTION
The file fstab contains descriptive information about the various file
systems. fstab is only read by programs, and not written; it is the
duty of the system administrator to properly create and maintain this
file.
HAL does not write to the '/etc/fstab' file either as noted by the 'static label' and the definition.

Quote:
excerpt from CHANGES_AND_HINTS.TXT;

The /dev/cdrom line in /etc/fstab is commented out by default, as it interferes
with HAL. HAL defaults to on, so if you do not wish to use it, you will need
to chmod -x /etc/rc.d/rc.hald and uncomment the /dev/cdrom line in /etc/fstab

Note that HAL will honor settings in /etc/fstab if a device is present there,
so you could technically have removable devices defined in /etc/fstab, but if
the fstab settings do not allow normal users to mount them (with the "user" or
"users" option), then HAL/dbus will not allow them to be mounted either.
Also note that you will need to run "/etc/rc.d/rc.messagebus reload" after
adding any users to plugdev, power, or video groups so that it re-reads the
/etc/group file.
As noted HAL will use the '/etc/fstab' if the device is defined.
Notice the user/users are not allowed to mount via HAL if not allowed in '/etc/fstab'.
 
Old 12-05-2007, 07:52 AM   #11
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
So, using fstab you can define where something *will* be mounted (by HAL or otherwise), or you use `mount` (which reads /etc/mtab) to see where something *has* been mounted.

Couple this with `dmesg` and you shall have no more mount-mysteries!

Hua!

- Piete.
 
Old 12-05-2007, 10:33 AM   #12
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by piete View Post
So, using fstab you can define where something *will* be mounted (by HAL or otherwise), or you use `mount` (which reads /etc/mtab) to see where something *has* been mounted.

Couple this with `dmesg` and you shall have no more mount-mysteries!

Hua!

- Piete.
Not completely correct. You can use the mount command not only to see what has been mounted but to also to do actual mounting (regardless of whether it is defined in fstab or anywhere else). The entries in fstab can allow a filesystem to be automatically mounted when "mount -a" is called (usually during bootscripts). If you define where a device should be mounted then. yes, that will be where HAL will mount it, but if it is not in fstab HAL will dynamically choose a mountpoint typically in /media. udev can also be a player and its rules can define all kinds of things when a device is attached. With udev rules you can, for instance, have the filesystem auto-mounted in a place you choose (with the owner and perms you specify of course), have programs run upon device insertion, and more.
 
Old 12-05-2007, 10:41 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by shadowsnipes View Post
If you define where a device should be mounted then. yes, that will be where HAL will mount it, but if it is not in fstab HAL will dynamically choose a mountpoint typically in /media.
I see, well that makes more sense. I defined the mountpoints in fstab because I didn't know HAL would "dynamically choose a mountpoint" if it wasn't in fstab.
 
Old 12-05-2007, 11:02 AM   #14
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Apologies, I should've made it clear that the command `mount` has more than just the use I stated, such as being able to mount arbitrary filesystems in arbitrary places =)
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Make removable USB hdd mount at fixed mount point ctkroeker Linux - General 13 08-11-2009 08:49 AM
Static mount point for USB drive vm_devadas Linux - Server 1 05-16-2007 09:43 AM
Where to find mount point for USB Removable device bobbelfield Mandriva 3 02-17-2006 10:37 PM
mount point for USB memory stick gmontry Linux - Hardware 1 11-01-2004 12:58 AM

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

All times are GMT -5. The time now is 08:44 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