Automatically Mount USB Drive on TC

I have a USB drive attached to my TC and I use it for my itunes library. This works fine but when I use itunes on my macbook pro at home I must manually mount the drive. I would like to have the drive automatically mount whenever I am using my home network.
Is there any way to do this?

johnvic, welcome to the discussions!
Open System Preferences, click on Accounts and then click on the Login Items tab.
Click the + (plus) button at the bottom of the Login box and navigate to select your Time Capsule disk. Click Add.
Time Capsule will open automatically the next time you restart your computer.

Similar Messages

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

  • 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

  • Automatically mount flash drives in AwesomeWM

    In Gnome when you put in a flash drive, it automatically mounts it in /media, and it's owned by me - so you can open a file on the flash drive in a file manager, the file isn't read only.  Is there anyway to do this in AwesomeWM?

    You could just run thunar as a daemon and use it's volume management system.
    pacman -Sy thunar thunar-volman
    Start it with:
    thunar --daemon
    It will automatically mount removable drives.

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

  • Automatically mount USB 3.0 WD External HDD with iMac 24-inch mid-2007

    I am using a 2TB Western Digital (WD) My Book Essential external Hard Disk Drive for my iMac 24-inch mid-2007 to use it as a Time Machine backup disk. This HDD only comes with a USB 3.0 connection. 
    Function-wise, it works with the iMac and Time machine uses it for backup without any issues.
    However, the following problem occurs at every restart: the HDD does not mount automatically. And Time Machine stops backuping. To make it work again, I have to either unplug/replug the power cable of the HDD or unplug/plug the USB cable of the HDD so it mounts again and can be used by Time Machine. When unmounted, I tried to see if the disk was at least visible in Disk Utility so I could mount it from there but it does not appear in Disk Utility until I physically unplug/plug it back again.
    For troubleshooting purposes, I have tried to use this HDD with my MacBook Pro Retina 2013 and I don't have the same problem as the HDD mounts itself automatically when I restart.
    So I assume the problem reside in the way the iMac mid-2007 handle USB 3.0 as it was probably manufactured before the USB 3.0 standard was developped.
    Would anyone know a possible workaround for this issue? I don't have too many hopes but one never knows...

    I am using Mavericks 10.9.1.
    The problem was also occuring when I was running Mountain Lion.
    It looks backward compatible to me except when it comes to automatically mount itself after a restart.

  • 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

  • Automatically open USB Drive (connected to Airport Extreme) in Finder

    I have a 1TB USB drive connected to my Airport Extreme (version 7.6.3).
    File sharing is enabled in the Airport-configuration program.
    But I liked to have this USB drive displayed (automatically) on the desktop. Same as is happening with the harddisk.
    So I don't have to manually open the networ, Airport Extreme station and the USB drive (see picture below).
    Does anyone have a suggestion ?
    Thanks in advance.

    Thanks Bob.
    I noticed that the USB drive is displayed with a different icon. Below the icon if I use the automatic connection as you have suggested.
    And if I connect it manually I get the belowlisted icon.
    What is the difference between those ?
    And is there a difference in performance or capabilities ?
    Thanks in advance.

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

  • 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

  • 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

  • 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

Maybe you are looking for

  • Changing screen resolution by zapping pram

    Hi I persuaded a friend to go down the mac route. He now has a 2006 mac pro running Lion. When he boots up he sees the apple and the little counter thing, whatever it's called, and then the screen goes blank and his monitor tells him that there is no

  • WD 40Gb drive won't mount

    I have a Western Digital Passport 40Gb USB 2 drive that I've used for several years. It's always worked on my DP G4 and G4 iBook, as well as various PCs. Now all of a sudden it won't mount on my G4. It will work fine on my iBook G4, running exactly t

  • Mac Pro Bluetooth

    hello, I am going to buy a mac pro tomorrow. I am looking to buy the wireless keyboard and mouse. Does the eight-core mac pro's have bluetooth built in or do you still need something like a usb bluetooth reader? Thank you

  • IWeb is open but there is no window...

    I got a pretty strange problem with my iWeb... Everything was fine until I duplicate a page, which I often do. iWeb stopped responding so I forced quit it. But now when I open it again, there is no more window... The application is open for sure, but

  • Determining and Changing Connections - Developer 1.5.1

    Hi All, I keep the script I'm developing on my hard drive. When I open it I don't know which connection it's using. Is there a way to determine and change connections? Thank You in Advance for Your Help, Lou