LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-27-2012, 01:33 AM   #1
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Rep: Reputation: Disabled
Fstab, mount & automount options. Once for ALL if Possible


hardware IVy Bridge Laptop (MSI Clone, 16Gb Ram, GTX670, Intel HD4000, 2xSSD sata II)
Debian from testing - on one SSD single partition, no swap, some unpartitioned space for garbage - trim work (sync hdparm testfile)
Windowsz 7 - on second SSD
separate boot (hardware boot - choose the boot device)


First question is about fstab
A.
proc /proc proc defaults 0 0
B.
UUID=d075d752-3b5e-4b62-wwww-69ed9420aa9b / ext4 discard,noatime,errors=remount-ro 0 1

We still need of A? In some posts I understood are obsolete and must be commented
Note:
I have readied about commit:commit=600 which in many case must be option from JOURNAL_COMMIT_TIME_AC ...but unfortudated I'm still herre and not after a complete functionality for the acpi & battery
B. excepted commit option which right now I don' t want / can set it is something BAD?

Second question is about auto mount & easy umount
I want, IF is possible to be able to auto easy mount / umount and to have the right to execute from external disk some scripts
Means I want to be auto-mount with appropriate right for current user which can execute even a shell and + from them
I want also to be mounted by they Label.
I understand I don't need to put supplementary option in fstab - except for the disk with a known signature
In this case WHERE AND HOW iS MANAGED THAT IN DEBIAN (testing) assuming this

from http://wiki.debian.org/ . AutoFs NB This information is likely outdated, usbmount does much of this automagically for most use cases?.
........... Automounting removable devices. Here's a short introduction on how to automount various external devices ...
usbmount The usbmount Debian package automatically mounts USB mass storage devices (typically USB pens) when they are plugged in, and unmounts them when they are removed. The mountpoints (/media/usb[0-7] by default), filesystem types to consider, and mount options are configurable. When multiple devices are plugged in, the first available mountpoint is automatically selected. The script that does the (un)mounting is called by the udev daemon.
from usbmount.alioth.debian.org
Warning: The original author does not have enough time any more to actively maintain the USBmount package. It is therefore currently unmaintained.

someone know about?
 
Old 08-28-2012, 09:57 AM   #2
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
I would keep /proc if I were you. I haven't heard anywhere that it's a bad thing. It has some useful information in it that might save you later.

To do that, you need to add 'user' to the options column of fstab. Like so:
Code:
UUID=d075d752-3b5e-4b62-wwww-69ed9420aa9b / ext4 user,discard,noatime,errors=remount-ro 0 1
mount should already mount your volumes by their label names.

Alex Brinister
 
Old 08-29-2012, 08:02 AM   #3
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abrinister View Post
I would keep /proc if I were you. I haven't heard anywhere that it's a bad thing.


mihai119 comment
at least in these pages /proc is no more recommended to be in fstab
http://wiki.debian.org/fstab
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=674481
http://forums.gentoo.org/viewtopic-t...6-start-0.html

in my wheezy work OK with or without


To do that, you need to add 'user' to the options column of fstab. Like so:
Code:
UUID=d075d752-3b5e-4b62-wwww-69ed9420aa9b / ext4 user,discard,noatime,errors=remount-ro 0 1
mount should already mount your volumes by their label names.


mihai119 comment
sorry, but exactly this property are my problem. I can't put like you suggest.
My fstab example was with one (ssd) single partition.
Because is only one & file system "user" has no meaning.
The wiki (debian) say to use AutoFS and / or usbmount for others.
My question are exactly your proposed solution (for fstab) but with/in AutoFS / usbmount.
in my simple fstab (1 ssd single partition no swap) other line has no sens ...
(except if I want to auto mount another partition(s) or to clearly forbidden auto mount - noauto)


Alex Brinister
any clues?
 
Old 08-29-2012, 09:06 AM   #4
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Well, that was an example. You don't want to mount your root partition as user. This would lead to a lot of trouble with permissions.

Here is a good page explaining the fstab options.

If you put it in fstab, it will automount. But if you want to mount and unmount dynamically, AutoFS is good. Here is some documentation on AutoFS. IT's for Ubuntu, but should apply to Debian as well.

Alex Brinister
 
Old 08-29-2012, 03:41 PM   #5
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abrinister View Post
Well, that was an example. You don't want to mount your root partition as user. This would lead to a lot of trouble with permissions.

mihai119: bingo

Here is a good page explaining the fstab options.

mihai119: I read it before to put my post. The examples are too old (2009)

If you put it in fstab, it will automount. But if you want to mount and unmount dynamically, AutoFS is good.

mihai119: I hope so. BUT, in debian they say is better to use an unmaintained package => usbmount
I will try the Ubuntu part (thanks)


Here is some documentation on AutoFS. IT's for Ubuntu, but should apply to Debian as well.

mihai119: It was upon the time a derivative distro debian based ...
Now we must suppose for most of the code, doc, prgr for Ubuntu - must work also on debian
sic transit?


Alex Brinister
many thanks
perhaps in 1-2 months I will find it how
 
Old 08-29-2012, 05:13 PM   #6
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Quote:
better to use an unmaintained package
IMHO, it is worse to use an unmaintaind package. It will get older and older as time goes on if nobody picks it up and takes care of it.

Quote:
Now we must suppose for most of the code, doc, prgr for Ubuntu - must work also on debian sic transit?
Yes. You'll sometimes have to install some utils however.

Alex Brinister
 
  


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
Can options be copied from mount command to /etc/fstab ? rng Linux - General 8 01-03-2012 10:27 PM
Forcing mount options for automount in KDE 4 ack_iix Slackware 0 01-19-2010 03:53 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
Modifying mount options (ro/rw etc.) during automount via udev kamal.n2 Linux - Laptop and Netbook 8 12-14-2006 02:19 PM
fstab - mount options merchtemeagle Linux - General 3 03-09-2006 06:00 PM

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

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