USB Drive letter

I want to start of by apologizing if this has been posted before, I was unable to pin point exactly what I need so I'm hoping someone can help or send me in the right direction.
My company will be using USB sticks as A:/, we will be handing out approx. 100 to different people who will be sharing different computers. (in case I am not explaining this clearly, 1 USB stick could end up being used in up to 50 different
computers and the USB needs always be the A:/ as a specific program we use will only work with the A:/)
I have read online that it is possible to do this if you create a auto run batch file. I have very little experience with batch files. I'm not even sure if this is the best method or if it will actually work. I'm hoping someone can give me some direction.
I have 2 years of PC support experience and a general knowledge of Network Admin. so I am not super advanced with terminology.
Thanks in advance for any information anyone can provide.

Hello,
The TechNet Wiki Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
Please note that this forum exists to discuss TechNet Wiki as a technology/application. If you have a question about another technology (such as Windows), you can ask in another forum. If you're unsure which forum, a
Bing search often works the fastest or ask here:
http://social.microsoft.com/Forums/en-US/whatforum/threads
However, I'd ask in
The Official Scripting Guys Forum!
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Similar Messages

  • Can't Access any USB drive

    I just installed Windows 10, and untill now all is working fine except for the fact that I can't access any USB Drive or PEN.
    When I try I always get the following message:
    this operation has been cancelled due to restrictions in effect on this computer
    How can I fix this BUG.

    Hi,
    I don’t think it’s a bug, it could be driver or settings issues.
    Please run rsop.msc to see if there is any related Group policy was configured to block USB device.
    First I would like to confirm with you that expect USB drive, if other USB device can be recognized fine.
    If not, I recommend you to update or reinstall the USB controller under Device manager.
    If this issue only happened on USB drive, let’s try following suggestions:
    Suggestion 1: Check hidden device drivers
    Unplug your USB storage device.
    Type CMD in Start Search.
    Right click cmd.exe and select
    Run as administrator. Click Yes if the User Access Control box pops up.
    At the Command Prompt window, type
    set devmgr_show_nonpresent_devices=1 and press the Enter key.
    Using the same Command Prompt window, type
    devmgmt.msc to bring out the Device Manager.
    At the Device Manager top menu, click
    View and select Show hidden devices.
    Browse down to the Universal Serial Bus controllers and click the
    + to expand the list.
    Probably you will see some light grey devices, e.g. USB Mass Storage Device or USB Composite Device. Right click each and every light grey devices and select Uninstall. This will remove whatever "hardware profile" linked
    to your USB storage.
    Attached your USB storage device and see if it works.
    Suggestion 2: Check if the drive can be recognized under Disk management:
    Right click the Start icon and choose Disk management.
    If you can find your USB drive there but there’s no in File explorer, follow these steps.
    Run cmd as admin, type following commands   to enable automount feature:
    Diskpart
    automount   enable
    Details   for this command:
    http://technet.microsoft.com/en-us/library/cc753703.aspx
    Then try   to assign letter for your USB drive again by using commands below:
    Run cmd as   admin, type following commands:
    Diskpart
    list   volume
    sel   volume x [x present the volume number of your USB drive]
    assign   letter=g:
    Another thing is if you use USB3.0 to connect the drive, change it to USB 2.0 to see what's going on.
    Kate Li
    TechNet Community Support

  • How do I get Lightroom to find photos on a USB Drive when the Drive letter changes?

    THis is probably a simple question but I keep getting stuck.  I ha
    ve my catalog and some images on my laptop hard drive, but the majority are on
    an external USB drive.  Sometoimes the drive gets assigned
    E:, F;, or G:, and when it cahnges, the catalog says the phots are missing.  How do I get
    Lightroom to find the photos again?
    Tom Barnwell

    The quick fix is to click on the folder containing the missing files and choose "update Folder Location" then find the folder on the USB drive. The longer term and fix you should apply is to set Windows to always give the USB the same drive letter. You can do this through the XP Disk Management application in Computer Management (Control Panel applet). The following screenshot is for XP, but Vista and Win 7 will something similar which can be accessed via Administrative Tools (see second screenshot).

  • How do I find out about the driver letter of a usb drive by script, given the DeviceID

    Hi all,
    I am wondering if it is possible by script to find out what the drive letter of a usb drive might be.
    I have just inserted my USB stick into a socked and the operating system displays that the drive was recognized and that the drive letter is F:.
    I already know, how USB devices can be listed by WMI script, but how do I extract the drive letter of a USB storage device.
    The DeviceID is known, where do I find the drive letter given the DeviceID ?
    Disk drive
    DeviceID:
    USBSTOR\DISK&VEN_SAMSUNG&PROD_YP-U2&REV_0100\4002FDCCE0E4D094&0
    Service: disk
    Status: OK
    SystemName: MEINER
    Caption: Samsung YP-U2 USB Device
    All help is welcome

    @echo off  
    :: GetLetterOFmyUSBstick.cmd  
    :: Bye Gastone Canali  
    ::DeviceID: USBSTOR\DISK&VEN_SAMSUNG&PROD_YP-U2&REV_0100\4002FDCCE0E4D094&0  
    setlocal EnableDelayedExpansion  
    set PNPDeviceID=4002FDCCE0E4D094 
    set Q='wmic  diskdrive where "interfacetype="USB" and PNPDeviceID like "%%%PNPDeviceID%%%""    assoc /assocclass:Win32_DiskDriveToDiskPartition' 
    echo %Q%  
    for /f "tokens=2,3,4,5 delims=,= " %%a in (%Q%) do (  
      set hd=%%a %%b, %%c %%d  
      call :_LIST_LETTER !hd!)  
    goto :_END  
    :_LIST_LETTER  
    (echo %1 |find  "Disk ") >nul|| goto :_EOF   
    for /f "tokens=3 delims==" %%a in ('WMIC Path Win32_LogicalDiskToPartition  ^|find %1') do set TMP_letter=%%a  
    set Part_letter=%TMP_letter:~1,2%   
    echo %Part_letter% %1  
    goto :_EOF  
    :_END  
    :_EOF  
    ' ' GetLetterOFmyUSBstick.vbs
    strComputer = "." 
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")  
    strPnPdevID = "USBSTOR\DISK&VEN_SAMSUNG&PROD_YP-U2&REV_0100\4002FDCCE0E4D094&0" 
    strPnPdevID = Replace(strPnPdevID, "\", "\\")  
    Set colDiskDrives = objWMIService.ExecQuery ("SELECT * FROM Win32_DiskDrive where PNPDeviceID like '"& strPnPdevID &"' ")  
    For Each objDrive In colDiskDrives  
        Wscript.Echo "Physical Disk: " & objDrive.Caption & " -- " & objDrive.DeviceID   
        strDeviceID = Replace(objDrive.DeviceID, "\", "\\")  
        Set colPartitions = objWMIService.ExecQuery _  
            ("ASSOCIATORS OF {Win32_DiskDrive.DeviceID=""" & _  
                strDeviceID & """} WHERE AssocClass = " & _  
                    "Win32_DiskDriveToDiskPartition")  
        For Each objPartition In colPartitions  
            Wscript.Echo "Disk Partition: " & objPartition.DeviceID  
            Set colLogicalDisks = objWMIService.ExecQuery _  
                ("ASSOCIATORS OF {Win32_DiskPartition.DeviceID=""" & _  
                    objPartition.DeviceID & """} WHERE AssocClass = " & _  
                        "Win32_LogicalDiskToPartition")  
            For Each objLogicalDisk In colLogicalDisks  
                Wscript.Echo "Logical Disk: " & objLogicalDisk.DeviceID  
            Next 
            Wscript.Echo  
        Next 
        Wscript.Echo  
    Next 

  • Hi, my Ipod Schuffle (4 gen) dissapears from windows vista right after I execute Itunes, I've change the drive letter, erase temps in App data file, verified USB drivers, etc... Can someone guide on how to solve this?

    Hi, my Ipod Schuffle (4 gen) dissapears from windows vista right after I execute Itunes, I've change the drive letter, erase temps in App data file, verified USB drivers, etc... Can someone guide on how to solve this?

    If you want the shuffle to be always visible in Windows (outside of iTunes), you need to Enable disk use.
    Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, select the Summary tab.  You should see a checkbox that says Enable disk use.  Check it and click Apply.
    NOTE:  If disk use is enabled, you have to Eject the shuffle in iTunes, BEFORE you physically disconnect it.  If disk use is NOT enabled, you can disconnect the shuffle at any time, as long as iTunes is not doing something with it at that moment (such as syncing); the shuffle's light will then be blinking (to indicate DO NOT DISCONNECT).
    So, unless you want to use the shuffle like a USB flash drive (carry random files on it), you may want to NOT Enable disk use.

  • CRIO 9012 USB fix drive letter

    Hello All!
    I am using cRIO 9012 controller with 9102 chasis along with NI 9802 and IO modules in a system. I am logging data on SD cards and on USB drive connected with controller via USB port. I am using cRIO 2.4. Is there any possibility so that whenever I connect a USB
    drive
    to the controller and controller will assign a fix Drive  Letter say
    U without  taking into account that the NI 9802 SD cards are mounted
    or not. The problem is when I start the application.
    Regards
    Mani

    Thanks for the VI Mangus,
    From investigating the behavior, I'll help describe what is happening with your system to give a better understanding.  When power is cut at some future time, anything thats using a FAT file system can and does become corrupt if its not properly shut down.  So, as you have seen, when your application loses power, if the SD cards have not been un-mounted properly, then when we attempt to mount the Card, the software sees that the FAT file system has become corrupt and requires a run of chkdsk to recover it before we can mount again.
    Now, this is different than some other OS versions, as others (Windows, etc.) are more lenient on the mount side.  There are lots of minor corruptions that they are lenient enough to mount anyway.  NI had an explicit desire to be strict and not lenient in these cases as if we mount filesystems that are corrupt in this way we might be overwriting any data that your application may have generated.  So, currently, a proper system should have a way to provide a safe shut down procedure so that File IO can have time to close and un-mount the SD card.  This could be done with an external battery on the input and monitoring on the RT controller on which Power Suppy Input is being used.  See the Tutorial Designing High Availability Systems with CompactRIO and Compact FieldPoint for some more information on this subject.
    We have considered providing a method to explicitly Mount and SD card even though its a little bit corrupt so please file a product suggestion if you would like to see this feature.
    Let me know if you have any questions.
    Thanks,
    Basset Hound

  • I just purchased an ipod shuffle (4th gen.) and  I have been working trying to get it running for hours.  I have followed all manuals and tutorial help.  When I pull up my device manager, it shows an Ipod, but won't let me download the Usb driver.

    I just purchased and IPod Shuffle (4th gen.) and can't get it running.  I have gone through all of the help available.  It shows up in my device manager, but needs a USB driver.  It will find it online, but says an error has occurred and access is denied instead of installing.  I bought this for a last minute trip with teenagers and I have spent hours on this.  I am running Windows 7 and have tried disabling the firewall.
    Help, please.

    Hello, kcanole. 
    Thank you for visiting Apple Support Communities. 
    Here are a couple troubleshooting articles that I would recommend going through when experiencing this issue. 
    Resetting iPod shuffle
    http://support.apple.com/kb/ht1655
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Restoring iPod shuffle to factory settings
    http://support.apple.com/kb/ht1481
    Cheers,
    Jason H. 

  • [SOLVED] Toshiba 3.0 USB 2TB (HDTC720XK​3C1) Assigned Drive Letter But Not Working

    My external HD has 750gb of data that I cant access.  It shows up with a hard drive letter, but doesnt show like it used to (showing how much storage is used and unused) or showing it's assigned name.  It also doesnt work if I plug it into a different computer (does the same thing).  I cant remember if I properly removed it when I unplugged it last night when I finished using it, so that may be the cause.  I tried going to "manage drives" and uninstalling the drivers, but no luck.  Tried rebooting with it connected, no luck.  Tried unplugging for several hours and plugging back in, no luck.  I do not wish to reformat the drive because of the 750GB of data I'll lose.  Please help!  

    *****I FIXED IT!!!!!*******   I continued searching the web and found the fix.  All I needed to do was open the command prompt (cmd) and run this script "chkdsk /f E: (E: was the generic drive letter assigned).  Basically windows runs check disk and fixes the problem.  It also said you could try "chkdsk /r E:" but it worked on my first attempt.  Make sure you allow the computer enough time to finish.... It took a long time for it to completely finish.  (one way to know if it's done, you will be able to type in the cmd prompt again, if not, your computer is still working in the back ground)  After it was done, I ran my windows defender to check my removable drive for virus's and sure enough it found 3 threats.
    I HOPE THIS HELPS ANYONE ELSE WITH THE SAME PROBLEM as it seems like a relatively easy fix, but over 80 people had read my plee for help with no response.

  • IPhone 5 iOS 6.1.4 and Windows 7 x64 USB Driver Issues

    Been pulling my hair out with this one for the last week or so and haven't had any luck finding anything on the forums or the web regarding a solution short of a full reinstall of Windows 7 which I am not prepared to do at this time; so hoping someone here can shine some light on this for me
    I have a iPhone 5 that is updated to iOS 6.1.4 and a recently built Windows 7 64-bit machine. All of my other USB devices function fine (keyboard, mouse, Xbox 360 wireless receiver for Windows, and a Seagate 2TB external USB drive). I've downloaded the most recent version of iTunes, installed successfully and then attempt to plug in my phone to sync. I get the standard Windows *ding* that I've attached a device and 1 of 2 things happens (I haven't been able to determine what causes one reaction to happen versus the other): Windows will successfully install the 'Apple USB Mobile Device Driver' successfully and it will appear under my USB devices in Device Manager. However - iTunes will not recognize the phone and I cannot see it in Windows either. In the 'Devices and Printers' snap-in my iPhone will appear under 'Unspecified Devices' as the 'Apple USB Mobile Device'. The iTunes diagnostics fail to find a connected device so the tests fail. As soon as I unplug the device, the strangest thing happens: Windows will start trying to install a device driver and after a few seconds it will fail stating that the "MTP Device Driver" installation failed because the device was unplugged. iTunes also thrown an error "iTunes cannot connect to this iPhone" throwing error code 0XE8000065 (I've also seen error code 0XE8000085 as well)
    After some finagling, I've managed to get Windows to recognize the device under 'Portable Devices' in Device Manager as an "MTP USB Device" using the generic driver. At this point, I've tried updating the driver and manually specifying the Apple USB driver located in the C:\Program Files(x86)\Common Files\Apple\Mobile Device Drivers which updates successfully but then changes the device to "Apple USB Mobile Device" and moves it under the USB Devices in Device Manager; and Windows nor iTunes can see it even still.
    I've tried removing iTunes several times and ensuring that all remnants of the installation are gone (registry and folders on the installation drive) and have disconnected all my USB devices short of the keyboard and mouse and still I get the same results. At this point, I'm afraid that a re-install of Windows is going to be the solution; but it's a drastic one (I have a SSD drive where Windows is installed along with all of my games for faster load times/better performance and do not want to have to redownload\reinstall all of them) and I'm not prepared to undertake it at this time, which is why I'm posting here
    I've used a utility called USBDeview that sees my phone is connected - so I know from a functional standpoint that my USB ports are good and working. I also know the cable is good too - my daughter's PC (Windows 7 32-bit with NO iTunes) immediately sees the device when I plug it in, installs the drivers, recognizes it as an iPhone and I can then see/browse it in Windows Explorer like I would normally expect. My work PC (Windows 7 64bit, NO iTunes) sees the device just fine as well. I would immensely appreciate anyone that has seen this issue or has any additional solutions I can try.
    It's also worth mentioning that I've never used Kapersky antivirus so the UPPERFILTERS value in the registry that I've seen as a solution on some forums is not present on my machine. I'm using Microsoft Security Essentials as my antivirus (no flaming please lol - it meets my needs and is extremely lightweight, which is why I'm using it on a gaming rig) and it's not indicating any issues. I've also tried running iTunes as an administrator (even though my account is a local admin on the machine) and that does not have any effect either.
    If there is anything I left out, please let me know; and I thank you in advance!

    AphexTwin wrote:
    - no Apple input?
    Of course not.  Didn't you bother to read the TOU of this forum?  This is a USER TO USER technical support forum.  Apple doesn't post here.

  • How to stop importing from usb drive going into root ITMS directory

    First time I imported, everything was fine. I was trying to get rid of some duplicates and got rid of one of the main subdirectories (I had "Itunes Music" folder with two main subdirectories, let's call them "Laptop" and "Desktop." I noticed I had many duplicate artists from these, so I deleted the "Laptop" directory. Naturally, all these showed up with asterisks on iTunes. With no easy way to delete them all (can't sort based on asterisk, apparently), I removed EVERYTHING from my Library and attempted to copy over from the USB drive again. This time, the contents of "Laptop" went into the root "iTunes Music" folder (so there were now ~50+ folders including the "Desktop."
    This isn't working for me, since my objective is to get rid of the duplicate work (duplicate tracks I can somewhat stomach, but I also have some duplicate "Artists" which is driving me crazy). I removed everything from the library, deleting it all (~30+GB) and deleted all of the subdirectories from the iTunes Music folder.
    When I went to reimport it all again. I dragged the "Laptop" folder from Finder on the USB drive into the iTunes Music directory again (as I did the first time), recreated the and everything continues to populate the top iTunes music folder. Is there any way to stop this? I want the "Laptop" folder to stay in it's subdirectory structure distinct and separate from the "Desktop" folder so I can ensure I am not unnecessarily increasing my structure.
    One easy (though extremely tedious) alternative could be to import the folders one at a time... but I'd really like to avoid that. But for my first mistake, this wouldn't have been an issue. I haven't changed any settings on iTunes, so please advise!

    I have duplicate (different) stuff on the laptop versus desktop but some unique to each (and all kinda scrambled up). I first started importing on my old G3 ibook. It was slower and chugged harder and some are at really low bitrate, for example, and also lack album art. My XP desktop was made for gaming and is much more powerful, so I always did high bitrate and was much more careful to do all the album art, etc.
    Now I'm trying to consolidate it all on my new MBP... Mostly, though, it's a mess and I've been putting this off for years and it's mostly my fault. My biggest gripe is the large number of duplicate tracks. I can live with these when they're from different albums (compilations mostly), but not when one is a lower bit. I imagine I'm gonna be doing it the hard way, one album/artist at a time...

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

  • How to install windows 7 on a macbook through usb drive

    So My Cd Drive is broken, And The only way to install windows is to either delete my whole hard drive and make it so I boot from the bios of the motherboard, but I don't know what kind of key to press to go into the bios of the motherboard once I delete the whole drive, which won't even let me do due tot he fact that I can't insert any other disks, Thanks to my Cd Drive being broken.
    Is there any way I can install windows 7 through a usb Drive? I have a macbook 13 inch unibody 2008 model. identifier is macbook 5,1

    If you want to install using Bootcamp Assistant try these links.
    http://www.apple.com/support/bootcamp/
    https://discussions.apple.com/community/windows_software/boot_camp
    Or, you could install using a virtual machine like Parallels, Fusion, or VirtualBox.

  • Performance Issues with 10.6.7 and External USB Drives

    I've had a few performance issues come up with the latest 10.6.7 that seem to be related to external USB drives. I have a 2TB USB drive tha I have my iMovie content on this drive and after 10.6.7 update, iMovie is almost unusable. Finder even seems slow when browsing files on this drive as well. It seems like any access to the drive is delayed in all applications. Before the update, the performance was acceptable, but now it almost unusable. Most of the files on this drive are large dv files.
    Anyone else experience this?

    Matt,
    If you want help, please start your own thread here:
    http://discussions.apple.com/forum.jspa?forumID=1339&start=0
    And if your previous thread you aren't getting sufficient help for your iPhone, post a new topic here:
    http://discussions.apple.com/forum.jspa?forumID=1139
    You'll get a wider audience, and won't confuse the original poster. Performance issues can be caused by numerous issues as outlined in my FAQ*
    http://www.macmaps.com/Macosxspeed.html
    If every person who had a performance issue posted to this thread, we'd never find a solution for the initial poster. Let's isolate each case one by one. It is NOT necessarily the same issue, even if the symptoms are the same. There are numerous contributing factors at work with computers, and if we don't isolate them, we'll never get to the root cause.

  • Unable to Load USB Driver in LV for Total Phase's Aardvark I2C adaptor

    I have tried to instal Total Phase's Aardvark I2C USB driver for LabVIEW on two computers and two versions of LV (8.5 and 7.1) without success. The Windows driver seems to be working fine as their command center gui terminal-esque program works without a hitch, but the LV DLL doesn't seem to work.
    Attached is the very simple vi to find connected Aardvark USB devices (aa_find_devices). It always returns the same error code, 8002, which resolves to:
    AA_UNABLE_TO_LOAD_DRIVER
    -2
    unable to load USB driver
    From their documentation: http://www.totalphase.com/docs/aardvark_datasheet/​sect005/#s5.9
    This looks like perhaps the LabVIEW DL, "aardvark.dll" maybe having a versioning issue. So my question is this: Using LabVIEW, how does one debug dll dependencies and resolve issues like this? Do I need the source code for the lib?
     Cheers,
    Joe Gorse
    Solved!
    Go to Solution.
    Attachments:
    find_devices.vi ‏11 KB

    Dear Joe,
    Let me start off by apologizing for the inconvenience you
    have gone through.  I am an engineer at Total Phase.  We are
    working on fixing this issue for our next release of the
    Aardvark LabVIEW Driver.  This forum post was only brought
    to our attention today.  In the future, you can also let
    Total Phase know about these kinds of issues by emailing
    [email protected]  We are very responsive through
    email or phone.
    The problem you are experiencing has to do with versioning
    issues between our DLL and USB driver.  Specifically, DLLs
    before v5.xx must use the older version of our USB driver.
    By replacing the DLL from our latest version of Control
    Center, you have effectively upgraded the DLL that the
    LabVIEW driver is using and made it compatible with v2.xx of
    the USB driver.
    The most likely reason that smercurio_fc did not see a
    difference between the DLL in Aardvark Control Center and
    the LabVIEW driver is because he is using an older version
    of Control Center and correspondingly an older version of
    the USB driver.
    The reason that we have not packaged the LabVIEW driver with
    latest DLL is due to the fact that a few functions have
    changed their function prototypes (for example aa_open_ext
    and aa_spi_write), and the VIs have not yet been updated
    accordingly.  Although updating the DLL solved your USB
    driver issue, it introduced this new issue.  If you try to
    use these certain VIs, LabVIEW will error out.
    We are currently working on updating the LabVIEW drivers to
    work cohesively with the new DLL and USB driver, and this
    should be available soon.  If you need immediate
    availability to the functions with new prototypes you will
    have to change it manually.  The other recommended option is
    to simply revert back to the DLL that is packaged with our
    LabVIEW driver and downgrade the USB driver back to v1.xx.
    I will make sure to post again once the update is released,
    and I once again apologize for the inconvenience.
    Best regards,
    Etai

  • How can I do backups on internal disc while sharing an external USB drive?

    Hi,
    On my Airport Utility there are two lines: "Time Capsule Disc", and below (indented) "Data".
    (When I plug an external USB drive I can see it in this window as well)
    Clicking (selecting) the first line, on the right hand side I can see the disc details (name, capacity and SMART Status (Verified)), and two buttons: Compress and Erase (I don't know if these are the words used on the english version mine is spanish).
    Clicking on the second line (Data) I can see the Name "Data", capacity, used and available sizes and number of users connected.
    First question:
    Why Time Machine can't see the "Data" volume if I untick the "Share files" checkbox?
    Second question:
    Moreover, I've got a USB External Drive attached to my Time Capsule, so I have to have the "Share Files" checkbox ON, this makes my USB disc (fat32) available to my Windows computers but ALSO the "Data" volume can be seen from Windows. If there is any attempt to assign a Windows drive letter to the "Data" volume, next time Time machine wants to do a backup I'm getting a "disc wrong or missing, check credentials (or something similar)".
    In summary, what I'm trying to do is Time Machine backups to the internal Time Capsule disc (making that disc unavailable/invisible to any other computer in my network) while sharing a USB external drive attached to Time Capsule.
    Advice, please!

       Yes you can go to > Music > iTunes folder and copy the whole iTunes folder and drag the folder to your external and then on the new Mac click and highlight the iTunes folder and then in iTunes click on the button at the top (add folder to library) and you should see all your songs transfer from the external to the Mac and all songs start filling up in your iTunes library on the Mac.
      This is the easiest method all songs and other media such as songs, movies, apps will be transferred over however you may not be able to keep ratings & last played counts using this method.
      To keep all metadata including ratings & play count use the Apple method exclusively for this if you have to have your metadata, play counts and ratings saved.
      I used scenario one above because it one of the simplest methods and I was just satisfied enough just to transfer all media over.

Maybe you are looking for

  • Some artists don't qappear in browser window for a playlist

    I've been struggling to find a way to browse a large library of classical music. The browser window is a great idea but I can't find a way to add a browser window pane for the Composer tag. So I selected all the tracks with composer=beethoven and mad

  • Two Apple Tvs - one iTunes account

    I bought two Apple TVs - and want to have them sync to one iTunes account. After I bought the second Apple TV and synced it to my iTunes account, my iTunes account doesn't recognize the first Apple TV. I can ping it - so it's on the network. I've gon

  • Macbook Pro Mid 2010 keeps on crashing after update

    I updated my macbook pro mid 2010 and now it randomly crashes! Any help is appreciated. Thank you Anonymous UUID:       D4BFA1B4-3FC3-CB21-4ABA-A50D9CE38F8D Tue Jan 14 14:38:42 2014 panic(cpu 0 caller 0xffffff7f9e5fffac): "GPU Panic: [<None>] 5 3 7f

  • Is there a way to imbed video in an Email?

    Just curious... I've never tried to do it before, so maybe it's something obvious. My Mom is 80+ and hasn't quite mastered the internet, but she's gotten quite good at email. She's using a G4 iBook that I gave her a while back & running Tiger using .

  • 10.4.6 Install Problem re: Internet

    Hello, I installed 10.4.6 yesterday on my G4 933 iBook and everything initially went smoothly. Since the installation I've been unable to run Dashboard, iTunes, Mail, Safari, etc. Basically, if I have an active Internet connection (Airport, ethernet)