USB mount options in kde

Is it possible to use custom mount options for removable (usb) drives in kde4?
I'm mostly interested in -o flush option. So the actual write on the disk ocurs when copying, but not when I unmout the device.
P.S. editing fstab is not a solution! May be there is a way to amoid hal and automount using udev?

http://wiki.archlinux.org/index.php/Ude … SB_devices

Similar Messages

  • Cannot mount dvd or usb flash drive in kde 4.6 ?

    Hi,
    I am unable to mount a dvd in kde 4.6 I keep getting the following error:
    udisk error permission denied: not authorised
    I have added myself to storage, disk and all the normal groups. I had the same problem with a flash drive but after adding the following as 11-media-by-label-auto-mount.rules in /etc/udev/rules.d the flash drive now mounts but will not safely unmount. I have set removable media to automount in system settings.
    Any ideas what the problem is with udisks/udev in kde 4.6?
    KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
    # Import FS infos
    IMPORT{program}="/sbin/blkid -o udev -p %N"
    # Get a label if present, otherwise specify one
    ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
    ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
    # Global mount options
    ACTION=="add", ENV{mount_options}="relatime"
    # Filesystem-specific mount options
    ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
    # Mount the device
    ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
    # Clean up after removal
    ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
    # Exit
    LABEL="media_by_label_auto_mount_end"

    Thanks adee. I deleted the udev rule as it didn't work any way.
    I gradually homed in on policykit: I was testing out xrdp for remote session and now I can see the logic of not letting a remote user access removable media etc. It was one of the reasons for the policykit idea in the first place, to limit access for remote sessions-it sure works.
    I changed one of the policykit rules to (inactive=no to yes) to see if that would work but still no go which is a bit strange.

  • [HAL] Mount options for removable devices

    I need my USB drives automounted with noatime mount options. Following the guidelines at http://wiki.archlinux.org/index.php/HAL, I created a file /usr/share/hal/fdi/policy/10osvendor/10-custom-mount-options.fdi with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <deviceinfo version="0.2">
    <device>
    <match key="block.is_volume" bool="true">
    <match key="@block.storage_device:storage.hotpluggable" bool="true">
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
    </match>
    <match key="@block.storage_device:storage.removable" bool="true">
    <merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
    </match>
    </match>
    </device>
    </deviceinfo>
    And then restarted HAL. Even tried reboot. But my drives still won't mount with noatime. Any help is much appreciated?

    [:bump:]

  • USB mounting problem

    I have done my best to research this, but have not found a solution.
    After a new Arch installation on a new machine (Dell Precision T3400) I am unable to change the permissions (even as root!) on files once they are transferred to the usbstick (a Code 1 error message is returned). Other operations, such as copying, moving and deleting occur as usual. I have also noticed that as soon as files are transferred to the USB stick, the permissions get changed (but not the ownership), as if whatever is reading the stick is also changing the permissions.
    It is not the stick -- the same stick performs normally on every other computer I use it on.
    fstab: /dev/sdc1   /mnt/usbstick  vfat   rw,user,auto,sync  0    0
    (basically the same as on 3 other Linux machines I use, all running Arch).
    When mounted, sdc1 has ownership  root:disk.  I have added myself to the disk group. /mnt/usbstick has myself as the owner.
    Not a major problem, just slightly irritating.
    Thea

    Thanks, Pheon --
    I just noticed I made a mistake in giving my fstab line, it should be:
    /dev/sdc1   /mnt/usbstick   vfat   rw,user,noauto,sync   0   0
    (so "noauto" instead of "auto" in the mount options)
    As I indicated, this is not a USB stick problem (same stick works just fine on other machines) -- also, in my attempts to troubleshoot this, I changed the filesystem on the USB stick to VFAT -- previously, it was whatever the default is when it comes out of the factory, and at that time the fstab line looked like:
    /dev/sdc1   /mnt/usbstick   auto   rw,user,noauto,sync   0   0
    Same situation, i.e. changing the filesystem did not affect the problem in any way.
    Any other ideas?

  • Upgradinin to OES 11 sp1 ,Mount options of root

    Hi
    Got a Ques about
    "Changing the Mount Options Before an Upgrade"
    in "Preparing the Server You Are Upgrading"
    I sazs
    I should change to "mount by Device ID or PATH"
    My partitions are
    dev/sda = 200 MB boot ( = no problems to change to Device boot)
    dev/sdb = 20 GB Linux LVM
    made as a VG01
    containing a swap volume on 1,5 GB + the rest as 18,5GB root volume
    Here I cant Change anything ....in the SDB and volumes are the "device/path" options greyed out, Is this OK
    It still warns me about "upgrading"
    Please advice

    Originally Posted by KBOYLE
    Landersson wrote:
    >
    > Hi
    > Got a Ques about
    > "Changing the Mount Options Before an Upgrade"
    > in "Preparing the Server You Are Upgrading"
    If you only have one hard drive, I wouldn't worry about it. With two
    hard drives, for example, sdb could appear as sda and vise versa.
    With multiple hard drives or multiple paths to your storage device the
    device name can change depending upon which one SLES encounters first.
    By assigning permanent names (mount by Device ID or PATH) that won't
    happen.
    Kevin Boyle - Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...
    Thanks for Your anwser ,
    I Doo got a serie of servers tha needs update,
    all got SDA1 as boot =20 MB and the rest as LVM (SDB) Swap and root ,,, LVM just to be able to expand. all ext3
    I still don't get how and where to "change"
    Sorry for my extreme sluggish mind
    Well My fstab looks like
    /dev/VG00/swap swap swap defaults 0 0
    /dev/VG00/root / ext3 acl,user_xattr 1 1
    /dev/sda1 /boot ext3 acl,user_xattr 1 2
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    And
    menu.lst
    # Modified by YaST2. Last modification on Tue Jul 2 14:03:41 CEST 2013
    default 0
    timeout 8
    ##YaST - generic_mbr
    gfxmenu (hd0,0)/message
    ##YaST - activate
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
    root (hd0,0)
    kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/VG00/root resume=/dev/VG00/swap
    splash=silent crashkernel=128M-:64M showopts vga=0x317
    initrd /initrd-2.6.32.12-0.7-default
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7
    root (hd0,0)
    kernel /vmlinuz-2.6.32.12-0.7-default root=/dev/VG00/root showopts ide=nodma apm=off
    noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset
    x11failsafe vga=0x317
    initrd /initrd-2.6.32.12-0.7-default
    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
    rootnoverify (fd0)
    chainloader +1
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    And bootloader
    ## Path: System/Bootloader
    ## Description: Bootloader configuration
    ## Type: list(grub,lilo,none)
    ## Default: grub
    LOADER_TYPE="grub"
    DEFAULT_NAME="SUSE Linux Enterprise Server 11 SP1 - 2.6.32.12-0.7"
    DEFAULT_APPEND="resume=/dev/VG00/swap splash=silent crashkernel=128M-:64M showopts"
    DEFAULT_VGA="0x317"
    FAILSAFE_APPEND="showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off
    highres=off processor.max_cstate=1 nomodeset x11failsafe"
    FAILSAFE_VGA="0x317"
    XEN_KERNEL_APPEND="resume=/dev/VG00/swap splash=silent showopts"
    XEN_APPEND=""
    XEN_VGA="0x317"
    ## Path: System/Bootloader
    ## Description: Bootloader configuration
    ## Type: yesno
    ## Default: no
    # Should the boot cycle detection be used to
    # avoid unconditional reboot cycles of not
    # supervised system.
    CYCLE_DETECTION="no"
    ## Type: integer(0:)
    ## Default: 1
    # The number of the entry in grub's menu.lst
    # which should be used on the next reboot cycle.
    # Note that the first entry has the number 0.
    CYCLE_NEXT_ENTRY="1"
    ## Path: System/Bootloader
    ## Description: Bootloader configuration
    ## Type: list(floppy,mbr,root,boot,custom,none)
    ## Default: mbr
    # Location of boot loader.
    # For making the change effect run bootloader configuration tool
    LOADER_LOCATION=""
    'xxxxxxxxxxxxxxxxxxxxx
    And https://www.novell.com/documentation...a/bv6uejh.html section 5.4.1 doesnt make any sense for mee

  • Sync mount option makes writing *very* slow

    I noticed today one of my external HDDs was writing at 1MB/s, and another at 2MB/s, but both were reading just fine. I've just tracked down the problem. I have been mounting USB HDDs with the sync option, so sudden power loss / disconnection / whatever doesn't cause data loss, however, it had quite an effect on speed. Removing the sync mount option boosted write speed up to 47MB/s.
    Is this known/expected/normal behaviour? I'm using 2.6.33.2-1 from testing.

    I think that my expectation of how fast I should be able to move files from client to server was wrong.
    This post on superuser is about the same complaint (transfers within LAN slower than downloading):
    http://superuser.com/questions/528386/l … -downloads
    If anyone can confirm that this is normal behavior, I'd be grateful.
    This is my setup:
    cable modem ---> router -----[wireless connection] ---->client
                                    |
                                    |
                                    -------------{wired connection]------->server
    Downloading from internet to the client over wireless is about 1 MB/s. Moving files from client to server is about 500kb/s.

  • Windows 8 does not have a USB boot option

    QuestionHow can I boot my Windows 8 laptop from a USB device? I created a recovery disk on a USB thumb drive.
    So far I have:
    Entered into the UEFI (BIOS) and set USB to boot first.
    Disabled secure boot.
    I tried to reboot using the general setup options for startup in the windows settings page. I choose boot from USB through the UEFI, but got an error message that system does not have a USB boot option.
    To confirm I also created a bootable DVD with an ISO burner, but my laptop cannot detect a DVD boot option either.
    I assumed that the firmware of the UEFI for this computer allowed a bootable USB but in practice I cannot seem to get this work.
    AnswerTo assist with not being able to boot from a USB device on a Windows 8 laptop, perform the following:
    Plug in USB bootable device.
    Hold down F12 when restarting and access UEFI menu (option is below drive list). If system is set to fast boot, CLICK HERE for instructions on entering the UEFI.
    Go to UEFI and make USB "1st boot".
    Disable secure boot.
    Go to the "Advance" Tab, select "System".
    Change boot order from UEFI to CSM.
    Save changes and exit (F10).
    Computer will restart and boot from USB drive.
    When finished go back into the UEFI and set defaults then save changes and exit (F10). Windows 8 will reboot normally next reboot.

    Done that, only choices are "Set up Firefox to Sync" & "Pair a Device". No ''UNLINK THIS DEVICE". Your turn.

  • QFS mount options not getting noticed.

    Hi I have a small issue it seems that none of my QFS directives are getting noticed im not sure if this is true or not but this is what I have tried and i am unable to verify that these mount options are actually taking effect..
    This is QFS Version 4 revision 4.0.26FA
    in my /etc/opt/SUNWsamfs/samfs.cmd I have the following options
    fs = qfs1
    nosuid
    sync_meta = 0
    qwrite
    readahead = 4096
    writebehind = 1024
    after mounting my file system why are these options not listed in mnttab
    qfs1 /qfs1 samfs dev=1d80036 1048280993
    using dd/time to write data to this file system im getting the exact same performance no matter what options I set. another reason why I think these options are being ignored is the following
    if I set for example fs = qfs1 and high = 70 low = 30 when I check samu [m] option I dont see those values reflected in the m output so what im asking is there anyway to verifty that my mount options are being set occordinly ?
    Yes I did use mount -o nosuid,qwrite,etc.. /qfs1 still no difference and even placing the options in vfstab seems to not make any difference.
    last but not lease if i do a samtrace -V while mounting my /qfs1 filesystem I see the following
    00100000 readahead (1048576) <<--- still seems to use the default values 1024
    00080000 writebehind (524288) <<-- 512 look @ my samfs.cmd file this should but not the value.
    Any assistance would be nice.

    Hi There! Sorry, it took so long to get back to you. This should help:
    The samu N display shows all the mount options. You can also use the samfsinfo command to see file system build information. If the samfs.cmd options are not being picked up, make sure the file is formatted correctly (no odd characters) and is in the proper location, /etc/opt/SUNWsamfs/samfs.cmd . Then "pkill -HUP sam-fsd" to assure the daemon has picked up the file's contents, and then mount the file system.

  • WARNING:Expected NFS mount options: rsize =32768,wsize =32768,hard,

    While using "dbua" I encountered a problem on the screen saying "cannot open the specified control file" and I was directed to see the new alert log.
    The alert log has several lines with messages like:
    WARNING:NFS mount of file <PATH>control01.ctl on filesystem <FS_NAME> done with incorrect options
    WARNING:Expected NFS mount options: rsize>=32768,wsize>=32768,hard,
    WARNING:NFS mount of file <PATH>control02.ctl on filesystem <FS_NAME> done with incorrect options
    WARNING:Expected NFS mount options: rsize>=32768,wsize>=32768,hard,
    WARNING:NFS mount of file <PATH>/control03.ctl on filesystem <FS_NAME> done with incorrect options
    WARNING:Expected NFS mount options: rsize>=32768,wsize>=32768,hard,
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '<PATH>/control03.ctl'
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    The file system is actually mounted with these options: "nfs - yes rsize=4096,wsize=4096,hard,intr,vers-3".
    Would someone please help to identify what is wrong ?
    Thanks

    Thanks for your reply.
    OS is Solaris on x86-64. and we use NetApps and NFS.
    I followed the instruction specified in Oracle Support DocID 781349.1 and as it turned out the order is significant.
    The document specifies these mount options using this order.
    rw,bg,rsize=32768,wsize=32768,hard,vers=3,nointr,timeo=600,proto=tcp,suid 0 0
    ** This fixed the problem
    FYI, we had these options (and order):
    rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid

  • Oracle VM Server 2.2.1 - Extra mount options for /OVS

    Hi,
    we would like to know how to add extra mount options (rw,hard,intr,tcp,rsize=32768,wsize=32768,timeo=600) to /OVS in Oracle VM 2.2.1.
    In version 2.1.5 and lower it was possible by adding those options together with the UUID in /etc/ovs/repositories.options
    How to manage mount options in Oracle VM 2.2.1? I've tried the same and no success.
    Best regards and thanks in advance,
    Marc Caubet

    Marc Caubet wrote:
    Since we have seen some I/O problems which causes high CPU Wait for some VM (those which contain postgres databases with high I/O activity) we finally decided to apply those NFS options to see if it solves the problem. If it doesn't work we will analize which options can improve the performance.Marc, why not just use the OVS' NFS mount for the system/root partition and mount an NFS volume from within the guest itself? That way, you can set all the parameters you need. Also, the netfront drivers (I'm told) are slightly more efficient that the blockfront drivers, so you could even see a performance improvement.

  • Mount options for ZFS filesystem on Solaris 10

    Do you know some recomendation
    about mount options for SAP on Oracle
    with data on ZFS filesystem?
    Also recomended block size required.
    We assume that file system with datafiles has 8kb block size
    and offline redologs has default (128kB).
    But what about ONLINE REDOLOGS?
    Best regards
    Andy

    SUN Czech installed new production HW for one Czech customer with ZFS filesystem on data-, redo- and archivelog files.
    Now we have performance problem and currently there is no SAP recomendation
    for ZFS file system.
    The HW which are by benchmark about tvice power has worst responses than
    old hardware.
    a) There is bug in Solaris 10 - ZFS buffers once allocated are not released
        (generally we do not want to use buffering due to prevence of double
         buffering)
    b) ZFS buffers takes about 20GB (32GB total) of memory on DB server
    and we are not able to define huge shared pool and db cache. (it may be possible
    to set special parameter in /etc/system to reduce maximum size of ZFS buffers to e.g. 4GB )
    c) We are looking for proven mount option for ZFS to enable asynchronious/concurent io for database filesystems
    d) There is no proven clear answer for support of ZFS/SOLARIS/Oracle/SAP.
    SAP says It is Oracle problem, Oracle does not certify filesystems from Jan2007
    any more and says ask your OS provider and SUN looks happy, but performance
    goes down and it is not so funny for system with 1TG DB with over 30GB grow
    per month.
    Andy

  • Make USB mount read only.

    Hello again,
    I am looking to make any USB mounted devices read only by default. Is there a way to do this in Leopard?

    Greetings,
    While you can make a USB device read only, you can't make a port read only. There are ways to disable a USB port, but that's about it.
    You can also use a OS X Server and with it, you can deny access to the device, but to make it (the port) read only, I don't think that's possible with any OS. You could mark the internal hard drives read only, as well, but that would be a major pain.
    I have hundreds of machines, and the open labs are the only ones I disallow the use of USB devices for security reasons, PeeCee or Mac. Using the OS X Server, we can apply restrictions, as I do with Active Directory for the PeeCees.
    Cheers,
    M.

  • G400s bios don't have usb boot option

    hi all
    my laptop is G400s, i want try install linux but i got to bios but usb boot option missing ,
    any option i wrong to choose or any suggetion?
    pictur below is my bios setting picture:
    Link to picture
    Link to picture
    Link to picture
    Link to picture
    Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules
    Solved!
    Go to Solution.

    hi try2ops,
    Welcome to Lenovo Community Forums!
    The options set under your BIOS are all set,
       With that, try this
    Plug in your Bootable USB
        Power ON your system then right away start hitting F12
    It should give you a Boot Menu Including USB as bootable.
    Hope this helps
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Readonly filesystem mount options in fstab

    I am noticed when I try to use
    defaults,noatime,data=writeback,nouser_xattr
    as mount options in fstab for my ext4 os partition, it seems to be mounted as readonly, it works for my data partition tho so far. Why is that? I got that from a blog article somewhere on optimizing ext partitions

    Um, the "defaults" option includes "rw".
    https://wiki.archlinux.org/index.php/Fs … efinitions
    You NEED "ro" on the APPEND line in syslinux.conf (here's why), while GRUB2 adds it automatically when you re-generate the .cfg.
    https://wiki.archlinux.org/index.php/Sy … sic_Config
    Last edited by DSpider (2012-08-06 14:22:42)

  • How to make autofs to pick up new NFS mount option?

    Hi,
    I've added a new mount option to an existing map auto_*. I've tried:
    svcadm -v restart svc:/system/filesystem/autofs:default
    svcadm -v refresh svc:/system/filesystem/autofs:default
    but when checking via "mount," it still shows it's mounted before the service restart/refresh and the newly added option is not shown in the output. /etc/mnttab does not show either.
    Also this is within a non-global Solaris zone if it makes a difference.
    How do I make sure automount picks up the new mount options right away?
    Thanks,
    Edited by: ACORCL on Feb 12, 2013 4:52 PM

    Yes. I restarted/refresh autofs after making a change to auto_* file (adding "llock" option to an existing mount).
    I just ran "automount -v" and its output shows that mount point is remounted. However, "mount" output shows
    mount_point on NFS_share list_of_options_here on Tue Feb 12 08:47:32 2013 <== which is still 9 hours ago
    From where I cannot find the "llock" mount option I added in auto_* file in the "list_of_options_here" above.
    If you have any suggestions, please let me know.
    Thanks,

Maybe you are looking for