Mounting a drive with hdiutil

when I try to mount a drive using hdiutil it keeps asking for my admin password.
Say I type
hdiutil mount /dev/disk2s2
in terminal, and I have to enter the password twice! Is this normal? can it be avoided?

Is disk2s2 a disk image?
What happens with diskutil mount /dev/disk2s2?
or, more simply:
diskutil mount disk2s2?

Similar Messages

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM.
    In Gnome, my external drives were mounted as i connected them, with the UID.
    Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they are just being named
    "disk [insert number]" again. how do i change this behaviour? which terminal outputs do you need?
    Last edited by gpunkt (2010-05-30 11:11:55)

    I don't quite understand what behavior you got with Gnome. Is that the filemanager "names" the drives with their UUID?
    For me, the filemanager shows the drives with their label names.

  • Problem using external drive with hdiutil

    Hello,
    I use hdiutil to produce CDR masters for our educational software. Works great if I only use my built in CD-RW/DVD-ROM drive on my 15" AL PowerBook. But it won't recognize my external LaCie 1394 CDRW firewire 400 drive. The -anydevice option has no effect. But if I insert a blank CDR, the Finder recognizes it and asks what to do. I've tried the -device option with the device name and still no joy. This is on 10.3.9, so I repeated the tests on 10.4.6 with no luck. The 10.4 Finder also regnizes the device. I've tried hdiutil burn -list and the firewire drive shows up as DRDeviceSupportLevelAppleSupported.
    Any ideas?
    Cole

    It seems you need to include "IOService:" in front of the OF path.
    On my iMac (10.4):
    imac$ hdiutil burn -list
    PIONEER DVD-RW DVR-K06 via ATAPI (DRDeviceSupportLevelAppleShipping)
    IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1/AppleIntelPIIX ATARoot/PRID@0/AppleIntelPIIXPATA/ATADeviceNub@0/IOATAPIProtocolTransport/IOSCSI PeripheralDeviceNub/IOSCSIPeripheralDeviceType05/IODVDServices
    and the following seems to work:
    imac$ hdiutil burn test.dmg -device IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/PATA@1F,1/AppleIntelPIIX ATARoot/PRID@0/AppleIntelPIIXPATA/ATADeviceNub@0/IOATAPIProtocolTransport/IOSCSI PeripheralDeviceNub/IOSCSIPeripheralDeviceType05/IODVDServices -sizequery
    On 10.3 you may need to add "-anydrive" option.

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

  • Mount a Drive with Normal User Access

    How do I do this? Even better, can I mount it automatically. I know this has something to do with /etc/fstab
    What should I append to /dev /sda2 /mnt/mac to make it mount automatically and allow the normal user access?
    It's where I store my music library.

    duke11235 wrote:How do I do this? Even better, can I mount it automatically. I know this has something to do with /etc/fstab
    What should I append to /dev /sda2 /mnt/mac to make it mount automatically and allow the normal user access?
    It's where I store my music library.
    Every question you asked is answered in the Wiki - please read it and then try and implement it yourself. If it doesn't work, then come back with a description of what you tried, what errors you got and any other material you have come across.
    This is help-vampirism.
    Closing.

  • 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

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

  • Fast User Switching with Mounted Network Drive?

    I have a headless G4 Cube running 10.5.8 with a 2TB firewire drive plugged in for storage accessable to any of my macs here at home. I can access it fine with my 2 desktops over ethernet and wirelessly. Recently we decided to consolidate our 2 desktops into one using the muliple users feature. Seems to work fine, and both accounts can access the shared drive. They are logging in with the cube's admin credentials, and the shared drive is set to ignore permissions. I have the drive set to mount on login with a startup item in the system login items prefs. As long as I logout before switching users, everything is good.
    The problem arises with Fast User Switching which we'd love to be able to use. I can't figure out how to connect to the drive in one account without the 2nd account then seeing it as a volume without proper permissions, then that account creates a new volume mount for it (which doesn't work with iTunes properly and seems to cause other wierd issues).
    Example: So say 'user1' logs in, mounts the drive 'Jukebox'. everything seems OK so far. 'Jukebox' is on the desktop and iTunes finds the music. Now I fast user switch to 'user2' and there is a 'Jukebox' on the desktop with the red minus icon indicating I don't have permissions to access it. If I then browse the network and mount the drive, I end up with ANOTHER 'Jukebox' on the desktop. BUT iTunes doesn't see it properly. If I look in the /Volumes/ folder with the Terminal, I see a mountpoint for 'Jukebox' (with the owner of 'user1' group 'staff') and now a new mountpoint called 'Jukebox-1' (with the owner of 'user2' group 'staff').
    It seems when you mount a AFP drive, it creates the Volume with the current user and staff group, but switching to another user then can't access that when it sees it in the /Volumes folder. You try to mount again and it creates a NEW mountpoint, names it with a '-1' at the end and you can use that (but iTunes cant).
    So... how does one use a shared drive that you want on BOTH users desktops with Fast User Switching turned on? Is there a way to have the drive mounted BEFORE either user logs in, such that it will be seen as any other local drive (which doesn't have the issue)??
    Or is there some other way I can attach to the network volume in each account on login so both have access to music and videos with full permissions?
    I'm really stumped here after 2 hrs of googling, searching here and trying things.
    TIA

    I've not had any luck with the suggestions in the link either.
    Here's two other approaches I've tried and failed with:
    1. Creating a new share point on the cube itself so that one user can mount it as a different volume. Then the issue is that I still don't have a volume named "Jukebox" available to each user when switching. I DO have access now to the data from both accounts, but under 2 different mount points (volume names) and the xml file for iTunes is hard coded with the path for each mp3 including the "Jukebox" volume name... so no go.
    2. Tried figuring out a way I could script a mounting of the share with the terminal thinking I could then run that shell script at startup. Can't seem to get the sytax right. If I create a directory in /Volumes and mount and afp share to it, it takes on the ownership of root/wheel which I can't access in the finder and can't seem to change.
    BUT I'll keep playing with both these ideas a bit... the first one might be overcome with a bit of logic and the 2nd if I can get the syntax right to mount the share with afp_mount and give it the correct ownership/permissions such that when a user logs in she/he sees the volume on the desktop and has full r/w access to it.
    thanks again. if you offhand know the syntax for that, let me know

  • Cannot mount external USB drive with FDisk_partition_scheme

    Due to some recent mac issues in my lab, we updated one of the computers to Maverick 10.9.4 from Snow Leopard 10.6.8 yesterday. Anyhow, this seems to have erased the ability of the mac to read or mount several identical USB drives with the NTFS format (WD My Passport Ultra 500GB USB3.0). It could do it yesterday when it was OSX 10.6.8, but not today (OSX 10.9.4). The drives still work fine on other OSX 10.6.8, Windows 8.1 and Ubuntu 14.04 computers (this is appears to be a problem with the Maverick 10.9.4 operating system itself, rather than the flash drives which work flawlessly with every other computer I've tried). I want to remove data from the computer to create backups on the USB drives (no, I don't want to create an online backup or buy a new set of USB drives).
    diskutil can see the drives, but cannot verify or repair them as they lack a GUID (GPT) partition scheme. I'm assuming this is the root of the problem. Manually mounting the drives does not work. Installing the ntfs-3g driver also did not work (I was using this to write to the NTFS drives until we upgraded OS's). Installing the WD Passport drivers for OSX also did not work. How do I get the mac to mount these drives?
    I could reformat one USB drive and then copy to the others, but this would be extremely inconvenient and take days of copying files back and forth (and would prefer to fix the mac rather than go through this with every NTFS drive I own). If I did this, the FAT32 hard drive format would not be suitable, as format is unable to handle the extremely large sequencing datasets I need to transfer. I'm not super familiar with hard drive formats, but in the event we cannot get Maverick to actually work could someone possibly suggest a format able to handle large file sizes (the largest file I need to move is ~60GB) and be compatible with Windows 8.1 / OSX 10.9.4 / Ubuntu 14.04 as well?
    Another workaround I thought of would be just to install an Ubuntu partition on the mac and get the files off through the Linux install. Which is also inconvenient, but would probably be faster than trying to reformat the drives and copy everything over onto them again given the amount of data I want to transfer.
    Unrelated, but is there any way to view files and folders in the OSX root directory besides through Terminal? It seems like this functionality was also removed when we "upgraded" from Snow Leopard. (At this point, if it were up to me I would wipe all of the macs we own and replace them with Ubuntu... even the most minor of tasks always require some sort of workaround with them... at my wits end here ).

    Yeah this definitely appears to be a problem specifically with this mac. It's been having all sorts of weird problems lately, and we figured that upgrading to Maverick might fix them (but instead we got new problems).
    To give an update on this, I ended up reformatting one of the drives to HFS+ and disabled journaling. It now recognizes the drive again, and I'm pulling the files off that way. I looked at exFAT, but it looks like HFS+ has much better Linux support (Windows is read-only but that's only a minor annoyance, as the algorithms to process the data only run on UNIX machines anyways). It's a shame I couldn't keep using NTFS (had to copy over literally EVERYTHING again...) but whatever. Again, no solution for the issue (where this mac can't read NTFS drives).
    @rkaufmann87 - To give a bit more explanation, we recently had to disable online backups because apparently the sheer amount of data causes Time Machine to freeze the computer and fail every time it has a scheduled backup (original issue we thought that upgrading to Maverick would solve... didn't work). The hard drive has been having a lot of issues when it begins to reach max capacity as well. So I am pulling off all of my files to external hard drives and deleting the local copy before we attempt to back up online again. And the data would probably take me a year and a lot of money to recreate (for the curious, it's high throughput sequencing data). I'm choosing not to take any chances as a result.

  • FW800 drive with mounting/unmounting issues.

    Okay... so I have a 1TB Lacie triple interface drive for video editing. Yesterday I export some uncompressed HD footage onto it. It writes fine and everything. Then I go to open the file off the drive (it is 12.4GB for 3 minutes of footage[400mb/s]). It may not have been smart of me to open this file, because it crashed Quicktime right off the bat. Then every other application I had open stopped responding. I tried to wait for the OS to sort things out, and after a few minutes I ended up doing some force quits, and all seemed well. Then I go to unmount the disk. It does it's normal 10 seconds of sitting there and then powers down. I unplug the FW800 cable, and the Warning window pops up saying that the drive had actually not ejected. So then I try to mount the drive to make sure everything is okay, as this information is very important, and it won't mount. I fidget with different mounting software, and Disk Utility for an hour. No luck. I finally hook it up through USB. It mounts, I back up the info, and all is well. I eject the drive and then hook it back up through FW800. It mounts fine, and then all of my software starts crashing. I try to unmount the drive, and I have no luck. It just makes a lot of fan noise, and won't eject. I have never encountered any problem even remotely close to this, so any help would be greatly appreciated. What might I have done, and what might I do to fix it?

    repair with Drive Genius or diskWarrior if Disk Utility can't do the job.
    You may also repair with an "older" system (Panther-Tiger), that sometimes work well.
    If your data is still there fine. If you backed it up, and you may have blown the drive's driver, then reformat it/re-initialize it. That's the fastest and safest.
    Luck!

  • Bug report with proposed solution for mounting external drives for ftp access

    Hello Guys,   I registered to inform you about something I would classify as a bug. I realized this when I used an external drive with my WD My Cloud and trying to access the drive via ftp. It simply was not visible on the ftp, but was accessible as samba share. I digged a bit in the scripts and found this:  /etc/init.d/mountDataVolume.sh   [...]
    ## initialze bind mount dir (/nfs)
    /usr/local/sbin/updateShareBindMntDir.sh --init
    [...]  /usr/local/sbin/updateShareBindMntDir.sh  [...]
    init_mounts()
    mount | grep -q "${SHARE_BIND_MNT_DIR}/"
    if [ $? -ne 0 ]; then
    # initial clean up of MNT dir
    rm -rvf ${SHARE_BIND_MNT_DIR}/*
    fi
    for D in `find /shares/ -maxdepth 1 -mindepth 1 -type d -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done
    [...]   The init_mounts() function searches /shares for directories (find -type >d<) and bind mounts these to SHARE_BIND_MNT_DIR (default: /nfs) by calling add_mount(). This is the directory where ftp users will drop in after logging in. The problem: find -type d will not find symlinks and external drives are represented by a symlink from /shares to /var/media/EXTERNALDRIVE I propose adding the following code at the end of init_mounts()   for D in `find /shares/ -maxdepth 1 -mindepth 1 -type l -not -name ".*"`; do
    share_name=$(basename $D)
    add_mount "${share_name}"
    done That will look for symlinks in /shares and call add_mount() for each symlink to bind mount it to SHARE_BIND_MNT. I think this is not intended aka a bug because I found this comment for add_mount(): # - If <share_name> is a symlink to an external volume, then create the bind mount
    # directly to the external volume.As it seems from this comment add_mount() supports symlinks but init_mounts does not feed it any.   I tried this solution myself and it works flawlessly.   Yours sincerely,schnip

    Nice find!

  • Invalid sibling link, drive with osx wont mount/terminal doesnt see it

    So I am having problems on my macbook pro with 10.4.11.
    I had a freeze today and did a force restart. Now however, when it goes to boot I get the grey screen and spinning wheel the a power off.
    I have booted from my install disk doing d and c. There were no problems with the hardware tests.
    When I boot from the install disk holding down C and do disk utility my drive with osx is faded out and a repair disk gives me the sibling link error.
    I have tried fsck_hfs -r in terminal and get missing special device errors. When I type df in terminal I can't see my partition with OSX (I have a windows and osx partition)
    I am going to try fsck_hfs -fy but am not optimistic.
    No norton to my knowledge has ever been on this machine (might have benn on my g4 before it)
    Also booting in target mode or single user get me nowhere either.
    Any suggestions on fixes or do I need a disk wipe and or new drive?

    Hi & welcome.
    Unfortunately DU can't fix all that much, your best bet is DiskWarrior, you need the CD though.
    http://www.alsoft.com/DiskWarrior/
    But others that may work…
    Drive Genius 2…
    http://www.prosofteng.com/products/drive_genius.php
    TechTool Pro 4…
    http://www.micromat.com/index.php?option=com_content&task=view&id=31&Itemid=83

  • Extrenal Hard Drive with Raid 1 option won't mount through Airport Extreme

    I just purchased the new Airport Extreme and the Iomega UltraMax Desktop Hard drive, 1TB. The hard drive has Raid options. I plugged the hard drive into the back of the Airport Extreme through USB and if I have the hard drive set up to be Mirrored (Raid 1), the hard drive will not show up on my desktop.
    I switched the hard drive back to Striped (Raid 0) and it shows up. However, if I open the Airport Utility, the hard drive doesn't show up there. I also can't see the drive by going into the disk utility either so I can format the drive before using it.
    Any idea why this doesn't work as Raid 1 through the Airport Extreme and then I'm puzzled with why it doesn't show up in the Airport Utility nor in the Disk Utility.
    I want to be able to access this hard drive with a laptop eventually and I also want to make sure that I protect my data by using the Raid 1 option.
    Can anyone please help me figure out these issues?

    Sure. Forget about the AirDisk and buy one of these:
    http://www.dlink.com/products/?pid=509 - It's a D-Link DNS-323 2 drive bay SATA NAS box, and shouldn't cost you more than $185 without drives. It has Gigabit Ethernet, supports SMB and AFP (it'll work with Windows machines and Macs), and it even runs an iTunes server inside the box.
    http://preview.tinyurl.com/32vfc3 - Maxtor 500GB drives for $100 each shipped.
    So for ~$385, you can have 1TB of space which you can then array as RAID 0 or 1, or use as a big, contiguous drive.

  • How do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    how do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    No, an external drive will not always be mounted. If the drive goes to sleep, it can unmount, or it may unmount for other reasons. As Chris said, confim that the drive is mounted and active before launching iTunes.
    Regards.

  • How can i restrict access to a mounted smb drive?

    Hope someone can help this is bugging me! i'm running this apple script as a student logs in to mount the students share folder, located on a MS2003 server, and a share drive on an Xserve to their desktop:
    set student_name to (do shell script "echo $USER")
    property stu_password : ""
    -- displays the password dialog box and stores the result in stu_password
    repeat while stu_password is ""
    display dialog "enter your password to access the share" default answer stu_password with hidden answer
    set stu_password to text returned of result
    end repeat
    -- mounts the network share to the desktop
    tell application "Finder"
    open location "smb://servername/stuhome/" & student_name & "/"
    open location "afp://" & student_name & ":" & stu_password & "@servername/Share/"
    end tell
    It works fine and mounts the drives however... finder then defaults the network location so the student has access to all the folders on /servername/stuhome/ I just want it to mount /servername/stuhome/username/ with no backwards access. I cant set permissions from a server folder level (i don't think!) as its a windows server. any suggestions? why does finder do this? ta.
    Intel XServe Mac OS X (10.4.10)
    Intel XServe   Mac OS X (10.4.10)  

    I've done a work round i'm not 100% happy with but it will do! If anyone else has this problem feel free to mail me.

Maybe you are looking for

  • Transformation check error

    Hi Experts, I have created transformations in BI7.0 with Start Routine and Transfer Routines. when i am checking individual routine, checking total transformations, activating transformations and saving transformations also fine without error. my pro

  • Exporting a QuickTime movie in Keynote '09

    Hello, I am trying to create a quick time movie from Keynote. I have a five minute audio file sound track to which I have selected 28 Slides. When I first exported, I hear the audio, but the video does not advance. I have considered using "Fixed Timi

  • Find table for a structure field

    Hi, I need to find table for field Q0743-OFFR1. I tried using tcode SE15, but was not able to find any table where the field is used. Is there any other method of finding a table for a structure field. Any pointers in this regard would be helpful. Th

  • Bapi = bapi_po_change

    Hello Experts, I'm using the BAPI bapi_po_change in my program to update the field delivery complete indicator in tthe database. i'm passing the po number in the bapi. i want that if the PO number i'm passing is being edited by any other transaction

  • T code use of KB31N & KP46

    Dear all, Can u please let me know about the use of following T codes. KB31N KP46 Regards, Gagan