LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-20-2007, 03:27 PM   #1
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,236

Rep: Reputation: 176Reputation: 176
Mount. Umount. Mount. Umount. Mount. Umount. Mount..


First, I understand the security reasons for mounting and umounting on a multiuser system, BUT on a standalone, single user system is there anyway to not have to mount and umount each and every time you want to use a cd/dvd drive or a plug-in USB memory card reader, camera, etc., etc., etc.
Thanks.

Last edited by cwizardone; 03-20-2007 at 03:33 PM.
 
Old 03-20-2007, 03:31 PM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
There are numerous programs for this purpose, search for autofs for example.
 
Old 03-20-2007, 04:16 PM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
other distributions use hal,dbus,udev for this. udev and dbus are already in current(i don't know, if there are plans to include hal). i don't think just adding hal would help, as afaik kde would have to be recompiled to let it work.

adding the users or group option to the fstab entry could help. don't forget to add yourself to the relevant groups.
 
Old 03-20-2007, 05:27 PM   #4
nflenz
Member
 
Registered: Feb 2006
Distribution: CRUX 2.4
Posts: 96

Rep: Reputation: 18
Here is an extremely easy method:

First, in /etc/fstab, add the user option to the devices you want to mount as a user.

Code:
#Example
/dev/cdrom     /mnt/cdrom     auto     noauto,ro,user     0     0
Then create a file called cdrom (or whatever you want to call it) on your desktop containing this:

Code:
#!/bin/bash

# This script mounts the device then automatically unmounts it when konqueror closes.

#replace /mnt/cdrom with the mount point for your cd
mount /mnt/cdrom

#replace konqueror with your favorite file manager
konqueror /mnt/cdrom
umount /mnt/cdrom
Then make it executable.

Code:
$ chmod +x /home/${USER}/Desktop/cdrom
Now you'll just need to click on the file to access the cdrom.
 
Old 03-20-2007, 05:30 PM   #5
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Mounting

You don't even have to go through that much to accomplish it. You can just make a shortcut to a cdrom or whatever device on your desktop. You will have to still edit the fstab and add the user option.
 
Old 03-21-2007, 03:24 PM   #6
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Yea you'd have to add hal dbus and recompile kdebase there's a tutorial on the net just use google. I have it working perfectly in slack 11
 
Old 03-21-2007, 10:11 PM   #7
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,236

Original Poster
Rep: Reputation: 176Reputation: 176
I could live with mount and umount on a limited basis, but, as now, I can't figure out how to mount USB devices.
I've read through many of the questions on it and ran "lsusb" and "dmesg | tail" and it hasn't been much help.
I'm running kernal 2.6.18 and using a SATA hard drive which occupies the sda configuration instead of hda, etc.
Every time I plug in the same USB device to the same USB port and run "lsusb" I get a different address, but in a format that is not helpful to me.
Running "dmesg | tail" tells me one of the two ports I've tried and sd 5 and the other sd 6 and that corresponds to their positions on the motherboard. Note "dmesg | tail" reports a black space between sd and the number of the USB port.
How can I get these ports mounted so I can use any USB device I might plug into them?
Thank you very much.

Last edited by cwizardone; 03-21-2007 at 10:12 PM.
 
Old 03-21-2007, 10:27 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
Quote:
Originally Posted by cwizardone
First, I understand the security reasons for mounting and umounting on a multiuser system, BUT on a standalone, single user system is there anyway to not have to mount and umount each and every time you want to use a cd/dvd drive or a plug-in USB memory card reader, camera, etc., etc., etc.
Thanks.
What distribution are you using. Both Suse and Mandriva ask to open CDs and they can be ejected when all access to them is closed. Powering up my connected digital camera also brings up a dialog box.
 
Old 03-21-2007, 10:56 PM   #9
hasitha9
LQ Newbie
 
Registered: Aug 2006
Location: Sri Lanka
Distribution: FC 13
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by cwizardone
I could live with mount and umount on a limited basis, but, as now, I can't figure out how to mount USB devices.
I've read through many of the questions on it and ran "lsusb" and "dmesg | tail" and it hasn't been much help.
I'm running kernal 2.6.18 and using a SATA hard drive which occupies the sda configuration instead of hda, etc.
Every time I plug in the same USB device to the same USB port and run "lsusb" I get a different address, but in a format that is not helpful to me.
Running "dmesg | tail" tells me one of the two ports I've tried and sd 5 and the other sd 6 and that corresponds to their positions on the motherboard. Note "dmesg | tail" reports a black space between sd and the number of the USB port.
How can I get these ports mounted so I can use any USB device I might plug into them?
Thank you very much.
I assume you are trying to mount a usb flash drive.
First you can check the flash drives partition number which is assigned by the system. You can do this by
$cat /proc/partitions , it gives something like this
major minor #blocks name

8 0 80418240 sda
8 1 15358108 sda1
8 2 15358140 sda2
8 3 104422 sda3
8 4 1 sda4
8 5 10241406 sda5
8 6 1052226 sda6

when you plugged your usb device it'll get something like this "sdb1" in another added line.
After that use this command to mount you device.
#mount /dev/sdb1 /mnt/flash

I hope this'll work for you.
 
Old 03-22-2007, 12:38 AM   #10
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,236

Original Poster
Rep: Reputation: 176Reputation: 176
Thank you, hasitha9!

"cat/proc/partitons" told me what I needed to know.
Actually I was mounting a camera and a memory card reader.
Two of the many USB ports in my computer are on the front of the case. I plugged in one device, entered "cat/proc/partitons" and it told me there was a sdb and sdb1. I tried mounting sdb1 and it work. Just for chuckles I plugged another device into the other available port and it was reported as, sdf and sdf1. I removed them both and plugged the one reported to be sdf1 back in and ran "cat/proc/partitons" again. This time it was reported as, sdb1.
I guess this means each and everytime I want to use a USB device I have to run "cat/proc/partitons" to find it's ID and then mount it..
Would this be correct?
Thanks, again, for your help.

Last edited by cwizardone; 03-22-2007 at 12:42 AM.
 
Old 03-22-2007, 09:30 AM   #11
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
no. you can write udev rules.
http://reactivated.net/writing_udev_rules.html#testing

put them in something like /etc/udev/rules.d/90-local.rules
 
  


Reply

Tags
mount usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
util-linux-2.12r error on 'make -C mount mount umount' james penguin Linux From Scratch 2 08-28-2006 11:55 PM
mount and umount problem salahuddin_66 Debian 3 05-03-2005 07:49 AM
mount / umount problems d1l2w3 Linux - Hardware 6 03-14-2005 04:23 PM
mount/umount devit Linux - General 4 02-19-2004 12:37 PM
mount and umount wr3ck3d Linux - Newbie 4 12-14-2002 04:04 PM


All times are GMT -5. The time now is 01:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration