Is udev all that is needed for automounting?

Hi All,
As soon as my new hard drive shows, I'm planning on installing Arch on it, and I was hoping to clear up some confusion before then. While i'm not necessarily a linux noob, gnome has covered up alot of stuff that I'll need to know for the switch to arch so I am pretty nooby to the stuff that happens deep down in the bowels of my computer. I've been reading around about udev, and it appears that it will handle all device recognition/automounting/ect. If so, do I need hotplug, hal, hwd, ect, ect?
Right now I am running ubuntu with fluxbox, and gnome-volume-manager takes care of automounting. This works allright, but I would much rather not install gnome along with arch. I've found plenty of articles about setting up udev, and would like to use it exclusivly if possable due to it's ease of use (the keys seem simple enough) and reliability. I am, however, a little confused as to what it actually does when something is connected to the system. Will udev actually reconize that say, a pendrive has been inserted, or does some other program take care of recognition while udev takes care of mounting? Also, I'd still like to use fstab for mounting my static HDD's at boot, does the kernel actually use this file, or do I need another program for this functionality?

My latest udev rules for usb sticks or usb hard disks automounting (/etc/udev/rules.d/010.udev.rules):
KERNEL=="sd[b-z]", NAME="%k", SYMLINK+="usbhd-%k", GROUP="users", OPTIONS="last_rule"
ACTION=="add", KERNEL=="sd[b-z][0-9]", SYMLINK+="usbhd-%k", GROUP="users", NAME="%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mkdir -p /media/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/ln -s /media/usbhd-%k /mnt/usbhd-%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", PROGRAM=="/lib/udev/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,sync,dirsync,noexec,nodev,noatime,dmask=000,fmask=111 /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rm -f /mnt/usbhd-%k"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/umount -l /media/usbhd-%k"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rmdir /media/usbhd-%k", OPTIONS="last_rule"
Mr Green reminded me about path change for vol_id which is now /lib/udev/vol_id (was /sbin/vol_id). Tnx. I've changed it in the above rules.
I have SATA hard disk in my notebook (/dev/sda) so I have to use sd[b-z] for removable media. /dev/sda is mounted normally via fstab. If you don't have any fixed sd* devices in your fstab you can use sb[a-z] everywhere.
How does udev know when you're about to pull out your USB-stick?
It doesn't :-) As you can see I'm using mount with several options like sync and dirsync and "lazy umount".
Usinc sync and dirsync sometimes slows down transfer speed but it's safer than async. Basically it saves data to the device instantly so there is little risk of losing data when you unplug usb stick.
When you first plug a device these rules create subdirectory in /media, mount every partition found on it to it's own subdirectory and make symlinks from /mnt to /media for each device/partition - this is not required but it's good to have them accessible from both /mnt and /media.
These rules can detect vfat partition and use different mount options (dmask,fmask) which allows every user to access vfat partition (read and write).
Any other partition type is mounted with general mount options.
I have an usb stick with 2 partitions: one vfat and one reiserfs. They both work well with these rules.
When you unplug the device remove event is generated, /dev/sdX is removed by udev and then the rules umount all partitions with lazy umount (which prevents the panic of applications that still have any file or directory opened from any of umounted partitions).
Next all directories in /media and symlinks in /mnt are removed.
This way all you need for automounting is udev rules (no need for fstab items etc.) and you don't need to know in advance how many partitions and what type of filesystems are used.
I'm using this for most of my linux computers and so far it works quite well. Of course it has some drawbacks (like slower speed) but for me this is clean and simple and I don't have to worry about every ivman/whatever update ;-)

