Pcmanfm is "Not Authorized" to mount usb drives

Hi,
I recently installed arch linux it's a nice distro but I got a few problem with it.
The biggest one is that I am actually not able to mount usb drives with pcmanfm this means that I am not able to use my old debian /home so far.
I tired multiple thinks (some of them are still active)  e.g for example I used to setup a udev rules which wasn't helpful at all (and even after deleting this rule I always see server empty folder in /media (but that's another problem)).
Any ideas why I am not able to mount encrypted and not encrypted USB drives in arch linux?
Last edited by 42sec (2011-12-28 13:21:41)

wonder wrote:paste ck-list-sessions output, uname -r and cat /etc/pam.d/login
[sec42@archlinux ~]$ ck-list-sessions
Session1:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-12-28T14:28:01.840505Z'
login-session-id = '1'
idle-since-hint = '2011-12-28T14:28:32.462384Z'
[sec42@archlinux ~]$ uname -r
3.1.5-1-ARCH
[sec42@archlinux ~]$ cat /etc/pam.d/login
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth required pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so sha512 shadow use_authtok
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_mail.so dir=/var/spool/mail standard
session optional pam_lastlog.so
session optional pam_loginuid.so
-session optional pam_ck_connector.so nox11
-session optional pam_systemd.so

Similar Messages

  • [SOLVED]Mounting usb drives "not authorized" with thunar-volman (XFCE)

    Hi,
    I'm new to Arch (even though I must be approximately at my 15th try at installing it properly) and I have a problem with thunar-volman.
    Whenever I log in as user, and try to mount a usb drive with thunar, let's say I want to plug a drive labeled Ext3_8Go, I get the same message in a pop-up window : "Failed to mount Ext3_8Go (or anything close, not in English in the text), not authorized (that part is in English)"
    My install is :
    - net install
    - partitions : 9Go for /, no swap, no separate /home
    - packages : base and base-devel. The only modifications in the package list is that I remove ppp, pcmciautils, and xfsprogs.
    - config : at the install stage I only modify rc.conf to change LOCALE and HOSTNAME, and pacman's mirrorlist to allow all French mirrors in addition to the one at the top.
    When the usb installation is over, I run this script :
    "installation_xfce.sh"  (there may be some errors left, I modify this script as I learn) :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon
    sed '/^# exec/c\' </etc/skel/.xinitrc >/tmp/.xinitrc
    sed '/^# .../c\' </tmp/.xinitrc >/home/$var_username/.xinitrc
    cat >> /home/$var_username/.xinitrc << EOF
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    I can mount as a user, no password asked, with :
    udisks --mount /dev/sdb2
    but the GUI method tells me "not authorized".
    "groups user" outputs :
    lp wheel games network video audio optical storage power users
    the command "ck-list-sessions" outputs :
    Session2:
    unix-user = '1000'
    realname = ''
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0.0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.716103Z'
    login-session-id = '1'
    Session1:
    unix-user = '1000'
    realname = ''
    seat = 'Seat2'
    session-type = ''
    active = FALSE
    x11-display = ':0.0'
    x11-display-device = ''
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-08-15T08:56:03.573029Z'
    login-session-id = '1'
    For those who don't have time to read the installation script, DBUS is in the DAEMONS list of rc.conf, and .xinitrc launches : exec ck-launch-session startxfce4
    Any idea ?
    Last edited by choubbi (2011-08-15 15:05:04)

    Thanks a lot !
    That worked !
    I stumbled across this part of the wiki several times before, but didn't really understand so I had not tried.
    If anyone's interested in the script, here's the corrected version :
    #!/bin/bash
    # expected environment : freshly installed archlinux, login : root.
    echo "Are you connected to internet ? If not, please Ctrl+C and reload this script when connected"
    echo "Otherwise, press ENTER to continue installation"
    read var_dummy
    echo "Creation of the user : please type in your user name :"
    read var_username
    useradd -u 1000 -g users -G audio,lp,storage,optical,video,wheel,games,power,network -d /home/$var_username/ -s /bin/bash -m $var_username
    echo "You will now be asked to create the password for this user:"
    passwd $var_username
    # Add servers for pacman to find packages
    cat >> /etc/pacman.conf << EOF
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    [archlinuxfr]
    Server = http://repo.archlinux.fr/\$arch
    [catalyst]
    Server = http://catalyst.apocalypsus.net/repo/catalyst/\$arch
    EOF
    # Install packages
    pacman -Syyu
    pacman -S acpi acpid alsa-oss alsa-plugins alsa-utils catalyst catalyst-utils cpufrequtils cups dbus gstreamer0.10-base-plugins iptables laptop-mode-tools mesa net-tools netcfg ntp pm-utils rfkill rsync sudo ttf-dejavu vim wireless_tools xf86-input-evdev xorg-server xorg-utils xorg-xinit xorg-xinput yaourt conky gamin gnome-icon-theme gnome-keyring gvfs-afc network-manager-applet networkmanager slim slim-themes archlinux-themes-slim hicolor-icon-theme xfce4 xfce4-goodies
    # If pacman failed, better stop the script here, and wait for a network connection
    if [[ $?!=0 ]]
    then
    echo : failed to install packages - check your network connection, or review script
    exit 1
    fi
    # Fix sound issue
    cat > /home/$var_username/.asoundrc << EOF
    pcm.!default{
    type hw
    card 1
    device 0
    ctl.!default{
    type hw
    card 1
    device 0
    EOF
    chown $var_username:users /home/$var_username/.asoundrc
    # Configure video settings for X to use Catalyst
    if [[ ! -e /etc/X11/xorg.conf.d ]]
    then
    mkdir /etc/X11/xorg.conf.d
    fi
    cat > /etc/X11/xorg.conf.d/20-fglrx.conf << EOF
    Section "Monitor"
    Identifier "aticonfig-Monitor[0]-0"
    Option "VendorName" "ATI Proprietary Driver"
    Option "ModelName" "Generic Autodetecting Monitor"
    Option "DPMS" "true"
    EndSection
    Section "Device"
    Identifier "aticonfig-Device[0]-0"
    Driver "fglrx"
    EndSection
    EOF
    sed -e 's/top_left/bottom_right/' -e '/alignment/i\double_buffer yes' -e '/CPU Usage/a\${color lightgrey}Temperatures:' -e '/CPU Usage/a\ CPU:$color ${hwmon 0 temp 1}°C' </etc/conky/conky.conf >/home/$var_username/.conkyrc
    chown $var_username:users /home/$var_username/.conkyrc
    # Install clickpad support
    yaourt -S xf86-input-synaptics-clickpad
    # Add french keyboard to X
    sed '/MatchIsKeyboard/a\\tOption "XkbLayout" "fr"' </etc/X11/xorg.conf.d/10-evdev.conf >/etc/X11/xorg.conf.d/10-evdev.conf.new
    mv -f /etc/X11/xorg.conf.d/10-evdev.conf.new /etc/X11/xorg.conf.d/10-evdev.conf
    # Add new daemons, remove old ones, disable hwclock and remove netfs since I don't use it. add it if you need it
    sed '/DAEMONS=/c\DAEMONS=(!hwclock dbus syslog-ng networkmanager laptop-mode acpid @alsa @cupsd @cpufrequtils ntpd crond)' </etc/rc.conf >/etc/rc.conf.new
    mv -f /etc/rc.conf.new /etc/rc.conf
    # Slim login manager ; change theme
    mv /usr/share/slim/themes/archlinux-darch-grey /tmp/
    mv /usr/share/slim/themes/default /tmp/
    rm -r /usr/share/slim/themes/*
    mv /tmp/archlinux-darch-grey /usr/share/slim/themes
    mv /tmp/default /usr/share/slim/themes
    sed '/^current_theme/c\current_theme archlinux-darch-grey' </etc/slim.conf >/etc/slim.conf
    # XFCE login, and thunar launched as a daemon (note that the part with 'if [ -d /etc/X11/xinit/xinitrc.d ]" is not present, to avoid mounting problems when logged as regular user)
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc
    # Boot to runlevel 5 now, and run slim then
    sed -e 's/id:3/#id:3/' -e 's/#id:5/id:5/' -e 's|x:5:respawn:/usr/bin/xdm|#x:5:respawn:/usr/bin/xdm|' -e 's|#x:5:respawn:/usr/bin/slim|x:5:respawn:/usr/bin/slim|' </etc/inittab >/etc/inittab.new
    mv -f /etc/inittab.new /etc/inittab
    # Add colored prompt to user and root
    sed '/^PS1/c\' </etc/skel/.bashrc >/root/.bashrc
    cat >> /root/.bashrc << EOF
    PS1='\[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;35m\]\w\[\e[m\] \[\e[m\] \[\e[0;32m\]\t -\[\e[m\] \[\e[1;31m\]\$ \[\e[m\] '
    EOF
    cp /root/.bashrc /home/$var_username/.bashrc
    chown $var_username:users /home/$var_username/.bashrc
    # How does one do that automatically ?
    # Manually add user to sudoers
    EDITOR="vim" visudo
    # Reboot, because it's quick and I'm too lazy to learn how to start all the daemons and others.
    reboot
    The important part of the script to solve the problem is :
    cat > /home/$var_username/.xinitrc << EOF
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    exec ck-launch-session startxfce4
    thunar --daemon &
    EOF
    chown $var_username:users /home/$var_username/.xinitrc

  • Could not mount USB drive on Solaris 10 x86 system

    Hi All,
    I am having difficulty mounting a USB drive on Solaris 10 x86 system with the following different unsuccessful attempts:
    # uname -a
    SunOS venus 5.10 Generic_139556-08 i86pc i386 i86pc
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@4/ide@0/sd@0,0
            Connected Device: TEAC     DV-28E-V         1.AC
            Device Type: DVD Reader
         2. Logical Node: /dev/rdsk/c4t0d0s2
            Physical Node: /pci@0,0/pci108e,534b@2,1/storage@9/disk@0,0
            Connected Device: WD       My Book 1140     1007
            Device Type: Removable
         3. Volmgt Node: /vol/dev/aliases/rmdisk0
            Logical Node: /dev/rdsk/c4t0d0p0
            Physical Node: /pci@0,0/pci108e,534b@2,1/storage@9/disk@0,0
            Connected Device: WD       My Book 1140     1007
            Device Type: Removable
    # svcs volfs
    STATE  STIME    FMRI
    online Apr_13   svc:/system/filesystem/volfs:default# ls -lt /mnt
    total 0
    # mount -F pcfs /dev/dsk/c4t0d0p0:c /mnt
    mount: I/O error
    # mount -F pcfs /dev/rdsk/c4t0d0p0:c /mnt
    mount: Block device required
    # mount -F pcfs /dev/dsk/c4t0d0s2:c /mnt
    mount: I/O error
    # mount -F pcfs /dev/rdsk/c4t0d0s2:c /mnt
    mount: Block device required
    # fsck /dev/dsk/c4t0d0p0
    Can't open /dev/rdsk/c4t0d0p0: I/O error
    # fsck /dev/rdsk/c4t0d0p0
    Can't open /dev/rdsk/c4t0d0p0: I/O error
    # fsck /dev/dsk/c4t0d0s2
    Can't open /dev/rdsk/c4t0d0s2: I/O error
    # fsck /dev/rdsk/c4t0d0s2
    Can't open /dev/rdsk/c4t0d0s2: I/O errorSecond try,
    # svcadm disable volfs
    # svcs volfs         
    STATE          STIME    FMRI
    disabled       20:47:00 svc:/system/filesystem/volfs:default
    # mount -F pcfs /dev/dsk/c4t0d0p0:c /mnt
    mount: I/O errorLast try,
    # mkdir /rmdisk
    mkdir: Failed to make directory "/rmdisk"; File exists
    # ls -lt /rmdisk
    total 4
    lrwxrwxrwx   1 root     nobody        16 Oct  1  2009 rmdisk0 -> ./unnamed_rmdik
    drwxr-xr-x   2 root     nobody       512 Sep 30  2009 unnamed_rmdisk
    # cd /rmdisk
    # ls -lt
    total 4
    lrwxrwxrwx   1 root     nobody        16 Oct  1  2009 rmdisk0 -> ./unnamed_rmdik
    drwxr-xr-x   2 root     nobody       512 Sep 30  2009 unnamed_rmdisk
    # ls -lt unnamed_rmdisk
    total 0
    # ls -lt rmdisk0
    lrwxrwxrwx   1 root     nobody        16 Oct  1  2009 rmdisk0 -> ./unnamed_rmdik
    # df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0      5.1G   4.0G   1.1G    78%    /
    /devices                 0K     0K     0K     0%    /devices
    ctfs                     0K     0K     0K     0%    /system/contract
    proc                     0K     0K     0K     0%    /proc
    mnttab                   0K     0K     0K     0%    /etc/mnttab
    swap                   5.9G   984K   5.9G     1%    /etc/svc/volatile
    objfs                    0K     0K     0K     0%    /system/object
    sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap2.so.1
                           5.1G   4.0G   1.1G    78%    /lib/libc.so.1
    fd                       0K     0K     0K     0%    /dev/fd
    swap                   5.9G   148K   5.9G     1%    /tmp
    swap                   5.9G    32K   5.9G     1%    /var/run
    /dev/dsk/c1t0d0s7      129G   1.7G   126G     2%    /export/home
    # /etc/init.d/volmgt stop
    # svcs volfs            
    STATE          STIME    FMRI
    disabled       21:02:31 svc:/system/filesystem/volfs:default
    # pwd
    /rmdisk
    # cd /
    # ls -lt /rmdisk
    total 4
    lrwxrwxrwx   1 root     nobody        16 Oct  1  2009 rmdisk0 -> ./unnamed_rmdik
    drwxr-xr-x   2 root     nobody       512 Sep 30  2009 unnamed_rmdisk
    # /etc/init.d/volmgt st  
    # svcs volfs
    STATE          STIME    FMRI
    disabled       21:02:31 svc:/system/filesystem/volfs:default
    # /etc/init.d/volmgt start
    volume management starting.
    # svcs volfs             
    STATE          STIME    FMRI
    online         21:04:44 svc:/system/filesystem/volfs:default
    # svcs volfs
    # mount | grep rmdisk
    # pwd
    # ls -lt /rmdisk
    total 4
    lrwxrwxrwx   1 root     nobody        16 Oct  1  2009 rmdisk0 -> ./unnamed_rmdik
    drwxr-xr-x   2 root     nobody       512 Sep 30  2009 unnamed_rmdisk
    # ls -lt /rmdisk/unnamed_rmdisk
    total 0
    # iostat -En   
    c0t0d0           Soft Errors: 3 Hard Errors: 0 Transport Errors: 0
    Vendor: TEAC     Product: DV-28E-V         Revision: 1.AC Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 3 Predictive Failure Analysis: 0
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI  Product: HUS1514SBSUN146G Revision: SA04 Serial No: 0921B2Y3PC
    Size: 146.81GB <146810535936 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c1t1d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HITACHI  Product: HUS1514SBSUN146G Revision: SA04 Serial No: 0921B2Z5NC
    Size: 146.81GB <146810535936 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0
    c4t0d0           Soft Errors: 21 Hard Errors: 0 Transport Errors: 0
    Vendor: WD       Product: My Book 1140     Revision: 1007 Serial No: 
    Size: 2000.37GB <2000365289472 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 21 Predictive Failure Analysis: 0
    #This is a working production system with 2 146.81GB mirrored hard disks. There is no disk error for either local or external 2TB Western Digital USB disks that works on Windows 7 or XP.
    Any idea on what else to look for?
    Thanks in advance,
    Jack
    Edited by: 797805 on 6/06/2012 04:48

    Hi All,
    Looks like it was a driver / incompatibility / unsupported issue since 2 other much smaller USB keys (Lexar USB Flash Drive – 32GB, SanDisk Cruzer Colors – 4GB) were successfully mounted automatically by volfs service as follows:
    # df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0      5.1G   4.0G   1.1G    78%    /
    /dev/dsk/c1t0d0s7      129G   1.7G   126G     2%    /export/home
    /vol/dev/dsk/c3t0d0/unnamed_rmdisk#1:c   3.7G   2.4G   1.3G    65%    /rmdisk/unnamed_rmdisk#1
    /vol/dev/dsk/c2t0d0/unnamed_rmdisk:c    29G    96K    29G     1%    /rmdisk/unnamed_rmdiskIt also appears that the Device status of Not Ready from “iostat –En” below may not be correct either since both smaller drives are working fine:
    # iostat -En
    c4t0d0           Soft Errors: 23 Hard Errors: 0 Transport Errors: 0
    Vendor: WD       Product: My Book 1140     Revision: 1007 Serial No: 
    Size: 2000.37GB <2000365289472 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 23 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 7 Hard Errors: 0 Transport Errors: 0
    Vendor: Lexar    Product: USB Flash Drive  Revision: 1100 Serial No: 
    Size: 31.41GB <31406948352 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    c3t0d0           Soft Errors: 60 Hard Errors: 8 Transport Errors: 0
    Vendor: SanDisk  Product: Cruzer Colors+   Revision: 8.02 Serial No: 
    Size: 4.02GB <4022337024 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 8 Recoverable: 0
    Illegal Request: 0 Predictive Failure Analysis: 0In other word, the same question remains on whether it is possible to install a driver to overcome this issue and where to such driver?
    It is necessary to install additional driver that came with the disk on Windows XP platform. However,
    Thanks again,
    Jack

  • [SOLVED] Thunar (XFCE4) Does not Auto-mount USB Drive

    After reading some posts related to USB auto-mounting in Thunar and yet still having the problem, I decided to post this. Thunar used to detect the USB drives and auto-mount them. These days (I GUESS after moving to systemd), It cannot do so. Still, there is the icon of USB drive on the left side panel, but when I click on it to browse it, I get this error:
    Failed to mount "USB_LABLE".
    Error when getting information for file
    '/media/usbhd-sdc1': Transport endpoint is not connected.
    I am still able to use "sudo mount..." and get the job done, but I would prefer the convenient way it used to work. Here are some information about my system:
    command> cat ~/.xinitrc
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
    done
    unset f
    fi
    exec startxfce4
    command> loginctl show-session $XDG_SESSION_ID
    Id=1
    Timestamp=Sat, 2012-11-10 20:35:51 CET
    TimestampMonotonic=34276379
    DefaultControlGroup=name=systemd:/user/username/1
    VTNr=7
    Display=:0.0
    Remote=no
    RemoteUser=root
    Service=slim
    Leader=297
    Audit=1
    Type=x11
    Class=user
    Active=yes
    State=active
    KillProcesses=no
    IdleHint=no
    IdleSinceHint=0
    IdleSinceHintMonotonic=0
    command> systemctl status polkit
    polkit.service - Authorization Manager
    Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
    Active: active (running) since ...
    Docs: man:polkit(8)
    Main PID: 305 (polkitd)
    CGroup: name=systemd:/system/polkit.service
    305 /usr/lib/polkit-1/polkitd --no-debug
    command> dmesg
    Attached scsi generic sg1 type 0
    [sdc] 15470592 512-byte logical blocks: (7.92 GB/7.37 GiB)
    [sdc] Write Protect is off
    [sdc] Mode Sense: 23 00 00 00
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through sdc: sdc1
    [sdc] No Caching mode page present
    [sdc] Assuming drive cache: write through
    [sdc] Attached SCSI removable disk
    I'd rather not edit the /etc/fstab; the way Thunar used to behave, was working with every new USB. I wonder if anybody can shed some lights.
    Last edited by Shahab (2012-11-10 21:56:24)

    The error looks suspiciously like one I had not so long ago and it turned out I still had an 11-media-by-label-auto-mount.rule in /etc/udev/rules.d.  Once I removed that and rebooted everything was fine again.

  • Mounting USB drives in general

    Hello,
    I am having trouble trying to figure out how to mount a usb jumpdrive or similar product in Solaris 10. I have a good understanding of the mount command, it is just trying to figure out what I am supposed to mount. I can't seem to find what was assigned to the jumpdrive when I plugged it in. Does anyone know where I can find a good guide on this topic?I'm used to the BSD/Linux way of doing things.

    this is what I do ,
    1) check /var/adm/messages to make sure sd attaches to the usb device
    here i've just plugged in my dell axim.
    Dec 29 11:15:41 timu-home usba: [ID 912658 kern.info] USB 2.0 device (usb0,0) operating at full speed (USB 1.x) on USB 1.10
    root hub: storage@1, scsa2usb4 at bus address 2
    Dec 29 11:15:41 timu-home usba: [ID 349649 kern.info] Softick Dell Axim X51v 0087AB6095E7
    Dec 29 11:15:41 timu-home genunix: [ID 936769 kern.info] scsa2usb4 is /pci@0,0/pci1179,1@1d,1/storage@1
    Dec 29 11:15:41 timu-home genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/storage@1 (scsa2usb4) online
    Dec 29 11:15:41 timu-home scsi: [ID 193665 kern.info] sd5 at scsa2usb4: target 0 lun 0
    Dec 29 11:15:41 timu-home genunix: [ID 936769 kern.info] sd5 is /pci@0,0/pci1179,1@1d,1/storage@1/disk@0,0
    Dec 29 11:15:41 timu-home genunix: [ID 408114 kern.info] /pci@0,0/pci1179,1@1d,1/storage@1/disk@0,0 (sd5) online
    Dec 29 11:15:41 timu-home genunix: [ID 314293 kern.info] device pciclass,030000@2(display#0) keeps up device sd@0,0(disk#5), but the latter is not power managed
    so I can see that sd5 is the target driver instance that is controlling my axim.
    then run rmformat as root to get the /dev/rdsk/cXtXdX number to mount
    # rmformat
    Looking for devices...
    1. Logical Node: /dev/rdsk/c6t0d0p0
    Physical Node: /pci@0,0/pci1179,1@1d,1/storage@1/disk@0,0
    Connected Device: Softick Card Export 0001
    Device Type: Removable
    Bus: USB
    Size: 488.7 MB
    Label: <None>
    Access permissions: <Unknown>
    2. Logical Node: /dev/rdsk/c1t0d0p0
    Physical Node: /pci@0,0/pci-ide@1f,1/ide@1/sd@0,0
    Connected Device: TOSHIBA DVD-ROM SD-R2412 1431
    Device Type: DVD Reader
    Bus: IDE
    Size: <Unknown>
    Label: <Unknown>
    Access permissions: <Unknown>
    so /dev/rdsk/c6t0d0p0 is the device to mount.
    now at this point you might well find that some
    media manager has mounted up the device for you.
    ( the later the solaris version the better the media managers)
    if not you want to do something like ( note the :c)
    # mount -F pcfs /dev/dsk/c6t0d0p0:c /mnt
    # ls /mnt
    Business Inbox.mst2 Program Files music
    FilesToBeDeleted MSMETADATA junk
    Inbox.mst29My Music mindmaps
    hope that helps a bit
    tim

  • How to mount usb drives in osx maverick?

    Tried to connect external usb drive and got thel following message:
    NTFS-3G could not mount /dev/rdisk5s1
    at /Volumes/FreeAgent Drive because the following problem occurred:
    /Library/Filesystems/fusefs.kext faailed to load - (libkern/kext) link error, check the system/kernel logs fir errors or try kextutil(8). the MacFUSE file system is not available (71)

    Other t han Paragon NTFS for OS X which has been supported and works fine the others have had trouble since 10.7.3 era.
    I use both Paragon NTFS and also their HFS+ for Windows. The demo is fully functional for 10 days and is under  $20 (may be on sale too).
    The software that some drive cases come with are often the source of trouble and best not  to install, and to reformat the drive as well.
    I believe Paragon has a utility to convert a drive to/from NTFS and HFS but check their site.
    www.paragon-software.com

  • Mounting USB Drive in Single user mode

    My Intel Imac fails to boot up. fsck -y fails too ... can't think of any other way to get my data out ...
    I am left with the only option to copy my data into my usb drive in the terminal mode .
    But I am unable to mount my USB drive. I also need to know the mount point. can anyone provide me with help.

    The mountpoint can be anything you want. The tricky part is figuring out the device your drive is using. I don't know for sure (can't test it right now), but dmesg or one of the system logs might have that information in it if you boot to SUM with the external drive attached. The logs also might have a record of what device this drive used in the past when connected. It will likely use the same device every time.
    If not, you can guess. I have seen one of my external disks mount using the device disk1s2. If I were to attach that to my machine in SUM, I could then mount it like this:
    mount_hfs /dev/disk1s2 /Volumes/recover
    where the mount point /Volumes/recover is something I created (i.e. just a simple "mkdir /Volumes/recover"). This could be anything you want.

  • Mounting USB drive as regular user (with ntfs-3g)

    Hello. First of all, I not asking to do the homework for me, rather is someone can help me understand why I can't get this work.
    I spent the last night trying to figure how mount an USB drive as a regular user, using ntfs-3g. I read the related wiki entries and researched quite a lot in the forums. I came up with this:
    fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    devpts /dev/pts devpts defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid 0 0
    #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    #/dev/fd0 /media/fl auto user,noauto 0 0
    /dev/sda1 / ext3 defaults,noatime 0 1
    /dev/sda2 /home ext3 defaults,noatime 0 2
    /dev/sda3 swap swap defaults 0 0
    /dev/sdb1 /mnt/usb ntfs-3g noauto,uid=0,gid=0,noatime,umask=000, 0 0
    I created a ntfsuser group, added my user to that group and trim permissions to the ntfd-3g executable (link in this post). That allows me mount the partition as root and read/write as regular user. It works, so (i think) not big deal here.
    However if I add user to the mount options the following error shows up:
    Mount is denied because setuid and setgid root ntfs-3g is insecure with the
    external FUSE library. Either remove the setuid/setgid bit from the binary
    or rebuild NTFS-3G with integrated FUSE support and make it setuid root.
    Please see more information at http://ntfs-3g.org/support.html#unprivileged
    What bugs me the most is I don't understand why I can't mount as regular user when the user option is set in the fstab. Shouldn't that allow regular users to mount and unmount? Is not like that I'm mounting and dismounting USB drives every 5', but I would like to get this done because I know it can be done
    Sorry for asking such trivial question, but I sense that I'm missing something really stupid and I just can't figure what it is

    Beware of the double post! (+1)
    Ok, I decided I'd get this to work, although the method and the implications it could have might not seem pretty to some. There are certain conditions for a user to mount any ntfs volume with ntfs-3g, I will name them here:
    1. ntfs-3g with integrated fuse support. You'll get this by:
        1A. Removing ntfs-3g and fuse from your system if you have them installed as separate packages, so do this as root:
    pacman -Rn ntfs-3g
    pacman -Rn fuse
    Now you can install the new package.
        1B. Getting a modified version of the PKGBUILD found in that AUR link previously mentioned by me, here's mine:
    # Maintainer: Gula <gulanito.archlinux.org>
    # Slightly modified by anderfs
    # Don't forget to setuid-root for the ntfs-3g binary after you install this
    pkgname=ntfs-3g-fuse-internal
    pkgver=2010.5.16
    pkgrel=1
    pkgdesc="Stable read and write NTFS driver (whit internal fuse suport)"
    url="http://www.tuxera.com"
    arch=('i686' 'x86_64')
    license=('GPL2')
    depends=('glibc')
    conflicts=('ntfs-3g')
    makedepends=('pkgconfig')
    options=('!libtool')
    source=(http://www.tuxera.com/opensource/ntfs-3g-${pkgver}.tgz
    http://aur.archlinux.org/packages/ntfs-3g-fuse-internal/ntfs-3g-fuse-internal/25-ntfs-config-write-policy.fdi)
    sha1sums=('895da556ad974743841f743c49b734132b2a7cbc'
    '200029f2999a2c284fd30ae25734abf6459c3501')
    build() {
    cd "${srcdir}/ntfs-3g-${pkgver}"
    ac_cv_path_LDCONFIG=/bin/true ./configure --prefix=/usr \
    --with-fuse=internal --disable-static || return 1
    make || return 1
    package() {
    cd "${srcdir}/ntfs-3g-${pkgver}"
    make DESTDIR="${pkgdir}" install || return 1
    ln -s /bin/ntfs-3g "${pkgdir}/sbin/mount.ntfs" || return 1
    install -m755 -d "${pkgdir}/usr/share/hal/fdi/policy/10osvendor"
    install -m644 "${srcdir}/25-ntfs-config-write-policy.fdi" "${pkgdir}/usr/share/hal/fdi/policy/10osvendor/" || return 1
    Save this as PKGBUILD, preferrably in an empty directory so it doesn't clutter things up when you build it.
        1C. Now go to the directory where you saved it and do this as a regular user:
    makepkg PKGBUILD
    After that's done, you'll get a package called ntfs-3g-fuse-internal-2010.5.16-1-i686.pkg.tar.xz, or something similar.
        1D. Install that package as root:
    pacman -U ntfs-3g-fuse-internal-2010.5.16-1-i686.pkg.tar.xz
    If all went well you now have ntfs-3g compiled with integrated fuse support.
    2. The ntfs-3g version must be higher than 1.2506, this is already covered, the package installed from AUR matches this requirement.
    3. The ntfs-3g binary must be set to setuid-root, to accomplish this you shall do the following as root:
    chown root $(which ntfs-3g)
    chmod 4755 $(which ntfs-3g)
    I used 4750 instad of 4755, I guess that last bit can be a matter of personal taste as long as it isn't something obnoxious like "7".
    4. The user must have the right access to the volume. Okay, this is the ugly part, volumes are owned by root and managed by the disk group with permissions brw-rw----, this means you have to add any users you want mounting this volume to the disk group.
        4A. So, do this as root:
    gpasswd -a [user] disk
    Where [user] is obviously the name of whichever user you're adding to the disk group, do this for any user you want mounting this volume.
        Any users currently logged in will have to log out and back in for these change to take effect, this most likely includes you.
        4B. Now that you logged back in, try this:
    groups
    One of the groups listed should be disk, if it's not there you didn't completely log out of all open sessions.
    5. The user must have the right permissions/access to the mount point. For a user to be able to mount something to a mount point, that user needs to have read permission (pretty self-explanatory), write permission (so the user can make any changes to the sub-structure of the mount point), and execute permission (so the user can change-dir to that mount point) to it. Mount points can be anywhere, so this really depends where you're mounting.
    In my case, I'm mounting these volumes on certain directories under /mnt/, for example /mnt/example. If you're mounting stuff there, you might as well take advantage of the fact your "mounting user" is already in the group disk, and do the following as root:
    chgrp disk /mnt/example
    chmod 774 /mnt/example
    Now users in the disk group will be able to manage these mount points.
    6. Mount it. That's it, you should now be able to mount ntfs volumes as an "unpriveleged enough" user. Here's an example of what you'd have to put in /etc/fstab:
    UUID=XXXXYYYYXXXXYYYY /mnt/example ntfs-3g noauto,noatime,user,uid=0,gid=6,fmask=137,dmask=027,rw 0 0
    uid=0 means root will be the owner of this mount-point and anything in it after it's mounted. This is due to the fact that even though users might own their mountpoints and have rwx permissions on them, you might still not want them to write to the mounted ntfs volumes. Remove this if you want them to be able to write to the volume.
    gid=6 means this will be managed by the disk group in my system. Perhaps the disk group has a different id in your system, run "id root" to find out, as root usually is part of this group.
    fmask = 137 means the owner (root) can do anything with files in this volume except executing files. Group members (disk) can only read files here, not create or execute them. And other users can't do anything in this volume.
    dmask = 027 means the owner can do anything with directories (execute here is needed to chdir), users can't write directories but they can read or execute in them (once again, needed by 'cd'), and finally other users still don't have any access.
    You can use whichever fmask and dmask makes sense to you, or use an umask instead.
    Last edited by anderfs (2010-07-15 11:34:48)

  • Mount USB drive

    I am trying to mount a USB drive, using this command:
    mount -t usbfs /dev/sdb1  /usb
    When I list the contents of /usb it says:   001   002  devices
    What am I doing wrong?

    either the filesystem is corrupted or it's not a fat filesystem (anymore)
    try, as moetunes suggests, mounting without -t option and see if mount can mount on it's own
    and if not please give us the output for fdisk -l /dev/sdb

  • Mounting USB drive over network

    Hello,
    I'm working through an issue that I don't quite understand, I think. Here's my setup.
    iBook G3 running 10.4.7
    iMac G4 running 10.4.7
    Airport Express (both computers connecting wirelessly)
    My Book external USB 250Gb Drive connected to the iMac G4
    I'm trying to access the My Book drive with the iBook using the "Connect to Server" selection on the "Go" finder menu. I type in the local IP of the iMac and it asks me how I want to connect. (Guest or Registered)
    I choose registered, and use the username and password of the admin account on the iMac. It presents me with the user folder and the hard drive volume as well as any disk images that I might have loaded (a downloaded .dmg, for instance) but the USB drive never shows up in the list of volumes to mount.
    I downloaded Share Points and added the drive to the list of shared volumes, then restarted the iMac, but it still does not come up in the list when I try connecting to the iMac from the iBook. I'm not real confident that I have Share Points set up correctly, I haven't spent enough time to wrap my head around exactly what that software is trying to do.
    Any ideas as to where I've gone wrong?
    Is there a better way to go about doing this?
    It's a hassle to switch the drive back and forth to either machine as I want to work on one or the other. All the cords limit mobility on the laptop as well.
    I should like to leave the drive connected to the iMac and use the files with either computer.

    trying checking or unchecking the "Ignore Ownership
    on this volume" box when you "get info" (file menu)
    on the firewire drive.
    I don't seem to have this option. It sounded promising, nonetheless... The Disk Utility also doesn't mention this.
    Does it matter that it's a FAT32 volume? I hadn't thought to include this initially... If it does, and it's not possible, then I can give up, as I don't have another drive to back up to and reformat the one I'd like to use. Perhaps this will result in finally getting a dreamy LaCie drive... =)

  • Rescuing a non-mounting USB drive...

    Is there anything I can do to rescue an external USB drive that won't mount?
    Yesterday the drive didn't show up on the desktop. This had happened infrequently before, and unplugging the USB cord and re-plugging it in always solved the problem. Drive would immediately mount. However, this time I got the device removal error when I unplugged it, despite the fact the drive was NOT mounted on the desktop. And now the drive still won't show up on the desktop. What can I do to fix this WITHOUT erasing the data onboard? I need to keep (rescue) the files on this drive if at all possible.
    Troubleshooting info:
    -drive doesn't show up on the desktop (can't access files at all)
    -shows up in disk utility and passes disk verification ("appears to be okay")
    -shows up correctly in the system profiler
    -tried the other USB ports to rule out a port problem
    -won't mount on my laptop either (G4, OS 10.4.7)
    -spins up, sounds fine (no audible "dead-drive" noises)
    -LaCie 160GB external USB drive on a G5, OS 10.4.7
    Any help would be greatly appreciated!
    G5 (2.0 gHz)   Mac OS X (10.4.7)  
    PowerBook G4   Mac OS X (10.4.7)  

    Welcome to the Apple Forums.
    If it's not mounting on the desktop, but gives you a "unplugged" warning, that's a good sign.
    You can use Data Rescue to "see" the drive and recover files.
    I would do that first.
    Then I would search Apple main page for Onyx and run all the "Automation" followed by a reboot.
    I would also seriously consider getting a external drive and learn how to clone my boot drive to it. You can hold option and boot from it, repair recover or simply reverse clone. It's also useful to isolate a problem in the OS or hard drive from the rest of the hardware. Not to mention saving your assets one day.
    Some cloning tips:
    1: Always repair permissions before and after a clone on all drives.
    2: Always Disk Utility Erase w/Zero option all new drive one time before loading them up with data. No matter how long it takes. Drives get mishandled and the result is bad sectors which corrupt data. This Zeroing maps off those bad sectors, and supposedly if you get enough, you'll get a SMART warning and can return the new drive.
    3: Don't do anything else, run anything else during a cloning process. Reboot to shutdown Dashboard if you don't want to shutdown the widgets.
    4: Keep cloning a whole boot drive to boot drive clone, until you learn more and can experiment with partial cloning (copying)
    5: Option boot from the clone and check it out carefully, you might need it someday. Run all of OnyX "Automation" to clean things up a bit, do a little OS optimization.
    6: You need a firewire 400/800 drive to clone to. It's best to have two or more OS clones, just in case. If clone #1 gets hooked up to a infected system, C boot from the installer disk and Erase w/Zero all infected drives, disconnect from internet before hooking up clone #2 to reverse clone from.
    7: Visit donation-ware Carbon Copy Cloners forums for advice and software.

  • [SOLVED] How to automatically mount USB drives with custom mount point

    edit:
    Original title was : 'Unable to mount USB disk via /etc/rc.local', but got changed since the /etc/rc.local problem isn't relevant for me anymore.
    Hello,
    Since I am new to this forum, I'll start off with this :
    Thanks to archlinux, its founder and all its contributors, cause this is the operating system (flavour) that annoys me the least.
    The root problem :
    I want to automount USB storage devices to other places than /media/ and without the need for programs that depend on gnome and the like. As I tried some stuff with hald and such, I didn't really get to a nice and easy to configure solution. Any hints in that direction are always welcome.
    For now, automount of known USB storages devices during boot, will do.
    So the things I tried and didnt work :
    1.
    Provide the disk info to /etc/fstab (via the disks UUID and 'auto' filesystem)
    Add 'mount /mountpoint' to /etc/rc.local
    Result : the mount command in rc.local says '... specify filesystem'
    However, after boot, running /etc/rc.local mounts the USB disks correctly.
    2.
    Provide the disk info to /etc/fstab (via the disks UUID and the correct filesystem)
    Add 'mount /mountpoint' to /etc/rc.local
    Result : pc doesn't get through boot process and gives me the 'ctrl-d to reboot or root passwd for maintenance'
    3.
    Provide no disk info in /etc/fstab
    Add the full mount line to /etc/rc.local (mount -t fs /dev/disks/by-uuid/MyUUID /MyMountpoint )
    Result : don't remember the output of the mount execution, but well, it didn't mount
    However, after boot, running /etc/rc.local mounts the USB disks correctly.
    Is there something that isn't loaded at the time of rc.local execution that I need for mounting of USB devices ? Or why else is this failing ?
    Regards,
    BasiK
    Last edited by BasiK (2009-08-28 07:22:50)

    Thanks for the hint hunterthomson, but the pc I will be using it on, is an own-built HTPC/home file server, so there is no way I want to use a graphical file manager to get the usb disks mounted.
    I tried to figure out a little about udev rules, and I got to do what I wanted to do, so thx for pointing me in that direction Mr.Elendig.
    Btw, I am indeed also using auto-sleep/park disks, but this udev way works perfectly.
    I added two rules files to /etc/udev/rules.d/ :
    The first for a known usb disk (with its volume uuid), with a named mountpoint under my media dir /symbiosis/ :
    [basik@plox ~]$ cat /etc/udev/rules.d/80-usb-utopia.rules
    ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",SYMLINK+="usb-%n", GROUP="storage", NAME="%k"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",RUN+="/bin/mkdir -p /symbiosis/utopia"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /symbiosis/utopia", OPTIONS="last_rule"
    ACTION=="remove", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/umount -l /symbiosis/utopia", OPTIONS="last_rule"
    The second for unknown usb disks, to mount under the same dir. This is simply taken from the archwiki http://wiki.archlinux.org/index.php/Ude … .26_Tricks
    Make sure these rules are executed after the ones for specific usb disks.
    [basik@plox ~]$ cat /etc/udev/rules.d/usb-disks.rules
    KERNEL=="sd[a-z]", NAME="%k", SYMLINK+="usb%m", GROUP="storage", OPTIONS="last_rule"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", SYMLINK+="usb%n", GROUP="storage", NAME="%k"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mkdir -p /symbiosis/usb%n"
    ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /symbiosis/usb%n", OPTIONS="last_rule"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /symbiosis/usb%n"
    ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /symbiosis/usb%n", OPTIONS="last_rule"
    These may not be the nicest looking udev rules, but it works for what I wanted to do with it.

  • [SOLVED] Mounting USB drive in Gnome

    I just got a brand new music player (USB, HD-based) and try to mount it in Gnome. Of course i want it to automount, and tried to enable the gnome-volume-manager, which i finally managed. But nothing happens when i plug in the USB. I also created a /media  directory (i hoped it would like to mount there...).
    Then i searched these forums and found  http://bbs.archlinux.org/viewtopic.php?t=7572, which i followed. Still without any success. Now i have no clue, whatsoever...
    (It works of course in M$ 'dos)

    make sure to modprobe usb-storage and check your logs to see what /dev entry is connected to your usb drive. add that to fstab and gnome-volume-manager should work if you followed iphitus' advice above.

  • MacBook Air 2 isnt mounting usb drives

    Hi. I've installed new OSX Lion onto my dad's MacBook Air 2nd gen. The new OS has a couple of bugs. 1st is the WiFi dropping, but i see it isn't only my problem, so i will hope Apple will fix this in 10.7.1 ASAP. But, we found out that MacBook isn't mounting any USB drives. When I plug flash drive into mac, it doesn't show it. I have to go into Disk Utility and manually mount it. I have to do this with every USB drive. Flash disk, memory card reader, hard drive, everything.
    Anybody knows how to fix this?
    Thanks.
    (sorry for my bad english)

    It was probably a SMC reset here:
    Shift-Control-Option keys and the power button
    http://support.apple.com/kb/HT3964
    Or a PRAM reset
    Command-Option-P-R keys
    http://support.apple.com/kb/ht1379

  • Problems mounting USB drives

    I am having some problems getting USB flash drives to (auto) mount on my system.
    In the past, when I plugged in the device (a simple USB flash drive), it showed up in Thunar and I could click on it to mount it. Now nothing shows up in thunar when I plug in the device. dmesg shows the following, so I know the device is being recognized:
    usb 2-2: new high speed USB device using ehci_hcd and address 14
    but it isn't being assigned to /dev/sd*. fdisk -l also doesn't show the device. lsusb shows the following for the device:
    Bus 002 Device 014: ID 0781:b6b7 SanDisk Corp.
    I added a udev rule to automount in /media, as per the udev wiki instructions, but that didn't do anything. Installing udisks and udiskie was similarly unhelpful. I tried this with multiple USB drives (which I both confirmed were working on other machines) so it doesn't seem to be a HW problem.
    Thanks in advance.

    You might try reformatting the usb drive using Disk Utility. Use MacOS Extended(Journaled). That might help.
    lenn

Maybe you are looking for

  • Mail Mavericks still does not start without crashing

    I've updated Mavericks and also installed the Mail update but my mail app is still crashing, can't start it without crashing. I have 3 gmail accounts that use the mail app...everything was functioning fine before Macericks...Also if I try to go to On

  • Need procedure -Load txt,csv,xls pdf file to db

    Could you please share me the procedure for loading the csv,xls,txt,pdf files into oracle database

  • Copying files for windows mwdia player to itunes.

    I have Itunes set to add music to the library when played. It does cds and it also adds the to Itunes, but I cant get the files in windows media player to go to itunes. any ideas. ty ericka

  • Got some memory - good or bad???

    This question relates to this old archived thread: http://discussions.apple.com/thread.jspa?messageID=2211512&#2211512 In System Profiler, my brand new ( >_> ) 512Mb PC133 RAM chip reads it as PC 100-322S... which is no big deal, but with the hardwar

  • Airport Express dyes after ca 2 years of use

    Now the 2:nd Airport Express station broke down. It seems that these device last for 2-3 years. After this they simply break and stop responding, nicely just after the warranty is out. A clear quality issue I would say.