[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

Similar Messages

  • [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.

  • Fujitsu tabet m532 usb driver not work with flash builder

    Hi, 
    I have a fujitsu tabet m532 that is not among the list of certified device but has its own of 32 bit usb driver.
    But flash builder 4.5 cannot find the driver.
    The hardware id I try also not work:
    USB\VID_04C5&PID_133A&REV_9999&MI_01
    USB\VID_04C5&PID_133A&MI_01
    Can you help?
    Thanks
    Also, can I just edit the inf file using notepad and make it display line by line or any editor I would need?

    Moving this discussion to the Using Flash Builder forum.

  • 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

  • When i connect my ipod to my macbook it shows up as a usb drive not in itunes

    When i connect my ipod to my macbook it shows up as a usb drive not in itunes.  I have latest MAC OS updates 10.7.5.  Latest itunes.  Also at some point it must have worked because my music library is on the ipod. 
    Help!!

    Disabling disk use MAY work... my Mac OS X is not that new so I really don't know. Go in itunes on the ipod summary page and go to the check boxes to do that. ??? good luck

  • [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.

  • [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]usb drive not mounting

    I get this error when I try to mount a usb drive in pcmanfm. It used to work correctly before. Since then I tried uninstalling fam and installed gamin. But now I have reverted back to fam and I still see this. What could be the issue?  I can mount the drive manually in CLI, but I was just wondering what suddenly happened.
    inxs ~ > pcmanfm
    (pcmanfm:4961): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 57: '-' is not a valid character following a '<' character; it may not begin an element name
    (pcmanfm:4961): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 1 char 57: '-' is not a valid character following a '<' character; it may not begin an element name
    Last edited by Inxsible (2009-02-13 05:43:07)

    spookyln wrote:
    this working like a charm.
    edit your /etc/PolicyKit/PolicyKit.conf
    <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
    <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
    "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
    <!-- See the manual page PolicyKit.conf(5) for file format -->
    <config version="0.1">
    <match action="org.freedesktop.hal.storage.mount-removable">
    <return result="yes"/>
    </match>
    </config>
    Bingo!! Man you guys are good.

  • 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

  • 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)

  • USB drives not mounting after sleep

    I've started to experience a frustrating problem whereby any connected USB drive fails to mount after the Mac has been to sleep. Rather alarmingly I get an error message saying "disk not ejected properly"
    The set-up I have is two USB drives connected to my early 2011 MacBook Pro via a D-Link mains powered USB hub. I'd planned to have the Mac wake up at 2am for SuperDuper to perform a backup but it's proving impossible as the drive is never available and I have to do a restart before the Mac sees it again.
    I've tried a few solutions I've seen online such as installing Jettison (didn't work) and making sure Spotlight isn't indexing the drives (didn't work either).
    Can anyone suggest anything else?
    THANKS

    You can boot OS X from USB2 or FireWire as well as internal drives. There are also two unused SATA ports hidden away inside that OS X can use, but Vista/XP won't see. There is a $24 kit from NewerTech to connect SATA cable, run out PCI slot adapter, and use eSATA shielded cable to a 2-drive enclosure ($67+).
    I always boot from an alternate boot drive before ever doing an Mac OS update - repair the drive, do backup, other maintenance. And even sometimes apply the update from there (requires using a standalone downloaded combined update, which is preferred method). Never apply an update w/o a working bootable backup. Something that requires multiple licenses I suspect with XP/Vista.
    I have external backup and restore drives for Vista, Mac OS boot drive, 2-drive RAID for Vista, and Vista boot drive.
    All of my drives are GUID. Vista is 64-bit, and has some support for EFI (SP1 will bring better support for UEFI).
    Disk arbitration has been updated and improved and some products even had to wait for later versions (10.4.8 introduced a number of fixes I understand). I would be more concerned with make of drives and whether they have GUID/GPL or MBR partition tables.

  • USB Drive not mounting on Mac Pro, mounts on other Macs?

    Hello.
    I have a USB drive that mounts on just about every Mac (just about because I haven't tried on them all) in our studio. Intel & PPC, 10.5.6 and 10.4.11. But, when I try and mount it on my Mac Pro, it won't mount. The only difference (other than it being a Mac Pro) is that it's running 10.5.7 — though, I have an iMac at home running 10.5.7 and it mounts there no problem as well?
    I've confirmed the USB ports working (all of them), but for some reason, this drive doesn't mount (can't see it in Disk Utility or other 3rd party drive utilities)?
    Anyone have any suggestions?
    Regards,
    Kristin.

    Yea, I've already tried both of those things and neither have worked.
    So weird. I've read a lot of reports on these boards about 10.5.7 and USB not playing well together, but the fat that I've been able to get it to mount on a 10.5.7 machine...?
    k.

  • Problem with USB drive not writing/freezing on unmount.

    I have a sandisk cruzer blade USB drive, which I have used for the past hours extensively. At one point, I couldn't manage to write data to it. It acted like it had, but it didn't, as it silently remounted as readonly. I solved this by remounting as rw and retried.
    Now, when using the same drive, after writing around 2 GiB worth of data to it (creating files), and attempting to unmount, the unmount command freezes for a long period of time. I check dmesg and it says its frozen. So I open up another tab to try and rescue the writes I made by typing sync. This also freezes and generates dmesg messages.
    As I'm typing this the commands seemed to have succeeded, but I'm wondering, what causes these problems? Is the problem known?
    dmesg output:
    [ 1440.339510] INFO: task umount:1540 blocked for more than 120 seconds.
    [ 1440.339518] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1440.339523] umount D ffff88021da81950 0 1540 1539 0x00000004
    [ 1440.339531] ffff8801d9ad7c70 0000000000000082 0000000000014500 ffff8801d9ad7fd8
    [ 1440.339538] ffff8801d9ad7fd8 0000000000014500 ffff88021da81950 ffff88022ec94500
    [ 1440.339545] ffff8801d9ad7bc0 ffffffff81091995 ffff88022211c380 0000000000000002
    [ 1440.339551] Call Trace:
    [ 1440.339565] [<ffffffff81091995>] ? check_preempt_curr+0x85/0xa0
    [ 1440.339571] [<ffffffff8108ecfa>] ? ttwu_stat+0x9a/0x110
    [ 1440.339579] [<ffffffff81093a0c>] ? try_to_wake_up+0x1fc/0x2c0
    [ 1440.339586] [<ffffffff814e1029>] schedule+0x29/0x70
    [ 1440.339593] [<ffffffff814dd909>] schedule_timeout+0x219/0x290
    [ 1440.339599] [<ffffffff8107b746>] ? __queue_work+0x136/0x390
    [ 1440.339606] [<ffffffff814e03c3>] wait_for_common+0xd3/0x180
    [ 1440.339612] [<ffffffff81093b10>] ? wake_up_process+0x40/0x40
    [ 1440.339617] [<ffffffff814e048d>] wait_for_completion+0x1d/0x20
    [ 1440.339625] [<ffffffff811c8bd0>] writeback_inodes_sb_nr+0x80/0xb0
    [ 1440.339648] [<ffffffff811c8c25>] writeback_inodes_sb+0x25/0x30
    [ 1440.339655] [<ffffffff811cdedd>] sync_filesystem+0x2d/0xa0
    [ 1440.339662] [<ffffffff811a1cb0>] generic_shutdown_super+0x30/0xe0
    [ 1440.339668] [<ffffffff811a1f97>] kill_block_super+0x27/0x70
    [ 1440.339678] [<ffffffff811a22fd>] deactivate_locked_super+0x3d/0x60
    [ 1440.339684] [<ffffffff811a28e6>] deactivate_super+0x46/0x60
    [ 1440.339689] [<ffffffff811bdeaf>] mntput_no_expire+0xef/0x150
    [ 1440.339695] [<ffffffff811bf0b1>] SyS_umount+0x91/0x3b0
    [ 1440.339701] [<ffffffff814ea5dd>] system_call_fastpath+0x1a/0x1f
    [ 1560.250364] INFO: task umount:1540 blocked for more than 120 seconds.
    [ 1560.250371] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1560.250375] umount D ffff88021da81950 0 1540 1539 0x00000004
    [ 1560.250383] ffff8801d9ad7c70 0000000000000082 0000000000014500 ffff8801d9ad7fd8
    [ 1560.250390] ffff8801d9ad7fd8 0000000000014500 ffff88021da81950 ffff88022ec94500
    [ 1560.250397] ffff8801d9ad7bc0 ffffffff81091995 ffff88022211c380 0000000000000002
    [ 1560.250403] Call Trace:
    [ 1560.250416] [<ffffffff81091995>] ? check_preempt_curr+0x85/0xa0
    [ 1560.250422] [<ffffffff8108ecfa>] ? ttwu_stat+0x9a/0x110
    [ 1560.250429] [<ffffffff81093a0c>] ? try_to_wake_up+0x1fc/0x2c0
    [ 1560.250435] [<ffffffff814e1029>] schedule+0x29/0x70
    [ 1560.250442] [<ffffffff814dd909>] schedule_timeout+0x219/0x290
    [ 1560.250448] [<ffffffff8107b746>] ? __queue_work+0x136/0x390
    [ 1560.250454] [<ffffffff814e03c3>] wait_for_common+0xd3/0x180
    [ 1560.250460] [<ffffffff81093b10>] ? wake_up_process+0x40/0x40
    [ 1560.250465] [<ffffffff814e048d>] wait_for_completion+0x1d/0x20
    [ 1560.250473] [<ffffffff811c8bd0>] writeback_inodes_sb_nr+0x80/0xb0
    [ 1560.250493] [<ffffffff811c8c25>] writeback_inodes_sb+0x25/0x30
    [ 1560.250499] [<ffffffff811cdedd>] sync_filesystem+0x2d/0xa0
    [ 1560.250506] [<ffffffff811a1cb0>] generic_shutdown_super+0x30/0xe0
    [ 1560.250513] [<ffffffff811a1f97>] kill_block_super+0x27/0x70
    [ 1560.250522] [<ffffffff811a22fd>] deactivate_locked_super+0x3d/0x60
    [ 1560.250528] [<ffffffff811a28e6>] deactivate_super+0x46/0x60
    [ 1560.250533] [<ffffffff811bdeaf>] mntput_no_expire+0xef/0x150
    [ 1560.250538] [<ffffffff811bf0b1>] SyS_umount+0x91/0x3b0
    [ 1560.250545] [<ffffffff814ea5dd>] system_call_fastpath+0x1a/0x1f
    [ 1560.250550] INFO: task sync:1547 blocked for more than 120 seconds.
    [ 1560.250553] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
    [ 1560.250556] sync D ffffffff811cdd00 0 1547 985 0x00000000
    [ 1560.250561] ffff8801be2e1e68 0000000000000086 0000000000014500 ffff8801be2e1fd8
    [ 1560.250567] ffff8801be2e1fd8 0000000000014500 ffff8801c1335460 ffff8801be2e1e70
    [ 1560.250573] ffffffff811326ab ffff8801be2e1de0 ffff88020bdbc280 0000000000000080
    [ 1560.250579] Call Trace:
    [ 1560.250586] [<ffffffff811326ab>] ? filemap_fdatawait_range+0x17b/0x1a0
    [ 1560.250594] [<ffffffff811cdd00>] ? generic_write_sync+0x60/0x60
    [ 1560.250599] [<ffffffff814e1029>] schedule+0x29/0x70
    [ 1560.250604] [<ffffffff814e1d85>] rwsem_down_read_failed+0xc5/0x120
    [ 1560.250610] [<ffffffff81292744>] call_rwsem_down_read_failed+0x14/0x30
    [ 1560.250616] [<ffffffff814dffa7>] ? down_read+0x17/0x20
    [ 1560.250620] [<ffffffff811a34cc>] iterate_supers+0x9c/0x110
    [ 1560.250628] [<ffffffff811cdf85>] sys_sync+0x35/0x90
    [ 1560.250633] [<ffffffff814ea5dd>] system_call_fastpath+0x1a/0x1f

    mr.MikyMaus wrote:You do know that flash memories have limited number of write cycles, right?
    Limited how? Like all storage devices have (in other words, after a while they break)?
    The drive is completely new, like 3 weeks or something.

  • [SOLVED]Usb drive not detected in kde

    not appear in the notification, but in dmesg appear
    5458.314319] usb 2-3: new high-speed USB device number 4 using ehci-pci
    [ 5458.508037] usb-storage 2-3:1.0: USB Mass Storage device detected
    [ 5458.508098] scsi12 : usb-storage 2-3:1.0
    [ 5458.508149] usbcore: registered new interface driver usb-storage
    [ 5459.585989] scsi 12:0:0:0: Direct-Access USB DISK Pro PMAP PQ: 0 ANSI: 4
    [ 5460.612052] sd 12:0:0:0: [sdb] 31260672 512-byte logical blocks: (16.0 GB/14.9 GiB)
    [ 5460.613431] sd 12:0:0:0: [sdb] Write Protect is off
    [ 5460.613434] sd 12:0:0:0: [sdb] Mode Sense: 23 00 00 00
    [ 5460.614802] sd 12:0:0:0: [sdb] No Caching mode page found
    [ 5460.614805] sd 12:0:0:0: [sdb] Assuming drive cache: write through
    [ 5460.619671] sd 12:0:0:0: [sdb] No Caching mode page found
    [ 5460.619674] sd 12:0:0:0: [sdb] Assuming drive cache: write through
    [ 5460.642643] sdb: sdb1
    [ 5460.649748] sd 12:0:0:0: [sdb] No Caching mode page found
    [ 5460.649751] sd 12:0:0:0: [sdb] Assuming drive cache: write through
    [ 5460.649753] sd 12:0:0:0: [sdb] Attached SCSI removable disk
    [ 5476.956859] ath5k: ath5k_hw_get_isr: ISR: 0x00000400 IMR: 0x00000000
    [ 5613.844729] usb 2-3: USB disconnect, device number 4
    [ 5616.296689] usb 2-3: new high-speed USB device number 5 using ehci-pci
    [ 5616.425854] usb-storage 2-3:1.0: USB Mass Storage device detected
    [ 5616.425903] scsi13 : usb-storage 2-3:1.0
    [ 5617.501846] scsi 13:0:0:0: Direct-Access USB DISK Pro PMAP PQ: 0 ANSI: 4
    [ 5618.534031] sd 13:0:0:0: [sdb] 31260672 512-byte logical blocks: (16.0 GB/14.9 GiB)
    [ 5618.535398] sd 13:0:0:0: [sdb] Write Protect is off
    [ 5618.535401] sd 13:0:0:0: [sdb] Mode Sense: 23 00 00 00
    [ 5618.536784] sd 13:0:0:0: [sdb] No Caching mode page found
    [ 5618.536790] sd 13:0:0:0: [sdb] Assuming drive cache: write through
    [ 5618.541762] sd 13:0:0:0: [sdb] No Caching mode page found
    [ 5618.541765] sd 13:0:0:0: [sdb] Assuming drive cache: write through
    [ 5618.564608] sdb: sdb1
    [ 5618.571842] sd 13:0:0:0: [sdb] No Caching mode page found
    [ 5618.571845] sd 13:0:0:0: [sdb] Assuming drive cache: write through
    [ 5618.571847] sd 13:0:0:0: [sdb] Attached SCSI removable disk
    uname -a
    Linux tarro 3.13.5-1-ARCH #1 SMP PREEMPT Sun Feb 23 00:25:24 CET 2014 x86_64 GNU/Linux
    cat /etc/group
    root:x:0:root
    bin:x:1:root,bin,daemon
    daemon:x:2:root,bin,daemon
    sys:x:3:root,bin
    adm:x:4:root,daemon
    tty:x:5:
    disk:x:6:root,darkmind
    lp:x:7:daemon,darkmind
    mem:x:8:
    kmem:x:9:
    wheel:x:10:root,darkmind,pct
    ftp:x:11:
    mail:x:12:
    uucp:x:14:
    log:x:19:root
    utmp:x:20:
    locate:x:21:
    rfkill:x:24:
    smmsp:x:25:
    http:x:33:
    games:x:50:darkmind
    lock:x:54:
    uuidd:x:68:
    dbus:x:81:
    network:x:90:darkmind,pct
    video:x:91:darkmind,pct
    audio:x:92:darkmind,pct
    optical:x:93:pct,darkmind
    floppy:x:94:
    storage:x:95:darkmind
    scanner:x:96:pct,darkmind
    power:x:98:
    nobody:x:99:
    users:x:100:pct
    systemd-journal:x:190:
    polkitd:x:102:
    transmission:x:169:
    avahi:x:84:
    usbmux:x:140:darkmind
    ntp:x:87:
    mysql:x:89:
    kdm:x:135:
    git:x:999:
    pct:x:1001:
    (i'm darkmind)
    somebody help?
    Last edited by dunkles (2014-02-25 22:50:53)

    ewaller wrote:I am not sure what that means.  Are you expecting a pop up notification in KDE?
    yes
    ewaller wrote:Does Dolphin show the volumes?
    not show the volumes, nothing happens when plug a usb drive
    ewaller wrote:Do you have udisks installed?  How about udisks2?
    yes

  • [SOLVED]Cannot move files from mounted usb drive

    When I try to move a file off of my usb drive I get the following error:
    mv: cannot remove ‘homework-1.txt’: Permission denied
    The usb drive is mounted to a folder that I created as a normal user in my home directory. However, when I call ls -l on my home directory it says that the directory I'm using as a mount point is owned by root:
    $ ls -l | grep mnt/
    drwxr-xr-x 10 root root 4096 Dec 31 1969 mnt
    When I unmount the flash drive, the ownership of the mount point changes back to me:
    $ ls -l | grep mnt/
    drwxr-xr-x 2 hugo hugo 4096 Feb 4 16:12 mnt
    When I move the file I want as a super user it works but I don't get to retain ownership of the file anymore.
    How can I make it so that when I mount the usb drive I have access to it as a normal user?
    Last edited by Hurricane (2014-02-05 20:19:37)

    Mr.Elendig wrote:
    fivedigits wrote:
    Seems to me that udev is giving ownership of the device to root and no write permission to world. Try adding something like:
    SUBSYSTEM=="block" ID_BUS=="usb" GROUP="users" MODE=0660
    to /etc/udev/rules.d/10-locale.rules
    Read up on http://www.reactivated.net/writing_udev_rules.html
    no, just no.
    To expand on this... the rule changes permissions on all USB block devices (and will change permissions on some sysfs nodes as well), which is dangerous and doesn't accomplish what the OP wants -- to change permissions on the filesystem. You've also given the rule an irrelevant name (locale? wat?), and then point to an incredibly outdated resource (last updated nearly 6 years ago!!!) about udev rules. udev(7) is far more relevant and up to date. It doesn't mention outdated commands which no longer exist (udev$foo were all merged into udevadm).

Maybe you are looking for

  • Restore ichat history after system restore

    Haven't found a usable solution to this problem yet, so help is greatly appreciated. How do you restore all of your iMessage (iChat) conversations after retiring your Mac to an earlier point in time.  Specifically, I used Time Machine to return my iM

  • Analytic Function: comparison is not working

    Dear Experts, I've got a Product table: - Name - Version - Status I want all the products with: - a SOLD version n - and at least a NONSOLD n+i version In fact I only want the Name and Version for the NONSOLD. I tried the following request but the (p

  • OAM and RESTful services

    All, I'm looking for some advice regarding the consumption of REST services (from the users browser) in an environment that utilizes OAM security and the Oracle Service Bus. Let me set the stage. We've configured an instance of OAM with OHS acting as

  • Compile some Pro*c

    Hello, I try to compile some Proc*c but I receiving the following errors: stgorl80.pc stgorl80.o(.text+0x8db): In function `daemonize': : undefined reference to `errno' collect2: ld returned 1 exit status make: *** [stgorl80] Error 1 COMPILE_ERROR IN

  • Batch file to start java application

    Hi All, I have created a batch file to start my application. startApp.bat javaw myclass But now the problem is the command prompt is not closing. I want the command prompt to close automatically. Any help?? Thanks in Advance, Manjinder Singh