Similar Messages

  • Mini iPad says it doesn't support adobe flash player that is needed for many applications

    Mini iPad says it doesn't support adobe flash player that is needed for many applications

    Yes, that is correct. Apple products DO NOT support flash. Thank you, Apple.

  • HT1918 relocating to another country, want to change my Apple store, without loosing all that i paid for legitemately, how do I do it ???

    relocating to another country, want to change my Apple store, without loosing all that i paid for legitemately, how do I do it ???

    Wait are you trying to change the email on the account? Just trying to figure out whatca going for here :O

  • I cannot sync my iphone to my macbook since the highest software upgrade on it is 10.5.8.  I cannot upgrade to the min. software necessary to upgrade to the itunes version that I need for the iphone 5!  Please help!

    I cannot sync my iphone to my macbook since the highest software upgrade on it is 10.5.8.  I cannot upgrade to the min. software necessary to upgrade to the itunes version that I need for the iphone 5!  Please help! 

    The iPhone 5 requires iTunes 10.7 or later and iTunes 10.7 requires OS X Snow Leopard (10.6.8). If your profile is correct it looks like you need to update your OS X on you Mac. You can contact Apple and purchase the software from them.

  • Hello, can someone guide me on how to purchase ExportPDF please? i'm currently residing in South East Asia and it doesn't allow me to purchase the software that i need for my work. Please guide me. i need help badly.

    Hello, can someone guide me on how to purchase ExportPDF please? i'm currently residing in South East Asia and it doesn't allow me to purchase the software that i need for my work. Please guide me. i need help badly.

    Hi watanabei,
    Please see Countries where ExportPDF is available for purchase. - Adobe Community. It's necessary to have a credit card billing address in one of the countries listed in this document. If ExportPDF is unavailable to you, you may want to consider an Acrobat subscription, which would also allow you to convert PDF files to Word and other format. For more information, see www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • I have a new Mazda CX 7 my song list will not come up on screen in car my wife blackberry the song list comes up is there an app that I need for my iPhone 4 to do the same

    I have a new Mazda CX 7 my wife blackberry sync up nice with blue tooth. We can use voice dial phone list shows on car dash screen also her whole playlist and song titles Ect... All show up on dash screen my iPhone 4 I can use it hands free but no info comes up on the car screen at all. The mazda sales person who claims to be an Apple guru said apple does not support this it has something to do with the os he said he hopes that apple will support this in future os. Is there an app that can do this now ? Anyone thank you for your help

    Demo,
    I was using the New iPad (iPad 3??) to access my FL Comcast email account for the 1st time. on a new internet site, my Canadian Cousin's site in her home in Quebec.  I had never used this iPad on my Comcast account.
    Whenever I try to access my email account from a different internet account than my own, Comcast always asks me for my user name and password.  They also normally ask me to answer a security question that I have given them beforhand to prove who I am.
    Thia time they did not do that.  They have started a more secure check system that requires you to read numbers and letters from a box that is moving around and retype those items into another box before hitting enter.  Machines cannot read those letters.  The iPads, not having "Flash" installed, also can not see those letters/numbers.
    If you can not see the letters/numbers you can not type them into the second block therefore you can not verify that you are who you claim to be.
    After all that, the also show a screen that asks if this is your personal computer or one from a friend or library or company etc, and if you want them to remember this device as yours from now on....
    I just left the Apple Store here and they said that the reason I can not see the "Floating Figures" is because the iPads cannot show anything that is made using "Flash" stuff because that system is not the latest updated secure system....
    Thank for the reply.
    sgmjack

  • Why i need all that b***s*** for installing oracle db?

    As all you know to install for instance oracle 11g on redhat, oel, centos, fedora, etc... oracle recommends to install more than 600MB of garbage in the OS...
    For instance if we have a minimal redhat install we would need to install more than 580 packages to run oracle. These packages are grouped in 12 groups. they are installed with yum or up2date depending on your OS version:
    yum groupinstall "GNOME Desktop Environment" "Editors" "Graphical Internet" "Development Libraries" "Development Tools" "Server Configuration Tools" "Administration Tools" "Base" "Fonts" "Legacy Fonts" "Hardware Support" "System Tools" "X Window System"
    Beside that we also need to make sure that the following packages are installed:
    yum install binutils-2.* elfutils-libelf-0.* glibc-2.* glibc-common-2.* libgcc-4.* libstdc++-4.* make-3.* elfutils-libelf-devel-0.* glibc-devel-2.* gcc-4.* gcc-c++-4.* libstdc++-devel-4.* unixODBC-2.* libaio libaio-devel unixODBC-devel sysstat compat-libstdc++
    But what's REALLY FUNNY, is that if we install a NON-PAYED version of Oracle (Oracle XE) we don't need any of the previous b***s***!!!! This is annoying, really annoying... we only need to install a sweet sweet RPM, 200MB, and e got it there...
    So, anyone here can explain me (convince me) why the h*** we need to install 580 packages and at least 600MB of packages to get oracle ready to be installed?
    Btw, I install oracle on linux for about 8 years, so I don't need explanations... I need to be convinced that Oracle could not do better than this... ;)
    Regards
    Joao
    changed "must install" to "oracle recommends to install"
    Edited by: Joao Oliveira on Apr 29, 2009 3:51 PM

    Sergio wrote:
    As they created those VM templates they could also create a JEOS release of OELJEOS is OEL. A JEOS release of OEL doesn't really make sense, because you have to be able to answer the question, Just Enough for what?
    Or even better create that and some Amazon EC2 AMI's too...
    For me it makes sense to have a Just enought OS for Oracle Database to run... Despite most people refer to JeOS as beeing related to VM environment's (for instance Ubuntu JeOS) the JeOS concept is not exclusive to VM's. And it sure even makes more sense to have a JeOS for running in an VM such as Amazon EC2.
    EC2 AMIs with an Oracle Database in it already exist. OEL AMIs are being worked on if they're not already there.Exists in US :) not europe...
    If you take a closer look at those AMI's you surelly find at least 500MB of software installed that's not needed to run Oracle 11g. I may be wrong but the OEL5 that comes installed on those AMI's eats ~300MB of memory without database running... And for instance I have EC2 instances (fedora 8) running that only uses 65MB memory without the oracle database running... If you think that a 32bit instance in amazon has at most 1.7GB, those 240 MB makes all difference to run databases! If I use the OEL, I waste 250 MB of precious memory that I can use in my database SGA.
    >
    Finally, there's also a Metalink Note titled Linux OS Installation with Reduced Set of Packages for Running Oracle Database Server, 728346.1.I also note that 4 hours ago :)
    >
    SergioRegards
    Joao

  • I am new to Mac. I have iphone and ipad but I bought a used Mac G4 and all is well except I cannot figure out how to download a program from a CD that I need for my business. I think it's a simple fix so HELP!

    I am new to Mac. I own an iphone and an ipad but have always used a PC for my business use.  I bought a used Powerbook G4 and all is well EXCEPT I cannot get a program to download from a CD. I think it's an easy fix so HELP!

    A few questions ....
    What is the program you are trying to download? It is a mac version?
    Is this a vendor's CD or a copy or ?
    What error message or other indication do you get that says the download won't happen?

  • I had an old iPod nano with my files saved on it and was stolen. I cannot find my old account. I bought an iTouch and made the new account that was needed for it to function. I was wondering how i could find my old account and get all the content back.

    I had an old iPod nano with my content saved on it and was stolen. As well, I can't find and access my old account that I had with it. I bought an iPod touch and made a new account so that I could use the iTouch. Anyone know how to find the old account and how to transfer data from the old one to the new account?

    This may help you find your iTune account:
    Frequently Asked Questions About Apple ID
    Without knowing your old account info there is nothing you can do.

  • My ipad2 isn't sending a particular document from pages in either pdf or word format.  It's a really important document that I need for a project at work.  Any help would be gratefully recieved!  I've tried all the usual stuff I can think of such as reset

    I've tried reset, power down/power up and shutting down the program but this document just won't send.  Not from my iPhone either!  I've tried doing a copy all and pasting it but it comes out all weird!  PLEASE HELP!

    Have you tried renaming the document something very short and simple?

  • Changes that are needed for RVADIN01

    hi,
    i am using Standard SapScript Driver Program RVADIN01 for my smartform,
    smart form i am developing from scratch. which will creates invoice, Credit Request, Debit Request. to make use of this driver program for my smart form what are the relevent changes to be made ?
    please reply.
    thanks in advance.

    If that driver program contains OPEN_FORM , START_FROM, WRITE_FROM CLOSE_FORM etc, comment all those and add this code in place of them for reading your smarform,
    data : v_form_name TYPE rs38l_fnam.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = '<b>GIVE YOUR SMARTFORM NAME</b>'
    importing
    fm_name = v_form_name
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION v_form_name
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Don't forget to close your thread once your question is answered... Reward points to all useful answers.
    Regards,
    SaiRam

  • Are all these files needed for MBR streaming? event.xml,manifest.xml,event1.f4m,event1.m3u8?

    When streaming live multiple bit rate events, are all four of these xml files necessary and in the correct location? Seems like duplicate information.
    Say my event is called 'liveshow'
    Event Directrory (2 files) > C:\FMSHOME\applications\livepkgr\events\_definst_\liveshow.
    Event.xml
    <Event>
      <EventID>liveshow</EventID>
      <Recording>
        <FragmentDuration>4000</FragmentDuration>
        <SegmentDuration>400000</SegmentDuration>
        <DiskManagementDuration>3</DiskManagementDuration>
      </Recording>
    </Event>
    Manifest.xml
    <manifest xmlns="http://ns.adobe.com/f4m/1.0">
      <media streamId="stream1" bitrate="200" />
      <media streamId="stream2" bitrate="350" />
      <media streamId="stream3" bitrate="500" />
    </manifest>
    In the webroot (2 files)
    liveshow.f4m
    <manifest xmlns="http://ns.adobe.com/f4m/2.0">
      <baseURL>http://FMS/hds-live/livepkgr/_definst_/liveshow/</baseURL>
      <media href="stream1.f4m" bitrate="200"/>
      <media href="stream2.f4m" bitrate="350"/>
      <media href="stream3.f4m" bitrate="500"/>
    </manifest>
    liveshow.m3u8
    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=200000
    http://FMS/hls-live/livepkgr/_definst_/liveshow/stream1.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=350000
    http://FMS/hls-live/livepkgr/_definst_/liveshow/stream2.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000
    http://FMS/hls-live/livepkgr/_definst_/liveshow/stream3.m3u8
    Also why does 'Manifest.xml use '<manifest xmlns="http://ns.adobe.com/f4m/1.0">' and 'liveshow.f4m' use '<manifest xmlns="http://ns.adobe.com/f4m/2.0">' ?
    Thanks for all the help!

    Event.xml is used for Recording purpose - the configuration in there is used for F4F recording.
    Manifest.xml is used to serve .f4m file in case if you are using Multi-level manifest.
    liveshow.f4m is new way of delivering f4m and is called Multi-level manifest and is used for HDS
    liveshow.m3u8 is used for HLS
    The difference between Manifest.xml and liveshow.f4m is that they use different specification of F4M file specification - first one is based on 1.0 specification and later is on 2.0 specification.

  • Lots of videos, or all in one, & Need for a Play button?

    I am shooting about 11 separate videos over the next 12 months, each on a single local subject such as a village fair, hay-making, the Fire Service etc. Each will be from 3 to 15 minutes long. These subjects will be grouped into: events, festivals, work, etc. The first-play menu will have an "Intro" and a "Contents" button. The Contents button is connected to a Contents Menu (second level) which will have a button for each of the above groups. Each of those group buttons will be connected to its own third-level menu which will have buttons connected to play the beginning of each of the subject videos in the relevant group.
    The videos are separate simply for ease of shooting, capturing and editing as I complete all three activities soon after the event etc. has finished.
    1. What would be best practice: keep the videos separate, one per track, its beginning connected to its button on the third-level menu, or join all the videos together and connect the third-level buttons to chapter marks in the single video where each of the original separate videos startd? (Stories seem to be used to allow the author to select which parts of a given video will be played when and to not allow playing other parts, but all my edited video material will be played.)
    Also:
    I think that it is usual practice to include a Play button in the first-play menu. This seems to be to allow the user to play a whole cinema film from beginning to end. However, in my project, no user is likely to want to do that. My project is more like a training manual where the user would choose which part of a car he wanted to fix and go directly to it. So:
    2. Is there any reason why I should include a Play button on the first-play menu?
    Thanks.
    G5/2.0 GHz Mac OS X (10.3.9) 1 GB RAM, 150 GB HD, Sony DCR-HC96 mini DV, FCE HD 3.0 DVD SP 3

    . What would be best practice: keep the videos separate, one per track, its beginning connected to its button on the third-level menu, or join all the videos together and connect the third-level buttons to chapter marks in the single video where each of the original separate videos startd? (Stories seem to be used to allow the author to select which parts of a given video will be played when and to not allow playing other parts, but all my edited video material will be played.)
    For best playback performance, if the videos under each subset are on the same track they can navigate to the 3rd level menu quicker if you use VTS view to put the 3rd level menu for the section (i.e., events) with all the video for the tracks and you can use stories
    Also take a look here for some more info on VTS issue
    http://discussions.apple.com/message.jspa?messageID=3212583#3212583
    Play All
    sounds like it is a no, the answer lies in your question - will a user want to play all (which seems to be a no) Becomes a creative issue to a degree, do you think not having a play all detracts from your project (regardless of whether it "should" be there and/or having it makes no sense in your judgement.

  • Will the newest version of itunes that I need for a newer ipod still work for an old ipod?

    I have an Ipod that is 4 years old and have an old version of Itunes that I use with it. My son wants to start using his Ipod that he just got last Christmas on this computer and Itunes wants me to download a new version of Itunes for it. I'm wondering if I download the newer version of Itunes, will it still work with my older Ipod. They are both Ipod Shuffles. Thanks.

    Yes.
    (58559)

  • I cannot remove Avast from Safari.  It is blocking a website that I need for remote access to my office.  I have dragged Avast to the trash and have restarted my computer.  It is no longer installed as an app on my Mac.  Does anyone know what to do?

    How do I remove Avast from Safari?

    "Avast" is perhaps the worst of the whole wretched lot of commercial "security" products for the Mac. Not only does it fail to protect you from any real danger, it throws false warnings, destabilizes and slows down the computer, and sometimes or always corrupts the network settings and the permissions of files in your home folder. Removing it may not repair all the damage.
    Back up all data, then remove "Avast" according to the developer's instructions. Restart.
    If you tried to remove Avast by dragging an application to the Trash, you'll have to reinstall it and then follow the instructions linked above.

Maybe you are looking for